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
841ba56d
Commit
841ba56d
authored
Apr 20, 2019
by
zhkwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
固定资产导入计算逻辑。。
parent
38a5bf85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AssetListServiceImpl.java
...a/pwc/taxtech/atms/service/impl/AssetListServiceImpl.java
+3
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/AssetListServiceImpl.java
View file @
841ba56d
...
...
@@ -489,7 +489,7 @@ public class AssetListServiceImpl extends BaseService {
//获取截止本年累计折旧期间,此值根据分类
if
(
"完全报废"
.
equals
(
citAsset
.
getScrapType
())){
calendar
.
setTime
(
citAsset
.
getDisposedDate
());
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
calendar
.
get
(
Calendar
.
YEAR
)-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
)-
1
);
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
calendar
.
get
(
Calendar
.
YEAR
)-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
calendar
.
get
(
Calendar
.
MONTH
)-
cal
.
get
(
Calendar
.
MONTH
)
);
}
else
{
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
year
-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
)-
1
);
}
...
...
@@ -511,7 +511,7 @@ public class AssetListServiceImpl extends BaseService {
//获取截止本年累计折旧期间,此值根据分类
if
(
"完全报废"
.
equals
(
citAsset
.
getScrapType
())){
calendar
.
setTime
(
citAsset
.
getDisposedDate
());
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
calendar
.
get
(
Calendar
.
YEAR
)-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
)-
1
);
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
calendar
.
get
(
Calendar
.
YEAR
)-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
calendar
.
get
(
Calendar
.
MONTH
)-
cal
.
get
(
Calendar
.
MONTH
)
);
}
else
{
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
year
-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
)-
1
);
}
...
...
@@ -533,7 +533,7 @@ public class AssetListServiceImpl extends BaseService {
//获取截止本年累计折旧期间,此值根据分类
if
(
"完全报废"
.
equals
(
citAsset
.
getScrapType
())){
calendar
.
setTime
(
citAsset
.
getDisposedDate
());
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
calendar
.
get
(
Calendar
.
YEAR
)-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
)
);
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
calendar
.
get
(
Calendar
.
YEAR
)-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
calendar
.
get
(
Calendar
.
MONTH
)-
cal
.
get
(
Calendar
.
MONTH
)+
1
);
}
else
{
citAsset
.
setTaxToCurrentYearDepreciationPeriod
((
year
-
cal
.
get
(
Calendar
.
YEAR
))*
12
+
12
-
cal
.
get
(
Calendar
.
MONTH
));
}
...
...
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