fix: bill response with entries

This commit is contained in:
Ahmed Bouhuolia
2026-01-21 13:39:56 +02:00
parent 785c49f2e6
commit 6da7e8185c
5 changed files with 40 additions and 55 deletions

View File

@@ -51,6 +51,7 @@ export class Bill extends TenantBaseModel {
public updatedAt: Date | null;
public entries?: ItemEntry[];
public attachments!: Document[];
public locatedLandedCosts?: BillLandedCost[];
/**
* Timestamps columns.
@@ -633,7 +634,7 @@ export class Bill extends TenantBaseModel {
return this.query(trx)
.where('id', billId)
[changeMethod]('payment_amount', Math.abs(amount));
[changeMethod]('payment_amount', Math.abs(amount));
}
/**