diff --git a/CLAUDE.md b/CLAUDE.md index a473af6..e00629b 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -5,15 +5,15 @@ Main CFML/JS repository: API + Portal + KDS + HUD + Receipt. Git repo on Forgejo ## Build & Deploy ```bash -# Edit files directly on dev server via SSH (never locally, never scp) +# Deploy: SCP to /tmp on dev, then sudo cp to biz.payfrit.com/ path ssh dev.payfrit.com -# Files live at: -# Dev server: /opt/lucee/tomcat/webapps/ROOT/biz.payfrit.com/ -# Local Lucee: C:\lucee\tomcat\webapps\ROOT\biz.payfrit.com\ +# Canonical source of truth on dev: +# /opt/lucee/tomcat/webapps/ROOT/biz.payfrit.com/ +# No local Lucee — all development happens on the dev server ``` -**Dev symlinks** on dev server: `/api`, `/portal`, `/config` symlink to `biz.payfrit.com/` — edit once, both `dev.payfrit.com` and `biz.payfrit.com` paths work. +**Dev symlinks** on dev server: `/api`, `/portal`, `/config`, `/cron` are all symlinks to `biz.payfrit.com/`. **Always edit under `biz.payfrit.com/` — never the root symlinks directly.** ## Project Structure diff --git a/api/orders/getOrCreateCart.cfm b/api/orders/getOrCreateCart.cfm index e06638f..b5aa838 100644 --- a/api/orders/getOrCreateCart.cfm +++ b/api/orders/getOrCreateCart.cfm @@ -238,7 +238,7 @@ 0 && qOrder.OrderTypeID == 3) { - deliveryFee = val(qOrder.OrderDeliveryFee); + deliveryFee = val(qOrder.DeliveryFee); } // SP-SM: Resolve grant economics @@ -169,7 +169,7 @@ try { // Link PaymentIntent to worker payout ledger (if a ledger row exists for this order's task) try { - queryTimed(" + queryExecute(" UPDATE WorkPayoutLedgers wpl INNER JOIN Tasks t ON t.ID = wpl.TaskID AND t.OrderID = :orderID SET wpl.StripePaymentIntentID = :piID