feat: add convert to credit note.

This commit is contained in:
elforjani13
2021-12-26 13:24:38 +02:00
parent 10f0d47b54
commit f9a7306e47
5 changed files with 67 additions and 6 deletions

View File

@@ -56,6 +56,7 @@ function CreditNoteForm({
isNewMode,
submitPayload,
creditNote,
newCreditNote,
createCreditNoteMutate,
editCreditNoteMutate,
} = useCreditNoteFormContext();
@@ -74,6 +75,7 @@ function CreditNoteForm({
credit_note_number: creditNumber,
}),
entries: orderingLinesIndexes(defaultCreditNote.entries),
...newCreditNote,
}),
}),
[],