feat(FE-363): Add pagination to purchases per supplier report

This commit is contained in:
rstubryan
2025-12-15 11:08:05 +07:00
parent 63c2a240d2
commit 5c9332537c
2 changed files with 91 additions and 49 deletions
+10 -3
View File
@@ -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'
);