Class MAssetProduct

    • Constructor Detail

      • MAssetProduct

        public MAssetProduct​(Properties ctx,
                             int A_Asset_Product_ID,
                             String trxName)
        Standard Constructor
    • Method Detail

      • 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