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(); } = 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}