fuel list
This commit is contained in:
@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user