1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_AcctSchema extends PO 11 { 12 13 public X_C_AcctSchema (Properties ctx, int C_AcctSchema_ID) 14 { 15 super (ctx, C_AcctSchema_ID); 16 32 } 33 34 public X_C_AcctSchema (Properties ctx, ResultSet rs) 35 { 36 super (ctx, rs); 37 } 38 39 protected POInfo initPO (Properties ctx) 40 { 41 int AD_Table_ID = 265; 42 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 43 return poi; 44 } 45 public String toString() 46 { 47 StringBuffer sb = new StringBuffer ("X_C_AcctSchema[").append(getID()).append("]"); 48 return sb.toString(); 49 } 50 public void setAutoPeriodControl (boolean AutoPeriodControl) 51 { 52 setValue ("AutoPeriodControl", new Boolean (AutoPeriodControl)); 53 } 54 public boolean isAutoPeriodControl() 55 { 56 Boolean bb = (Boolean )getValue("AutoPeriodControl"); 57 if (bb != null) return bb.booleanValue(); 58 return false; 59 } 60 void setC_AcctSchema_ID (int C_AcctSchema_ID) 61 { 62 setValueNoCheck ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 63 } 64 public int getC_AcctSchema_ID() 65 { 66 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 67 if (ii == null) return 0; 68 return ii.intValue(); 69 } 70 public void setC_Currency_ID (int C_Currency_ID) 71 { 72 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 73 } 74 public int getC_Currency_ID() 75 { 76 Integer ii = (Integer )getValue("C_Currency_ID"); 77 if (ii == null) return 0; 78 return ii.intValue(); 79 } 80 void setC_Period_ID (int C_Period_ID) 81 { 82 if (C_Period_ID == 0) setValueNoCheck ("C_Period_ID", null); 83 else 84 setValueNoCheck ("C_Period_ID", new Integer (C_Period_ID)); 85 } 86 public int getC_Period_ID() 87 { 88 Integer ii = (Integer )getValue("C_Period_ID"); 89 if (ii == null) return 0; 90 return ii.intValue(); 91 } 92 public static final String COSTINGMETHOD_StandardCosting = "S"; 93 public static final String COSTINGMETHOD_Average = "A"; 94 public static final String COSTINGMETHOD_Lifo = "L"; 95 public static final String COSTINGMETHOD_Fifo = "F"; 96 public static final String COSTINGMETHOD_LastPOPrice = "P"; 97 public void setCostingMethod (String CostingMethod) 98 { 99 if (CostingMethod.equals("S") || CostingMethod.equals("A") || CostingMethod.equals("L") || CostingMethod.equals("F") || CostingMethod.equals("P")); 100 else throw new IllegalArgumentException ("CostingMethod Invalid value - Reference_ID=122 - S - A - L - F - P"); 101 if (CostingMethod == null) throw new IllegalArgumentException ("CostingMethod is mandatory"); 102 setValue ("CostingMethod", CostingMethod); 103 } 104 public String getCostingMethod() 105 { 106 return (String )getValue("CostingMethod"); 107 } 108 public void setDescription (String Description) 109 { 110 setValue ("Description", Description); 111 } 112 public String getDescription() 113 { 114 return (String )getValue("Description"); 115 } 116 public static final String GAAP_FrenchAccountingStandard = "FR"; 117 public static final String GAAP_CustomAccountingRules = "XX"; 118 public static final String GAAP_InternationalGAAP = "UN"; 119 public static final String GAAP_USGAAP = "US"; 120 public static final String GAAP_GermanHGB = "DE"; 121 public void setGAAP (String GAAP) 122 { 123 if (GAAP.equals("FR") || GAAP.equals("XX") || GAAP.equals("UN") || GAAP.equals("US") || GAAP.equals("DE")); 124 else throw new IllegalArgumentException ("GAAP Invalid value - Reference_ID=123 - FR - XX - UN - US - DE"); 125 if (GAAP == null) throw new IllegalArgumentException ("GAAP is mandatory"); 126 setValue ("GAAP", GAAP); 127 } 128 public String getGAAP() 129 { 130 return (String )getValue("GAAP"); 131 } 132 public void setHasAlias (boolean HasAlias) 133 { 134 setValue ("HasAlias", new Boolean (HasAlias)); 135 } 136 public boolean isHasAlias() 137 { 138 Boolean bb = (Boolean )getValue("HasAlias"); 139 if (bb != null) return bb.booleanValue(); 140 return false; 141 } 142 public void setHasCombination (boolean HasCombination) 143 { 144 setValue ("HasCombination", new Boolean (HasCombination)); 145 } 146 public boolean isHasCombination() 147 { 148 Boolean bb = (Boolean )getValue("HasCombination"); 149 if (bb != null) return bb.booleanValue(); 150 return false; 151 } 152 public void setIsAccrual (boolean IsAccrual) 153 { 154 setValue ("IsAccrual", new Boolean (IsAccrual)); 155 } 156 public boolean isAccrual() 157 { 158 Boolean bb = (Boolean )getValue("IsAccrual"); 159 if (bb != null) return bb.booleanValue(); 160 return false; 161 } 162 public void setIsDiscountCorrectsTax (boolean IsDiscountCorrectsTax) 163 { 164 setValue ("IsDiscountCorrectsTax", new Boolean (IsDiscountCorrectsTax)); 165 } 166 public boolean isDiscountCorrectsTax() 167 { 168 Boolean bb = (Boolean )getValue("IsDiscountCorrectsTax"); 169 if (bb != null) return bb.booleanValue(); 170 return false; 171 } 172 public void setIsTradeDiscountPosted (boolean IsTradeDiscountPosted) 173 { 174 setValue ("IsTradeDiscountPosted", new Boolean (IsTradeDiscountPosted)); 175 } 176 public boolean isTradeDiscountPosted() 177 { 178 Boolean bb = (Boolean )getValue("IsTradeDiscountPosted"); 179 if (bb != null) return bb.booleanValue(); 180 return false; 181 } 182 public void setName (String Name) 183 { 184 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 185 setValue ("Name", Name); 186 } 187 public String getName() 188 { 189 return (String )getValue("Name"); 190 } 191 public void setPeriod_OpenFuture (int Period_OpenFuture) 192 { 193 setValue ("Period_OpenFuture", new Integer (Period_OpenFuture)); 194 } 195 public int getPeriod_OpenFuture() 196 { 197 Integer ii = (Integer )getValue("Period_OpenFuture"); 198 if (ii == null) return 0; 199 return ii.intValue(); 200 } 201 public void setPeriod_OpenHistory (int Period_OpenHistory) 202 { 203 setValue ("Period_OpenHistory", new Integer (Period_OpenHistory)); 204 } 205 public int getPeriod_OpenHistory() 206 { 207 Integer ii = (Integer )getValue("Period_OpenHistory"); 208 if (ii == null) return 0; 209 return ii.intValue(); 210 } 211 public void setSeparator (String Separator) 212 { 213 if (Separator == null) throw new IllegalArgumentException ("Separator is mandatory"); 214 setValue ("Separator", Separator); 215 } 216 public String getSeparator() 217 { 218 return (String )getValue("Separator"); 219 } 220 } 221
| Popular Tags
|