Update ErpPurchaseReturnServiceImpl.java
This commit is contained in:
parent
3941e790b6
commit
cb1bf8c91a
|
@ -136,7 +136,7 @@ public class ErpPurchaseReturnServiceImpl implements ErpPurchaseReturnService {
|
||||||
purchaseReturn.setDiscountPercent(BigDecimal.ZERO);
|
purchaseReturn.setDiscountPercent(BigDecimal.ZERO);
|
||||||
}
|
}
|
||||||
purchaseReturn.setDiscountPrice(MoneyUtils.priceMultiplyPercent(purchaseReturn.getTotalPrice(), purchaseReturn.getDiscountPercent()));
|
purchaseReturn.setDiscountPrice(MoneyUtils.priceMultiplyPercent(purchaseReturn.getTotalPrice(), purchaseReturn.getDiscountPercent()));
|
||||||
purchaseReturn.setTotalPrice(purchaseReturn.getTotalPrice().subtract(purchaseReturn.getDiscountPrice().add(purchaseReturn.getOtherPrice())));
|
purchaseReturn.setTotalPrice(purchaseReturn.getTotalPrice().subtract(purchaseReturn.getDiscountPrice()).add(purchaseReturn.getOtherPrice()));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updatePurchaseOrderReturnCount(Long orderId) {
|
private void updatePurchaseOrderReturnCount(Long orderId) {
|
||||||
|
|
Loading…
Reference in New Issue