org.geebis.books.model.ap
Class VoucherItemLine

java.lang.Object
  extended by org.geebis.books.model.ap.VoucherItemLine
All Implemented Interfaces:
java.io.Serializable

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

The VoucherItemLine class represents a line on a voucher that is for an item.

See Also:
Serialized Form

Constructor Summary
VoucherItemLine()
           
 
Method Summary
 java.lang.Double getCost()
          Get the unit cost for this line
 java.lang.String getDescription()
          Gets the description of this line
 java.lang.Long getId()
           
 Item getItem()
          Gets the item of this voucher line
 VoucherItemLine getParent()
          Gets the parent line for this line.
 java.lang.Double getQuantity()
          Gets the quantity for this line
 java.lang.Integer getVersion()
           
 void setCost(java.lang.Double cost)
          Sets the unit cost for this line
 void setDescription(java.lang.String description)
          Sets the description of this line
 void setId(java.lang.Long id)
           
 void setItem(Item item)
          Sets the item of this voucher line
 void setParent(VoucherItemLine parent)
          Sets the parent voucher line for this line
 void setQuantity(java.lang.Double quantity)
          Sets the quantity for this line
 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

VoucherItemLine

public VoucherItemLine()
Method Detail

getItem

public Item getItem()
Gets the item of this voucher line

Returns:
the item of this voucher line

setItem

public void setItem(Item item)
Sets the item of this voucher line

Parameters:
item - the new item for this voucher line

getCost

public java.lang.Double getCost()
Get the unit cost for this line

Returns:
the unit cost for this line

setCost

public void setCost(java.lang.Double cost)
Sets the unit cost for this line

Parameters:
cost - the new unit cost for this line

getQuantity

public java.lang.Double getQuantity()
Gets the quantity for this line

Returns:
the quantity of this line

setQuantity

public void setQuantity(java.lang.Double quantity)
Sets the quantity for this line

Parameters:
quantity - the new quantity for this line

getDescription

public java.lang.String getDescription()
Gets the description of this line

Returns:
the description of this line

setDescription

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

Parameters:
description - the new description for this line

getParent

public VoucherItemLine getParent()
Gets the parent line for this line. A child line is deleted when the parent is deleted

Returns:
the parent voucher line for this line

setParent

public void setParent(VoucherItemLine parent)
Sets the parent voucher line for this line

Parameters:
parent - the new parent voucher line for this line
See Also:
getParent()

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)