|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.po.PurchaseOrder
@Name(value="purchaseOrder") public class PurchaseOrder
The PurchaseOrder class represents a purchase order in the GeebisBooks system
| Constructor Summary | |
|---|---|
PurchaseOrder()
|
|
PurchaseOrder(java.lang.String number)
|
|
| Method Summary | |
|---|---|
void |
addLine(PurchaseOrderLine line)
Adds a po line to this purchase order |
java.lang.Double |
calculateAmount()
Calculates the amount of this PO |
java.util.Date |
getDate()
Gets the date of the PO |
java.lang.String |
getDescription()
Gets the description of the PO |
java.lang.Long |
getId()
|
java.util.List<PurchaseOrderLine> |
getLines()
Gets the lines of the PO |
java.lang.String |
getNotes()
Gets the notes of the PO |
java.lang.String |
getNumber()
Gets the number of the PO |
Partner |
getPartner()
Gets the partner to whom you want to ship the goods on the PO to |
MailingAddress |
getShipTo()
Gets the MailingAddress to which you want to ship the goods on this PO to |
PurchaseOrderStatus |
getStatus()
Gets the status of the PO |
java.lang.Boolean |
getTaxable()
Gets whether the PO is taxable |
Terms |
getTerms()
Gets the terms of the PO |
Vendor |
getVendor()
Gets the vendor of the PO |
java.lang.Integer |
getVersion()
|
void |
removeLine(PurchaseOrderLine line)
Removes a po line from this purchase order |
void |
setDate(java.util.Date date)
Sets the date of the PO |
void |
setDescription(java.lang.String description)
Sets the description of the PO |
void |
setId(java.lang.Long id)
|
void |
setLines(java.util.List<PurchaseOrderLine> lines)
Sets the lines of the PO |
void |
setNotes(java.lang.String notes)
Sets the notes of the PO |
void |
setNumber(java.lang.String number)
Sets the number of the PO |
void |
setPartner(Partner partner)
Sets the partner to whom you want to ship the goods on the PO to |
void |
setShipTo(MailingAddress shipTo)
Sets the MailingAddress to which you want to ship the goods on this PO to |
void |
setStatus(PurchaseOrderStatus status)
Sets the status of the PO |
void |
setTaxable(java.lang.Boolean taxable)
Sets whether the PO is taxable |
void |
setTerms(Terms terms)
Sets the terms of the PO |
void |
setVendor(Vendor vendor)
Sets the vendor of the PO |
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 |
|---|
public PurchaseOrder()
public PurchaseOrder(java.lang.String number)
| Method Detail |
|---|
public java.lang.String getNumber()
public void setNumber(java.lang.String number)
number - the new number for the POpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new description of the POpublic java.lang.Boolean getTaxable()
public void setTaxable(java.lang.Boolean taxable)
taxable - the new taxability of the POpublic java.lang.String getNotes()
public void setNotes(java.lang.String notes)
notes - the new notes of the POpublic java.util.Date getDate()
public void setDate(java.util.Date date)
date - new date of the POpublic PurchaseOrderStatus getStatus()
PurchaseOrderStatuspublic void setStatus(PurchaseOrderStatus status)
status - the new status of the POpublic java.util.List<PurchaseOrderLine> getLines()
PurchaseOrderLinepublic void setLines(java.util.List<PurchaseOrderLine> lines)
lines - the new lines of the POpublic Terms getTerms()
public void setTerms(Terms terms)
terms - the new terms of the POTermspublic MailingAddress getShipTo()
MailingAddress to which you want to ship the goods on this PO to
MailingAddress to which you want to ship goodspublic void setShipTo(MailingAddress shipTo)
MailingAddress to which you want to ship the goods on this PO to
shipTo - the new MailingAddress to which you want to ship the goods on this PO topublic Vendor getVendor()
Vendorpublic void setVendor(Vendor vendor)
vendor - the new vendor of the POpublic Partner getPartner()
public void setPartner(Partner partner)
partner - the new partner to ship the goods on the PO topublic java.lang.Integer getVersion()
public void setVersion(java.lang.Integer version)
public java.lang.Long getId()
public void setId(java.lang.Long id)
public java.lang.Double calculateAmount()
public void addLine(PurchaseOrderLine line)
po line to this purchase order
line - the line to addpublic void removeLine(PurchaseOrderLine line)
po line from this purchase order
line - the line to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||