org.geebis.books.model.ap
Class Voucher

java.lang.Object
  extended by org.geebis.books.model.ap.Voucher
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Bill, CreditMemo

@Name(value="voucher")
public class Voucher
extends java.lang.Object
implements java.io.Serializable

The Voucher class represents an AP voucher in Geebis books. Vouchers come in two forms, bills and credit memos. Vouchers have two kinds of lines:

See Also:
Serialized Form

Constructor Summary
Voucher()
           
 
Method Summary
 java.lang.Double getAmount()
          Gets the amount of the voucher
 java.util.Date getDate()
          Gets the date the voucher was issued
 java.lang.String getDescription()
          Gets the description for the voucher
 java.util.List<VoucherExpenseLine> getExpenseLines()
          Gets the expense lines for this voucher
 java.lang.Long getId()
           
 java.util.List<VoucherItemLine> getItemLines()
          Gets the item lines for this voucher
 java.lang.String getNumber()
          Gets the number of the voucher
 Vendor getVendor()
          Gets the vendor of this voucher
 java.lang.Integer getVersion()
           
 void setAmount(java.lang.Double amount)
          Sets the amount of the voucher
 void setDate(java.util.Date date)
          Sets the date the voucher was issued
 void setDescription(java.lang.String description)
          Sets the description of the voucher
 void setExpenseLines(java.util.List<VoucherExpenseLine> expenseLines)
          Sets the expense lines for this voucher
 void setId(java.lang.Long id)
           
 void setItemLines(java.util.List<VoucherItemLine> itemLines)
          Sets the item lines for this voucher
 void setNumber(java.lang.String number)
          Sets the number of the voucher
 void setVendor(Vendor vendor)
          Sets the vendor of this voucher
 void setVersion(java.lang.Integer version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Voucher

public Voucher()
Method Detail

getNumber

public java.lang.String getNumber()
Gets the number of the voucher

Returns:
the number of the voucher

setNumber

public void setNumber(java.lang.String number)
Sets the number of the voucher

Parameters:
number - the new number for the voucher

getDescription

public java.lang.String getDescription()
Gets the description for the voucher

Returns:
the description of the voucher

setDescription

public void setDescription(java.lang.String description)
Sets the description of the voucher

Parameters:
description - the new description for the voucher

getDate

public java.util.Date getDate()
Gets the date the voucher was issued

Returns:
the date the voucher was issed

setDate

public void setDate(java.util.Date date)
Sets the date the voucher was issued

Parameters:
date - the new date the voucher was issued

getAmount

public java.lang.Double getAmount()
Gets the amount of the voucher

Returns:
the amount of the voucher

setAmount

public void setAmount(java.lang.Double amount)
Sets the amount of the voucher

Parameters:
amount - the new amount of the voucher

getVendor

public Vendor getVendor()
Gets the vendor of this voucher

Returns:
the vendor of this voucher

setVendor

public void setVendor(Vendor vendor)
Sets the vendor of this voucher

Parameters:
vendor - the new vendor for this voucher

getItemLines

public java.util.List<VoucherItemLine> getItemLines()
Gets the item lines for this voucher

Returns:
the item lines for this voucher

setItemLines

public void setItemLines(java.util.List<VoucherItemLine> itemLines)
Sets the item lines for this voucher

Parameters:
itemLines - the new item lines for this voucher

getExpenseLines

public java.util.List<VoucherExpenseLine> getExpenseLines()
Gets the expense lines for this voucher

Returns:
the expense lines for this voucher

setExpenseLines

public void setExpenseLines(java.util.List<VoucherExpenseLine> expenseLines)
Sets the expense lines for this voucher

Parameters:
expenseLines - the new expense lines for this voucher

getVersion

public java.lang.Integer getVersion()

setVersion

public void setVersion(java.lang.Integer version)

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)