⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x_c_acctschema.java

📁 大家共享愉快, 共享愉快, 共享愉快, 共享愉快,共享愉快
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
public static final String GAAP_FrenchAccountingStandard = "FR";
/** International GAAP = UN */
public static final String GAAP_InternationalGAAP = "UN";
/** US GAAP = US */
public static final String GAAP_USGAAP = "US";
/** Custom Accounting Rules = XX */
public static final String GAAP_CustomAccountingRules = "XX";
/** Set GAAP.
Generally Accepted Accounting Principles */
public void setGAAP (String GAAP)
{
if (GAAP == null) throw new IllegalArgumentException ("GAAP is mandatory");
if (GAAP.equals("DE") || GAAP.equals("FR") || GAAP.equals("UN") || GAAP.equals("US") || GAAP.equals("XX"));
 else throw new IllegalArgumentException ("GAAP Invalid value - " + GAAP + " - Reference_ID=123 - DE - FR - UN - US - XX");
if (GAAP.length() > 2)
{
log.warning("Length > 2 - truncated");
GAAP = GAAP.substring(0,1);
}
set_Value ("GAAP", GAAP);
}
/** Get GAAP.
Generally Accepted Accounting Principles */
public String getGAAP() 
{
return (String)get_Value("GAAP");
}
/** Set Use Account Alias.
Ability to select (partial) account combinations by an Alias */
public void setHasAlias (boolean HasAlias)
{
set_Value ("HasAlias", new Boolean(HasAlias));
}
/** Get Use Account Alias.
Ability to select (partial) account combinations by an Alias */
public boolean isHasAlias() 
{
Object oo = get_Value("HasAlias");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Use Account Combination Control.
Combination of account elements are checked */
public void setHasCombination (boolean HasCombination)
{
set_Value ("HasCombination", new Boolean(HasCombination));
}
/** Get Use Account Combination Control.
Combination of account elements are checked */
public boolean isHasCombination() 
{
Object oo = get_Value("HasCombination");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Accrual.
Indicates if Accrual or Cash Based accounting will be used */
public void setIsAccrual (boolean IsAccrual)
{
set_Value ("IsAccrual", new Boolean(IsAccrual));
}
/** Get Accrual.
Indicates if Accrual or Cash Based accounting will be used */
public boolean isAccrual() 
{
Object oo = get_Value("IsAccrual");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Adjust COGS.
Adjust Cost of Good Sold */
public void setIsAdjustCOGS (boolean IsAdjustCOGS)
{
set_Value ("IsAdjustCOGS", new Boolean(IsAdjustCOGS));
}
/** Get Adjust COGS.
Adjust Cost of Good Sold */
public boolean isAdjustCOGS() 
{
Object oo = get_Value("IsAdjustCOGS");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Correct tax for Discounts/Charges.
Correct the tax for payment discount and charges */
public void setIsDiscountCorrectsTax (boolean IsDiscountCorrectsTax)
{
set_Value ("IsDiscountCorrectsTax", new Boolean(IsDiscountCorrectsTax));
}
/** Get Correct tax for Discounts/Charges.
Correct the tax for payment discount and charges */
public boolean isDiscountCorrectsTax() 
{
Object oo = get_Value("IsDiscountCorrectsTax");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Explicit Cost Adjustment.
Post the cost adjustment explicitly */
public void setIsExplicitCostAdjustment (boolean IsExplicitCostAdjustment)
{
set_Value ("IsExplicitCostAdjustment", new Boolean(IsExplicitCostAdjustment));
}
/** Get Explicit Cost Adjustment.
Post the cost adjustment explicitly */
public boolean isExplicitCostAdjustment() 
{
Object oo = get_Value("IsExplicitCostAdjustment");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Post Services Separately.
Differentiate between Services and Product Receivable/Payables */
public void setIsPostServices (boolean IsPostServices)
{
set_Value ("IsPostServices", new Boolean(IsPostServices));
}
/** Get Post Services Separately.
Differentiate between Services and Product Receivable/Payables */
public boolean isPostServices() 
{
Object oo = get_Value("IsPostServices");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Post Trade Discount.
Generate postings for trade discounts */
public void setIsTradeDiscountPosted (boolean IsTradeDiscountPosted)
{
set_Value ("IsTradeDiscountPosted", new Boolean(IsTradeDiscountPosted));
}
/** Get Post Trade Discount.
Generate postings for trade discounts */
public boolean isTradeDiscountPosted() 
{
Object oo = get_Value("IsTradeDiscountPosted");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Cost Type.
Type of Cost (e.g. Current, Plan, Future) */
public void setM_CostType_ID (int M_CostType_ID)
{
if (M_CostType_ID < 1) throw new IllegalArgumentException ("M_CostType_ID is mandatory.");
set_Value ("M_CostType_ID", new Integer(M_CostType_ID));
}
/** Get Cost Type.
Type of Cost (e.g. Current, Plan, Future) */
public int getM_CostType_ID() 
{
Integer ii = (Integer)get_Value("M_CostType_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Name.
Alphanumeric identifier of the entity */
public void setName (String Name)
{
if (Name == null) throw new IllegalArgumentException ("Name is mandatory.");
if (Name.length() > 60)
{
log.warning("Length > 60 - truncated");
Name = Name.substring(0,59);
}
set_Value ("Name", Name);
}
/** Get Name.
Alphanumeric identifier of the entity */
public String getName() 
{
return (String)get_Value("Name");
}
public KeyNamePair getKeyNamePair() 
{
return new KeyNamePair(get_ID(), getName());
}
/** Set Future Days.
Number of days to be able to post to a future date (based on system date) */
public void setPeriod_OpenFuture (int Period_OpenFuture)
{
set_Value ("Period_OpenFuture", new Integer(Period_OpenFuture));
}
/** Get Future Days.
Number of days to be able to post to a future date (based on system date) */
public int getPeriod_OpenFuture() 
{
Integer ii = (Integer)get_Value("Period_OpenFuture");
if (ii == null) return 0;
return ii.intValue();
}
/** Set History Days.
Number of days to be able to post in the past (based on system date) */
public void setPeriod_OpenHistory (int Period_OpenHistory)
{
set_Value ("Period_OpenHistory", new Integer(Period_OpenHistory));
}
/** Get History Days.
Number of days to be able to post in the past (based on system date) */
public int getPeriod_OpenHistory() 
{
Integer ii = (Integer)get_Value("Period_OpenHistory");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Process Now */
public void setProcessing (boolean Processing)
{
set_Value ("Processing", new Boolean(Processing));
}
/** Get Process Now */
public boolean isProcessing() 
{
Object oo = get_Value("Processing");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Element Separator.
Element Separator */
public void setSeparator (String Separator)
{
if (Separator == null) throw new IllegalArgumentException ("Separator is mandatory.");
if (Separator.length() > 1)
{
log.warning("Length > 1 - truncated");
Separator = Separator.substring(0,0);
}
set_Value ("Separator", Separator);
}
/** Get Element Separator.
Element Separator */
public String getSeparator() 
{
return (String)get_Value("Separator");
}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -