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

@@ -32,7 +32,7 @@ export class SaleReceiptGLEntries {
): Promise<void> => {
const { SaleReceipt } = this.tenancy.models(tenantId);
const saleReceipt = await SaleReceipt.query()
const saleReceipt = await SaleReceipt.query(trx)
.findById(saleReceiptId)
.withGraphFetched('entries.item');