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_InvoicePaySchedule extends PO 11 { 12 13 public X_C_InvoicePaySchedule (Properties ctx, int C_InvoicePaySchedule_ID) 14 { 15 super (ctx, C_InvoicePaySchedule_ID); 16 27 } 28 29 public X_C_InvoicePaySchedule (Properties ctx, ResultSet rs) 30 { 31 super (ctx, rs); 32 } 33 34 protected POInfo initPO (Properties ctx) 35 { 36 int AD_Table_ID = 551; 37 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 38 return poi; 39 } 40 public String toString() 41 { 42 StringBuffer sb = new StringBuffer ("X_C_InvoicePaySchedule[").append(getID()).append("]"); 43 return sb.toString(); 44 } 45 void setC_InvoicePaySchedule_ID (int C_InvoicePaySchedule_ID) 46 { 47 setValueNoCheck ("C_InvoicePaySchedule_ID", new Integer (C_InvoicePaySchedule_ID)); 48 } 49 public int getC_InvoicePaySchedule_ID() 50 { 51 Integer ii = (Integer )getValue("C_InvoicePaySchedule_ID"); 52 if (ii == null) return 0; 53 return ii.intValue(); 54 } 55 void setC_Invoice_ID (int C_Invoice_ID) 56 { 57 setValueNoCheck ("C_Invoice_ID", new Integer (C_Invoice_ID)); 58 } 59 public int getC_Invoice_ID() 60 { 61 Integer ii = (Integer )getValue("C_Invoice_ID"); 62 if (ii == null) return 0; 63 return ii.intValue(); 64 } 65 void setC_PaySchedule_ID (int C_PaySchedule_ID) 66 { 67 if (C_PaySchedule_ID == 0) setValueNoCheck ("C_PaySchedule_ID", null); 68 else 69 setValueNoCheck ("C_PaySchedule_ID", new Integer (C_PaySchedule_ID)); 70 } 71 public int getC_PaySchedule_ID() 72 { 73 Integer ii = (Integer )getValue("C_PaySchedule_ID"); 74 if (ii == null) return 0; 75 return ii.intValue(); 76 } 77 public void setDiscountAmt (BigDecimal DiscountAmt) 78 { 79 if (DiscountAmt == null) throw new IllegalArgumentException ("DiscountAmt is mandatory"); 80 setValue ("DiscountAmt", DiscountAmt); 81 } 82 public BigDecimal getDiscountAmt() 83 { 84 BigDecimal bd = (BigDecimal)getValue("DiscountAmt"); 85 if (bd == null) return Env.ZERO; 86 return bd; 87 } 88 public void setDiscountDate (Timestamp DiscountDate) 89 { 90 if (DiscountDate == null) throw new IllegalArgumentException ("DiscountDate is mandatory"); 91 setValue ("DiscountDate", DiscountDate); 92 } 93 public Timestamp getDiscountDate() 94 { 95 return (Timestamp)getValue("DiscountDate"); 96 } 97 public void setDueAmt (BigDecimal DueAmt) 98 { 99 if (DueAmt == null) throw new IllegalArgumentException ("DueAmt is mandatory"); 100 setValue ("DueAmt", DueAmt); 101 } 102 public BigDecimal getDueAmt() 103 { 104 BigDecimal bd = (BigDecimal)getValue("DueAmt"); 105 if (bd == null) return Env.ZERO; 106 return bd; 107 } 108 public void setDueDate (Timestamp DueDate) 109 { 110 if (DueDate == null) throw new IllegalArgumentException ("DueDate is mandatory"); 111 setValue ("DueDate", DueDate); 112 } 113 public Timestamp getDueDate() 114 { 115 return (Timestamp)getValue("DueDate"); 116 } 117 public void setIsValid (boolean IsValid) 118 { 119 setValue ("IsValid", new Boolean (IsValid)); 120 } 121 public boolean isValid() 122 { 123 Boolean bb = (Boolean )getValue("IsValid"); 124 if (bb != null) return bb.booleanValue(); 125 return false; 126 } 127 } 128 | Popular Tags |