- fix total commision query
This commit is contained in:
parent
7285938241
commit
fdd9802d6c
|
@ -2110,7 +2110,7 @@ export class TransactionService {
|
|||
.select('SUM(transaction_journal.amount) as total_expense')
|
||||
.innerJoin('transactions.transactionJournal', 'transaction_journal')
|
||||
.where(
|
||||
`transaction_journal.type = '0' and transaction_journal.amount < product_price.price`,
|
||||
`transaction_journal.type = '0' and transaction_journal.amount < product_price.price and transactions.status = 1 and partner_trx_id is NULL`,
|
||||
)
|
||||
.getRawOne();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user