From eb92042de5577bf1ee4f05b599754231faca4d36 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Tue, 17 Feb 2026 09:20:18 -0800 Subject: [PATCH] Use business PayfritFee instead of hardcoded 5% in task order totals Fixed complete.cfm, getDetails.cfm, listMine.cfm, listPending.cfm to pull PayfritFee from Businesses table with 0.05 fallback if not set. Co-Authored-By: Claude Opus 4.5 --- api/tasks/complete.cfm | 5 +++-- api/tasks/getDetails.cfm | 4 +++- api/tasks/listMine.cfm | 5 +++-- api/tasks/listPending.cfm | 5 +++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/api/tasks/complete.cfm b/api/tasks/complete.cfm index a13d1ac..6e677cb 100644 --- a/api/tasks/complete.cfm +++ b/api/tasks/complete.cfm @@ -138,7 +138,7 @@ - + + diff --git a/api/tasks/getDetails.cfm b/api/tasks/getDetails.cfm index 7a54dd4..c991105 100644 --- a/api/tasks/getDetails.cfm +++ b/api/tasks/getDetails.cfm @@ -57,6 +57,7 @@ o.TipAmount, o.DeliveryFee, b.TaxRate, + b.PayfritFee, COALESCE(sp.Name, tsp.Name) AS ServicePointName, COALESCE(sp.TypeID, tsp.TypeID) AS ServicePointTypeID, COALESCE(sp.ID, tsp.ID) AS ServicePointID, @@ -193,7 +194,8 @@ - + + diff --git a/api/tasks/listMine.cfm b/api/tasks/listMine.cfm index 62e753b..fdfc669 100644 --- a/api/tasks/listMine.cfm +++ b/api/tasks/listMine.cfm @@ -148,7 +148,7 @@ - + + diff --git a/api/tasks/listPending.cfm b/api/tasks/listPending.cfm index 550caf0..0f96983 100644 --- a/api/tasks/listPending.cfm +++ b/api/tasks/listPending.cfm @@ -128,7 +128,7 @@ - + +