parent
c24e94c255
commit
ced1f14cff
@ -59,6 +59,7 @@ export interface Purchase {
|
|||||||
transactionCreateDate: string;
|
transactionCreateDate: string;
|
||||||
orderSum: number;
|
orderSum: number;
|
||||||
transactionSum: number;
|
transactionSum: number;
|
||||||
|
transactionType: 'CancelPayFromWallet' | 'PayFromWallet' | 'RefillWallet';
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Transaction {
|
export interface Transaction {
|
||||||
|
|||||||
@ -58,7 +58,7 @@ export class OrdersComponent implements OnInit {
|
|||||||
// return same;
|
// return same;
|
||||||
// });
|
// });
|
||||||
return purchase;
|
return purchase;
|
||||||
});
|
}).filter((purchase: Purchase) => ['PayFromWallet', 'CancelPayFromWallet', 'RefillWallet'].includes(purchase.transactionType));
|
||||||
this.purchasesShortArray = this.purchases.slice(0, this.lastViewOrder)
|
this.purchasesShortArray = this.purchases.slice(0, this.lastViewOrder)
|
||||||
this.ordersLoadingStatus = false;
|
this.ordersLoadingStatus = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user