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