fix: due Amount on edit page is calculated wrong with "Exclusive of Tax" Invoice mode

This commit is contained in:
Sachin
2024-08-03 23:56:02 +05:30
parent 940b4f9175
commit 8cab012324
2 changed files with 4 additions and 4 deletions

View File

@@ -302,8 +302,8 @@ export const useInvoiceTotals = () => {
);
// Retrieves the formatted due total.
const dueTotal = React.useMemo(
() => total - paymentTotal,
[total, paymentTotal],
() => total_ - paymentTotal,
[total_, paymentTotal],
);
// Retrieves the formatted due total.
const formattedDueTotal = React.useMemo(