org.geebis.books.model.partner
Class Vendor

java.lang.Object
  extended by org.geebis.books.model.partner.Partner
      extended by org.geebis.books.model.partner.Vendor
All Implemented Interfaces:
java.io.Serializable

@Name(value="vendor")
public class Vendor
extends Partner
implements java.io.Serializable

The Vendor class represents a vendor.

See Also:
Serialized Form

Constructor Summary
Vendor()
           
Vendor(java.lang.String name)
           
 
Method Summary
 java.lang.String getAccountNumber()
          Gets the account number for this vendor
 java.lang.Double getCreditLimit()
          Gets the credit limit for this vendor
 ExpenseAccount getExpenseAccount()
          Gets the expense account of this vendor
 java.util.List<Manufacturer> getManufacturers()
          Gets the list of Manufacturers that you purchase from this vendor
 void setAccountNumber(java.lang.String accountNumber)
          Sets the account number for this vendor
 void setCreditLimit(java.lang.Double creditLimit)
          Sets the credit limit for this vendor
 void setExpenseAccount(ExpenseAccount expenseAccount)
          Sets the expense account to use with this vendor
 void setManufacturers(java.util.List<Manufacturer> manufacturers)
          Sets the list of Manufacturers that you purchase from this vendor
 
Methods inherited from class org.geebis.books.model.partner.Partner
getAccountsPayableAccount, getAccountsReceivableAccount, getCompanyName, getContact, getContactInformation, getDefaultTerms, getFirstName, getGenderTitle, getId, getLabels, getLastName, getMiddleInitial, getName, getVersion, setAccountsPayableAccount, setAccountsReceivableAccount, setCompanyName, setContact, setContactInformation, setDefaultTerms, setFirstName, setGenderTitle, setId, setLabels, setLastName, setMiddleInitial, setName, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Vendor

public Vendor()

Vendor

public Vendor(java.lang.String name)
Method Detail

getManufacturers

public java.util.List<Manufacturer> getManufacturers()
Gets the list of Manufacturers that you purchase from this vendor

Returns:
the list of Manufacturers that you purchase from this vendor

setManufacturers

public void setManufacturers(java.util.List<Manufacturer> manufacturers)
Sets the list of Manufacturers that you purchase from this vendor

Parameters:
manufacturers - the new list of Manufacturers that you want to purchase from this vendor

getExpenseAccount

public ExpenseAccount getExpenseAccount()
Gets the expense account of this vendor

Returns:
the vendor's expense account

setExpenseAccount

public void setExpenseAccount(ExpenseAccount expenseAccount)
Sets the expense account to use with this vendor

Parameters:
expenseAccount - the new ExpenseAccount to use with this vendor

getAccountNumber

public java.lang.String getAccountNumber()
Gets the account number for this vendor

Returns:
the account number for this vendor

setAccountNumber

public void setAccountNumber(java.lang.String accountNumber)
Sets the account number for this vendor

Parameters:
accountNumber - the new account number for this vendor

getCreditLimit

public java.lang.Double getCreditLimit()
Gets the credit limit for this vendor

Returns:
the credit limit for this vendor

setCreditLimit

public void setCreditLimit(java.lang.Double creditLimit)
Sets the credit limit for this vendor

Parameters:
creditLimit - the new credit limit for this vendor