refactoring: invoice form.

refactoring: receipt form.
refactoring: bill form.
refactoring: estimate form.
This commit is contained in:
a.bouhuolia
2021-02-15 16:23:58 +02:00
parent 151bd9bc54
commit e8458e2b36
37 changed files with 410 additions and 903 deletions

View File

@@ -46,12 +46,15 @@ function BillFormProvider({ billId, ...props }) {
const { mutateAsync: createBillMutate } = useCreateBill();
const { mutateAsync: editBillMutate } = useEditBill();
const isNewMode = !billId;
const provider = {
accounts,
vendors,
items,
bill,
submitPayload,
isNewMode,
isSettingLoading,
isBillLoading,