| Line 110... |
Line 110... |
| 110 |
itemLoaderModel.setRisky(row.getCell(i++).getNumericCellValue() == 0 ? false : true);
|
110 |
itemLoaderModel.setRisky(row.getCell(i++).getNumericCellValue() == 0 ? false : true);
|
| 111 |
itemLoaderModel.setWeight(row.getCell(i++).getNumericCellValue());
|
111 |
itemLoaderModel.setWeight(row.getCell(i++).getNumericCellValue());
|
| 112 |
itemLoaderModel.setItemType((int) row.getCell(i++).getNumericCellValue());
|
112 |
itemLoaderModel.setItemType((int) row.getCell(i++).getNumericCellValue());
|
| 113 |
itemLoaderModel.setTaxRate(row.getCell(i++).getNumericCellValue() * 100);
|
113 |
itemLoaderModel.setTaxRate(row.getCell(i++).getNumericCellValue() * 100);
|
| 114 |
} catch (Throwable e) {
|
114 |
} catch (Throwable e) {
|
| - |
|
115 |
LOGGER.info(e.getCause());
|
| 115 |
throw new ProfitMandiBusinessException("Field", "Field at row - " + row.getRowNum() + ", column - " + (i - 1),
|
116 |
throw new ProfitMandiBusinessException("Field", "Field at row - " + row.getRowNum() + ", column - " + (i - 1),
|
| 116 |
"Invalid field value at - " + this.toAlphabet(i - 1) + (row.getRowNum() + 1) + ", " + this.getCellValue(row.getCell(i - 1)));
|
117 |
"Invalid field value at - " + this.toAlphabet(i - 1) + (row.getRowNum() + 1) + ", " + this.getCellValue(row.getCell(i - 1)));
|
| 117 |
}
|
118 |
}
|
| 118 |
return itemLoaderModel;
|
119 |
return itemLoaderModel;
|
| 119 |
}
|
120 |
}
|