feat(FE): closing report overhead per kandang

This commit is contained in:
randy-ar
2026-01-13 15:20:36 +07:00
parent b9212d1241
commit e5ec0f8deb
2 changed files with 14 additions and 6 deletions
+3 -2
View File
@@ -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',
});