parent
9e1cad31f3
commit
77ecb32411
@ -40,12 +40,11 @@ export class GuestCardComponent implements OnInit {
|
|||||||
currentPurchases: [],
|
currentPurchases: [],
|
||||||
$loading: true,
|
$loading: true,
|
||||||
get currentAmount():number {
|
get currentAmount():number {
|
||||||
// const amount = this.currentPurchases.reduce((accumulator, currentValue) => {
|
const amount = this.currentPurchases.reduce((accumulator, currentValue) => {
|
||||||
// if (currentValue.transactionType !== 'PayFromWallet') return 0;
|
if (currentValue.transactionType !== 'PayFromWallet') return 0;
|
||||||
// return accumulator + currentValue.transactionSum;
|
return accumulator + currentValue.transactionSum;
|
||||||
// }, 0);
|
}, 0);
|
||||||
// return amount * -1
|
return amount * -1
|
||||||
return 8601
|
|
||||||
},
|
},
|
||||||
get lastAmount():number {
|
get lastAmount():number {
|
||||||
const amount = this.lastPurchases.reduce((accumulator, currentValue) => {
|
const amount = this.lastPurchases.reduce((accumulator, currentValue) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user