fuel list

This commit is contained in:
Pringgosutono
2025-11-04 13:26:16 +07:00
parent 49e6353b63
commit 4c5233bc6b

View File

@ -96,6 +96,7 @@
<th class="">Start (km)</th> <th class="">Start (km)</th>
<th class="">Finish (km)</th> <th class="">Finish (km)</th>
<th class="">Distance (km)</th> <th class="">Distance (km)</th>
<th class="">Fuel (L)</th>
<th class="">Detail</th> <th class="">Detail</th>
</tr> </tr>
</thead> </thead>
@ -378,6 +379,13 @@
return (parseFloat(data).toFixed(2)); return (parseFloat(data).toFixed(2));
} }
}, },
{
data: 'fuel_consume',
className: 'text-end', render: function(data, type, row, meta) {
// const mileage = (row.finishMileage !== null && row.startMileage !== null) ? (row.finishMileage - row.startMileage) : row.mileage;
return (parseFloat(data).toFixed(2));
}
},
{ {
// visible: false, // visible: false,
data: 'vhc_id', data: 'vhc_id',