mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 14:25:47 +00:00
feat(FE-363): Add pagination to purchases per supplier report
This commit is contained in:
@@ -18,11 +18,13 @@ export class LogisticApiService extends BaseApiService<
|
||||
received_date?: string,
|
||||
po_date?: string,
|
||||
start_date?: string,
|
||||
end_date?: string
|
||||
end_date?: string,
|
||||
page?: number,
|
||||
limit?: number
|
||||
): Promise<BaseApiResponse<LogisticPurchasePerSupplierReport> | undefined> {
|
||||
return await this.customRequest<
|
||||
BaseApiResponse<LogisticPurchasePerSupplierReport>
|
||||
>(`purchase-supplier`, {
|
||||
>(`logistic-stock`, {
|
||||
method: 'GET',
|
||||
params: {
|
||||
area_id: area_id,
|
||||
@@ -32,9 +34,14 @@ export class LogisticApiService extends BaseApiService<
|
||||
po_date: po_date,
|
||||
start_date: start_date,
|
||||
end_date: end_date,
|
||||
page: page,
|
||||
limit: limit,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export const LogisticApi = new LogisticApiService('/reports');
|
||||
// TODO: REPLACE WITH PRODUCTION URL
|
||||
export const LogisticApi = new LogisticApiService(
|
||||
'http://localhost:4010/api/report'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user