diff --git a/ui/src/router/views/import-generic.vue b/ui/src/router/views/import-generic.vue index 0cd4a07..35bbb11 100644 --- a/ui/src/router/views/import-generic.vue +++ b/ui/src/router/views/import-generic.vue @@ -94,8 +94,8 @@ export default { }, '') } const calculateTotal = (row) => { - return this.fileHeadingMap.totalAmount === "-1" - ? (row[this.fileHeadings.fuelQuantity] * row[this.fileHeadings.perUnitPrice]).toFixed(2) + return this.fileHeadingMap.totalAmount === -1 + ? row[this.fileHeadingMap.fuelQuantity] * row[this.fileHeadingMap.perUnitPrice] : row[this.fileHeadingMap.totalAmount] } @@ -142,7 +142,7 @@ export default { try { const content = { data: this.csvToJson(), - vehicleId: this.selectedVehicle.Id, + vehicleId: this.selectedVehicle.id, timezone: this.getTimezone(), } axios @@ -180,7 +180,7 @@ export default { if (typeof tankFull !== 'boolean' && typeof tankFull === 'string') { this.isFullTankString = true } - } + }, }, } @@ -202,7 +202,9 @@ export default {
  • {{ $t('importhintvehiclecreated') }}
  • -
  • {{ $t('dontimportagain') }}
  • +
  • + {{ $t('dontimportagain') }} +
  • @@ -270,8 +272,7 @@ export default { - +
    - +

    There was an error logging in to your account.