int id = rs.getInt("m_inventory_id");
MInventory inv = new MInventory(getCtx(), id, get_TrxName());
log.info("" + inv);
//if(inv.getDocStatus() != DocAction.STATUS_Completed || inv.getDocStatus() != DocAction.STATUS_Closed)
//{
String status = inv.completeIt();
inv.setDocStatus(status);
//}
if(p_Post)
Doc.postImmediate(as, inv.get_Table_ID(), inv.getM_Inventory_ID(), true, get_TrxName());