Class X_C_AcctSchema

    • Constructor Detail

      • X_C_AcctSchema

        public X_C_AcctSchema​(Properties ctx,
                              int C_AcctSchema_ID,
                              String trxName)
        Standard Constructor
    • Method Detail

      • get_AccessLevel

        protected int get_AccessLevel()
        AccessLevel
        Specified by:
        get_AccessLevel in class PO
        Returns:
        2 - Client
      • initPO

        protected POInfo initPO​(Properties ctx)
        Load Meta Data
        Specified by:
        initPO in class PO
        Parameters:
        ctx - context
        Returns:
        POInfo
      • toString

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

        public void setAD_OrgOnly_ID​(int AD_OrgOnly_ID)
        Set Only Organization.
        Specified by:
        setAD_OrgOnly_ID in interface I_C_AcctSchema
        Parameters:
        AD_OrgOnly_ID - Create posting entries only for this organization
      • getAD_OrgOnly_ID

        public int getAD_OrgOnly_ID()
        Get Only Organization.
        Specified by:
        getAD_OrgOnly_ID in interface I_C_AcctSchema
        Returns:
        Create posting entries only for this organization
      • setAutoPeriodControl

        public void setAutoPeriodControl​(boolean AutoPeriodControl)
        Set Automatic Period Control.
        Specified by:
        setAutoPeriodControl in interface I_C_AcctSchema
        Parameters:
        AutoPeriodControl - If selected, the periods are automatically opened and closed
      • isAutoPeriodControl

        public boolean isAutoPeriodControl()
        Get Automatic Period Control.
        Specified by:
        isAutoPeriodControl in interface I_C_AcctSchema
        Returns:
        If selected, the periods are automatically opened and closed
      • setC_AcctSchema_ID

        public void setC_AcctSchema_ID​(int C_AcctSchema_ID)
        Set Accounting Schema.
        Specified by:
        setC_AcctSchema_ID in interface I_C_AcctSchema
        Parameters:
        C_AcctSchema_ID - Rules for accounting
      • getC_AcctSchema_ID

        public int getC_AcctSchema_ID()
        Get Accounting Schema.
        Specified by:
        getC_AcctSchema_ID in interface I_C_AcctSchema
        Returns:
        Rules for accounting
      • setC_AcctSchema_UU

        public void setC_AcctSchema_UU​(String C_AcctSchema_UU)
        Set C_AcctSchema_UU.
        Specified by:
        setC_AcctSchema_UU in interface I_C_AcctSchema
        Parameters:
        C_AcctSchema_UU - C_AcctSchema_UU
      • setC_Currency_ID

        public void setC_Currency_ID​(int C_Currency_ID)
        Set Currency.
        Specified by:
        setC_Currency_ID in interface I_C_AcctSchema
        Parameters:
        C_Currency_ID - The Currency for this record
      • getC_Currency_ID

        public int getC_Currency_ID()
        Get Currency.
        Specified by:
        getC_Currency_ID in interface I_C_AcctSchema
        Returns:
        The Currency for this record
      • setCommitmentType

        public void setCommitmentType​(String CommitmentType)
        Set Commitment Type.
        Specified by:
        setCommitmentType in interface I_C_AcctSchema
        Parameters:
        CommitmentType - Create Commitment and/or Reservations for Budget Control
      • getCommitmentType

        public String getCommitmentType()
        Get Commitment Type.
        Specified by:
        getCommitmentType in interface I_C_AcctSchema
        Returns:
        Create Commitment and/or Reservations for Budget Control
      • setCostingLevel

        public void setCostingLevel​(String CostingLevel)
        Set Costing Level.
        Specified by:
        setCostingLevel in interface I_C_AcctSchema
        Parameters:
        CostingLevel - The lowest level to accumulate Costing Information
      • getCostingLevel

        public String getCostingLevel()
        Get Costing Level.
        Specified by:
        getCostingLevel in interface I_C_AcctSchema
        Returns:
        The lowest level to accumulate Costing Information
      • setCostingMethod

        public void setCostingMethod​(String CostingMethod)
        Set Costing Method.
        Specified by:
        setCostingMethod in interface I_C_AcctSchema
        Parameters:
        CostingMethod - Indicates how Costs will be calculated
      • getCostingMethod

        public String getCostingMethod()
        Get Costing Method.
        Specified by:
        getCostingMethod in interface I_C_AcctSchema
        Returns:
        Indicates how Costs will be calculated
      • setC_Period_ID

        public void setC_Period_ID​(int C_Period_ID)
        Set Period.
        Specified by:
        setC_Period_ID in interface I_C_AcctSchema
        Parameters:
        C_Period_ID - Period of the Calendar
      • getC_Period_ID

        public int getC_Period_ID()
        Get Period.
        Specified by:
        getC_Period_ID in interface I_C_AcctSchema
        Returns:
        Period of the Calendar
      • setDescription

        public void setDescription​(String Description)
        Set Description.
        Specified by:
        setDescription in interface I_C_AcctSchema
        Parameters:
        Description - Optional short description of the record
      • getDescription

        public String getDescription()
        Get Description.
        Specified by:
        getDescription in interface I_C_AcctSchema
        Returns:
        Optional short description of the record
      • setGAAP

        public void setGAAP​(String GAAP)
        Set GAAP.
        Specified by:
        setGAAP in interface I_C_AcctSchema
        Parameters:
        GAAP - Generally Accepted Accounting Principles
      • getGAAP

        public String getGAAP()
        Get GAAP.
        Specified by:
        getGAAP in interface I_C_AcctSchema
        Returns:
        Generally Accepted Accounting Principles
      • setHasAlias

        public void setHasAlias​(boolean HasAlias)
        Set Use Account Alias.
        Specified by:
        setHasAlias in interface I_C_AcctSchema
        Parameters:
        HasAlias - Ability to select (partial) account combinations by an Alias
      • isHasAlias

        public boolean isHasAlias()
        Get Use Account Alias.
        Specified by:
        isHasAlias in interface I_C_AcctSchema
        Returns:
        Ability to select (partial) account combinations by an Alias
      • setHasCombination

        public void setHasCombination​(boolean HasCombination)
        Set Use Account Combination Control.
        Specified by:
        setHasCombination in interface I_C_AcctSchema
        Parameters:
        HasCombination - Combination of account elements are checked
      • isHasCombination

        public boolean isHasCombination()
        Get Use Account Combination Control.
        Specified by:
        isHasCombination in interface I_C_AcctSchema
        Returns:
        Combination of account elements are checked
      • setIsAccrual

        public void setIsAccrual​(boolean IsAccrual)
        Set Accrual.
        Specified by:
        setIsAccrual in interface I_C_AcctSchema
        Parameters:
        IsAccrual - Indicates if Accrual or Cash Based accounting will be used
      • isAccrual

        public boolean isAccrual()
        Get Accrual.
        Specified by:
        isAccrual in interface I_C_AcctSchema
        Returns:
        Indicates if Accrual or Cash Based accounting will be used
      • setIsAdjustCOGS

        public void setIsAdjustCOGS​(boolean IsAdjustCOGS)
        Set Adjust COGS.
        Specified by:
        setIsAdjustCOGS in interface I_C_AcctSchema
        Parameters:
        IsAdjustCOGS - Adjust Cost of Good Sold
      • isAdjustCOGS

        public boolean isAdjustCOGS()
        Get Adjust COGS.
        Specified by:
        isAdjustCOGS in interface I_C_AcctSchema
        Returns:
        Adjust Cost of Good Sold
      • setIsAllowNegativePosting

        public void setIsAllowNegativePosting​(boolean IsAllowNegativePosting)
        Set Allow Negative Posting.
        Specified by:
        setIsAllowNegativePosting in interface I_C_AcctSchema
        Parameters:
        IsAllowNegativePosting - Allow to post negative accounting values
      • isAllowNegativePosting

        public boolean isAllowNegativePosting()
        Get Allow Negative Posting.
        Specified by:
        isAllowNegativePosting in interface I_C_AcctSchema
        Returns:
        Allow to post negative accounting values
      • setIsDiscountCorrectsTax

        public void setIsDiscountCorrectsTax​(boolean IsDiscountCorrectsTax)
        Set Correct tax for Discounts/Charges.
        Specified by:
        setIsDiscountCorrectsTax in interface I_C_AcctSchema
        Parameters:
        IsDiscountCorrectsTax - Correct the tax for payment discount and charges
      • isDiscountCorrectsTax

        public boolean isDiscountCorrectsTax()
        Get Correct tax for Discounts/Charges.
        Specified by:
        isDiscountCorrectsTax in interface I_C_AcctSchema
        Returns:
        Correct the tax for payment discount and charges
      • setIsExplicitCostAdjustment

        public void setIsExplicitCostAdjustment​(boolean IsExplicitCostAdjustment)
        Set Explicit Cost Adjustment.
        Specified by:
        setIsExplicitCostAdjustment in interface I_C_AcctSchema
        Parameters:
        IsExplicitCostAdjustment - Post the cost adjustment explicitly
      • isExplicitCostAdjustment

        public boolean isExplicitCostAdjustment()
        Get Explicit Cost Adjustment.
        Specified by:
        isExplicitCostAdjustment in interface I_C_AcctSchema
        Returns:
        Post the cost adjustment explicitly
      • setIsPostIfClearingEqual

        public void setIsPostIfClearingEqual​(boolean IsPostIfClearingEqual)
        Set Post if Clearing Equal.
        Specified by:
        setIsPostIfClearingEqual in interface I_C_AcctSchema
        Parameters:
        IsPostIfClearingEqual - This flag controls if Adempiere must post when clearing (transit) and final accounts are the same
      • isPostIfClearingEqual

        public boolean isPostIfClearingEqual()
        Get Post if Clearing Equal.
        Specified by:
        isPostIfClearingEqual in interface I_C_AcctSchema
        Returns:
        This flag controls if Adempiere must post when clearing (transit) and final accounts are the same
      • setIsPostServices

        public void setIsPostServices​(boolean IsPostServices)
        Set Post Services Separately.
        Specified by:
        setIsPostServices in interface I_C_AcctSchema
        Parameters:
        IsPostServices - Differentiate between Services and Product Receivable/Payables
      • isPostServices

        public boolean isPostServices()
        Get Post Services Separately.
        Specified by:
        isPostServices in interface I_C_AcctSchema
        Returns:
        Differentiate between Services and Product Receivable/Payables
      • setIsTradeDiscountPosted

        public void setIsTradeDiscountPosted​(boolean IsTradeDiscountPosted)
        Set Post Trade Discount.
        Specified by:
        setIsTradeDiscountPosted in interface I_C_AcctSchema
        Parameters:
        IsTradeDiscountPosted - Generate postings for trade discounts
      • isTradeDiscountPosted

        public boolean isTradeDiscountPosted()
        Get Post Trade Discount.
        Specified by:
        isTradeDiscountPosted in interface I_C_AcctSchema
        Returns:
        Generate postings for trade discounts
      • setM_CostType_ID

        public void setM_CostType_ID​(int M_CostType_ID)
        Set Cost Type.
        Specified by:
        setM_CostType_ID in interface I_C_AcctSchema
        Parameters:
        M_CostType_ID - Type of Cost (e.g. Current, Plan, Future)
      • getM_CostType_ID

        public int getM_CostType_ID()
        Get Cost Type.
        Specified by:
        getM_CostType_ID in interface I_C_AcctSchema
        Returns:
        Type of Cost (e.g. Current, Plan, Future)
      • setName

        public void setName​(String Name)
        Set Name.
        Specified by:
        setName in interface I_C_AcctSchema
        Parameters:
        Name - Alphanumeric identifier of the entity
      • getName

        public String getName()
        Get Name.
        Specified by:
        getName in interface I_C_AcctSchema
        Returns:
        Alphanumeric identifier of the entity
      • getKeyNamePair

        public KeyNamePair getKeyNamePair()
        Get Record ID/ColumnName
        Returns:
        ID/ColumnName pair
      • setPeriod_OpenFuture

        public void setPeriod_OpenFuture​(int Period_OpenFuture)
        Set Future Days.
        Specified by:
        setPeriod_OpenFuture in interface I_C_AcctSchema
        Parameters:
        Period_OpenFuture - Number of days to be able to post to a future date (based on system date)
      • getPeriod_OpenFuture

        public int getPeriod_OpenFuture()
        Get Future Days.
        Specified by:
        getPeriod_OpenFuture in interface I_C_AcctSchema
        Returns:
        Number of days to be able to post to a future date (based on system date)
      • setPeriod_OpenHistory

        public void setPeriod_OpenHistory​(int Period_OpenHistory)
        Set History Days.
        Specified by:
        setPeriod_OpenHistory in interface I_C_AcctSchema
        Parameters:
        Period_OpenHistory - Number of days to be able to post in the past (based on system date)
      • getPeriod_OpenHistory

        public int getPeriod_OpenHistory()
        Get History Days.
        Specified by:
        getPeriod_OpenHistory in interface I_C_AcctSchema
        Returns:
        Number of days to be able to post in the past (based on system date)
      • setProcessing

        public void setProcessing​(boolean Processing)
        Set Process Now.
        Specified by:
        setProcessing in interface I_C_AcctSchema
        Parameters:
        Processing - Process Now
      • isProcessing

        public boolean isProcessing()
        Get Process Now.
        Specified by:
        isProcessing in interface I_C_AcctSchema
        Returns:
        Process Now
      • setSeparator

        public void setSeparator​(String Separator)
        Set Element Separator.
        Specified by:
        setSeparator in interface I_C_AcctSchema
        Parameters:
        Separator - Element Separator
      • setTaxCorrectionType

        public void setTaxCorrectionType​(String TaxCorrectionType)
        Set Tax Correction.
        Specified by:
        setTaxCorrectionType in interface I_C_AcctSchema
        Parameters:
        TaxCorrectionType - Type of Tax Correction