public class Order extends ERPObject<Order>
An order summary object contains information retrieved from the ERP system. The information is used for display purposes only and is not persisted to a database table.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
Order()
Constructs an
Order object with all field values set to
null . |
Modifier and Type | Method and Description |
---|---|
void |
addOrderDetail(OrderDetail line)
Adds an order line item to the collection of order details.
|
void |
addPaymentDetail(PaymentDetail payment)
Adds a payment detail object to the collection of payment details.
|
void |
addShipSummary(ShipSummary shipment)
Adds a shipment summary record to the collection of shipment summaries.
|
java.lang.String |
fmtShiptoAddress()
Returns the ship-to customer's entire address in a format suitable for
display on a web page.
|
java.lang.String |
fmtShiptoAddress(java.lang.String lineSeparator)
Returns the ship-to customer's entire address in a single string with the
specified line separator.
|
java.lang.String |
getBilltoId()
Returns the bill-to customer id.
|
java.lang.String |
getContractNumber()
Returns the contract number.
|
java.lang.String |
getCustomerId()
Returns the ordering customer id.
|
java.lang.String |
getFreight()
Returns the freight amount.
|
java.lang.String |
getOrderDate()
Returns the order date.
|
java.util.ArrayList<OrderDetail> |
getOrderDetails()
Returns the collection of order line items.
|
java.lang.String |
getOrderNumber()
Returns the order number.
|
java.lang.String |
getPaidbyId()
Returns the paid-by customer id.
|
java.util.ArrayList<PaymentDetail> |
getPaymentDetails()
Returns the collection of payment detail items.
|
java.lang.String |
getPONumber()
Returns the order PO Number.
|
java.lang.String |
getReqShipDate()
Returns the order's requested shipping date.
|
java.lang.String |
getShipper()
Returns the shipper.
|
java.util.ArrayList<ShipSummary> |
getShipSummaries()
Returns the collection of shipment summary records.
|
java.lang.String |
getShiptoAddress1()
Returns the ship-to address line 1.
|
java.lang.String |
getShiptoAddress2()
Returns the ship-to address line 2.
|
java.lang.String |
getShiptoAddress3()
Returns the ship-to address line 3.
|
java.lang.String |
getShiptoAddress4()
Returns the ship-to address line 4.
|
java.lang.String |
getShiptoCityStZip()
Returns the ship-to city, state, zip.
|
java.lang.String |
getShiptoId()
Returns the ship-to customer id.
|
java.lang.String |
getShiptoName()
Returns the ship-to name.
|
java.lang.String |
getStatus()
Returns the order status.
|
java.lang.String |
getTax()
Returns the tax amount.
|
java.lang.String |
getType()
Returns the order type.
|
java.lang.String |
getUserDefinedField1()
Returns the order additional info.
|
java.lang.String |
getValue()
Returns the order value.
|
boolean |
isCanceled()
Answers if this order object has a canceled status.
|
boolean |
isCompleted()
Answers if this order object has a completed status.
|
boolean |
isCredit()
Answers if this order object is for an credit memo.
|
boolean |
isHeld()
Answers if this order object has a held status.
|
boolean |
isInvoiced()
Answers if this order object has an invoiced status.
|
boolean |
isOpen()
Answers if this order object has an open status.
|
boolean |
isOrder()
Answers if this order object is for an order (not a quote, not a credit
memo, etc.).
|
boolean |
isQuote()
Answers if this order object is for a quote.
|
void |
setBilltoId(java.lang.String value)
Sets the bill-to customer id.
|
void |
setContractNumber(java.lang.String value)
Sets the contract number.
|
void |
setCustomerId(java.lang.String value)
Sets the ordering customer id.
|
void |
setFreight(java.lang.String value)
Sets the freight amount.
|
void |
setOrderDate(java.lang.String value)
Sets the order date.
|
void |
setOrderNumber(java.lang.String value)
Sets the order number.
|
void |
setPaidbyId(java.lang.String value)
Sets the paid-by customer id.
|
void |
setPONumber(java.lang.String value)
Sets the order PO Number.
|
void |
setReqShipDate(java.lang.String value)
Sets the order's requested shipping date.
|
void |
setShipper(java.lang.String value)
Sets the shipper.
|
void |
setShiptoAddress1(java.lang.String value)
Sets the ship-to address line 1.
|
void |
setShiptoAddress2(java.lang.String value)
Sets the ship-to address line 2.
|
void |
setShiptoAddress3(java.lang.String value)
Sets the ship-to address line 3.
|
void |
setShiptoAddress4(java.lang.String value)
Sets the ship-to address line 4.
|
void |
setShiptoCityStZip(java.lang.String value)
Sets the ship-to city, state, zip.
|
void |
setShiptoId(java.lang.String value)
Sets the ship-to customer id.
|
void |
setShiptoName(java.lang.String value)
Sets the ship-to name.
|
void |
setStatus(java.lang.String value)
Sets the order status.
|
void |
setTax(java.lang.String value)
Sets the tax amount.
|
void |
setType(java.lang.String value)
Sets the order type.
|
void |
setUserDefinedField1(java.lang.String value)
Sets the order additional info.
|
void |
setValue(java.lang.String value)
Sets the order value.
|
java.lang.String |
toString()
Returns a string suitable for generic output.
|
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public Order()
Order
object with all field values set to
null
.public java.lang.String getOrderNumber()
public void setOrderNumber(java.lang.String value)
value
- (String) The order number.public java.lang.String getStatus()
public void setStatus(java.lang.String value)
value
- (String) The order status.public java.lang.String getReqShipDate()
public void setReqShipDate(java.lang.String value)
value
- (String) - The requested shipping date.public java.lang.String getContractNumber()
public void setContractNumber(java.lang.String value)
value
- (String) - The contract number.public java.lang.String getPONumber()
public void setPONumber(java.lang.String value)
value
- (String) The PO Number.public java.lang.String getUserDefinedField1()
public void setUserDefinedField1(java.lang.String value)
value
- (String) The additional info field.public java.lang.String getOrderDate()
public void setOrderDate(java.lang.String value)
value
- (String) The order date.public java.lang.String getCustomerId()
public void setCustomerId(java.lang.String value)
value
- (String) The ordering customer id.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- (String) The order value.public java.lang.String getShiptoId()
public void setShiptoId(java.lang.String value)
value
- (String) The ordering ship-to id.public java.lang.String getShiptoName()
public void setShiptoName(java.lang.String value)
value
- (String) The ship-to name.public java.lang.String getShiptoAddress1()
public void setShiptoAddress1(java.lang.String value)
value
- (String) The ship-to address line 1.public java.lang.String getShiptoAddress2()
public void setShiptoAddress2(java.lang.String value)
value
- (String) The ship-to address line 2.public java.lang.String getShiptoAddress3()
public void setShiptoAddress3(java.lang.String value)
value
- (String) The ship-to address line 3.public java.lang.String getShiptoAddress4()
public void setShiptoAddress4(java.lang.String value)
value
- (String) The ship-to address line 4.public java.lang.String getShiptoCityStZip()
public void setShiptoCityStZip(java.lang.String value)
value
- (String) The ship-to city, state, zip.public java.lang.String getBilltoId()
public void setBilltoId(java.lang.String value)
value
- (String) The ordering bill-to id.public java.lang.String getPaidbyId()
public void setPaidbyId(java.lang.String value)
value
- (String) The ordering paid-by id.public java.lang.String getFreight()
public void setFreight(java.lang.String value)
value
- (String) The freight amount.public java.lang.String getShipper()
public void setShipper(java.lang.String value)
value
- (String) The shipper code.public java.lang.String getTax()
public void setTax(java.lang.String value)
value
- (String) The tax amount.public java.lang.String getType()
public void setType(java.lang.String value)
value
- (String) The order type.public void addOrderDetail(OrderDetail line)
line
- (OrderDetail) The order line item.public java.util.ArrayList<OrderDetail> getOrderDetails()
public void addShipSummary(ShipSummary shipment)
shipment
- (ShipSummary) The shipment summary.public java.util.ArrayList<ShipSummary> getShipSummaries()
public void addPaymentDetail(PaymentDetail payment)
payment
- (PaymentDetail) The payment detail.public java.util.ArrayList<PaymentDetail> getPaymentDetails()
public java.lang.String fmtShiptoAddress()
public java.lang.String fmtShiptoAddress(java.lang.String lineSeparator)
lineSeparator
- (String) The characters to use between lines.public boolean isOrder()
true
if this is an order, otherwise
false
public boolean isQuote()
true
if this is a quote, otherwise
false
public boolean isCredit()
true
if this is a credit memo, otherwise
false
public boolean isHeld()
true
if the status is held, otherwise
false
public boolean isOpen()
true
if the status is open, otherwise
false
public boolean isCanceled()
true
if the status is canceled, otherwise
false
public boolean isCompleted()
true
if the status is completed, otherwise
false
public boolean isInvoiced()
true
if the status is invoiced, otherwise
false
public java.lang.String toString()
toString
in class java.lang.Object