fix(webapp): fix credit note and receipt auto-increment

This commit is contained in:
a.bouhuolia
2023-05-28 14:44:50 +02:00
parent c90ffed67f
commit 932750b62d
14 changed files with 63 additions and 19 deletions

View File

@@ -71,6 +71,8 @@ function MakeJournalEntriesForm({
}
: {
...defaultManualJournal,
// If the auto-increment mode is enabled, take the next journal
// number from the settings.
...(journalAutoIncrement && {
journal_number: journalNumber,
}),
@@ -127,7 +129,6 @@ function MakeJournalEntriesForm({
transformErrors(errors, { setErrors });
setSubmitting(false);
};
// Handle the request success.
const handleSuccess = (errors) => {
AppToaster.show({