mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: add Auto increment in credit note number.
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
useEditCreditNote,
|
||||
useItems,
|
||||
useCustomers,
|
||||
useSettingsCreditNotes,
|
||||
} from 'hooks/query';
|
||||
|
||||
const CreditNoteFormContext = React.createContext();
|
||||
@@ -40,6 +41,9 @@ function CreditNoteFormProvider({ creditNoteId, ...props }) {
|
||||
},
|
||||
);
|
||||
|
||||
// Handle fetching settings.
|
||||
useSettingsCreditNotes();
|
||||
|
||||
// Create and edit credit note mutations.
|
||||
const { mutateAsync: createCreditNoteMutate } = useCreateCreditNote();
|
||||
const { mutateAsync: editCreditNoteMutate } = useEditCreditNote();
|
||||
|
||||
Reference in New Issue
Block a user