fixed value of sume value
This commit is contained in:
parent
3bfe108dab
commit
a747880a77
@ -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");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user