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_CommissionLine extends PO 11 { 12 13 public X_C_CommissionLine (Properties ctx, int C_CommissionLine_ID) 14 { 15 super (ctx, C_CommissionLine_ID); 16 29 } 30 31 public X_C_CommissionLine (Properties ctx, ResultSet rs) 32 { 33 super (ctx, rs); 34 } 35 36 protected POInfo initPO (Properties ctx) 37 { 38 int AD_Table_ID = 431; 39 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 40 return poi; 41 } 42 public String toString() 43 { 44 StringBuffer sb = new StringBuffer ("X_C_CommissionLine[").append(getID()).append("]"); 45 return sb.toString(); 46 } 47 public void setAmtMultiplier (BigDecimal AmtMultiplier) 48 { 49 if (AmtMultiplier == null) throw new IllegalArgumentException ("AmtMultiplier is mandatory"); 50 setValue ("AmtMultiplier", AmtMultiplier); 51 } 52 public BigDecimal getAmtMultiplier() 53 { 54 BigDecimal bd = (BigDecimal)getValue("AmtMultiplier"); 55 if (bd == null) return Env.ZERO; 56 return bd; 57 } 58 public void setAmtSubtract (BigDecimal AmtSubtract) 59 { 60 if (AmtSubtract == null) throw new IllegalArgumentException ("AmtSubtract is mandatory"); 61 setValue ("AmtSubtract", AmtSubtract); 62 } 63 public BigDecimal getAmtSubtract() 64 { 65 BigDecimal bd = (BigDecimal)getValue("AmtSubtract"); 66 if (bd == null) return Env.ZERO; 67 return bd; 68 } 69 public void setC_BP_Group_ID (int C_BP_Group_ID) 70 { 71 if (C_BP_Group_ID == 0) setValue ("C_BP_Group_ID", null); 72 else 73 setValue ("C_BP_Group_ID", new Integer (C_BP_Group_ID)); 74 } 75 public int getC_BP_Group_ID() 76 { 77 Integer ii = (Integer )getValue("C_BP_Group_ID"); 78 if (ii == null) return 0; 79 return ii.intValue(); 80 } 81 public void setC_BPartner_ID (int C_BPartner_ID) 82 { 83 if (C_BPartner_ID == 0) setValue ("C_BPartner_ID", null); 84 else 85 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 86 } 87 public int getC_BPartner_ID() 88 { 89 Integer ii = (Integer )getValue("C_BPartner_ID"); 90 if (ii == null) return 0; 91 return ii.intValue(); 92 } 93 void setC_CommissionLine_ID (int C_CommissionLine_ID) 94 { 95 setValueNoCheck ("C_CommissionLine_ID", new Integer (C_CommissionLine_ID)); 96 } 97 public int getC_CommissionLine_ID() 98 { 99 Integer ii = (Integer )getValue("C_CommissionLine_ID"); 100 if (ii == null) return 0; 101 return ii.intValue(); 102 } 103 void setC_Commission_ID (int C_Commission_ID) 104 { 105 setValueNoCheck ("C_Commission_ID", new Integer (C_Commission_ID)); 106 } 107 public int getC_Commission_ID() 108 { 109 Integer ii = (Integer )getValue("C_Commission_ID"); 110 if (ii == null) return 0; 111 return ii.intValue(); 112 } 113 public void setC_SalesRegion_ID (int C_SalesRegion_ID) 114 { 115 if (C_SalesRegion_ID == 0) setValue ("C_SalesRegion_ID", null); 116 else 117 setValue ("C_SalesRegion_ID", new Integer (C_SalesRegion_ID)); 118 } 119 public int getC_SalesRegion_ID() 120 { 121 Integer ii = (Integer )getValue("C_SalesRegion_ID"); 122 if (ii == null) return 0; 123 return ii.intValue(); 124 } 125 public void setCommissionOrders (boolean CommissionOrders) 126 { 127 setValue ("CommissionOrders", new Boolean (CommissionOrders)); 128 } 129 public boolean isCommissionOrders() 130 { 131 Boolean bb = (Boolean )getValue("CommissionOrders"); 132 if (bb != null) return bb.booleanValue(); 133 return false; 134 } 135 public void setDescription (String Description) 136 { 137 setValue ("Description", Description); 138 } 139 public String getDescription() 140 { 141 return (String )getValue("Description"); 142 } 143 public void setIsPositiveOnly (boolean IsPositiveOnly) 144 { 145 setValue ("IsPositiveOnly", new Boolean (IsPositiveOnly)); 146 } 147 public boolean isPositiveOnly() 148 { 149 Boolean bb = (Boolean )getValue("IsPositiveOnly"); 150 if (bb != null) return bb.booleanValue(); 151 return false; 152 } 153 public void setLine (int Line) 154 { 155 setValue ("Line", new Integer (Line)); 156 } 157 public int getLine() 158 { 159 Integer ii = (Integer )getValue("Line"); 160 if (ii == null) return 0; 161 return ii.intValue(); 162 } 163 public void setM_Product_Category_ID (int M_Product_Category_ID) 164 { 165 if (M_Product_Category_ID == 0) setValue ("M_Product_Category_ID", null); 166 else 167 setValue ("M_Product_Category_ID", new Integer (M_Product_Category_ID)); 168 } 169 public int getM_Product_Category_ID() 170 { 171 Integer ii = (Integer )getValue("M_Product_Category_ID"); 172 if (ii == null) return 0; 173 return ii.intValue(); 174 } 175 public void setM_Product_ID (int M_Product_ID) 176 { 177 if (M_Product_ID == 0) setValue ("M_Product_ID", null); 178 else 179 setValue ("M_Product_ID", new Integer (M_Product_ID)); 180 } 181 public int getM_Product_ID() 182 { 183 Integer ii = (Integer )getValue("M_Product_ID"); 184 if (ii == null) return 0; 185 return ii.intValue(); 186 } 187 public void setOrg_ID (int Org_ID) 188 { 189 if (Org_ID == 0) setValue ("Org_ID", null); 190 else 191 setValue ("Org_ID", new Integer (Org_ID)); 192 } 193 public int getOrg_ID() 194 { 195 Integer ii = (Integer )getValue("Org_ID"); 196 if (ii == null) return 0; 197 return ii.intValue(); 198 } 199 public void setQtyMultiplier (BigDecimal QtyMultiplier) 200 { 201 if (QtyMultiplier == null) throw new IllegalArgumentException ("QtyMultiplier is mandatory"); 202 setValue ("QtyMultiplier", QtyMultiplier); 203 } 204 public BigDecimal getQtyMultiplier() 205 { 206 BigDecimal bd = (BigDecimal)getValue("QtyMultiplier"); 207 if (bd == null) return Env.ZERO; 208 return bd; 209 } 210 public void setQtySubtract (BigDecimal QtySubtract) 211 { 212 if (QtySubtract == null) throw new IllegalArgumentException ("QtySubtract is mandatory"); 213 setValue ("QtySubtract", QtySubtract); 214 } 215 public BigDecimal getQtySubtract() 216 { 217 BigDecimal bd = (BigDecimal)getValue("QtySubtract"); 218 if (bd == null) return Env.ZERO; 219 return bd; 220 } 221 } 222
| Popular Tags
|