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_I_Invoice extends PO 11 { 12 13 public X_I_Invoice (Properties ctx, int I_Invoice_ID) 14 { 15 super (ctx, I_Invoice_ID); 16 26 } 27 28 public X_I_Invoice (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 598; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_I_Invoice[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) 45 { 46 if (AD_OrgTrx_ID == 0) setValue ("AD_OrgTrx_ID", null); 47 else 48 setValue ("AD_OrgTrx_ID", new Integer (AD_OrgTrx_ID)); 49 } 50 public int getAD_OrgTrx_ID() 51 { 52 Integer ii = (Integer )getValue("AD_OrgTrx_ID"); 53 if (ii == null) return 0; 54 return ii.intValue(); 55 } 56 public void setAD_User_ID (int AD_User_ID) 57 { 58 if (AD_User_ID == 0) setValue ("AD_User_ID", null); 59 else 60 setValue ("AD_User_ID", new Integer (AD_User_ID)); 61 } 62 public int getAD_User_ID() 63 { 64 Integer ii = (Integer )getValue("AD_User_ID"); 65 if (ii == null) return 0; 66 return ii.intValue(); 67 } 68 public void setAddress1 (String Address1) 69 { 70 setValue ("Address1", Address1); 71 } 72 public String getAddress1() 73 { 74 return (String )getValue("Address1"); 75 } 76 public void setAddress2 (String Address2) 77 { 78 setValue ("Address2", Address2); 79 } 80 public String getAddress2() 81 { 82 return (String )getValue("Address2"); 83 } 84 public void setBPartnerValue (String BPartnerValue) 85 { 86 setValue ("BPartnerValue", BPartnerValue); 87 } 88 public String getBPartnerValue() 89 { 90 return (String )getValue("BPartnerValue"); 91 } 92 public void setC_Activity_ID (int C_Activity_ID) 93 { 94 if (C_Activity_ID == 0) setValue ("C_Activity_ID", null); 95 else 96 setValue ("C_Activity_ID", new Integer (C_Activity_ID)); 97 } 98 public int getC_Activity_ID() 99 { 100 Integer ii = (Integer )getValue("C_Activity_ID"); 101 if (ii == null) return 0; 102 return ii.intValue(); 103 } 104 public void setC_BPartner_ID (int C_BPartner_ID) 105 { 106 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 107 else 108 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 109 } 110 public int getC_BPartner_ID() 111 { 112 Integer ii = (Integer )getValue("C_BPartner_ID"); 113 if (ii == null) return 0; 114 return ii.intValue(); 115 } 116 public void setC_BPartner_Location_ID (int C_BPartner_Location_ID) 117 { 118 if (C_BPartner_Location_ID == 0) setValue ("C_BPartner_Location_ID", null); 119 else 120 setValue ("C_BPartner_Location_ID", new Integer (C_BPartner_Location_ID)); 121 } 122 public int getC_BPartner_Location_ID() 123 { 124 Integer ii = (Integer )getValue("C_BPartner_Location_ID"); 125 if (ii == null) return 0; 126 return ii.intValue(); 127 } 128 public void setC_Campaign_ID (int C_Campaign_ID) 129 { 130 if (C_Campaign_ID == 0) setValue ("C_Campaign_ID", null); 131 else 132 setValue ("C_Campaign_ID", new Integer (C_Campaign_ID)); 133 } 134 public int getC_Campaign_ID() 135 { 136 Integer ii = (Integer )getValue("C_Campaign_ID"); 137 if (ii == null) return 0; 138 return ii.intValue(); 139 } 140 public void setC_Country_ID (int C_Country_ID) 141 { 142 if (C_Country_ID == 0) setValue ("C_Country_ID", null); 143 else 144 setValue ("C_Country_ID", new Integer (C_Country_ID)); 145 } 146 public int getC_Country_ID() 147 { 148 Integer ii = (Integer )getValue("C_Country_ID"); 149 if (ii == null) return 0; 150 return ii.intValue(); 151 } 152 public void setC_Currency_ID (int C_Currency_ID) 153 { 154 if (C_Currency_ID == 0) setValue ("C_Currency_ID", null); 155 else 156 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 157 } 158 public int getC_Currency_ID() 159 { 160 Integer ii = (Integer )getValue("C_Currency_ID"); 161 if (ii == null) return 0; 162 return ii.intValue(); 163 } 164 public void setC_DocType_ID (int C_DocType_ID) 165 { 166 if (C_DocType_ID == 0) setValue ("C_DocType_ID", null); 167 else 168 setValue ("C_DocType_ID", new Integer (C_DocType_ID)); 169 } 170 public int getC_DocType_ID() 171 { 172 Integer ii = (Integer )getValue("C_DocType_ID"); 173 if (ii == null) return 0; 174 return ii.intValue(); 175 } 176 public void setC_InvoiceLine_ID (int C_InvoiceLine_ID) 177 { 178 if (C_InvoiceLine_ID == 0) setValue ("C_InvoiceLine_ID", null); 179 else 180 setValue ("C_InvoiceLine_ID", new Integer (C_InvoiceLine_ID)); 181 } 182 public int getC_InvoiceLine_ID() 183 { 184 Integer ii = (Integer )getValue("C_InvoiceLine_ID"); 185 if (ii == null) return 0; 186 return ii.intValue(); 187 } 188 public void setC_Invoice_ID (int C_Invoice_ID) 189 { 190 if (C_Invoice_ID == 0) setValue ("C_Invoice_ID", null); 191 else 192 setValue ("C_Invoice_ID", new Integer (C_Invoice_ID)); 193 } 194 public int getC_Invoice_ID() 195 { 196 Integer ii = (Integer )getValue("C_Invoice_ID"); 197 if (ii == null) return 0; 198 return ii.intValue(); 199 } 200 public void setC_Location_ID (int C_Location_ID) 201 { 202 if (C_Location_ID == 0) setValue ("C_Location_ID", null); 203 else 204 setValue ("C_Location_ID", new Integer (C_Location_ID)); 205 } 206 public int getC_Location_ID() 207 { 208 Integer ii = (Integer )getValue("C_Location_ID"); 209 if (ii == null) return 0; 210 return ii.intValue(); 211 } 212 public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) 213 { 214 if (C_PaymentTerm_ID == 0) setValue ("C_PaymentTerm_ID", null); 215 else 216 setValue ("C_PaymentTerm_ID", new Integer (C_PaymentTerm_ID)); 217 } 218 public int getC_PaymentTerm_ID() 219 { 220 Integer ii = (Integer )getValue("C_PaymentTerm_ID"); 221 if (ii == null) return 0; 222 return ii.intValue(); 223 } 224 public void setC_Project_ID (int C_Project_ID) 225 { 226 if (C_Project_ID == 0) setValue ("C_Project_ID", null); 227 else 228 setValue ("C_Project_ID", new Integer (C_Project_ID)); 229 } 230 public int getC_Project_ID() 231 { 232 Integer ii = (Integer )getValue("C_Project_ID"); 233 if (ii == null) return 0; 234 return ii.intValue(); 235 } 236 public void setC_Region_ID (int C_Region_ID) 237 { 238 if (C_Region_ID == 0) setValue ("C_Region_ID", null); 239 else 240 setValue ("C_Region_ID", new Integer (C_Region_ID)); 241 } 242 public int getC_Region_ID() 243 { 244 Integer ii = (Integer )getValue("C_Region_ID"); 245 if (ii == null) return 0; 246 return ii.intValue(); 247 } 248 public void setC_Tax_ID (int C_Tax_ID) 249 { 250 if (C_Tax_ID == 0) setValue ("C_Tax_ID", null); 251 else 252 setValue ("C_Tax_ID", new Integer (C_Tax_ID)); 253 } 254 public int getC_Tax_ID() 255 { 256 Integer ii = (Integer )getValue("C_Tax_ID"); 257 if (ii == null) return 0; 258 return ii.intValue(); 259 } 260 public void setCity (String City) 261 { 262 setValue ("City", City); 263 } 264 public String getCity() 265 { 266 return (String )getValue("City"); 267 } 268 public void setContactName (String ContactName) 269 { 270 setValue ("ContactName", ContactName); 271 } 272 public String getContactName() 273 { 274 return (String )getValue("ContactName"); 275 } 276 public void setCountryCode (boolean CountryCode) 277 { 278 setValue ("CountryCode", new Boolean (CountryCode)); 279 } 280 public boolean isCountryCode() 281 { 282 Boolean bb = (Boolean )getValue("CountryCode"); 283 if (bb != null) return bb.booleanValue(); 284 return false; 285 } 286 public void setDateAcct (Timestamp DateAcct) 287 { 288 setValue ("DateAcct", DateAcct); 289 } 290 public Timestamp getDateAcct() 291 { 292 return (Timestamp)getValue("DateAcct"); 293 } 294 public void setDateInvoiced (Timestamp DateInvoiced) 295 { 296 setValue ("DateInvoiced", DateInvoiced); 297 } 298 public Timestamp getDateInvoiced() 299 { 300 return (Timestamp)getValue("DateInvoiced"); 301 } 302 public void setDescription (String Description) 303 { 304 setValue ("Description", Description); 305 } 306 public String getDescription() 307 { 308 return (String )getValue("Description"); 309 } 310 public void setDocTypeName (String DocTypeName) 311 { 312 setValue ("DocTypeName", DocTypeName); 313 } 314 public String getDocTypeName() 315 { 316 return (String )getValue("DocTypeName"); 317 } 318 public void setDocumentNo (String DocumentNo) 319 { 320 setValue ("DocumentNo", DocumentNo); 321 } 322 public String getDocumentNo() 323 { 324 return (String )getValue("DocumentNo"); 325 } 326 public void setEmail (String Email) 327 { 328 setValue ("Email", Email); 329 } 330 public String getEmail() 331 { 332 return (String )getValue("Email"); 333 } 334 public void setI_ErrorMsg (String I_ErrorMsg) 335 { 336 setValue ("I_ErrorMsg", I_ErrorMsg); 337 } 338 public String getI_ErrorMsg() 339 { 340 return (String )getValue("I_ErrorMsg"); 341 } 342 void setI_Invoice_ID (int I_Invoice_ID) 343 { 344 setValueNoCheck ("I_Invoice_ID", new Integer (I_Invoice_ID)); 345 } 346 public int getI_Invoice_ID() 347 { 348 Integer ii = (Integer )getValue("I_Invoice_ID"); 349 if (ii == null) return 0; 350 return ii.intValue(); 351 } 352 public void setI_IsImported (boolean I_IsImported) 353 { 354 setValue ("I_IsImported", new Boolean (I_IsImported)); 355 } 356 public boolean isI_IsImported() 357 { 358 Boolean bb = (Boolean )getValue("I_IsImported"); 359 if (bb != null) return bb.booleanValue(); 360 return false; 361 } 362 public void setIsSOTrx (boolean IsSOTrx) 363 { 364 setValue ("IsSOTrx", new Boolean (IsSOTrx)); 365 } 366 public boolean isSOTrx() 367 { 368 Boolean bb = (Boolean )getValue("IsSOTrx"); 369 if (bb != null) return bb.booleanValue(); 370 return false; 371 } 372 public void setLineDescription (String LineDescription) 373 { 374 setValue ("LineDescription", LineDescription); 375 } 376 public String getLineDescription() 377 { 378 return (String )getValue("LineDescription"); 379 } 380 public void setM_PriceList_ID (int M_PriceList_ID) 381 { 382 if (M_PriceList_ID == 0) setValue ("M_PriceList_ID", null); 383 else 384 setValue ("M_PriceList_ID", new Integer (M_PriceList_ID)); 385 } 386 public int getM_PriceList_ID() 387 { 388 Integer ii = (Integer )getValue("M_PriceList_ID"); 389 if (ii == null) return 0; 390 return ii.intValue(); 391 } 392 public void setM_Product_ID (int M_Product_ID) 393 { 394 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 395 else 396 setValue ("M_Product_ID", new Integer (M_Product_ID)); 397 } 398 public int getM_Product_ID() 399 { 400 Integer ii = (Integer )getValue("M_Product_ID"); 401 if (ii == null) return 0; 402 return ii.intValue(); 403 } 404 public void setName (String Name) 405 { 406 setValue ("Name", Name); 407 } 408 public String getName() 409 { 410 return (String )getValue("Name"); 411 } 412 public void setPaymentTermValue (String PaymentTermValue) 413 { 414 setValue ("PaymentTermValue", PaymentTermValue); 415 } 416 public String getPaymentTermValue() 417 { 418 return (String )getValue("PaymentTermValue"); 419 } 420 public void setPhone (String Phone) 421 { 422 setValue ("Phone", Phone); 423 } 424 public String getPhone() 425 { 426 return (String )getValue("Phone"); 427 } 428 public void setPostal (String Postal) 429 { 430 setValue ("Postal", Postal); 431 } 432 public String getPostal() 433 { 434 return (String )getValue("Postal"); 435 } 436 public void setPriceActual (BigDecimal PriceActual) 437 { 438 if (PriceActual == null) throw new IllegalArgumentException ("PriceActual is mandatory"); 439 setValue ("PriceActual", PriceActual); 440 } 441 public BigDecimal getPriceActual() 442 { 443 BigDecimal bd = (BigDecimal)getValue("PriceActual"); 444 if (bd == null) return Env.ZERO; 445 return bd; 446 } 447 public void setProcessed (boolean Processed) 448 { 449 setValue ("Processed", new Boolean (Processed)); 450 } 451 public boolean isProcessed() 452 { 453 Boolean bb = (Boolean )getValue("Processed"); 454 if (bb != null) return bb.booleanValue(); 455 return false; 456 } 457 public void setProcessing (String Processing) 458 { 459 setValue ("Processing", Processing); 460 } 461 public String getProcessing() 462 { 463 return (String )getValue("Processing"); 464 } 465 public void setProductValue (String ProductValue) 466 { 467 setValue ("ProductValue", ProductValue); 468 } 469 public String getProductValue() 470 { 471 return (String )getValue("ProductValue"); 472 } 473 public void setQtyOrdered (BigDecimal QtyOrdered) 474 { 475 if (QtyOrdered == null) throw new IllegalArgumentException ("QtyOrdered is mandatory"); 476 setValue ("QtyOrdered", QtyOrdered); 477 } 478 public BigDecimal getQtyOrdered() 479 { 480 BigDecimal bd = (BigDecimal)getValue("QtyOrdered"); 481 if (bd == null) return Env.ZERO; 482 return bd; 483 } 484 public void setRegionName (String RegionName) 485 { 486 setValue ("RegionName", RegionName); 487 } 488 public String getRegionName() 489 { 490 return (String )getValue("RegionName"); 491 } 492 public void setSKU (String SKU) 493 { 494 setValue ("SKU", SKU); 495 } 496 public String getSKU() 497 { 498 return (String )getValue("SKU"); 499 } 500 public void setSalesRep_ID (int SalesRep_ID) 501 { 502 if (SalesRep_ID == 0) setValue ("SalesRep_ID", null); 503 else 504 setValue ("SalesRep_ID", new Integer (SalesRep_ID)); 505 } 506 public int getSalesRep_ID() 507 { 508 Integer ii = (Integer )getValue("SalesRep_ID"); 509 if (ii == null) return 0; 510 return ii.intValue(); 511 } 512 public void setTaxAmt (BigDecimal TaxAmt) 513 { 514 setValue ("TaxAmt", TaxAmt); 515 } 516 public BigDecimal getTaxAmt() 517 { 518 BigDecimal bd = (BigDecimal)getValue("TaxAmt"); 519 if (bd == null) return Env.ZERO; 520 return bd; 521 } 522 public void setTaxIndicator (String TaxIndicator) 523 { 524 setValue ("TaxIndicator", TaxIndicator); 525 } 526 public String getTaxIndicator() 527 { 528 return (String )getValue("TaxIndicator"); 529 } 530 public void setUPC (String UPC) 531 { 532 setValue ("UPC", UPC); 533 } 534 public String getUPC() 535 { 536 return (String )getValue("UPC"); 537 } 538 } 539 | Popular Tags |