public RnrFormItem apply(InventoryViewModel inventoryViewModel) {
RnrFormItem rnrFormItem = new RnrFormItem();
try {
Product product = productRepository.getByCode(inventoryViewModel.getFnm());
rnrFormItem.setProduct(product);
<BUG>rnrFormItem.setRequestAmount(Long.valueOf(inventoryViewModel.getQuantity()));
</BUG>
} catch (LMISException e) {
e.reportToFabric();
}

public RnrFormItem apply(InventoryViewModel inventoryViewModel) {
RnrFormItem rnrFormItem = new RnrFormItem();
try {
Product product = productRepository.getByCode(inventoryViewModel.getFnm());
rnrFormItem.setProduct(product);
rnrFormItem.setRequestAmount(Long.valueOf(((AddDrugsToViaInventoryViewModel) inventoryViewModel).getQuantity()));
} catch (LMISException e) {
e.reportToFabric();
}
