浏览代码

分账逻辑优化

liuj 7 月之前
父节点
当前提交
34a9099cc0

+ 2 - 2
src/main/java/com/sunxung/factoring/service/ledger/impl/LedgerManagementServiceImpl.java

@@ -1382,7 +1382,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                                         ledgerPlanFactoringAssignList.add(addPlanFactoringUpdateAssign(lastInterestFactoring.getPlanDate(), BigDecimal.ZERO,
                                                 lastInterestFactoring, goodsAssignVo, 0));
                                     }
-
+                                    refundInterest = BigDecimal.ZERO;
                                 }
                                 //增加一笔剩余管理费计划
                                 //计算剩余应收管理费
@@ -1410,7 +1410,7 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
                                         ledgerPlanFactoringAssignList.add(addPlanFactoringUpdateAssign(lastManagementFactoring.getPlanDate(), BigDecimal.ZERO,
                                                 lastManagementFactoring, goodsAssignVo, 0));
                                     }
-
+                                    refundManagement = BigDecimal.ZERO;
                                 }
                             }
                         } else if (payBackMethod.getCode().equals("manually_generated")) {