CMS/프레임워크 | Rhymix 2.1 |
---|---|
개발 언어 | PHP 7.4 |
회원에게 할인 혜택을 적용하고 있습니다.
품목수가 적은 경우에는 문제가 없어 보이는데
품목수가 25개 이상 또는 금액이 클 수록 금액의 오차 범위도 커집니다.
modules/nstore/tpl/ordersheet.html
<td>{number_format($total_quantity)}</td> // 구매수량
<td>{nproductItem::formatMoney($order_info->sum_price)}</td> // 할인 전 총금액
<td>{nproductItem::formatMoney($order_info->total_discount_amount)}</td> // 할인 받은 총금액
<td>{$val->formatMoney($order_info->total_discounted_price)}</td> // 구매 총금액
할인 전 총금액 - 할인 받은 총금액 = 구매 총금액
할인 받은 총금액에 오차가 있다보니 구매총금액이 맞지 않습니다.
CSV 파일로 받아서 확인을 해보니 '할인 받은 총금액'에서 오차가 있더라구요.
'할인 받은 총금액' 부분은 어디에서 연산이 이루워지나요?
고수님들의 도움이 필요합니다.

BIGBOSS
Lv. 5
댓글 0