item.setCategories(categoryList); item.setCode(et_code.getText().toString()); item.setSku(et_sku.getText().toString()); item.setPrice(Long.valueOf(ed_price.getText().toString())); item.setPriceType(PriceType.FIXED); item.setModifierGroups(modifierGroupList); item.setTaxRates(taxRates); item.setTags(tagList); item.setCost(Long.valueOf(et_itemcost.getText().toString())); item.setIsRevenue(!chkbx_non_revenue_item.isChecked()); item.setStockCount(Long.valueOf(et_qty.getText().toString())); then adding the item using inventoryConnector.createItem(item)
inventoryConnector.createItem(new_item);