fix : 구독서비스 - 결제 처리 전 정합성 검사

This commit is contained in:
이대환
2026-04-06 16:24:01 +09:00
parent cb4c9e6d97
commit 43d819d5a1
11 changed files with 186 additions and 49 deletions

View File

@@ -2065,7 +2065,7 @@
tr += ' </td>';
tr += ' <td>';
tr += ' <span class="cartItem__beforePrice"><span class="comma product-subCnsmrpric">' + (goods.cnsmrpric).toLocaleString() + '</span>' + curUnit + '</span>';
tr += ' <span class="cartItem__afterPrice"><span class="comma product-dscntApplyAmt">' + (goods.selpric).toLocaleString() + '</span><span class="priceUnit">' + curUnit + '</span></span>';
tr += ' <span class="cartItem__afterPrice"><span class="comma product-dscntApplyAmt">' + (goods.slepric).toLocaleString() + '</span><span class="priceUnit">' + curUnit + '</span></span>';
tr += ' </td>';
tr += '</tr>';
@@ -3186,7 +3186,7 @@
// const enuriObj = JSON.parse(enuri);
// const setleAmtFromEnuri = enuriObj['setleAmt']; // 계산된 결제금액
const setleAmtFromSubsvc = order.goodsList.reduce(function(sum, item){
return sum + Number(item.selpric || 0); // 계산된 결제금액
return sum + Number(item.slepric || 0); // 계산된 결제금액
}, 0);
if (setleAmtFromOrder !== setleAmtFromSubsvc.toString()) {