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_Withholding extends PO 11 { 12 13 public X_C_Withholding (Properties ctx, int C_Withholding_ID) 14 { 15 super (ctx, C_Withholding_ID); 16 28 } 29 30 public X_C_Withholding (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 304; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_C_Withholding[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setBeneficiary (String Beneficiary) 47 { 48 if (Beneficiary == null) throw new IllegalArgumentException ("Beneficiary is mandatory"); 49 setValue ("Beneficiary", Beneficiary); 50 } 51 public String getBeneficiary() 52 { 53 return (String )getValue("Beneficiary"); 54 } 55 public void setC_PaymentTerm_ID (int C_PaymentTerm_ID) 56 { 57 setValue ("C_PaymentTerm_ID", new Integer (C_PaymentTerm_ID)); 58 } 59 public int getC_PaymentTerm_ID() 60 { 61 Integer ii = (Integer )getValue("C_PaymentTerm_ID"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 void setC_Withholding_ID (int C_Withholding_ID) 66 { 67 setValueNoCheck ("C_Withholding_ID", new Integer (C_Withholding_ID)); 68 } 69 public int getC_Withholding_ID() 70 { 71 Integer ii = (Integer )getValue("C_Withholding_ID"); 72 if (ii == null) return 0; 73 return ii.intValue(); 74 } 75 public void setDescription (String Description) 76 { 77 setValue ("Description", Description); 78 } 79 public String getDescription() 80 { 81 return (String )getValue("Description"); 82 } 83 public void setFixAmt (BigDecimal FixAmt) 84 { 85 setValue ("FixAmt", FixAmt); 86 } 87 public BigDecimal getFixAmt() 88 { 89 BigDecimal bd = (BigDecimal)getValue("FixAmt"); 90 if (bd == null) return Env.ZERO; 91 return bd; 92 } 93 public void setIsPaidTo3Party (boolean IsPaidTo3Party) 94 { 95 setValue ("IsPaidTo3Party", new Boolean (IsPaidTo3Party)); 96 } 97 public boolean isPaidTo3Party() 98 { 99 Boolean bb = (Boolean )getValue("IsPaidTo3Party"); 100 if (bb != null) return bb.booleanValue(); 101 return false; 102 } 103 public void setIsPercentWithholding (boolean IsPercentWithholding) 104 { 105 setValue ("IsPercentWithholding", new Boolean (IsPercentWithholding)); 106 } 107 public boolean isPercentWithholding() 108 { 109 Boolean bb = (Boolean )getValue("IsPercentWithholding"); 110 if (bb != null) return bb.booleanValue(); 111 return false; 112 } 113 public void setIsTaxProrated (boolean IsTaxProrated) 114 { 115 setValue ("IsTaxProrated", new Boolean (IsTaxProrated)); 116 } 117 public boolean isTaxProrated() 118 { 119 Boolean bb = (Boolean )getValue("IsTaxProrated"); 120 if (bb != null) return bb.booleanValue(); 121 return false; 122 } 123 public void setIsTaxWithholding (boolean IsTaxWithholding) 124 { 125 setValue ("IsTaxWithholding", new Boolean (IsTaxWithholding)); 126 } 127 public boolean isTaxWithholding() 128 { 129 Boolean bb = (Boolean )getValue("IsTaxWithholding"); 130 if (bb != null) return bb.booleanValue(); 131 return false; 132 } 133 public void setMaxAmt (BigDecimal MaxAmt) 134 { 135 setValue ("MaxAmt", MaxAmt); 136 } 137 public BigDecimal getMaxAmt() 138 { 139 BigDecimal bd = (BigDecimal)getValue("MaxAmt"); 140 if (bd == null) return Env.ZERO; 141 return bd; 142 } 143 public void setMinAmt (BigDecimal MinAmt) 144 { 145 setValue ("MinAmt", MinAmt); 146 } 147 public BigDecimal getMinAmt() 148 { 149 BigDecimal bd = (BigDecimal)getValue("MinAmt"); 150 if (bd == null) return Env.ZERO; 151 return bd; 152 } 153 public void setName (String Name) 154 { 155 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 156 setValue ("Name", Name); 157 } 158 public String getName() 159 { 160 return (String )getValue("Name"); 161 } 162 public void setPercent (BigDecimal Percent) 163 { 164 setValue ("Percent", Percent); 165 } 166 public BigDecimal getPercent() 167 { 168 BigDecimal bd = (BigDecimal)getValue("Percent"); 169 if (bd == null) return Env.ZERO; 170 return bd; 171 } 172 public void setThresholdMax (BigDecimal ThresholdMax) 173 { 174 setValue ("ThresholdMax", ThresholdMax); 175 } 176 public BigDecimal getThresholdMax() 177 { 178 BigDecimal bd = (BigDecimal)getValue("ThresholdMax"); 179 if (bd == null) return Env.ZERO; 180 return bd; 181 } 182 public void setThresholdmin (BigDecimal Thresholdmin) 183 { 184 setValue ("Thresholdmin", Thresholdmin); 185 } 186 public BigDecimal getThresholdmin() 187 { 188 BigDecimal bd = (BigDecimal)getValue("Thresholdmin"); 189 if (bd == null) return Env.ZERO; 190 return bd; 191 } 192 } 193
| Popular Tags
|