Show full order total on receipt, payment method below
Grand total now always shows the actual order amount. Balance and payment method shown as informational lines underneath instead of subtracting balance from the total. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
acdb28a0d0
commit
c79a750a50
1 changed files with 15 additions and 9 deletions
|
|
@ -367,19 +367,25 @@
|
|||
</div>
|
||||
</cfif>
|
||||
|
||||
<cfset receiptBalanceApplied = val(get_order_info.BalanceApplied)>
|
||||
<cfif receiptBalanceApplied GT 0>
|
||||
<div class="total-row">
|
||||
<span>Balance applied</span>
|
||||
<span>-#dollarFormat(receiptBalanceApplied)#</span>
|
||||
</div>
|
||||
<cfset order_grand_total = order_grand_total - receiptBalanceApplied>
|
||||
</cfif>
|
||||
|
||||
<div class="total-row grand-total">
|
||||
<span>Total</span>
|
||||
<span>#dollarFormat(order_grand_total)#</span>
|
||||
</div>
|
||||
|
||||
<cfset receiptBalanceApplied = val(get_order_info.BalanceApplied)>
|
||||
<cfif receiptBalanceApplied GT 0>
|
||||
<div class="total-row" style="font-size:13px;color:##666;padding-top:8px">
|
||||
<span>Paid with balance</span>
|
||||
<span>#dollarFormat(receiptBalanceApplied)#</span>
|
||||
</div>
|
||||
<cfset amountCharged = order_grand_total - receiptBalanceApplied>
|
||||
<cfif amountCharged GT 0>
|
||||
<div class="total-row" style="font-size:13px;color:##666">
|
||||
<span><cfif isCashOrder>Cash due<cfelse>Charged to card</cfif></span>
|
||||
<span>#dollarFormat(amountCharged)#</span>
|
||||
</div>
|
||||
</cfif>
|
||||
</cfif>
|
||||
</div>
|
||||
|
||||
<div class="receipt-footer">
|
||||
|
|
|
|||
Reference in a new issue