mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 13:55:45 +00:00
Merge branch 'development' of https://gitlab.com/mbugroup/lti-web-client into fix/debt-supplier
This commit is contained in:
@@ -131,10 +131,11 @@ export class ClosingApiService extends BaseApiService<Closing, null, null> {
|
||||
}
|
||||
|
||||
async getOverhead(
|
||||
id: number
|
||||
id: number,
|
||||
kandangId?: number
|
||||
): Promise<BaseApiResponse<ClosingOverhead> | undefined> {
|
||||
try {
|
||||
const path = `${this.basePath}/${id}/overhead`;
|
||||
const path = `${this.basePath}/${id}${kandangId ? `/${kandangId}` : ''}/overhead`;
|
||||
return await httpClient<BaseApiResponse<ClosingOverhead>>(path, {
|
||||
method: 'GET',
|
||||
});
|
||||
|
||||
@@ -44,9 +44,7 @@ export class MarketingSaleReportService extends BaseApiService<
|
||||
}
|
||||
}
|
||||
|
||||
export const SaleReportApi = new MarketingSaleReportService(
|
||||
'reports/marketings'
|
||||
);
|
||||
export const SaleReportApi = new MarketingSaleReportService('reports');
|
||||
|
||||
// export const SaleReportApi = new MarketingSaleReportService(
|
||||
// 'http://localhost:4010/api/reports/marketings'
|
||||
|
||||
Reference in New Issue
Block a user