Merge pull request #443 from R0m1k3/1.1

Adjust calculation for difference between invoice and bill of lading …
This commit is contained in:
LogiFlow authored and GitHub committed 2025-09-11 13:34:59 +02:00
commit b6859c9f5a
1 file changed
+1 -1
+1 -1
View File
@@ -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 (
<div className={`font-medium text-center ${