Hi saad_bin_iqbal, If we want to add the PERUNIT type to line item, have to mention the line item stack count as integer value don't go with getVolume() method. mLineItem = orderConnector.addPerUnitLineItem(mOrder.getId(), mItem.getId(), mItem.getStockCount().intValue(), null, null);
Thanks, Dhanaraj for your response.
Actually getVolume() methods returns Int value already.
Well, I got that there is something wrong with mItem.getId() method. It does not pic same Item's Id as Clover have. That's why I get that error.
When you say "It does not pic same Item's Id as Clover have" do you mean you get a different value than what you expected? Or are you perhaps getting a null value?
2 People are following this question.