|
@@ -171,7 +171,7 @@ public class CmRefundShopService extends CrudService<CmRefundShopDao, CmRefundSh
|
|
|
BigDecimal refundsAmount = MathUtil.add(so.getRefundsAmount(), shopRefundAmount);
|
|
|
so.setRefundsAmount(refundsAmount.doubleValue());*/
|
|
|
// 实际已付金额=已付金额-已退金额
|
|
|
- BigDecimal payAmount = MathUtil.sub(so.getPayedShopAmount(), so.getRefundAmount());
|
|
|
+ BigDecimal payAmount = MathUtil.sub(so.getPayedShopAmount(), so.getRefundsAmount());
|
|
|
refundAmount = MathUtil.add(refundAmount, payAmount).doubleValue();
|
|
|
List<NewOrderProduct> orderProductList = newOrderProductDao.findByShopOrderID(so.getShopOrderID());
|
|
|
/*
|
|
@@ -299,8 +299,8 @@ public class CmRefundShopService extends CrudService<CmRefundShopDao, CmRefundSh
|
|
|
shopOrder.setRefundsAmount(0d);
|
|
|
}
|
|
|
//查询收款供应商退款金额
|
|
|
- BigDecimal shopRefundAmount = cmRefundShopRecordDao.findShopRefund(shopOrder.getShopOrderID());
|
|
|
- BigDecimal refundsAmount = MathUtil.add(shopOrder.getRefundsAmount(), shopRefundAmount);
|
|
|
+ //BigDecimal shopRefundAmount = cmRefundShopRecordDao.findShopRefund(shopOrder.getShopOrderID());
|
|
|
+ Double refundsAmount = shopOrder.getRefundsAmount();
|
|
|
// 已付 - (已退+本次退款)
|
|
|
BigDecimal tempFee = MathUtil.sub(shopOrder.getPayedShopAmount(), MathUtil.add(refundsAmount, refundAmount));
|
|
|
if (MathUtil.compare(tempFee, 0) < 0) {
|