Merge branch 'master' of http://git.xdadan.loc/tanex/emis-service into develop
This commit is contained in:
commit
44a4e4dee7
@ -863,14 +863,13 @@ public class EmisSettleBillServiceImpl extends EmisBaseService implements IEmisS
|
|||||||
log.debug("reCalcSettleBillPayStatus===>应收:{}",oldBill.getRecMoney());
|
log.debug("reCalcSettleBillPayStatus===>应收:{}",oldBill.getRecMoney());
|
||||||
|
|
||||||
for(EmisSettlePayRecord item:payRecordList){
|
for(EmisSettlePayRecord item:payRecordList){
|
||||||
if("1".equals(item.getRecType())) {
|
|
||||||
totalHasPayMoney = totalHasPayMoney.add(item.getPayMoney());
|
totalHasPayMoney = totalHasPayMoney.add(item.getPayMoney());
|
||||||
satisfyMoney = satisfyMoney.add(item.getSatisfyMoney() == null ? BigDecimal.ZERO : item.getSatisfyMoney());
|
satisfyMoney = satisfyMoney.add(item.getSatisfyMoney() == null ? BigDecimal.ZERO : item.getSatisfyMoney());
|
||||||
allowanceMoney = allowanceMoney.add(item.getAllowanceMoney() == null ? BigDecimal.ZERO : item.getAllowanceMoney());
|
allowanceMoney = allowanceMoney.add(item.getAllowanceMoney() == null ? BigDecimal.ZERO : item.getAllowanceMoney());
|
||||||
deductionMoney = deductionMoney.add(item.getDeductionMoney() == null ? BigDecimal.ZERO : item.getDeductionMoney());
|
deductionMoney = deductionMoney.add(item.getDeductionMoney() == null ? BigDecimal.ZERO : item.getDeductionMoney());
|
||||||
otherMoney = otherMoney.add(item.getOtherMoney() == null ? BigDecimal.ZERO : item.getOtherMoney());
|
otherMoney = otherMoney.add(item.getOtherMoney() == null ? BigDecimal.ZERO : item.getOtherMoney());
|
||||||
}
|
|
||||||
else if("2".equals(item.getRecType())) {
|
if("2".equals(item.getRecType())) {
|
||||||
refundMoney = refundMoney.add(item.getRefundMoney() == null ? BigDecimal.ZERO : item.getRefundMoney());
|
refundMoney = refundMoney.add(item.getRefundMoney() == null ? BigDecimal.ZERO : item.getRefundMoney());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -939,13 +938,12 @@ public class EmisSettleBillServiceImpl extends EmisBaseService implements IEmisS
|
|||||||
// 全部收款金额
|
// 全部收款金额
|
||||||
BigDecimal totalAllPayMoney = BigDecimal.ZERO;
|
BigDecimal totalAllPayMoney = BigDecimal.ZERO;
|
||||||
|
|
||||||
// 收款金额-退款金额
|
// 收款金额
|
||||||
totalAllPayMoney=totalMoney
|
totalAllPayMoney=totalMoney
|
||||||
.add(satisfyMoney)
|
.add(satisfyMoney)
|
||||||
.add(allowanceMoney)
|
.add(allowanceMoney)
|
||||||
.add(deductionMoney)
|
.add(deductionMoney)
|
||||||
.add(otherMoney)
|
.add(otherMoney);
|
||||||
.subtract(refundMoney);
|
|
||||||
|
|
||||||
EmisSettleBill newBill = new EmisSettleBill();
|
EmisSettleBill newBill = new EmisSettleBill();
|
||||||
newBill.setId(oldBill.getId());
|
newBill.setId(oldBill.getId());
|
||||||
@ -988,8 +986,9 @@ public class EmisSettleBillServiceImpl extends EmisBaseService implements IEmisS
|
|||||||
.add(satisfyMoney)
|
.add(satisfyMoney)
|
||||||
.add(allowanceMoney)
|
.add(allowanceMoney)
|
||||||
.add(deductionMoney)
|
.add(deductionMoney)
|
||||||
.add(otherMoney)
|
.add(otherMoney);
|
||||||
.subtract(refundMoney);
|
|
||||||
|
// .subtract(refundMoney);
|
||||||
|
|
||||||
EmisSettleBill newBill = new EmisSettleBill();
|
EmisSettleBill newBill = new EmisSettleBill();
|
||||||
newBill.setId(oldBill.getId());
|
newBill.setId(oldBill.getId());
|
||||||
@ -1065,13 +1064,14 @@ public class EmisSettleBillServiceImpl extends EmisBaseService implements IEmisS
|
|||||||
// 全部收款金额
|
// 全部收款金额
|
||||||
BigDecimal totalAllPayMoney = BigDecimal.ZERO;
|
BigDecimal totalAllPayMoney = BigDecimal.ZERO;
|
||||||
BigDecimal totalMoney = BigDecimal.ZERO;
|
BigDecimal totalMoney = BigDecimal.ZERO;
|
||||||
// 收款金额-退款金额
|
// 收款金额
|
||||||
totalAllPayMoney=totalMoney
|
totalAllPayMoney=totalMoney
|
||||||
.add(satisfyMoney)
|
.add(satisfyMoney)
|
||||||
.add(allowanceMoney)
|
.add(allowanceMoney)
|
||||||
.add(deductionMoney)
|
.add(deductionMoney)
|
||||||
.add(otherMoney)
|
.add(otherMoney);
|
||||||
.subtract(refundMoney);
|
|
||||||
|
// .subtract(refundMoney);
|
||||||
|
|
||||||
EmisSettleBill newBill = new EmisSettleBill();
|
EmisSettleBill newBill = new EmisSettleBill();
|
||||||
newBill.setId(oldBill.getId());
|
newBill.setId(oldBill.getId());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user