Class MPOS

    • Constructor Detail

      • MPOS

        public MPOS​(Properties ctx,
                    int C_POS_ID,
                    String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_POS_ID - id
        trxName - transaction
      • MPOS

        public MPOS​(Properties ctx,
                    ResultSet rs,
                    String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MPOS

        public MPOS​(MPOS copy)
        Parameters:
        copy -
      • MPOS

        public MPOS​(Properties ctx,
                    MPOS copy)
        Parameters:
        ctx -
        copy -
      • MPOS

        public MPOS​(Properties ctx,
                    MPOS copy,
                    String trxName)
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Detail

      • get

        public static MPOS get​(int C_POS_ID)
        Get POS from Cache (immutable)
        Parameters:
        C_POS_ID - id
        Returns:
        MPOS
      • get

        public static MPOS get​(Properties ctx,
                               int C_POS_ID)
        Get POS from Cache (immutable)
        Parameters:
        ctx - context
        C_POS_ID - id
        Returns:
        MPOS
      • getAll

        public static MPOS[] getAll​(Properties ctx,
                                    String field,
                                    int ID)
        Get POSes for passed argument
        Parameters:
        ctx - context
        field -
        ID -
        Returns:
        POSes
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • getBPartner

        public MBPartner getBPartner()
        Get default Cash BPartner
        Returns:
        BPartner
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_C_POS
        Returns:
        String representation