This commit is contained in:
2026-01-18 17:28:53 +03:30
parent a10b6129b9
commit 8db3b8d1ac
8 changed files with 55 additions and 97 deletions
+4 -1
View File
@@ -61,8 +61,11 @@ export class Order extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 0 })
paidAmount!: number;
// balance!: number;
@Property({ type: 'decimal', precision: 10, scale: 0 })
balance!: number;
get balance():number{
return this.total- this.paidAmount
}
// @Property({ type: 'text', nullable: true })
// description?: string;