fix(webapp): invoice total currency should be dynamic

This commit is contained in:
Ahmed Bouhuolia
2023-09-23 14:19:59 +02:00
parent 1148fef9ad
commit 1d1049043e

View File

@@ -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}