fix: transaction for dashboard
This commit is contained in:
parent
9ecf5c3209
commit
15a886eac0
|
@ -1058,7 +1058,9 @@ export class TransactionService {
|
||||||
const baseQuery = this.transactionRepository
|
const baseQuery = this.transactionRepository
|
||||||
.createQueryBuilder('transactions')
|
.createQueryBuilder('transactions')
|
||||||
.innerJoin('transactions.product_price', 'product_price')
|
.innerJoin('transactions.product_price', 'product_price')
|
||||||
.where('transactions.type = 1 and partner_trx_id is NULL');
|
.where(
|
||||||
|
'transactions.type = 1 and partner_trx_id is NULL and transactions.status = 1',
|
||||||
|
);
|
||||||
|
|
||||||
const data = await baseQuery
|
const data = await baseQuery
|
||||||
.select('SUM(transactions.amount) as total_amount')
|
.select('SUM(transactions.amount) as total_amount')
|
||||||
|
@ -1088,7 +1090,9 @@ export class TransactionService {
|
||||||
const baseQuery = this.transactionRepository
|
const baseQuery = this.transactionRepository
|
||||||
.createQueryBuilder('transactions')
|
.createQueryBuilder('transactions')
|
||||||
.innerJoin('transactions.product_price', 'product_price')
|
.innerJoin('transactions.product_price', 'product_price')
|
||||||
.where('transactions.type = 1 and partner_trx_id is not NULL');
|
.where(
|
||||||
|
'transactions.type = 1 and partner_trx_id is not NULL and transactions.status = 1',
|
||||||
|
);
|
||||||
|
|
||||||
const data = await baseQuery
|
const data = await baseQuery
|
||||||
.select('SUM(transactions.amount) as total_amount')
|
.select('SUM(transactions.amount) as total_amount')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user