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_InvoiceTax extends PO 11 { 12 13 public X_C_InvoiceTax (Properties ctx, int C_InvoiceTax_ID) 14 { 15 super (ctx, C_InvoiceTax_ID); 16 24 } 25 26 public X_C_InvoiceTax (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 334; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_InvoiceTax[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_Invoice_ID (int C_Invoice_ID) 43 { 44 setValueNoCheck ("C_Invoice_ID", new Integer (C_Invoice_ID)); 45 } 46 public int getC_Invoice_ID() 47 { 48 Integer ii = (Integer )getValue("C_Invoice_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setC_Tax_ID (int C_Tax_ID) 53 { 54 setValueNoCheck ("C_Tax_ID", new Integer (C_Tax_ID)); 55 } 56 public int getC_Tax_ID() 57 { 58 Integer ii = (Integer )getValue("C_Tax_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 void setTaxAmt (BigDecimal TaxAmt) 63 { 64 if (TaxAmt == null) throw new IllegalArgumentException ("TaxAmt is mandatory"); 65 setValueNoCheck ("TaxAmt", TaxAmt); 66 } 67 public BigDecimal getTaxAmt() 68 { 69 BigDecimal bd = (BigDecimal)getValue("TaxAmt"); 70 if (bd == null) return Env.ZERO; 71 return bd; 72 } 73 void setTaxBaseAmt (BigDecimal TaxBaseAmt) 74 { 75 if (TaxBaseAmt == null) throw new IllegalArgumentException ("TaxBaseAmt is mandatory"); 76 setValueNoCheck ("TaxBaseAmt", TaxBaseAmt); 77 } 78 public BigDecimal getTaxBaseAmt() 79 { 80 BigDecimal bd = (BigDecimal)getValue("TaxBaseAmt"); 81 if (bd == null) return Env.ZERO; 82 return bd; 83 } 84 } 85
| Popular Tags
|