feat(FE): hit api to endpoint closing finance kandang

This commit is contained in:
randy-ar
2026-01-14 16:44:50 +07:00
parent 3cb11f6158
commit f22ba83dd0
2 changed files with 15 additions and 4 deletions
+3 -2
View File
@@ -148,10 +148,11 @@ export class ClosingApiService extends BaseApiService<Closing, null, null> {
}
async getFinance(
id: number
id: number,
kandangId?: number
): Promise<BaseApiResponse<ClosingFinance> | undefined> {
try {
const path = `${this.basePath}/${id}/keuangan`;
const path = `${this.basePath}/${id}${kandangId ? `/${kandangId}` : ''}/keuangan`;
return await httpClient<BaseApiResponse<ClosingFinance>>(path, {
method: 'GET',
});