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_M_Product_Costing extends PO 11 { 12 13 public X_M_Product_Costing (Properties ctx, int M_Product_Costing_ID) 14 { 15 super (ctx, M_Product_Costing_ID); 16 36 } 37 38 public X_M_Product_Costing (Properties ctx, ResultSet rs) 39 { 40 super (ctx, rs); 41 } 42 43 protected POInfo initPO (Properties ctx) 44 { 45 int AD_Table_ID = 327; 46 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 47 return poi; 48 } 49 public String toString() 50 { 51 StringBuffer sb = new StringBuffer ("X_M_Product_Costing[").append(getID()).append("]"); 52 return sb.toString(); 53 } 54 void setC_AcctSchema_ID (int C_AcctSchema_ID) 55 { 56 setValueNoCheck ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 57 } 58 public int getC_AcctSchema_ID() 59 { 60 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 void setCostAverage (BigDecimal CostAverage) 65 { 66 if (CostAverage == null) throw new IllegalArgumentException ("CostAverage is mandatory"); 67 setValueNoCheck ("CostAverage", CostAverage); 68 } 69 public BigDecimal getCostAverage() 70 { 71 BigDecimal bd = (BigDecimal)getValue("CostAverage"); 72 if (bd == null) return Env.ZERO; 73 return bd; 74 } 75 void setCostAverageCumAmt (BigDecimal CostAverageCumAmt) 76 { 77 if (CostAverageCumAmt == null) throw new IllegalArgumentException ("CostAverageCumAmt is mandatory"); 78 setValueNoCheck ("CostAverageCumAmt", CostAverageCumAmt); 79 } 80 public BigDecimal getCostAverageCumAmt() 81 { 82 BigDecimal bd = (BigDecimal)getValue("CostAverageCumAmt"); 83 if (bd == null) return Env.ZERO; 84 return bd; 85 } 86 void setCostAverageCumQty (BigDecimal CostAverageCumQty) 87 { 88 if (CostAverageCumQty == null) throw new IllegalArgumentException ("CostAverageCumQty is mandatory"); 89 setValueNoCheck ("CostAverageCumQty", CostAverageCumQty); 90 } 91 public BigDecimal getCostAverageCumQty() 92 { 93 BigDecimal bd = (BigDecimal)getValue("CostAverageCumQty"); 94 if (bd == null) return Env.ZERO; 95 return bd; 96 } 97 void setCostStandard (BigDecimal CostStandard) 98 { 99 if (CostStandard == null) throw new IllegalArgumentException ("CostStandard is mandatory"); 100 setValueNoCheck ("CostStandard", CostStandard); 101 } 102 public BigDecimal getCostStandard() 103 { 104 BigDecimal bd = (BigDecimal)getValue("CostStandard"); 105 if (bd == null) return Env.ZERO; 106 return bd; 107 } 108 void setCostStandardCumAmt (BigDecimal CostStandardCumAmt) 109 { 110 if (CostStandardCumAmt == null) throw new IllegalArgumentException ("CostStandardCumAmt is mandatory"); 111 setValueNoCheck ("CostStandardCumAmt", CostStandardCumAmt); 112 } 113 public BigDecimal getCostStandardCumAmt() 114 { 115 BigDecimal bd = (BigDecimal)getValue("CostStandardCumAmt"); 116 if (bd == null) return Env.ZERO; 117 return bd; 118 } 119 void setCostStandardCumQty (BigDecimal CostStandardCumQty) 120 { 121 if (CostStandardCumQty == null) throw new IllegalArgumentException ("CostStandardCumQty is mandatory"); 122 setValueNoCheck ("CostStandardCumQty", CostStandardCumQty); 123 } 124 public BigDecimal getCostStandardCumQty() 125 { 126 BigDecimal bd = (BigDecimal)getValue("CostStandardCumQty"); 127 if (bd == null) return Env.ZERO; 128 return bd; 129 } 130 void setCostStandardPOAmt (BigDecimal CostStandardPOAmt) 131 { 132 if (CostStandardPOAmt == null) throw new IllegalArgumentException ("CostStandardPOAmt is mandatory"); 133 setValueNoCheck ("CostStandardPOAmt", CostStandardPOAmt); 134 } 135 public BigDecimal getCostStandardPOAmt() 136 { 137 BigDecimal bd = (BigDecimal)getValue("CostStandardPOAmt"); 138 if (bd == null) return Env.ZERO; 139 return bd; 140 } 141 void setCostStandardPOQty (BigDecimal CostStandardPOQty) 142 { 143 if (CostStandardPOQty == null) throw new IllegalArgumentException ("CostStandardPOQty is mandatory"); 144 setValueNoCheck ("CostStandardPOQty", CostStandardPOQty); 145 } 146 public BigDecimal getCostStandardPOQty() 147 { 148 BigDecimal bd = (BigDecimal)getValue("CostStandardPOQty"); 149 if (bd == null) return Env.ZERO; 150 return bd; 151 } 152 public void setCurrentCostPrice (BigDecimal CurrentCostPrice) 153 { 154 if (CurrentCostPrice == null) throw new IllegalArgumentException ("CurrentCostPrice is mandatory"); 155 setValue ("CurrentCostPrice", CurrentCostPrice); 156 } 157 public BigDecimal getCurrentCostPrice() 158 { 159 BigDecimal bd = (BigDecimal)getValue("CurrentCostPrice"); 160 if (bd == null) return Env.ZERO; 161 return bd; 162 } 163 public void setFutureCostPrice (BigDecimal FutureCostPrice) 164 { 165 if (FutureCostPrice == null) throw new IllegalArgumentException ("FutureCostPrice is mandatory"); 166 setValue ("FutureCostPrice", FutureCostPrice); 167 } 168 public BigDecimal getFutureCostPrice() 169 { 170 BigDecimal bd = (BigDecimal)getValue("FutureCostPrice"); 171 if (bd == null) return Env.ZERO; 172 return bd; 173 } 174 void setM_Product_ID (int M_Product_ID) 175 { 176 setValueNoCheck ("M_Product_ID", new Integer (M_Product_ID)); 177 } 178 public int getM_Product_ID() 179 { 180 Integer ii = (Integer )getValue("M_Product_ID"); 181 if (ii == null) return 0; 182 return ii.intValue(); 183 } 184 void setPriceLastInv (BigDecimal PriceLastInv) 185 { 186 if (PriceLastInv == null) throw new IllegalArgumentException ("PriceLastInv is mandatory"); 187 setValueNoCheck ("PriceLastInv", PriceLastInv); 188 } 189 public BigDecimal getPriceLastInv() 190 { 191 BigDecimal bd = (BigDecimal)getValue("PriceLastInv"); 192 if (bd == null) return Env.ZERO; 193 return bd; 194 } 195 void setPriceLastPO (BigDecimal PriceLastPO) 196 { 197 if (PriceLastPO == null) throw new IllegalArgumentException ("PriceLastPO is mandatory"); 198 setValueNoCheck ("PriceLastPO", PriceLastPO); 199 } 200 public BigDecimal getPriceLastPO() 201 { 202 BigDecimal bd = (BigDecimal)getValue("PriceLastPO"); 203 if (bd == null) return Env.ZERO; 204 return bd; 205 } 206 void setTotalInvAmt (BigDecimal TotalInvAmt) 207 { 208 if (TotalInvAmt == null) throw new IllegalArgumentException ("TotalInvAmt is mandatory"); 209 setValueNoCheck ("TotalInvAmt", TotalInvAmt); 210 } 211 public BigDecimal getTotalInvAmt() 212 { 213 BigDecimal bd = (BigDecimal)getValue("TotalInvAmt"); 214 if (bd == null) return Env.ZERO; 215 return bd; 216 } 217 void setTotalInvQty (BigDecimal TotalInvQty) 218 { 219 if (TotalInvQty == null) throw new IllegalArgumentException ("TotalInvQty is mandatory"); 220 setValueNoCheck ("TotalInvQty", TotalInvQty); 221 } 222 public BigDecimal getTotalInvQty() 223 { 224 BigDecimal bd = (BigDecimal)getValue("TotalInvQty"); 225 if (bd == null) return Env.ZERO; 226 return bd; 227 } 228 } 229 | Popular Tags |