배송료(조건부) 계산 변경(1)
This commit is contained in:
@@ -2519,7 +2519,7 @@ public class BOPurchsService {
|
|||||||
BigDecimal amtCndAditAmt = (BigDecimal) shippingGrouping.get("amtCndAditAmt"); // 금액조건 추가금액
|
BigDecimal amtCndAditAmt = (BigDecimal) shippingGrouping.get("amtCndAditAmt"); // 금액조건 추가금액
|
||||||
BigDecimal slepric = (BigDecimal) goodsMap.get("subSlepric"); // 판매가 * 수량
|
BigDecimal slepric = (BigDecimal) goodsMap.get("subSlepric"); // 판매가 * 수량
|
||||||
|
|
||||||
if (slepric.compareTo(amtCndAditAmt) > 0) {
|
if (slepric.compareTo(amtCndAditAmt) >= 0) {
|
||||||
dlvyAmt = new BigDecimal(0);
|
dlvyAmt = new BigDecimal(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2528,7 +2528,7 @@ public class BOPurchsService {
|
|||||||
BigInteger cntCndAditAmt = (BigInteger) shippingGrouping.get("cntCndAditAmt"); // 금액조건 추가금액
|
BigInteger cntCndAditAmt = (BigInteger) shippingGrouping.get("cntCndAditAmt"); // 금액조건 추가금액
|
||||||
BigInteger qy = (BigInteger) goodsMap.get("qy"); // 수량
|
BigInteger qy = (BigInteger) goodsMap.get("qy"); // 수량
|
||||||
|
|
||||||
if (cntCndAditAmt.intValue() < qy.intValue()) {
|
if (cntCndAditAmt.intValue() <= qy.intValue()) {
|
||||||
dlvyAmt = new BigDecimal(0);
|
dlvyAmt = new BigDecimal(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2544,7 +2544,7 @@ public class BOPurchsService {
|
|||||||
if (bundleDlvyCndAmt != null && bundleDlvyCndAmt.intValue() > 0) {
|
if (bundleDlvyCndAmt != null && bundleDlvyCndAmt.intValue() > 0) {
|
||||||
BigDecimal subSlepric = goodsByDlvyGroupList.stream().map(o -> (BigDecimal) o.get("subSlepric")).reduce(BigDecimal.ZERO, BigDecimal::add); // 합 (판매가 * 수량)
|
BigDecimal subSlepric = goodsByDlvyGroupList.stream().map(o -> (BigDecimal) o.get("subSlepric")).reduce(BigDecimal.ZERO, BigDecimal::add); // 합 (판매가 * 수량)
|
||||||
|
|
||||||
if (subSlepric.compareTo(bundleDlvyCndAmt) > 0) {
|
if (subSlepric.compareTo(bundleDlvyCndAmt) >= 0) {
|
||||||
dlvyAmt = new BigDecimal(0);
|
dlvyAmt = new BigDecimal(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user