1 14 package org.compiere.model; 15 16 import java.util.*; 17 import java.sql.*; 18 import java.math.*; 19 import java.io.Serializable ; 20 21 import org.compiere.util.*; 22 23 24 30 public class MBankAccount extends X_C_BankAccount 31 { 32 37 public MBankAccount (Properties ctx, int C_BankAccount_ID) 38 { 39 super (ctx, C_BankAccount_ID); 40 if (C_BankAccount_ID == 0) 41 { 42 setIsDefault (false); 43 setBankAccountType (BANKACCOUNTTYPE_Checking); 44 setCurrentBalance (Env.ZERO); 45 setC_Currency_ID (0); 46 setCreditLimit (Env.ZERO); 47 setC_BankAccount_ID (0); 48 } 49 } 51 56 public MBankAccount (Properties ctx, ResultSet rs) 57 { 58 super (ctx, rs); 59 } 60 61 public String toString () 62 { 63 StringBuffer sb = new StringBuffer ("MBankAccount[") 64 .append (getID()) 65 .append("-").append(getAccountNo()) 66 .append ("]"); 67 return sb.toString (); 68 } 69 70 } | Popular Tags |