zarinpal payment

This commit is contained in:
2026-01-18 19:30:41 +03:30
parent 6e8e4c7cf5
commit 87da6a8c10
4 changed files with 25 additions and 18 deletions
+10 -5
View File
@@ -61,12 +61,17 @@ export class Order extends BaseEntity {
@Property({ type: 'decimal', precision: 10, scale: 0 })
paidAmount!: number;
// balance!: number;
@Property({ type: 'decimal', precision: 10, scale: 0 })
get balance():number{
return this.total- this.paidAmount
}
// private _balance!: number;
@Property({ type: 'decimal', precision: 10, scale: 0 })
balance!: number;
// get balance(): number {
// return this._balance
// }
// set balance(value) {
// this._balance = this.total - this.paidAmount
// }
// @Property({ type: 'text', nullable: true })
// description?: string;