优化对账单的接口逻辑

This commit is contained in:
神话
2022-04-30 17:25:15 +08:00
parent 1e5e5e2a9d
commit 04e77fad80
3 changed files with 7 additions and 11 deletions

View File

@@ -529,10 +529,6 @@ public class DepotHeadService {
allPrice = BigDecimal.ZERO.subtract(p1);
} else if (type.equals("付款")) {
allPrice = p1;
} else if (type.equals("收入")) {
allPrice = p1.subtract(p2);
} else if (type.equals("支出")) {
allPrice = p2.subtract(p1);
}
dha.setBillMoney(p1); //单据金额
dha.setChangeAmount(p2); //实际支付