|
|
@@ -122,19 +122,22 @@ public class HlwPaymentController extends JeecgController<HlwPayment, IHlwPaymen
|
|
|
Double sumTaxPayment = 0.00;
|
|
|
Double personalTaxPayment = 0.00;
|
|
|
int paymentNumber = 0;
|
|
|
+ for (int i = 0; i < pageList.getRecords().size(); i++) {
|
|
|
+ pageList.getRecords().get(i).setPersonalNetPayment(businessAccountUtils.add( pageList.getRecords().get(i).getAmount(), pageList.getRecords().get(i).getServiceFeeFlow()));
|
|
|
+ }
|
|
|
if (list.size() > 0) {
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
paymentNumber = paymentNumber + list.get(i).getPaymentNumber();
|
|
|
- sumNetPayment = businessAccountUtils.add(sumNetPayment, list.get(i).getPersonalNetPayment());
|
|
|
- personalTaxPayment = businessAccountUtils.add(personalTaxPayment, businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(list.get(i).getPersonalNetPayment(), 1.06), 0.06), 2));
|
|
|
- sumTaxPayment = businessAccountUtils.add(sumTaxPayment, businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(list.get(i).getPersonalNetPayment(), 1.06), 0.06), 2));
|
|
|
+ sumNetPayment = businessAccountUtils.add(sumNetPayment, businessAccountUtils.add(list.get(i).getAmount(),list.get(i).getServiceFeeFlow()));
|
|
|
+ personalTaxPayment = businessAccountUtils.add(personalTaxPayment, businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(businessAccountUtils.add(list.get(i).getAmount(),list.get(i).getServiceFeeFlow()), 1.06), 0.06), 2));
|
|
|
+ sumTaxPayment = businessAccountUtils.add(sumTaxPayment, businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(businessAccountUtils.add(list.get(i).getAmount(),list.get(i).getServiceFeeFlow()), 1.06), 0.06), 2));
|
|
|
}
|
|
|
pageList.getRecords().get(0).setSumNetPayment(sumNetPayment);
|
|
|
pageList.getRecords().get(0).setSumTaxPayment(sumTaxPayment);
|
|
|
pageList.getRecords().get(0).setSumCompanyNumber(list.size());
|
|
|
pageList.getRecords().get(0).setSumPaymentNumber(paymentNumber);
|
|
|
for (int i = 0; i < pageList.getRecords().size(); i++) {
|
|
|
- pageList.getRecords().get(i).setPersonalTaxPayment(businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(pageList.getRecords().get(i).getPersonalNetPayment(), 1.06), 0.06), 2));
|
|
|
+ pageList.getRecords().get(i).setPersonalTaxPayment(businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(businessAccountUtils.add( pageList.getRecords().get(i).getAmount(), pageList.getRecords().get(i).getServiceFeeFlow()), 1.06), 0.06), 2));
|
|
|
}
|
|
|
}
|
|
|
return Result.ok(pageList);
|
|
|
@@ -554,6 +557,7 @@ public class HlwPaymentController extends JeecgController<HlwPayment, IHlwPaymen
|
|
|
int paymentNumber = 0;
|
|
|
if (hwPaymentList.size() > 0) {
|
|
|
for (int i = 0; i < hwPaymentList.size(); i++) {
|
|
|
+ hwPaymentList.get(i).setPersonalNetPayment(businessAccountUtils.add(hwPaymentList.get(i).getAmount(),hwPaymentList.get(i).getServiceFeeFlow()));
|
|
|
personalTaxPayment = businessAccountUtils.add(personalTaxPayment, businessAccountUtils.round(businessAccountUtils.mul(businessAccountUtils.div(hwPaymentList.get(i).getPersonalNetPayment(), 1.06), 0.06), 2));
|
|
|
hwPaymentList.get(i).setPersonalTaxPayment(personalTaxPayment);
|
|
|
}
|