Class MElementValue

    • Constructor Detail

      • MElementValue

        public MElementValue​(Properties ctx,
                             int C_ElementValue_ID,
                             String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_ElementValue_ID - ID or 0 for new
        trxName - transaction
      • MElementValue

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

        public MElementValue​(Properties ctx,
                             String Value,
                             String Name,
                             String Description,
                             String AccountType,
                             String AccountSign,
                             boolean IsDocControlled,
                             boolean IsSummary,
                             String trxName)
        Full Constructor
        Parameters:
        ctx - context
        Value - value
        Name - name
        Description - description
        AccountType - account type
        AccountSign - account sign
        IsDocControlled - doc controlled
        IsSummary - summary
        trxName - transaction
      • MElementValue

        public MElementValue​(X_I_ElementValue imp)
        Import Constructor
        Parameters:
        imp - import
      • MElementValue

        public MElementValue​(MElementValue copy)
        Parameters:
        copy -
    • Method Detail

      • set

        public void set​(X_I_ElementValue imp)
        Set/Update Settings from import
        Parameters:
        imp - import
      • isBalanceSheet

        public boolean isBalanceSheet()
        Is this a Balance Sheet Account
        Returns:
        boolean
      • isActiva

        public boolean isActiva()
        Is this an Activa Account
        Returns:
        boolean
      • isPassiva

        public boolean isPassiva()
        Is this a Passiva Account
        Returns:
        boolean
      • toStringX

        public String toStringX()
        Extended String Representation
        Returns:
        info
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success
      • afterDelete

        protected boolean afterDelete​(boolean success)
        Description copied from class: PO
        Executed after Delete operation.
        Overrides:
        afterDelete in class PO
        Parameters:
        success - true if record deleted
        Returns:
        true if delete is a success