Skip to content

Commit

Permalink
- fix parsing bug in cropProcedures
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispahm committed Jul 31, 2020
1 parent c425f35 commit 857570d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cropProcedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ module.exports = function cropProcedures(options) {
var step = {};
step.abr = cellsStep[3].innerHTML.trim();
step.description = cellsStep[4].innerHTML.trim();
step.time = parseFloat(cellsStep[6].innerHTML.trim().replace(',', '.'));
step.fuelCons = parseFloat(cellsStep[7].innerHTML.trim().replace(',', '.'));
step.deprec = parseFloat(cellsStep[8].innerHTML.trim().replace(',', '.'));
step.interest = parseFloat(cellsStep[9].innerHTML.trim().replace(',', '.'));
step.others = parseFloat(cellsStep[10].innerHTML.trim().replace(',', '.'));
step.maintenance = parseFloat(cellsStep[11].innerHTML.trim().replace(',', '.'));
step.lubricants = parseFloat(cellsStep[12].innerHTML.trim().replace(',', '.'));
step.services = parseFloat(cellsStep[13].innerHTML.trim().replace(',', '.'));
step.time = parseFloat(cellsStep[6].innerHTML.trim().replace('.', '').replace(',', '.'));
step.fuelCons = parseFloat(cellsStep[7].innerHTML.trim().replace('.', '').replace(',', '.'));
step.deprec = parseFloat(cellsStep[8].innerHTML.trim().replace('.', '').replace(',', '.'));
step.interest = parseFloat(cellsStep[9].innerHTML.trim().replace('.', '').replace(',', '.'));
step.others = parseFloat(cellsStep[10].innerHTML.trim().replace('.', '').replace(',', '.'));
step.maintenance = parseFloat(cellsStep[11].innerHTML.trim().replace('.', '').replace(',', '.'));
step.lubricants = parseFloat(cellsStep[12].innerHTML.trim().replace('.', '').replace(',', '.'));
step.services = parseFloat(cellsStep[13].innerHTML.trim().replace('.', '').replace(',', '.'));
entries.steps.push(step);
j++;
}
Expand Down

0 comments on commit 857570d

Please sign in to comment.