integrasi actual cost

This commit is contained in:
2024-06-13 16:20:09 +07:00
parent fc10a44d5d
commit f6db135ac6
8 changed files with 554 additions and 80 deletions

View File

@@ -78,4 +78,24 @@ export class CostManagementService {
});
return this.http.get<any>(url, { headers });
}
putRealCost(data: any, id: any): Observable<any> {
const endpoint = `/real-cost`;
const url = `${BASE_URL}${endpoint}/${id}`;
const headers = new HttpHeaders({
'Content-Type': 'application/json',
'x-api-key': 'j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT'
});
return this.http.put<any>(url, data, { headers });
}
getBUildingById(id: any): Observable<any> {
const endpoint = `/building`;
const url = `${BASE_URL}${endpoint}/${id}`;
const headers = new HttpHeaders({
'Content-Type': 'application/json',
'x-api-key': 'j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT'
});
return this.http.get<any>(url, { headers });
}
}