perbaikan cost management

This commit is contained in:
2024-07-22 13:41:58 +07:00
parent 8cc1a2b9fb
commit 95fa99799c
2 changed files with 5 additions and 3 deletions

View File

@@ -92,7 +92,9 @@ export class CostManagementComponent implements OnInit {
.subscribe((response) => {
this.data = response.results.data;
this.filteredRows = this.data;
this.kwhTerm = response.results.kwh;
let kwhData = parseFloat(response.results.kwh)
this.kwhTerm = kwhData.toFixed(1);
this.costTerm = response.results.cost;
this.data_cost = this.filteredRows.map((item) => ({
@@ -100,7 +102,7 @@ export class CostManagementComponent implements OnInit {
roomName: item.room_name,
categoryName: item.category_name,
estimationCost: item.estimation_cost,
totalUse: item.total_use,
totalUse: item.total_use.toFixed(1),
endDate: this.convertToUTC7(item.end_date),
// endDate: item.end_date,
statusId: item.status_id,