/** * Create One Asset Per UOM * * @return individual asset */ public boolean isOneAssetPerUOM() { MProductCategory pc = MProductCategory.get(getCtx(), getM_Product_Category_ID()); if (pc.getA_Asset_Group_ID() == 0) return false; // MAssetGroup.get(getCtx(), pc.getA_Asset_Group_ID()); // return ag.isOneAssetPerUOM(); return pc.getA_Asset_Group().isOneAssetPerUOM(); } // isOneAssetPerUOM
/** * Gets Material Management Policy. Tries: Product Category, Client (in this order) * * @return Material Management Policy */ public String getMMPolicy() { MProductCategory pc = MProductCategory.get(getCtx(), getM_Product_Category_ID()); String MMPolicy = pc.getMMPolicy(); if (MMPolicy == null || MMPolicy.length() == 0) MMPolicy = MClient.get(getCtx()).getMMPolicy(); return MMPolicy; }
/** * Create Asset for this product * * @return true if asset is created */ public boolean isCreateAsset() { MProductCategory pc = MProductCategory.get(getCtx(), getM_Product_Category_ID()); return pc.getA_Asset_Group_ID() != 0; } // isCreated
/** * Create Asset Group for this product * * @return asset group id */ public int getA_Asset_Group_ID() { MProductCategory pc = MProductCategory.get(getCtx(), getM_Product_Category_ID()); return pc.getA_Asset_Group_ID(); } // getA_Asset_Group_ID