changes of boursecu
This commit is contained in:
@@ -50,7 +50,7 @@ export const BOURSECU_TRANSACTION_STATUS_OPTIONS = BOURSECU_TRADE_STATUS_OPTIONS
|
||||
export const BOURSECU_TRANSACTION_TABS: BoursecuTransactionTab[] = [
|
||||
{
|
||||
id: 'trades',
|
||||
label: 'همه',
|
||||
label: 'معاملات',
|
||||
emptyText: 'معاملهای برای شما به ثبت نرسیده است',
|
||||
showTradeToggle: true,
|
||||
showAdvancedFilters: true,
|
||||
@@ -121,6 +121,7 @@ export function buildBoursecuTransactionPagination(
|
||||
dateFrom?: string,
|
||||
dateTo?: string,
|
||||
statusFilter?: BoursecuTransactionStatusFilter | string,
|
||||
productId?: number,
|
||||
): TableEngineInput {
|
||||
const filters: TableEngineInput['filters'] = []
|
||||
|
||||
@@ -170,6 +171,16 @@ export function buildBoursecuTransactionPagination(
|
||||
value: statusSts,
|
||||
})
|
||||
}
|
||||
|
||||
if (productId != null && tab.id !== 'deposit') {
|
||||
filters.push({
|
||||
field: 'wallet.product_id',
|
||||
cr: 'and',
|
||||
type: 'number',
|
||||
op: 'eq',
|
||||
value: productId,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user