Fix receipt page: show service fee, fix tax calculation

- Always show service fee (was hidden from non-admin)
- Fix tax formula: /100 not /10000

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Mizerek 2026-02-15 17:05:01 -08:00
parent 866335d456
commit 3e1f344fc1

View file

@ -294,7 +294,7 @@
</div> </div>
<cfif get_order_info.TaxRate GT 0> <cfif get_order_info.TaxRate GT 0>
<cfset tax_amount = round(cart_grand_total * get_order_info.TaxRate * 100) / 10000> <cfset tax_amount = round(cart_grand_total * get_order_info.TaxRate * 100) / 100>
<cfelse> <cfelse>
<cfset tax_amount = 0> <cfset tax_amount = 0>
</cfif> </cfif>
@ -307,7 +307,7 @@
</div> </div>
</cfif> </cfif>
<cfif url.is_admin_view EQ 1> <cfif PaymentPayfritsCut GT 0>
<div class="total-row"> <div class="total-row">
<span>Service fee</span> <span>Service fee</span>
<span>#dollarFormat(PaymentPayfritsCut)#</span> <span>#dollarFormat(PaymentPayfritsCut)#</span>