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_BP_Customer_Acct extends PO 11 { 12 13 public X_C_BP_Customer_Acct (Properties ctx, int C_BP_Customer_Acct_ID) 14 { 15 super (ctx, C_BP_Customer_Acct_ID); 16 24 } 25 26 public X_C_BP_Customer_Acct (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 183; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_BP_Customer_Acct[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_AcctSchema_ID (int C_AcctSchema_ID) 43 { 44 setValueNoCheck ("C_AcctSchema_ID", new Integer (C_AcctSchema_ID)); 45 } 46 public int getC_AcctSchema_ID() 47 { 48 Integer ii = (Integer )getValue("C_AcctSchema_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 void setC_BPartner_ID (int C_BPartner_ID) 53 { 54 setValueNoCheck ("C_BPartner_ID", new Integer (C_BPartner_ID)); 55 } 56 public int getC_BPartner_ID() 57 { 58 Integer ii = (Integer )getValue("C_BPartner_ID"); 59 if (ii == null) return 0; 60 return ii.intValue(); 61 } 62 public void setC_Prepayment_Acct (String C_Prepayment_Acct) 63 { 64 if (C_Prepayment_Acct == null) throw new IllegalArgumentException ("C_Prepayment_Acct is mandatory"); 65 setValue ("C_Prepayment_Acct", C_Prepayment_Acct); 66 } 67 public String getC_Prepayment_Acct() 68 { 69 return (String )getValue("C_Prepayment_Acct"); 70 } 71 public void setC_Receivable_Acct (String C_Receivable_Acct) 72 { 73 if (C_Receivable_Acct == null) throw new IllegalArgumentException ("C_Receivable_Acct is mandatory"); 74 setValue ("C_Receivable_Acct", C_Receivable_Acct); 75 } 76 public String getC_Receivable_Acct() 77 { 78 return (String )getValue("C_Receivable_Acct"); 79 } 80 } 81 | Popular Tags |