This commit is contained in:
Ahmed Bouhuolia
2026-01-16 00:23:16 +02:00
parent 2bbc154f18
commit c21301061f
15 changed files with 87 additions and 45 deletions

View File

@@ -38,7 +38,7 @@ export class CreateSaleReceipt {
@Inject(Customer.name)
private readonly customerModel: TenantModelProxy<typeof Customer>,
) {}
) { }
/**
* Creates a new sale receipt with associated entries.
@@ -89,7 +89,7 @@ export class CreateSaleReceipt {
// Inserts the sale receipt graph to the storage.
const saleReceipt = await this.saleReceiptModel()
.query()
.query(trx)
.upsertGraph({
...saleReceiptObj,
});