fixed value of sume value

This commit is contained in:
pramod.mahajan 2025-12-02 17:27:55 +05:30
parent 3bfe108dab
commit a747880a77

View File

@ -33,7 +33,7 @@ const PurchasePaymentDetails = ({ purchaseId = null }) => {
const transportCharges = parseFloat(trCharge) || 0; const transportCharges = parseFloat(trCharge) || 0;
if (base || tax || transportCharges) { if (base || tax || transportCharges) {
setValue("totalAmount", (base + tax + transportCharges)); setValue("totalAmount", (base + tax + transportCharges).toFixed(2));
} }
}, [baseAmount, taxAmount, trCharge, setValue]); }, [baseAmount, taxAmount, trCharge, setValue]);
const invoiceAttachmentType = watch("invoiceAttachmentTypeId"); const invoiceAttachmentType = watch("invoiceAttachmentTypeId");