.
This commit is contained in:
parent
e9b96ccf21
commit
13d24429c6
@ -17,7 +17,7 @@ import { PercentageInputField } from "./items/percentage-input-field";
|
|||||||
|
|
||||||
export const InvoiceTotals = (props: ComponentProps<"fieldset">) => {
|
export const InvoiceTotals = (props: ComponentProps<"fieldset">) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { control, getValues } = useFormContext<InvoiceFormData>();
|
const { control } = useFormContext<InvoiceFormData>();
|
||||||
const { currency_code, language_code, readOnly, taxCatalog } = useInvoiceContext();
|
const { currency_code, language_code, readOnly, taxCatalog } = useInvoiceContext();
|
||||||
|
|
||||||
const displayTaxes = useWatch({ control, name: "taxes", defaultValue: [] });
|
const displayTaxes = useWatch({ control, name: "taxes", defaultValue: [] });
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user