mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: the currency code of transaction tax rate entry
This commit is contained in:
@@ -333,8 +333,8 @@ export const useInvoiceAggregatedTaxRates = () => {
|
||||
const { taxRates } = useInvoiceFormContext();
|
||||
|
||||
const aggregateTaxRates = React.useMemo(
|
||||
() => aggregateItemEntriesTaxRates(taxRates),
|
||||
[taxRates],
|
||||
() => aggregateItemEntriesTaxRates(values.currency_code, taxRates),
|
||||
[values.currency_code, taxRates],
|
||||
);
|
||||
// Calculate the total tax amount of invoice entries.
|
||||
return React.useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user