zarinpal payment
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user