fix: 比例计算根据可退金额计算

This commit is contained in:
张松 2024-11-22 15:42:38 +08:00
parent 0c411b1072
commit 76fcad63f0
1 changed files with 1 additions and 1 deletions

View File

@ -2825,7 +2825,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
} else { } else {
hasNormalReturn = true; hasNormalReturn = true;
saleAmount = saleAmount.add(orderDetail.getPrice()); saleAmount = saleAmount.add(orderDetail.getPrice());
if (remainNum.compareTo(BigDecimal.ZERO) > 0) { if (remainNum.compareTo(BigDecimal.ZERO) <= 0) {
returnAmount = orderDetail.getPriceAmount(); returnAmount = orderDetail.getPriceAmount();
packAMount = orderDetail.getPackAmount(); packAMount = orderDetail.getPackAmount();
}else { }else {