mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
filter transaction description keywords in statistics & analysis page
This commit is contained in:
@@ -432,6 +432,10 @@ export default {
|
||||
queryParams.push(`tag_filter_type=${req.tagFilterType}`);
|
||||
}
|
||||
|
||||
if (req.keyword) {
|
||||
queryParams.push(`keyword=${encodeURIComponent(req.keyword)}`);
|
||||
}
|
||||
|
||||
return axios.get<ApiResponse<TransactionStatisticResponse>>(`v1/transactions/statistics.json?use_transaction_timezone=${req.useTransactionTimezone}` + (queryParams.length ? '&' + queryParams.join('&') : ''));
|
||||
},
|
||||
getTransactionStatisticsTrends: (req: TransactionStatisticTrendsRequest): ApiResponsePromise<TransactionStatisticTrendsResponseItem[]> => {
|
||||
@@ -453,6 +457,10 @@ export default {
|
||||
queryParams.push(`tag_filter_type=${req.tagFilterType}`);
|
||||
}
|
||||
|
||||
if (req.keyword) {
|
||||
queryParams.push(`keyword=${encodeURIComponent(req.keyword)}`);
|
||||
}
|
||||
|
||||
return axios.get<ApiResponse<TransactionStatisticTrendsResponseItem[]>>(`v1/transactions/statistics/trends.json?use_transaction_timezone=${req.useTransactionTimezone}` + (queryParams.length ? '&' + queryParams.join('&') : ''));
|
||||
},
|
||||
getTransactionAmounts: (params: TransactionAmountsRequestParams): ApiResponsePromise<TransactionAmountsResponse> => {
|
||||
|
||||
Reference in New Issue
Block a user