Exemplo n.º 1
0
 /**
  * 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
Exemplo n.º 2
0
 /**
  * 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;
 }
Exemplo n.º 3
0
 /**
  * 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
Exemplo n.º 4
0
 /**
  * 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