|
|
@@ -2318,7 +2318,7 @@ var custCpnApply = function(obj, idx, cpnType) {
|
|
|
var goodsCpnDcAmt = parseInt($(this).parent().find(".goodsCpnDcAmt").text());
|
|
|
|
|
|
var tempAmt = ((orgCurrPrice - cpn1DcAmt) * goodsQty) - tmtb1DcAmt - tmtb2DcAmt - goodsCpnDcAmt;
|
|
|
- var tempDiv = parseInt((tempAmt / tempSumAmt) * 100);
|
|
|
+ var tempDiv = (tempAmt / tempSumAmt) * 100;
|
|
|
var cartCpnDcAmt = 0;
|
|
|
|
|
|
if (index == cartSqLen) {
|
|
|
@@ -2555,6 +2555,9 @@ var custCpnSumAmtCal = function() {
|
|
|
var savePntSumAmt = 0;
|
|
|
var totDcSumAmt = 0;
|
|
|
|
|
|
+ // 2021.10.01 포인트, 상품권 주문금액 분배를 위해서 주문금액 - 할인금액 적용
|
|
|
+ var ordDcSumAmt = 0;
|
|
|
+
|
|
|
$("#orderAmtForm .cartSq").each(function(){
|
|
|
var orgCurrPrice = parseInt($(this).parent().find(".orgCurrPrice").text());
|
|
|
var cpn1DcAmt = parseInt($(this).parent().find(".cpn1DcAmt").text());
|
|
|
@@ -2591,6 +2594,9 @@ var custCpnSumAmtCal = function() {
|
|
|
|
|
|
totDcSumAmt = totDcSumAmt + dcSumAmt;
|
|
|
|
|
|
+ // 2021.10.01 포인트, 상품권 주문금액 분배를 위해서 주문금액 - 할인금액 적용
|
|
|
+ ordDcSumAmt = ordDcSumAmt + (ordAmt - dcSumAmt);
|
|
|
+
|
|
|
// 주문금액설정
|
|
|
$(this).parent().find(".ordAmt").text(ordAmt);
|
|
|
$(this).parent().find(".dcSumAmt").text(dcSumAmt);
|
|
|
@@ -2604,7 +2610,11 @@ var custCpnSumAmtCal = function() {
|
|
|
var ordAmt = parseInt($(this).parent().find(".ordAmt").text());
|
|
|
var dcSumAmt = parseInt($(this).parent().find(".dcSumAmt").text());
|
|
|
var prePntDcAmt1 = parseInt($(this).parent().find(".prePntDcAmt1").text());
|
|
|
- var tempDiv = (ordAmt / ordSumAmt) * 100;
|
|
|
+
|
|
|
+ // 2021.10.01 포인트, 상품권 주문금액 분배를 위해서 주문금액 - 할인금액 적용
|
|
|
+ var ordDcAmt = ordAmt - dcSumAmt;
|
|
|
+ var tempDiv = (ordDcAmt / ordDcSumAmt) * 100;
|
|
|
+
|
|
|
var pntDcAmt1 = 0;
|
|
|
var savePntAmt1 = 0;
|
|
|
|
|
|
@@ -2670,7 +2680,10 @@ var custCpnSumAmtCal = function() {
|
|
|
var ordAmt = parseInt($(this).parent().find(".ordAmt").text());
|
|
|
var dcSumAmt = parseInt($(this).parent().find(".dcSumAmt").text());
|
|
|
var pntDcAmt1 = parseInt($(this).parent().find(".pntDcAmt1").text());
|
|
|
- var tempDiv = (ordAmt / ordSumAmt) * 100;
|
|
|
+
|
|
|
+ // 2021.10.01 포인트, 상품권 주문금액 분배를 위해서 주문금액 - 할인금액 적용
|
|
|
+ var ordDcAmt = ordAmt - dcSumAmt - pntDcAmt1;
|
|
|
+ var tempDiv = (ordDcAmt / ordDcSumAmt) * 100;
|
|
|
var gfcdUseAmt1 = 0;
|
|
|
|
|
|
// 전체상품 상품권금액 전체 적용 일때 첫번째 상품부터 차감 형식 입니다.
|