Comment line costs = pc.getProductCosts(as, line.getAD_Org_ID(),
as.getCostingMethod(), 0,true); because param as.getCostingMethod has
been replace by null into class MInventory