Class MSetup

java.lang.Object
org.compiere.model.MSetup

public final class MSetup extends Object
Initial Setup Model
Version:
$Id: MSetup.java,v 1.3 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • FR [ 1795384 ] Setup: create default accounts records is too rigid, Carlos Ruiz - globalqss
  • Setup correctly IsSOTrx for return documents
    • Field Details

    • Constructor Details

      • MSetup

        public MSetup(Properties ctx, int WindowNo)
        Constructor
        Parameters:
        ctx - context
        WindowNo - window
      • MSetup

        public MSetup(Properties ctx, int WindowNo, boolean dryRun)
        Constructor
        Parameters:
        ctx - context
        WindowNo - window
    • Method Details

      • createClient

        public boolean createClient(String clientName, String orgValue, String orgName, String userClient, String userOrg, String phone, String phone2, String fax, String eMail, String taxID, String adminEmail, String userEmail, boolean isSetInitialPassword)
        Create Client Info.
        - Client, Trees, Org, Role, User, User_Role
        Parameters:
        clientName - client name
        orgValue - org Value
        orgName - org name
        userClient - client user name
        userOrg - org user name
        phone -
        phone2 -
        fax -
        eMail -
        taxID -
        adminEmail -
        userEmail -
        isSetInitialPassword -
        Returns:
        true if created
      • createAccounting

        @Deprecated public boolean createAccounting(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, File AccountingFile)
        Deprecated.
        preserving backward compatibility with swing client
        Parameters:
        currency -
        hasProduct -
        hasBPartner -
        hasProject -
        hasMCampaign -
        hasSRegion -
        AccountingFile -
        Returns:
        true if created
      • createAccounting

        public boolean createAccounting(KeyNamePair currency, boolean hasProduct, boolean hasBPartner, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, boolean hasActivity, File AccountingFile, boolean useDefaultCoA, boolean inactivateDefaults)
          Create Accounting elements.
          - Calendar
          - Account Trees
          - Account Values
          - Accounting Schema
          - Default Accounts
          
        Parameters:
        currency - currency
        hasProduct - has product segment
        hasBPartner - has bp segment
        hasProject - has project segment
        hasMCampaign - has campaign segment
        hasSRegion - has sales region segment
        hasActivity - has activity segment
        AccountingFile - accounting file
        useDefaultCoA - use the Default CoA (load and group summary account)
        inactivateDefaults - inactivate the default accounts after created
        Returns:
        true if created
      • createEntities

        public boolean createEntities(int C_Country_ID, String City, int C_Region_ID, int C_Currency_ID, String postal, String address1)
          Create default main entities.
          - Dimensions, BPGroup and Product Category
          - Location, Locator, Warehouse
          - PriceList
          - Cashbook, PaymentTerm
          
        Parameters:
        C_Country_ID - country
        City - city
        C_Region_ID - region
        C_Currency_ID - currency
        postal -
        address1 -
        Returns:
        true if created
      • getAD_Client_ID

        public int getAD_Client_ID()
        Get Client
        Returns:
        AD_Client_ID
      • getAD_Org_ID

        public int getAD_Org_ID()
        Get AD_Org_ID
        Returns:
        AD_Org_ID
      • getAD_User_ID

        public int getAD_User_ID()
        Get AD_User_ID
        Returns:
        AD_User_ID
      • getInfo

        public String getInfo()
        Get Info
        Returns:
        Info
      • rollback

        public void rollback()
        Rollback Internal Transaction
      • getTrxName

        public String getTrxName()
        Returns:
        trxName