Class MAssetProduct

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_A_Asset_Product, I_Persistent, Evaluatee

public class MAssetProduct extends X_A_Asset_Product
Asset Product
Author:
Teo Sarca, SC ARHIPAC SERIVCE SRL
See Also:
  • Constructor Details

    • MAssetProduct

      public MAssetProduct(Properties ctx, String A_Asset_Product_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      A_Asset_Product_UU - UUID key
      trxName - Transaction
    • MAssetProduct

      public MAssetProduct(Properties ctx, int A_Asset_Product_ID, String trxName)
      Parameters:
      ctx -
      A_Asset_Product_ID -
      trxName -
    • MAssetProduct

      public MAssetProduct(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
  • Method Details

    • setProduct

      public void setProduct(int M_Product_ID, int M_ASI_ID)
      Set product and ASI
      Parameters:
      M_Product_ID -
      M_ASI_ID -
    • getCreate

      public static MAssetProduct getCreate(Properties ctx, int A_Asset_ID, int M_Product_ID, int M_ASI_ID, String trxName)
      Get/Create Asset Product. Doesn't save newly create one.
      Parameters:
      ctx -
      A_Asset_ID -
      M_Product_ID -
      M_ASI_ID -
      trxName -
      Returns:
      MAssetProduct
    • addA_Qty_Current

      public void addA_Qty_Current(BigDecimal qty)
      Add given qty to current qty
      Parameters:
      qty -
    • updateAsset

      public void updateAsset(MAsset asset)
      Update given asset. Note: does not save asset.