From a747880a776fcd3351d12ad9d4c5a6ce48caf016 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Tue, 2 Dec 2025 17:27:55 +0530 Subject: [PATCH] fixed value of sume value --- src/components/purchase/PurchasePaymentDetails.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/purchase/PurchasePaymentDetails.jsx b/src/components/purchase/PurchasePaymentDetails.jsx index 777f3a9b..42d526c8 100644 --- a/src/components/purchase/PurchasePaymentDetails.jsx +++ b/src/components/purchase/PurchasePaymentDetails.jsx @@ -33,7 +33,7 @@ const PurchasePaymentDetails = ({ purchaseId = null }) => { const transportCharges = parseFloat(trCharge) || 0; if (base || tax || transportCharges) { - setValue("totalAmount", (base + tax + transportCharges)); + setValue("totalAmount", (base + tax + transportCharges).toFixed(2)); } }, [baseAmount, taxAmount, trCharge, setValue]); const invoiceAttachmentType = watch("invoiceAttachmentTypeId");