mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
fix(webapp): invoice total currency should be dynamic
This commit is contained in:
@@ -22,7 +22,7 @@ export function InvoiceFormFooterRight() {
|
|||||||
} = useInvoiceTotals();
|
} = useInvoiceTotals();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
values: { inclusive_exclusive_tax },
|
values: { inclusive_exclusive_tax, currency_code },
|
||||||
} = useFormikContext();
|
} = useFormikContext();
|
||||||
|
|
||||||
const taxEntries = useInvoiceAggregatedTaxRates();
|
const taxEntries = useInvoiceAggregatedTaxRates();
|
||||||
@@ -48,7 +48,7 @@ export function InvoiceFormFooterRight() {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
<TotalLine
|
<TotalLine
|
||||||
title={'Total (USD)'}
|
title={`Total (${currency_code})`}
|
||||||
value={formattedTotal}
|
value={formattedTotal}
|
||||||
borderStyle={TotalLineBorderStyle.SingleDark}
|
borderStyle={TotalLineBorderStyle.SingleDark}
|
||||||
textStyle={TotalLineTextStyle.Bold}
|
textStyle={TotalLineTextStyle.Bold}
|
||||||
|
|||||||
Reference in New Issue
Block a user