mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-24 07:28:19 +02:00
Merge pull request #443 from R0m1k3/1.1
Adjust calculation for difference between invoice and bill of lading …
This commit is contained in:
1 file changed
+1
-1
@@ -912,7 +912,7 @@ export default function BLReconciliation() {
|
|||||||
const blAmount = delivery.blAmount ? parseFloat(delivery.blAmount) : 0;
|
const blAmount = delivery.blAmount ? parseFloat(delivery.blAmount) : 0;
|
||||||
const invoiceAmount = delivery.invoiceAmount ? parseFloat(delivery.invoiceAmount) : 0;
|
const invoiceAmount = delivery.invoiceAmount ? parseFloat(delivery.invoiceAmount) : 0;
|
||||||
if (blAmount && invoiceAmount) {
|
if (blAmount && invoiceAmount) {
|
||||||
const diff = blAmount - invoiceAmount;
|
const diff = invoiceAmount - blAmount;
|
||||||
const diffAbs = Math.abs(diff);
|
const diffAbs = Math.abs(diff);
|
||||||
return (
|
return (
|
||||||
<div className={`font-medium text-center ${
|
<div className={`font-medium text-center ${
|
||||||
|
|||||||
Reference in new issue
Block a user