Use business PayfritFee instead of hardcoded 5%
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
3e1f344fc1
commit
379de66e6f
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
<cfquery name="get_order_info">
|
||||
SELECT O.OrderTypeID, O.BusinessID, O.Remarks, O.ID,
|
||||
B.Name, B.TaxRate
|
||||
B.Name, B.TaxRate, B.PayfritFee
|
||||
FROM Orders O
|
||||
JOIN Businesses B ON B.ID = O.BusinessID
|
||||
WHERE O.UUID = <cfqueryparam value="#url.UUID#" cfsqltype="cf_sql_varchar">
|
||||
|
|
@ -239,7 +239,7 @@
|
|||
<cfloop query="get_parent_items">
|
||||
|
||||
<cfif get_parent_items.CategoryID NEQ 31>
|
||||
<cfset PaymentPayfritsCut = PaymentPayfritsCut + (get_parent_items.Price * get_parent_items.Quantity * 0.05)>
|
||||
<cfset PaymentPayfritsCut = PaymentPayfritsCut + (get_parent_items.Price * get_parent_items.Quantity * get_order_info.PayfritFee)>
|
||||
</cfif>
|
||||
|
||||
<cfset line_total = get_parent_items.Price * get_parent_items.Quantity>
|
||||
|
|
|
|||
Reference in a new issue