perbaikan cost management
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user