fix : 반품환불 원화금액 추가
This commit is contained in:
@@ -94,6 +94,8 @@ public class BOOrdrRefundVO extends AbstractVO {
|
|||||||
|
|
||||||
private BigDecimal returnDlvyAmt; // 반품배송비금액
|
private BigDecimal returnDlvyAmt; // 반품배송비금액
|
||||||
|
|
||||||
|
private BigDecimal wonReturnDlvyAmt; // 반품배송비금액(원화)
|
||||||
|
|
||||||
private String returnDlvyTrgetCd; // 반품배송비수령대상코드
|
private String returnDlvyTrgetCd; // 반품배송비수령대상코드
|
||||||
|
|
||||||
private String returnDlvyRspnsblCd; // 반품배송비지불책임코드
|
private String returnDlvyRspnsblCd; // 반품배송비지불책임코드
|
||||||
@@ -126,8 +128,6 @@ public class BOOrdrRefundVO extends AbstractVO {
|
|||||||
|
|
||||||
private BigDecimal dlvyAmtRefundAmt; // 배송비환불금액
|
private BigDecimal dlvyAmtRefundAmt; // 배송비환불금액
|
||||||
|
|
||||||
private BigDecimal wonDlvyAmtRefundAmt; // 배송비환불금액(원화)
|
|
||||||
|
|
||||||
private BigDecimal dlvyAmtRefundMlgAmt; // 배송비환불마일리지금액
|
private BigDecimal dlvyAmtRefundMlgAmt; // 배송비환불마일리지금액
|
||||||
|
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|||||||
@@ -1681,6 +1681,7 @@
|
|||||||
, RETURN_CSTMR_TELNB
|
, RETURN_CSTMR_TELNB
|
||||||
, RETURN_CSTMR_MBTLNB
|
, RETURN_CSTMR_MBTLNB
|
||||||
, RETURN_DLVY_AMT
|
, RETURN_DLVY_AMT
|
||||||
|
, WON_RETURN_DLVY_AMT
|
||||||
, RETURN_DLVY_TRGET_CD
|
, RETURN_DLVY_TRGET_CD
|
||||||
, RETURN_DLVY_RSPNSBL_CD
|
, RETURN_DLVY_RSPNSBL_CD
|
||||||
, RETURN_DLVY_PYMNT_TY_CD
|
, RETURN_DLVY_PYMNT_TY_CD
|
||||||
@@ -1697,7 +1698,6 @@
|
|||||||
, MNGR_MEMO_CN
|
, MNGR_MEMO_CN
|
||||||
, MNGR_INNB
|
, MNGR_INNB
|
||||||
, DLVY_AMT_REFUND_AMT
|
, DLVY_AMT_REFUND_AMT
|
||||||
, WON_DLVY_AMT_REFUND_AMT
|
|
||||||
, DLVY_AMT_REFUND_MLG_AMT
|
, DLVY_AMT_REFUND_MLG_AMT
|
||||||
, USE_AT
|
, USE_AT
|
||||||
, REGIST_DT
|
, REGIST_DT
|
||||||
@@ -1748,6 +1748,7 @@
|
|||||||
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrTelnb}, '-', ''), '1df5be2f7e90ae36'))
|
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrTelnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
, HEX(AES_ENCRYPT(REPLACE(#{returnCstmrMbtlnb}, '-', ''), '1df5be2f7e90ae36'))
|
||||||
, #{returnDlvyAmt}
|
, #{returnDlvyAmt}
|
||||||
|
, #{wonReturnDlvyAmt}
|
||||||
, #{returnDlvyTrgetCd}
|
, #{returnDlvyTrgetCd}
|
||||||
, #{returnDlvyRspnsblCd}
|
, #{returnDlvyRspnsblCd}
|
||||||
, #{returnDlvyPymntTyCd}
|
, #{returnDlvyPymntTyCd}
|
||||||
@@ -1764,7 +1765,6 @@
|
|||||||
, #{mngrMemoCn}
|
, #{mngrMemoCn}
|
||||||
, #{mngrInnb}
|
, #{mngrInnb}
|
||||||
, #{dlvyAmtRefundAmt}
|
, #{dlvyAmtRefundAmt}
|
||||||
, #{wonDlvyAmtRefundAmt}
|
|
||||||
, #{dlvyAmtRefundMlgAmt}
|
, #{dlvyAmtRefundMlgAmt}
|
||||||
, 'Y'
|
, 'Y'
|
||||||
, SYSDATE()
|
, SYSDATE()
|
||||||
|
|||||||
@@ -842,7 +842,7 @@
|
|||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.DLVY_AMT_REFUND_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.RETURN_DLVY_AMT, 0), 0)
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
||||||
END
|
END
|
||||||
ELSE
|
ELSE
|
||||||
@@ -860,7 +860,7 @@
|
|||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.DLVY_AMT_REFUND_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.REFUND_AMT - IFNULL(RE.RETURN_DLVY_AMT, 0), 0)
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.REFUND_AMT + IFNULL(RE.REFUND_DLVY_AMT, 0), 0)
|
||||||
END
|
END
|
||||||
ELSE
|
ELSE
|
||||||
@@ -878,7 +878,7 @@
|
|||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
WHEN RE.RETURN_DLVY_PYMNT_TY_CD = '02' THEN
|
||||||
CASE
|
CASE
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.WON_REFUND_AMT - IFNULL(RE.WON_DLVY_AMT_REFUND_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '01' THEN GREATEST(RE.WON_REFUND_AMT - IFNULL(RE.WON_RETURN_DLVY_AMT, 0), 0)
|
||||||
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.WON_REFUND_AMT + IFNULL(RE.WON_REFUND_DLVY_AMT, 0), 0)
|
WHEN RE.RETURN_DLVY_RSPNSBL_CD = '02' THEN GREATEST(RE.WON_REFUND_AMT + IFNULL(RE.WON_REFUND_DLVY_AMT, 0), 0)
|
||||||
END
|
END
|
||||||
ELSE
|
ELSE
|
||||||
@@ -909,6 +909,7 @@
|
|||||||
))
|
))
|
||||||
, 0) AS RL_DLVY_AMT_REFUND_AMT -- 반품 배송비
|
, 0) AS RL_DLVY_AMT_REFUND_AMT -- 반품 배송비
|
||||||
, FN_GET_COMMCODE_NAME('SETLE_MTH', ST.SETLE_TY_CD) AS SETLE_TY_CD_NM
|
, FN_GET_COMMCODE_NAME('SETLE_MTH', ST.SETLE_TY_CD) AS SETLE_TY_CD_NM
|
||||||
|
, ROUND(ST.WON_SETLE_AMT) AS WON_SETLE_AMT
|
||||||
FROM (SELECT REI.SOPMAL_CD
|
FROM (SELECT REI.SOPMAL_CD
|
||||||
, REI.ORDER_REFUND_INNB
|
, REI.ORDER_REFUND_INNB
|
||||||
, ROUND(SUM(REI.GOODS_REFUND_AMT)) AS REFUND_AMT -- * REI.REFUND_QY
|
, ROUND(SUM(REI.GOODS_REFUND_AMT)) AS REFUND_AMT -- * REI.REFUND_QY
|
||||||
|
|||||||
@@ -369,13 +369,13 @@
|
|||||||
|
|
||||||
|
|
||||||
$('input[name="prosbleCancelAmt"]').on('input', function() {
|
$('input[name="prosbleCancelAmt"]').on('input', function() {
|
||||||
console.log("엄ㄴ아런밍럼니;아러");
|
|
||||||
fn_mlg_display_ctrl();
|
fn_mlg_display_ctrl();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
function rlRefundAmtProcessing() {
|
function rlRefundAmtProcessing() {
|
||||||
|
let rlSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.rlSetleAmt}');
|
||||||
|
let wonSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.wonSetleAmt}');
|
||||||
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
||||||
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
||||||
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
||||||
@@ -523,31 +523,38 @@
|
|||||||
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
||||||
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
||||||
|
|
||||||
|
/*엔화 비율을 구해서 한화환불금액 계산*/
|
||||||
|
console.log("rlRefundAmt:",rlRefundAmt,"rlSetleAmt:",rlSetleAmt,"wonSetleAmt:",wonSetleAmt);
|
||||||
|
let wonRlRefundAmt = Math.ceil((rlRefundAmt / rlSetleAmt) * wonSetleAmt);
|
||||||
|
wonRlRefundAmt = wonRlRefundAmt > 0 ? wonRlRefundAmt : 0;
|
||||||
|
$('.wonRlRefundAmt').text(formatWithComma(wonRlRefundAmt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function rlRefundAmtProcessingInput() {
|
function rlRefundAmtProcessingInput() {
|
||||||
|
|
||||||
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
let rlSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.rlSetleAmt}');
|
||||||
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
let wonSetleAmt = parseAmount('${resultMap.result.totRefundDscntAmt.wonSetleAmt}');
|
||||||
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
let refundTyCd = '<c:out value="${ resultMap.result.refnd.refundTyCd }"/>';
|
||||||
let returnDlvyRspnsblCd = $('input[name="returnDlvyRspnsblCd"]:checked').val();
|
let returnMthCd = $('input[name="returnMthCd"]:checked').val(); // 반품 방법 코드
|
||||||
let returnDlvyPymntTyCd = $('select[name="returnDlvyPymntTyCd"] option:selected').val(); // 반품 지불 방법 코드
|
let refundDlvyAmt = '<c:out value="${ resultMap.result.refnd.refundDlvyAmt }"/>'; // 환불 배송비 금액
|
||||||
let returnDlvyAmt = $('input[name="returnDlvyAmt"]').val(); // 반품 배송비 금액
|
let returnDlvyRspnsblCd = $('input[name="returnDlvyRspnsblCd"]:checked').val();
|
||||||
let returnDlvyAmtStdr = $('input[name="returnDlvyAmtStdr"]').val(); // 반품 배송비 금액
|
let returnDlvyPymntTyCd = $('select[name="returnDlvyPymntTyCd"] option:selected').val(); // 반품 지불 방법 코드
|
||||||
|
let returnDlvyAmt = $('input[name="returnDlvyAmt"]').val(); // 반품 배송비 금액
|
||||||
|
let returnDlvyAmtStdr = $('input[name="returnDlvyAmtStdr"]').val(); // 반품 배송비 금액
|
||||||
|
|
||||||
let refundMltAmt = 0;
|
let refundMltAmt = 0;
|
||||||
refundMltAmt = parseAmount(refundMltAmt);
|
refundMltAmt = parseAmount(refundMltAmt);
|
||||||
|
|
||||||
let refundCashAmt = 0;
|
let refundCashAmt = 0;
|
||||||
refundCashAmt = parseAmount(refundCashAmt);
|
refundCashAmt = parseAmount(refundCashAmt);
|
||||||
|
|
||||||
|
|
||||||
let refundAmt = 0; // 최종 환불 금액
|
let refundAmt = 0; // 최종 환불 금액
|
||||||
|
|
||||||
let setleAmtGoods = 0;
|
let setleAmtGoods = 0;
|
||||||
let setleAmtMlg = 0;
|
let setleAmtMlg = 0;
|
||||||
let setleAmtCash = 0;
|
let setleAmtCash = 0;
|
||||||
|
|
||||||
$('input[name="goodsRefundAmt"]').each(function(idx) {
|
$('input[name="goodsRefundAmt"]').each(function(idx) {
|
||||||
|
|
||||||
@@ -673,6 +680,13 @@
|
|||||||
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
rlRefundAmt = rlRefundAmt > 0 ? rlRefundAmt : 0;
|
||||||
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
$('.rlRefundAmt').text(formatWithComma(rlRefundAmt));
|
||||||
|
|
||||||
|
/*엔화 비율을 구해서 한화환불금액 계산*/
|
||||||
|
console.log("rlRefundAmt:",rlRefundAmt,"rlSetleAmt:",rlSetleAmt,"wonSetleAmt:",wonSetleAmt);
|
||||||
|
let wonRlRefundAmt = Math.ceil((rlRefundAmt / rlSetleAmt) * wonSetleAmt);
|
||||||
|
wonRlRefundAmt = wonRlRefundAmt > 0 ? wonRlRefundAmt : 0;
|
||||||
|
$('.wonRlRefundAmt').text(formatWithComma(wonRlRefundAmt));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#returnDlvyPymntTyCd').on('change', function() {
|
$('#returnDlvyPymntTyCd').on('change', function() {
|
||||||
@@ -1505,6 +1519,7 @@
|
|||||||
|
|
||||||
<spring:eval expression="@environment.getProperty('mngrfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
<spring:eval expression="@environment.getProperty('mngrfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||||
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
<spring:eval expression="@environment.getProperty('currency-unit.default')" var="curUnit"/>
|
||||||
|
<spring:eval expression="@environment.getProperty('currency-unit.KR')" var="krUnit"/>
|
||||||
<div class="content__inner">
|
<div class="content__inner">
|
||||||
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
<button class="side-nav__fold"><span class="visually-hidden">좌측메뉴 펼치기/닫기</span></button>
|
||||||
<div class="page-title">
|
<div class="page-title">
|
||||||
@@ -2739,9 +2754,8 @@
|
|||||||
<tfoot>
|
<tfoot>
|
||||||
<tr class="tfoot-sum">
|
<tr class="tfoot-sum">
|
||||||
<c:set var="reTotAmt" value="${ resultMap.result.totRefundDscntAmt }"/>
|
<c:set var="reTotAmt" value="${ resultMap.result.totRefundDscntAmt }"/>
|
||||||
<td>결제내역</td>
|
<td colspan="2" style="text-align: left;">결제내역</td>
|
||||||
<td colspan="4" class="text-right"></td>
|
<td colspan="10" class="tfoot-sum__sum table__blue-td text-right">
|
||||||
<td colspan="7" class="tfoot-sum__sum table__blue-td text-right">
|
|
||||||
<c:if test="${ not empty reTotAmt.refundAmtQySum }">
|
<c:if test="${ not empty reTotAmt.refundAmtQySum }">
|
||||||
<span class="comma setleAmtGoods">
|
<span class="comma setleAmtGoods">
|
||||||
<c:out value="${ reTotAmt.refundAmtQySum }"/>
|
<c:out value="${ reTotAmt.refundAmtQySum }"/>
|
||||||
@@ -2790,6 +2804,29 @@
|
|||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="tfoot-sum">
|
||||||
|
<td colspan="2" style="text-align: left">환불내역(원화 기준)</td>
|
||||||
|
<td colspan="10" class="tfoot-sum__sum table__blue-td text-center">
|
||||||
|
실결제 금액 :
|
||||||
|
<span class="comma">
|
||||||
|
<c:out value="${ reTotAmt.rlSetleAmt }"/>
|
||||||
|
</span>${curUnit}
|
||||||
|
/
|
||||||
|
<span class="comma">
|
||||||
|
<c:out value="${ reTotAmt.wonSetleAmt }"/>
|
||||||
|
</span>${krUnit}
|
||||||
|
|
|
||||||
|
환불 금액 :
|
||||||
|
<span class="comma rlRefundAmt">
|
||||||
|
<c:out value="${ reTotAmt.realRefundAmt }"/>
|
||||||
|
</span>${curUnit}
|
||||||
|
/
|
||||||
|
<span class="comma tfoot-sum__sum-num wonRlRefundAmt">
|
||||||
|
<c:out value="${ reTotAmt.realWonRefundAmt }"/>
|
||||||
|
</span>${krUnit}
|
||||||
|
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user