|
@@ -1322,15 +1322,16 @@ public class LedgerManagementServiceImpl implements LedgerManagementService {
|
|
|
//修改一笔本金收款记录
|
|
|
ledgerPlanFactoringAssignList.add(addPlanFactoringUpdateAssign(ledgerDate, assignAmount,
|
|
|
planFactoring, goodsAssignVo, 1));
|
|
|
- financePrincipal = financePrincipal.add(assignAmount);
|
|
|
Date lastPlanDate = goodsAssignVo.getLastPlanDate();
|
|
|
//增加一笔剩余本金收款记录
|
|
|
ledgerPlanFactoringAssignList.add(addPlanFactoringInsertAssign(lastPlanDate, returnedAmount.subtract(assignAmount), BigDecimal.ZERO,
|
|
|
IncomeExpenditureTypeDict.ChildEnum.PRINCIPAL.getCode(), goodsAssignVo, 1));
|
|
|
+ flag = true;
|
|
|
}
|
|
|
+ financePrincipal = financePrincipal.add(assignAmount);
|
|
|
returnedAmount = returnedAmount.subtract(assignAmount);
|
|
|
assignAmount = BigDecimal.ZERO;
|
|
|
- flag = true;
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|