From d48e0425e8fecdde7cb89a102d7597492c1faae1 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Thu, 11 Sep 2025 11:34:23 +0000 Subject: [PATCH] Adjust calculation for difference between invoice and bill of lading amounts Update BLReconciliation component to correctly calculate the difference between invoiceAmount and blAmount by swapping their order in the subtraction operation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 818c4995-85cc-4d53-8067-b67dcee52c2d Replit-Commit-Checkpoint-Type: full_checkpoint --- client/src/pages/BLReconciliation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/BLReconciliation.tsx b/client/src/pages/BLReconciliation.tsx index 50074b1..967df04 100644 --- a/client/src/pages/BLReconciliation.tsx +++ b/client/src/pages/BLReconciliation.tsx @@ -912,7 +912,7 @@ export default function BLReconciliation() { const blAmount = delivery.blAmount ? parseFloat(delivery.blAmount) : 0; const invoiceAmount = delivery.invoiceAmount ? parseFloat(delivery.invoiceAmount) : 0; if (blAmount && invoiceAmount) { - const diff = blAmount - invoiceAmount; + const diff = invoiceAmount - blAmount; const diffAbs = Math.abs(diff); return (