mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
fix(FE): fix report debt supplier filters date type
This commit is contained in:
@@ -96,7 +96,7 @@ const DebtSupplierTab = () => {
|
||||
filterSupplier.length > 0
|
||||
? filterSupplier.map((v) => String(v.value)).join(',')
|
||||
: undefined,
|
||||
filter_by: 'do_date' as const,
|
||||
filter_by: filterDataType?.value || 'do_date',
|
||||
start_date: filterStartDate || undefined,
|
||||
end_date: filterEndDate || undefined,
|
||||
page: currentPage,
|
||||
@@ -109,7 +109,7 @@ const DebtSupplierTab = () => {
|
||||
([, params]) =>
|
||||
FinanceApi.getDebtSupplierReport(
|
||||
params.supplier_ids,
|
||||
params.filter_by,
|
||||
params.filter_by?.toString(),
|
||||
params.start_date,
|
||||
params.end_date,
|
||||
params.page,
|
||||
|
||||
@@ -40,7 +40,7 @@ export class FinanceApiService extends BaseApiService<
|
||||
|
||||
async getDebtSupplierReport(
|
||||
supplier_ids?: string,
|
||||
filter_by?: 'do_date',
|
||||
filter_by?: string,
|
||||
start_date?: string,
|
||||
end_date?: string,
|
||||
page?: number,
|
||||
|
||||
Reference in New Issue
Block a user