feat(FE): report sapronak calculation per kandang

This commit is contained in:
randy-ar
2026-01-12 13:44:03 +07:00
parent d879acc001
commit d6c6211937
5 changed files with 34 additions and 31 deletions
+3 -2
View File
@@ -92,10 +92,11 @@ export class ClosingApiService extends BaseApiService<Closing, null, null> {
}
async getPerhitunganSapronak(
id: number
id: number,
projectKandangId?: number
): Promise<BaseApiResponse<ClosingSapronakCalculation> | undefined> {
try {
const path = `${this.basePath}/${id}/perhitungan_sapronak`;
const path = `${this.basePath}/${id}${projectKandangId ? `/${projectKandangId}` : ''}/perhitungan_sapronak`;
return await httpClient<BaseApiResponse<ClosingSapronakCalculation>>(
path,
{