|
|
@@ -905,6 +905,11 @@ public class TscOrderChangeService {
|
|
|
orderChangeStat = TscConstants.OrderChangeStat.EXCHANGE_WAIT.value();
|
|
|
}
|
|
|
|
|
|
+ // 네이버페이는 추가 결제 금액이 있어도 취소접수로 변경
|
|
|
+ if(StringUtils.isNotBlank(excReq.getPgGb()) && TscConstants.PgGb.NAVER_ORDER.value().equals(excReq.getPgGb())) {
|
|
|
+ orderChangeStat = TscConstants.OrderChangeStat.EXCHANGE.value();
|
|
|
+ }
|
|
|
+
|
|
|
// 1. 재고 체크 (세트아이템 포함)
|
|
|
for (Order order : excReqList) {
|
|
|
Order currStockQty = orderChangeDao.getCurrStockQty(order);
|
|
|
@@ -996,6 +1001,11 @@ public class TscOrderChangeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(StringUtils.isNotBlank(excReq.getPgGb()) && TscConstants.PgGb.NAVER_ORDER.value().equals(excReq.getPgGb()) && addPayCost > 0) {
|
|
|
+ rtnDelvFee = order.getRtnDelvFee();
|
|
|
+ excDelvFee = order.getExcDelvFee() - rtnDelvFee;
|
|
|
+ }
|
|
|
+
|
|
|
// 반품배송비 등록
|
|
|
deliveryFee.setDelvFeeGb(TscConstants.DeliveryFeeGb.RETURN_DELIVERY_FEE.value());
|
|
|
deliveryFee.setDelvFee(rtnDelvFee);
|
|
|
@@ -1603,6 +1613,7 @@ public class TscOrderChangeService {
|
|
|
pg.setPayMeans(payment.getPayMeans());
|
|
|
kakaoPayService.cancelKakaoPayment(pg);
|
|
|
} else if (TscConstants.PgGb.NAVER_ORDER.value().equals(pgGb)) {
|
|
|
+ pg.setPayAmt(pg.getPayAmt() * -1);
|
|
|
orderDao.insertPaymentCancel(pg);
|
|
|
}
|
|
|
|