Merge remote-tracking branch 'origin/0.8.X' into 0.8.X
This commit is contained in:
@@ -153,6 +153,13 @@ public class WmsPayableServiceImpl implements IWmsPayableService {
|
|||||||
WmsPayable updateWmsPayable = new WmsPayable();
|
WmsPayable updateWmsPayable = new WmsPayable();
|
||||||
updateWmsPayable.setPayableId(bo.getPayableId());
|
updateWmsPayable.setPayableId(bo.getPayableId());
|
||||||
updateWmsPayable.setPaidAmount(newPaidAmount);
|
updateWmsPayable.setPaidAmount(newPaidAmount);
|
||||||
|
if(payable.getPaidAmount().compareTo(BigDecimal.ZERO) == 0
|
||||||
|
&& changePaidAmount.compareTo(BigDecimal.ZERO) > 0){
|
||||||
|
updateWmsPayable.setStatus("部分支付");
|
||||||
|
}
|
||||||
|
if(newPaidAmount.compareTo(payable.getAmount()) == 0){
|
||||||
|
updateWmsPayable.setStatus("已结清");
|
||||||
|
}
|
||||||
int countFlag = baseMapper.updateById(updateWmsPayable);
|
int countFlag = baseMapper.updateById(updateWmsPayable);
|
||||||
|
|
||||||
// 2. 新增资金日记账记录
|
// 2. 新增资金日记账记录
|
||||||
|
|||||||
@@ -157,6 +157,13 @@ public class WmsReceivableServiceImpl implements IWmsReceivableService {
|
|||||||
WmsReceivable updateWmsReceivable = new WmsReceivable();
|
WmsReceivable updateWmsReceivable = new WmsReceivable();
|
||||||
updateWmsReceivable.setReceivableId(bo.getReceivableId());
|
updateWmsReceivable.setReceivableId(bo.getReceivableId());
|
||||||
updateWmsReceivable.setPaidAmount(newPaidAmount);
|
updateWmsReceivable.setPaidAmount(newPaidAmount);
|
||||||
|
if(receivable.getPaidAmount().compareTo(BigDecimal.ZERO) == 0
|
||||||
|
&& changePaidAmount.compareTo(BigDecimal.ZERO) > 0){
|
||||||
|
updateWmsReceivable.setStatus("部分支付");
|
||||||
|
}
|
||||||
|
if(newPaidAmount.compareTo(receivable.getAmount()) == 0){
|
||||||
|
updateWmsReceivable.setStatus("已结清");
|
||||||
|
}
|
||||||
int countFlag = baseMapper.updateById(updateWmsReceivable);
|
int countFlag = baseMapper.updateById(updateWmsReceivable);
|
||||||
|
|
||||||
// 2. 新增资金日记账记录
|
// 2. 新增资金日记账记录
|
||||||
|
|||||||
Reference in New Issue
Block a user