Class MCommission

    • Constructor Detail

      • MCommission

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

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

      • getLines

        public MCommissionLine[] getLines()
        Get Lines
        Returns:
        array of lines
      • copyLinesFrom

        public int copyLinesFrom​(MCommission otherCom)
        Copy Lines From other Commission
        Parameters:
        otherCom - commission
        Returns:
        number of lines copied
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Validations before saving record
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved