Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
f4cc9ca3
Commit
f4cc9ca3
authored
Apr 18, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
固定资产导入
parent
78830041
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
AssetListServiceImpl.java
...a/pwc/taxtech/atms/service/impl/AssetListServiceImpl.java
+14
-8
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AssetListServiceImpl.java
View file @
f4cc9ca3
...
...
@@ -381,9 +381,17 @@ public class AssetListServiceImpl extends BaseService {
//目前已经进行税法分类,标注状态
citAsset
.
setStatus
(
1
);
AssetDetailGroup
assetDetailGroup
=
selectAssetDetailGroup
(
groupResults
.
get
(
0
).
getAssetDetailGroupId
());
if
(
assetDetailGroup
==
null
){
//目前没有进行税法分类,标注状态
citAsset
.
setStatus
(
0
);
//没有进行过分类,放入Set集合里面
assetNameSet
.
add
(
assetName
);
}
else
{
// Integer assetGroupType = selectAssetDetailGroup(groupResults.get(0).getAssetDetailGroupId()).getAssetGroupType();
//进行税务的计算
setCitAssetTaxData
(
citAsset
,
groupResults
.
get
(
0
),
assetDetailGroup
,
year
);
//进行税务的计算
setCitAssetTaxData
(
citAsset
,
groupResults
.
get
(
0
),
assetDetailGroup
,
year
);
}
}
else
{
//目前没有进行税法分类,标注状态
citAsset
.
setStatus
(
0
);
...
...
@@ -486,11 +494,10 @@ public class AssetListServiceImpl extends BaseService {
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
year
-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
));
}
calendar
.
setTime
(
new
Date
());
calendar
.
add
(
Calendar
.
MONTH
,
1
);
cal
.
add
(
Calendar
.
MONTH
,
1
);
//计算开始折旧日期,DD没有提供,我们要根据购入日期和税法分类做预处理自己转化
//开始折旧日期计算逻辑是固定资产和长期待摊费用是购入日期的次月,无形资产的开始折旧日期等于购入日期
citAsset
.
setDepreciationDate
(
cal
endar
.
getTime
());
citAsset
.
setDepreciationDate
(
cal
.
getTime
());
break
;
case
LongTermPrepaid:
...
...
@@ -509,11 +516,10 @@ public class AssetListServiceImpl extends BaseService {
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
year
-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
));
}
calendar
.
setTime
(
new
Date
());
calendar
.
add
(
Calendar
.
MONTH
,
1
);
cal
.
add
(
Calendar
.
MONTH
,
1
);
//计算开始折旧日期,DD没有提供,我们要根据购入日期和税法分类做预处理自己转化
//开始折旧日期计算逻辑是固定资产和长期待摊费用是购入日期的次月,无形资产的开始折旧日期等于购入日期
citAsset
.
setDepreciationDate
(
cal
endar
.
getTime
());
citAsset
.
setDepreciationDate
(
cal
.
getTime
());
break
;
case
InvisibleAssets:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment