fix: 比例计算根据可退金额计算
This commit is contained in:
parent
0c411b1072
commit
76fcad63f0
|
|
@ -2825,7 +2825,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||
} else {
|
||||
hasNormalReturn = true;
|
||||
saleAmount = saleAmount.add(orderDetail.getPrice());
|
||||
if (remainNum.compareTo(BigDecimal.ZERO) > 0) {
|
||||
if (remainNum.compareTo(BigDecimal.ZERO) <= 0) {
|
||||
returnAmount = orderDetail.getPriceAmount();
|
||||
packAMount = orderDetail.getPackAmount();
|
||||
}else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue