fix: 比例计算根据可退金额计算
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user