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_CommissionDetail extends PO 11 { 12 13 public X_C_CommissionDetail (Properties ctx, int C_CommissionDetail_ID) 14 { 15 super (ctx, C_CommissionDetail_ID); 16 26 } 27 28 public X_C_CommissionDetail (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 437; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_C_CommissionDetail[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setActualAmt (BigDecimal ActualAmt) 45 { 46 if (ActualAmt == null) throw new IllegalArgumentException ("ActualAmt is mandatory"); 47 setValue ("ActualAmt", ActualAmt); 48 } 49 public BigDecimal getActualAmt() 50 { 51 BigDecimal bd = (BigDecimal)getValue("ActualAmt"); 52 if (bd == null) return Env.ZERO; 53 return bd; 54 } 55 public void setActualQty (BigDecimal ActualQty) 56 { 57 if (ActualQty == null) throw new IllegalArgumentException ("ActualQty is mandatory"); 58 setValue ("ActualQty", ActualQty); 59 } 60 public BigDecimal getActualQty() 61 { 62 BigDecimal bd = (BigDecimal)getValue("ActualQty"); 63 if (bd == null) return Env.ZERO; 64 return bd; 65 } 66 void setC_CommissionAmt_ID (int C_CommissionAmt_ID) 67 { 68 setValueNoCheck ("C_CommissionAmt_ID", new Integer (C_CommissionAmt_ID)); 69 } 70 public int getC_CommissionAmt_ID() 71 { 72 Integer ii = (Integer )getValue("C_CommissionAmt_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 void setC_CommissionDetail_ID (int C_CommissionDetail_ID) 77 { 78 setValueNoCheck ("C_CommissionDetail_ID", new Integer (C_CommissionDetail_ID)); 79 } 80 public int getC_CommissionDetail_ID() 81 { 82 Integer ii = (Integer )getValue("C_CommissionDetail_ID"); 83 if (ii == null) return 0; 84 return ii.intValue(); 85 } 86 public void setC_Currency_ID (int C_Currency_ID) 87 { 88 setValue ("C_Currency_ID", new Integer (C_Currency_ID)); 89 } 90 public int getC_Currency_ID() 91 { 92 Integer ii = (Integer )getValue("C_Currency_ID"); 93 if (ii == null) return 0; 94 return ii.intValue(); 95 } 96 void setC_InvoiceLine_ID (int C_InvoiceLine_ID) 97 { 98 if (C_InvoiceLine_ID == 0) setValueNoCheck ("C_InvoiceLine_ID", null); 99 else 100 setValueNoCheck ("C_InvoiceLine_ID", new Integer (C_InvoiceLine_ID)); 101 } 102 public int getC_InvoiceLine_ID() 103 { 104 Integer ii = (Integer )getValue("C_InvoiceLine_ID"); 105 if (ii == null) return 0; 106 return ii.intValue(); 107 } 108 void setC_OrderLine_ID (int C_OrderLine_ID) 109 { 110 if (C_OrderLine_ID == 0) setValueNoCheck ("C_OrderLine_ID", null); 111 else 112 setValueNoCheck ("C_OrderLine_ID", new Integer (C_OrderLine_ID)); 113 } 114 public int getC_OrderLine_ID() 115 { 116 Integer ii = (Integer )getValue("C_OrderLine_ID"); 117 if (ii == null) return 0; 118 return ii.intValue(); 119 } 120 public void setConvertedAmt (BigDecimal ConvertedAmt) 121 { 122 if (ConvertedAmt == null) throw new IllegalArgumentException ("ConvertedAmt is mandatory"); 123 setValue ("ConvertedAmt", ConvertedAmt); 124 } 125 public BigDecimal getConvertedAmt() 126 { 127 BigDecimal bd = (BigDecimal)getValue("ConvertedAmt"); 128 if (bd == null) return Env.ZERO; 129 return bd; 130 } 131 public void setInfo (String Info) 132 { 133 setValue ("Info", Info); 134 } 135 public String getInfo() 136 { 137 return (String )getValue("Info"); 138 } 139 public void setReference (String Reference) 140 { 141 setValue ("Reference", Reference); 142 } 143 public String getReference() 144 { 145 return (String )getValue("Reference"); 146 } 147 } 148 | Popular Tags |