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");