- Added filter by Partner Trx Id for transaction history
This commit is contained in:
parent
8d15f6f4be
commit
401c91f66d
|
@ -1960,7 +1960,17 @@ export class TransactionService {
|
||||||
enDate: new Date(endDate),
|
enDate: new Date(endDate),
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else if (trxId != null) {
|
} else if (trxId != null || partnerTrxId != null) {
|
||||||
|
if (trxId != null && partnerTrxId != null) {
|
||||||
|
baseQuery.andWhere(
|
||||||
|
'transaction.supplier_trx_id = :trxId and transaction.partner_trx_id = :partnerTrxId',
|
||||||
|
{
|
||||||
|
trxId: trxId,
|
||||||
|
partnerTrxId: partnerTrxId,
|
||||||
|
},
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
if (trxId != null) {
|
||||||
baseQuery.andWhere(
|
baseQuery.andWhere(
|
||||||
'transaction.supplier_trx_id = :trxId',
|
'transaction.supplier_trx_id = :trxId',
|
||||||
{
|
{
|
||||||
|
@ -1975,6 +1985,10 @@ export class TransactionService {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
const data = await baseQuery
|
const data = await baseQuery
|
||||||
.offset(page * (pageSize || 10))
|
.offset(page * (pageSize || 10))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user