mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 06:40:31 +00:00
fix: due Amount on edit page is calculated wrong with "Exclusive of Tax" Invoice mode
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user