return new ErrorResponse("a product cannot require serial number definition");
}
Response res = ClientUtils.getData("insertItem",vo);
if (!res.isError()) {
vo = (DetailItemVO)((VOResponse)res).getVo();
pk = new ItemPK(vo.getCompanyCodeSys01ITM01(),vo.getItemCodeITM01());
if (parentFrame!=null) {
// parentFrame.getGrid().reloadData();
}
frame.getDiscountsGrid().getOtherGridParams().put(
ApplicationConsts.ITEM_PK,
pk
);
frame.getDiscountsGrid().reloadData();
frame.getPricesGrid().getOtherGridParams().put(ApplicationConsts.ITEM,vo);
frame.getPricesGrid().reloadData();
frame.setButtonsEnabled(true);
frame.getSupplierPrices().getPricesGrid().getOtherGridParams().put(ApplicationConsts.ITEM_PK,pk);
frame.getSupplierPrices().setButtonsEnabled(true);
frame.getSupplierPrices().getPricesGrid().reloadData();
frame.getItemSparePartsPanel().init(vo,false);
frame.getBookedItemsPanel().setEnabled(true);
frame.getOrderedItemsPanel().setEnabled(true);
frame.getBookedItemsPanel().getGrid().reloadData();
frame.getOrderedItemsPanel().getGrid().reloadData();
frame.getBookedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.ITEM_PK,new ItemPK(vo.getCompanyCodeSys01ITM01(),vo.getItemCodeITM01()));
frame.getOrderedItemsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.ITEM_PK,new ItemPK(vo.getCompanyCodeSys01ITM01(),vo.getItemCodeITM01()));
frame.getDocsPanel().setItemVO(vo);
// frame.getItemVariantsPanel().setContent(vo,frame.getVariantsNames());
frame.getBomTabbedPane().getComponentsGrid().getOtherGridParams().put(