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:
parent
866335d456
commit
3e1f344fc1
1 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Reference in a new issue