refactor: implementing new formatted amount hooks

This commit is contained in:
Ahmed Bouhuolia
2024-12-02 15:32:39 +02:00
parent 03b0d2519b
commit 05cf94940e
14 changed files with 187 additions and 253 deletions

View File

@@ -185,6 +185,7 @@ export const useCreditNoteSubtotal = () => {
const {
values: { entries },
} = useFormikContext();
const total = React.useMemo(() => getEntriesTotal(entries), [entries]);
return total;