Selaa lähdekoodia

보증보험, 현금영수증 취소 처리

card007 5 vuotta sitten
vanhempi
commit
5e015e43b3

+ 1 - 2
src/main/java/com/style24/front/biz/service/TsfOrderService.java

@@ -138,8 +138,7 @@ public class TsfOrderService {
 
 			// 전체 구매확정 가능 여부 설정
 			if ("Y".equals(allDecideYn)
-				&& !TscConstants.OrderDetailStat.DELIVERY_COMPLETE.value().equals(tmpOrder.getOrdDtlStat())
-				&& ordReqChgQty > 0) {
+				&& (!TscConstants.OrderDetailStat.DELIVERY_COMPLETE.value().equals(tmpOrder.getOrdDtlStat()) || ordReqChgQty > 0)) {
 				allDecideYn = "N";
 			}
 

+ 3 - 3
src/main/webapp/biz/mypage.js

@@ -315,16 +315,16 @@ var fnReceipt = function(param) {
 		receiptWin += '?cmd=card_bill';
 		receiptWin += '&tno=' + paymentInfo.pgTid;
 		receiptWin += '&order_no=' + ordNo;
-		receiptWin += '&trade_mony=' + orderAmtInfo.realOrdAmt + orderAmtInfo.realDelvAmt;
+		receiptWin += '&trade_mony=' + (orderAmtInfo.realOrdAmt + orderAmtInfo.realDelvAmt);
 		
 		// 팝업 크기 설정
 		option = 'width=455, height=815';
 	} else if (param == 'cash') {
 		// URL 설정
 		receiptWin += '?cmd=cash_bill';
-		receiptWin += '&cash_no=' + paymentInfo.cashAuthNo;
+		receiptWin += '&cash_no=' + paymentInfo.cashTradeNo;
 		receiptWin += '&order_id=' + ordNo;
-		receiptWin += '&trade_mony=' + orderAmtInfo.realOrdAmt + orderAmtInfo.realDelvAmt;
+		receiptWin += '&trade_mony=' + (orderAmtInfo.realOrdAmt + orderAmtInfo.realDelvAmt);
 		
 		// 팝업 크기 설정
 		option = 'width=370, height=625';