hotfix: editing sales and expense transactions don't reflect GL entries

This commit is contained in:
Ahmed Bouhuolia
2024-01-29 23:25:37 +02:00
parent 0414c090ea
commit ba387e81f7
13 changed files with 34 additions and 13 deletions

View File

@@ -80,7 +80,7 @@ export default class EditCreditNote extends BaseCreditNotes {
} as ICreditNoteEditingPayload);
// Saves the credit note graph to the storage.
const creditNote = await CreditNote.query(trx).upsertGraph({
const creditNote = await CreditNote.query(trx).upsertGraphAndFetch({
id: creditNoteId,
...creditNoteModel,
});