fix: 比例计算根据可退金额计算
This commit is contained in:
parent
0c411b1072
commit
76fcad63f0
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue