Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
1c2cbd6a
Commit
1c2cbd6a
authored
May 19, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.5.4-SALARY实发倒推应发最后提交
parent
7bd539c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
SalaryUploadServiceImpl.java
.../v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
+20
-7
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/SalaryUploadServiceImpl.java
View file @
1c2cbd6a
...
...
@@ -1172,6 +1172,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
BigDecimal
actualSalaryNow
=
SalaryConstants
.
B_ZERO
;
// 本次实发
BigDecimal
actualSalary
=
SalaryConstants
.
B_ZERO
;
// 实发
BigDecimal
annualBonus
=
SalaryConstants
.
B_ZERO
;
// -单独年终奖
BigDecimal
annualBonusTax
=
SalaryConstants
.
B_ZERO
;
// -单独年终奖税
BigDecimal
deduction
=
SalaryConstants
.
B_ZERO
;
// +个人代扣
BigDecimal
phoneSubsidy
=
SalaryConstants
.
B_ZERO
;
// -通讯补贴(不计税)
BigDecimal
otherDeduction
=
SalaryConstants
.
B_ZERO
;
// -其他扣除项,包含【累计个人社保(含代扣,含本期)+累计个人公积金(含代扣)
...
...
@@ -1181,9 +1182,14 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
BigDecimal
taxHistory
=
SalaryConstants
.
B_ZERO
;
// 历史个税
//本次
for
(
TSalaryAccountItem
item
:
itemList
)
{
if
(
SalaryConstants
.
ANNUAL_BONUS_JAVA
.
equals
(
item
.
getJavaFiedName
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
a
.
getAnnualBonusType
()))
{
if
(
CommonConstants
.
ONE_STRING
.
equals
(
a
.
getAnnualBonusType
()))
{
if
(
SalaryConstants
.
ANNUAL_BONUS_JAVA
.
equals
(
item
.
getJavaFiedName
()))
{
annualBonus
=
item
.
getSalaryMoney
();
}
if
(
SalaryConstants
.
ANNUAL_BONUS_TAX
.
equals
(
item
.
getJavaFiedName
()))
{
annualBonusTax
=
item
.
getSalaryMoney
();
}
}
if
(
SalaryConstants
.
RELAY_SALARY_JAVA
.
equals
(
item
.
getJavaFiedName
()))
{
res
=
res
.
add
(
item
.
getSalaryMoney
());
}
...
...
@@ -1207,8 +1213,13 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
}
//历史累计
for
(
TSalaryAccountItem
item
:
itemHistoryList
)
{
if
(
SalaryConstants
.
ANNUAL_BONUS_JAVA
.
equals
(
item
.
getJavaFiedName
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
item
.
getAnnualBonusType
()))
{
annualBonus
=
annualBonus
.
add
(
item
.
getSalaryMoney
());
if
(
CommonConstants
.
ONE_STRING
.
equals
(
a
.
getAnnualBonusType
()))
{
if
(
SalaryConstants
.
ANNUAL_BONUS_JAVA
.
equals
(
item
.
getJavaFiedName
()))
{
annualBonus
=
item
.
getSalaryMoney
();
}
if
(
SalaryConstants
.
ANNUAL_BONUS_TAX
.
equals
(
item
.
getJavaFiedName
()))
{
annualBonusTax
=
item
.
getSalaryMoney
();
}
}
if
(
SalaryConstants
.
SALARY_TAX_JAVA
.
equals
(
item
.
getJavaFiedName
()))
{
sumTax
=
sumTax
.
add
(
item
.
getSalaryMoney
());
...
...
@@ -1261,7 +1272,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
// -通讯补贴(不计税)-费用扣除标准(本期)-专项附加扣除(含本期))
// 税率档
BigDecimal
areaMoney
=
actualSalary
.
subtract
(
annualBonus
).
add
(
deduction
).
subtract
(
phoneSubsidy
);
BigDecimal
areaMoney
=
actualSalary
.
subtract
(
annualBonus
).
add
(
deduction
).
subtract
(
phoneSubsidy
)
.
add
(
annualBonusTax
)
;
if
(
costReduction
!=
null
)
{
areaMoney
=
areaMoney
.
subtract
(
costReduction
);
}
...
...
@@ -1274,8 +1285,10 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
if
(
areaMoney
.
compareTo
(
sub
.
getMinIncome
())
>
SalaryConstants
.
EQUAL
&&
areaMoney
.
compareTo
(
sub
.
getMaxIncome
())
<=
SalaryConstants
.
EQUAL
)
{
// 3 计算应缴税所得额(参与计税的金额)= (税率档位-速算扣除数)/(1—税率)
doTaxMoney
=
(
areaMoney
.
subtract
(
sub
.
getQuickDeducation
())).
divide
(
SalaryConstants
.
B_ONEHUNDRED
.
subtract
(
new
BigDecimal
(
sub
.
getWithholdingRate
())).
divide
(
SalaryConstants
.
B_ONEHUNDRED
,
SalaryConstants
.
PLACES
,
BigDecimal
.
ROUND_HALF_UP
),
SalaryConstants
.
PLACES
,
BigDecimal
.
ROUND_HALF_UP
);
doTaxMoney
=
(
areaMoney
.
subtract
(
sub
.
getQuickDeducation
())).
divide
(
SalaryConstants
.
B_ONEHUNDRED
.
subtract
(
new
BigDecimal
(
sub
.
getWithholdingRate
())).
divide
(
SalaryConstants
.
B_ONEHUNDRED
,
SalaryConstants
.
PLACES
,
BigDecimal
.
ROUND_HALF_UP
)
,
SalaryConstants
.
PLACES
,
BigDecimal
.
ROUND_HALF_UP
);
break
;
}
}
...
...
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