Class HeaderSalesDocument
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.SimpleHeaderImpl
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.HeaderBaseImpl
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.HeaderSalesDocument
-
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,StatusObject,Header,HeaderBase,SimpleHeader,java.io.Serializable,java.lang.Cloneable
public class HeaderSalesDocument extends HeaderBaseImpl implements Header
Common Header Information for all objects of the bo layer that are considered to be sales documents.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.DatepricingDatePricing dateprotected java.lang.StringrecallDescService recall descriptionprotected java.lang.StringrecallIdService recall IDprotected UserStatusListuserStatusListList of user status-
Fields inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.HeaderBaseImpl
changeable, changedAt, createdAt, currency, deliveryPriority, disChannel, division, documentType, freightValue, grossValue, grossValueWOFreight, netValue, netValueWOFreight, partnerList, postingDate, predecessorList, processType, processTypeDesc, purchaseOrderExt, reqDeliveryDate, salesDocNumber, salesDocumentsOrigin, salesOffice, salesOrg, shipCond, successorList, taxValue, totalDiscount, totalValue, validFrom, validTo
-
Fields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKey
-
Fields inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.Header
NO_DELIVERY_PRIORITY, NO_OF_ITEMS_UNKNOWN
-
Fields inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.HeaderBase
DOCUMENT_COMPLETION_STATUS_COMPLETED, DOCUMENT_COMPLETION_STATUS_INPROCESS, DOCUMENT_COMPLETION_STATUS_OPEN
-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
-
Constructor Summary
Constructors Constructor Description HeaderSalesDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Drops the state of the object.java.lang.Objectclone()Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.BusinessStatusgetBillingStatus()Gets the billing status of the Document.BillTogetBillTo()Gets the Bill-To-Party of the documentjava.lang.StringgetDeliveryStatus()Get DELIVERY status.java.lang.StringgetIncoTerms1()Get the incoterms1java.lang.StringgetIncoTerms1Desc()Get the incoterms1 descriptionjava.lang.StringgetIncoTerms2()Get the incoterms2.TechKeygetIpcDocumentId()Get the IPC document id.OverallStatusgetOverallStatus()get the aggregated overall statusjava.math.BigDecimalgetPaymentDeduction()Return the value that has to be deducted of the payment amount.java.lang.StringgetPaymentTerms()get the payment typesjava.lang.StringgetPaymentTermsDesc()Get the payment terms description.java.util.DategetPricingDate()Get the pricing datejava.lang.StringgetRecallDesc()Returns the recall descriptionjava.lang.StringgetRecallId()Returns the recall idjava.lang.StringgetShippingManualPriceCondition()Returns shipping manual price conditionBusinessStatusgetShippingStatus()get the business statusShipTogetShipTo()Get the ship to information as an backend layer interface.java.lang.StringgetTotalManualPriceCondition()Returns total manual price conditionbooleanisDeliveryStatusCompleted()Determines whether or not, the document's delivery status is COMPLETED.booleanisDeliveryStatusInProcess()Determines whether or not, the document's delivery status is INPROCESS.booleanisDeliveryStatusOpen()Determines whether or not, the document's delivery status is OPEN.booleanisDocumentTypeOrder()Determines whether or not, the document's type is ORDER.booleanisDocumentTypeQuotation()Determines whether or not, the document's type is QUOTATION.booleanisDocumentTypeRFQ()Determines whether or not, the document's type is RFQ.voidsetBillingStatus(BillingStatus billStatus)Set the billing status for this object.voidsetBillTo(BillTo billTo)Sets the Bill-To-Party into the the document.voidsetDeliveryStatusCompleted()Set DELIVERY status to completedvoidsetDeliveryStatusInProcess()Set DELIVERY status to in processvoidsetDeliveryStatusOpen()Set DELIVERY status to openvoidsetIncoTerms1(java.lang.String incoTerms1)Set the incoterms1.voidsetIncoTerms1Desc(java.lang.String incoTerms1Desc)Set the incoterms1 descriptionvoidsetIncoTerms2(java.lang.String incoTerms2)Set the incoterms2.voidsetIpcDocumentId(TechKey ipcDocumentId)Set the IPC document id.voidsetOverallStatus(OverallStatus procStatus)Set the overall status for this object.voidsetPaymentDeduction(java.math.BigDecimal value)Set the value that has to be deducted of the payment amount.voidsetPaymentTerms(java.lang.String paymentTerms)Set the payment terms.voidsetPaymentTermsDesc(java.lang.String paymentTermsDesc)Set the payment terms descriptionvoidsetPricingDate(java.util.Date pricingDate)Set the pricing date.voidsetRecallDesc(java.lang.String recallDesc)Sets the recall descriptionvoidsetRecallId(java.lang.String recallId)Sets the recall idvoidsetShippingManualPriceCondition(java.lang.String priceType)Sets the shipping manual price conditionvoidsetShippingStatus(ShippingStatus shipStatus)Set the shipping status for this object.voidsetShipTo(ShipTo shipTo)Sets the default ship to for the header.voidsetTotalManualPriceCondition(java.lang.String priceType)Sets the total manual price conditionvoidsetUserStatusList(UserStatusList userStatusList)Sets list of user statusesjava.lang.StringtoString()Returns a simplifies string representation of the object.-
Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.HeaderBaseImpl
addPredecessor, addSuccessor, consolidateDate, createConnectedDocument, createText, getChangedAt, getCreatedAt, getCurrency, getDeliveryPriority, getDisChannel, getDivision, getDocumentType, getFreightValue, getGrossValue, getGrossValueWOFreight, getNetValue, getNetValueWOFreight, getPartnerId, getPartnerKey, getPartnerList, getPostingDate, getPredecessorList, getProcessType, getProcessTypeDesc, getPurchaseOrderExt, getReqDeliveryDate, getSalesDocNumber, getSalesDocumentsOrigin, getSalesOffice, getSalesOrg, getShipCond, getSuccessorList, getTaxValue, getTotalDiscount, getValidFrom, getValidTo, isChangeable, setChangeable, setChangedAt, setCreatedAt, setCurrency, setDeliveryPriority, setDisChannel, setDivision, setDocumentType, setFreightValue, setGrossValue, setGrossValueWOFreight, setNetValue, setNetValueWOFreight, setPartnerList, setPostingDate, setProcessType, setProcessTypeDesc, setPurchaseOrderExt, setReqDeliveryDate, setSalesDocNumber, setSalesDocumentsOrigin, setSalesOffice, setSalesOrg, setShipCond, setTaxValue, setTechKey, setTotalDiscount, setValidFrom, setValidTo
-
Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.impl.SimpleHeaderImpl
getDescription, getText, getTypedExtensionMap, isDirty, setDescription, setDirty, setText
-
Methods inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
addExtensionData, addMessage, clearMessages, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, determineBackendObject, equals, getBackendBusinessObject, getBackendBusinessObject, getBackendType, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getMessageList, getModuleConfigurationAccess, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hashCode, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setValid
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValid
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.HeaderBase
addPredecessor, addSuccessor, createConnectedDocument, createText, getChangedAt, getCreatedAt, getCurrency, getDeliveryPriority, getDisChannel, getDivision, getDocumentType, getFreightValue, getGrossValue, getGrossValueWOFreight, getNetValue, getNetValueWOFreight, getPartnerId, getPartnerKey, getPartnerList, getPostingDate, getPredecessorList, getProcessType, getProcessTypeDesc, getPurchaseOrderExt, getReqDeliveryDate, getSalesDocNumber, getSalesDocumentsOrigin, getSalesOffice, getSalesOrg, getShipCond, getSuccessorList, getTaxValue, getTotalDiscount, getValidFrom, getValidTo, isChangeable, setChangeable, setChangedAt, setCreatedAt, setCurrency, setDeliveryPriority, setDisChannel, setDivision, setDocumentType, setFreightValue, setGrossValue, setGrossValueWOFreight, setNetValue, setNetValueWOFreight, setPartnerList, setPostingDate, setProcessType, setProcessTypeDesc, setPurchaseOrderExt, setReqDeliveryDate, setSalesDocNumber, setSalesDocumentsOrigin, setSalesOffice, setSalesOrg, setShipCond, setTaxValue, setTotalDiscount, setValidFrom, setValidTo
-
Methods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.SimpleHeader
getDescription, getText, getTypedExtensionMap, isDirty, setDescription, setDirty, setText
-
-
-
-
Field Detail
-
recallId
protected java.lang.String recallId
Service recall ID
-
recallDesc
protected java.lang.String recallDesc
Service recall description
-
userStatusList
protected UserStatusList userStatusList
List of user status
-
pricingDate
protected java.util.Date pricingDate
Pricing date
-
-
Method Detail
-
clear
public void clear()
Description copied from class:HeaderBaseImplDrops the state of the object. All reference fields, except partnerList, are set to null, all primitive types are set to the default values they would have after the creation of a new instance. Use this method to reset the state to the state a newly created object would have. The advantage is, that the overhead caused by the normal object creation is omitted.- Specified by:
clearin interfaceSimpleHeader- Overrides:
clearin classHeaderBaseImpl
-
clone
public java.lang.Object clone()
Description copied from class:HeaderBaseImplInstead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.- Specified by:
clonein interfaceHeaderBase- Overrides:
clonein classHeaderBaseImpl- Returns:
- a deep-copy of this HeaderBase
-
getBillingStatus
public BusinessStatus getBillingStatus()
Description copied from interface:HeaderGets the billing status of the Document.- Specified by:
getBillingStatusin interfaceHeader- Returns:
- Billing status
-
getBillTo
public BillTo getBillTo()
Description copied from interface:HeaderGets the Bill-To-Party of the document
-
getDeliveryStatus
public java.lang.String getDeliveryStatus()
Description copied from interface:HeaderGet DELIVERY status. Might be different from OVERALL status.- Specified by:
getDeliveryStatusin interfaceHeader- Returns:
- one of the possible status values represented by the constants defined in this class with the names
DOCUMENT_COMPLETION_*.
-
getIncoTerms1
public java.lang.String getIncoTerms1()
Description copied from interface:HeaderGet the incoterms1- Specified by:
getIncoTerms1in interfaceHeader- Returns:
- String the incoterms1
-
getIncoTerms1Desc
public java.lang.String getIncoTerms1Desc()
Description copied from interface:HeaderGet the incoterms1 description- Specified by:
getIncoTerms1Descin interfaceHeader- Returns:
- String the incoterms1 description
-
getIncoTerms2
public java.lang.String getIncoTerms2()
Description copied from interface:HeaderGet the incoterms2.- Specified by:
getIncoTerms2in interfaceHeader- Returns:
- String the incoterms2.
-
getIpcDocumentId
public TechKey getIpcDocumentId()
Description copied from interface:HeaderGet the IPC document id.- Specified by:
getIpcDocumentIdin interfaceHeader- Returns:
- the IPC document id
-
getOverallStatus
public OverallStatus getOverallStatus()
Description copied from interface:Headerget the aggregated overall status- Specified by:
getOverallStatusin interfaceHeader- Returns:
- overall status
-
getPaymentTerms
public java.lang.String getPaymentTerms()
Description copied from interface:Headerget the payment types- Specified by:
getPaymentTermsin interfaceHeader- Returns:
- payment types
-
getPaymentTermsDesc
public java.lang.String getPaymentTermsDesc()
Description copied from interface:HeaderGet the payment terms description.- Specified by:
getPaymentTermsDescin interfaceHeader- Returns:
- String the payment terms description.
-
getPricingDate
public java.util.Date getPricingDate()
Description copied from interface:HeaderGet the pricing date- Specified by:
getPricingDatein interfaceHeader- Returns:
- the pricing date
-
getRecallDesc
public java.lang.String getRecallDesc()
Description copied from interface:HeaderReturns the recall description- Specified by:
getRecallDescin interfaceHeader- Returns:
- the recall description
-
getRecallId
public java.lang.String getRecallId()
Description copied from interface:HeaderReturns the recall id- Specified by:
getRecallIdin interfaceHeader- Returns:
- the recall id
-
getShippingManualPriceCondition
public java.lang.String getShippingManualPriceCondition()
Description copied from interface:HeaderReturns shipping manual price condition- Specified by:
getShippingManualPriceConditionin interfaceHeader- Returns:
- shipping manual price condition
-
getShippingStatus
public BusinessStatus getShippingStatus()
Description copied from interface:Headerget the business status- Specified by:
getShippingStatusin interfaceHeader- Returns:
- business status
-
getShipTo
public ShipTo getShipTo()
Description copied from interface:HeaderGet the ship to information as an backend layer interface.
-
getTotalManualPriceCondition
public java.lang.String getTotalManualPriceCondition()
Description copied from interface:HeaderReturns total manual price condition- Specified by:
getTotalManualPriceConditionin interfaceHeader- Returns:
- total manual price condition
-
isDeliveryStatusCompleted
public boolean isDeliveryStatusCompleted()
Description copied from interface:HeaderDetermines whether or not, the document's delivery status is COMPLETED.- Specified by:
isDeliveryStatusCompletedin interfaceHeader- Returns:
trueif the object is in status COMPLETED, otherwisefalse.
-
isDeliveryStatusInProcess
public boolean isDeliveryStatusInProcess()
Description copied from interface:HeaderDetermines whether or not, the document's delivery status is INPROCESS.- Specified by:
isDeliveryStatusInProcessin interfaceHeader- Returns:
trueif the object is in status INPROCESS, otherwisefalse.
-
isDeliveryStatusOpen
public boolean isDeliveryStatusOpen()
Description copied from interface:HeaderDetermines whether or not, the document's delivery status is OPEN.- Specified by:
isDeliveryStatusOpenin interfaceHeader- Returns:
trueif the object is in status OPEN, otherwisefalse.
-
isDocumentTypeOrder
public boolean isDocumentTypeOrder()
Description copied from interface:HeaderDetermines whether or not, the document's type is ORDER.- Specified by:
isDocumentTypeOrderin interfaceHeader- Returns:
trueif the type is ORDER, otherwisefalse.
-
isDocumentTypeQuotation
public boolean isDocumentTypeQuotation()
Description copied from interface:HeaderDetermines whether or not, the document's type is QUOTATION.- Specified by:
isDocumentTypeQuotationin interfaceHeader- Returns:
trueif the type is QUOTATION, otherwisefalse.
-
isDocumentTypeRFQ
public boolean isDocumentTypeRFQ()
Description copied from interface:HeaderDetermines whether or not, the document's type is RFQ.- Specified by:
isDocumentTypeRFQin interfaceHeader- Returns:
trueif the type is RFQ, otherwisefalse.
-
setBillingStatus
public void setBillingStatus(BillingStatus billStatus)
Description copied from interface:StatusObjectSet the billing status for this object.- Specified by:
setBillingStatusin interfaceStatusObject- Parameters:
billStatus- Billing Status
-
setBillTo
public void setBillTo(BillTo billTo)
Description copied from interface:HeaderSets the Bill-To-Party into the the document.
-
setDeliveryStatusCompleted
public void setDeliveryStatusCompleted()
Description copied from interface:HeaderSet DELIVERY status to completed- Specified by:
setDeliveryStatusCompletedin interfaceHeader
-
setDeliveryStatusInProcess
public void setDeliveryStatusInProcess()
Description copied from interface:HeaderSet DELIVERY status to in process- Specified by:
setDeliveryStatusInProcessin interfaceHeader
-
setDeliveryStatusOpen
public void setDeliveryStatusOpen()
Description copied from interface:HeaderSet DELIVERY status to open- Specified by:
setDeliveryStatusOpenin interfaceHeader
-
setIncoTerms1
public void setIncoTerms1(java.lang.String incoTerms1)
Description copied from interface:HeaderSet the incoterms1.- Specified by:
setIncoTerms1in interfaceHeader- Parameters:
incoTerms1- the incoterms1 to be set.
-
setIncoTerms1Desc
public void setIncoTerms1Desc(java.lang.String incoTerms1Desc)
Description copied from interface:HeaderSet the incoterms1 description- Specified by:
setIncoTerms1Descin interfaceHeader- Parameters:
incoTerms1Desc- the incoterms1 description to be set.
-
setIncoTerms2
public void setIncoTerms2(java.lang.String incoTerms2)
Description copied from interface:HeaderSet the incoterms2.- Specified by:
setIncoTerms2in interfaceHeader- Parameters:
incoTerms2- the incoterms2 to be set.
-
setIpcDocumentId
public void setIpcDocumentId(TechKey ipcDocumentId)
Description copied from interface:HeaderSet the IPC document id.- Specified by:
setIpcDocumentIdin interfaceHeader- Parameters:
ipcDocumentId- the IPC document id to be set
-
setOverallStatus
public void setOverallStatus(OverallStatus procStatus)
Description copied from interface:StatusObjectSet the overall status for this object.- Specified by:
setOverallStatusin interfaceStatusObject- Parameters:
procStatus- Overall Status
-
setPaymentTerms
public void setPaymentTerms(java.lang.String paymentTerms)
Description copied from interface:HeaderSet the payment terms.- Specified by:
setPaymentTermsin interfaceHeader- Parameters:
paymentTerms- the payment terms to be set.
-
setPaymentTermsDesc
public void setPaymentTermsDesc(java.lang.String paymentTermsDesc)
Description copied from interface:HeaderSet the payment terms description- Specified by:
setPaymentTermsDescin interfaceHeader- Parameters:
paymentTermsDesc- the payment terms description to be set.
-
setPricingDate
public void setPricingDate(java.util.Date pricingDate)
Description copied from interface:HeaderSet the pricing date.- Specified by:
setPricingDatein interfaceHeader- Parameters:
pricingDate- the pricing date
-
setRecallDesc
public void setRecallDesc(java.lang.String recallDesc)
Description copied from interface:HeaderSets the recall description- Specified by:
setRecallDescin interfaceHeader- Parameters:
recallDesc- the recall description
-
setRecallId
public void setRecallId(java.lang.String recallId)
Description copied from interface:HeaderSets the recall id- Specified by:
setRecallIdin interfaceHeader- Parameters:
recallId- the recall id
-
setShippingManualPriceCondition
public void setShippingManualPriceCondition(java.lang.String priceType)
Description copied from interface:HeaderSets the shipping manual price condition- Specified by:
setShippingManualPriceConditionin interfaceHeader- Parameters:
priceType- new shipping manual price condition
-
setShippingStatus
public void setShippingStatus(ShippingStatus shipStatus)
Description copied from interface:StatusObjectSet the shipping status for this object.- Specified by:
setShippingStatusin interfaceStatusObject- Parameters:
shipStatus- Shipping Status
-
setShipTo
public void setShipTo(ShipTo shipTo)
Description copied from interface:HeaderSets the default ship to for the header. This ship to is used, if no special information is set at the item level.
-
setTotalManualPriceCondition
public void setTotalManualPriceCondition(java.lang.String priceType)
Description copied from interface:HeaderSets the total manual price condition- Specified by:
setTotalManualPriceConditionin interfaceHeader- Parameters:
priceType- manual price conidtion
-
setUserStatusList
public void setUserStatusList(UserStatusList userStatusList)
Sets list of user statuses- Parameters:
userStatusList-
-
toString
public java.lang.String toString()
Description copied from class:HeaderBaseImplReturns a simplifies string representation of the object. Useful for debugging/logging purpose, but not for display on the User Interface.- Overrides:
toStringin classHeaderBaseImpl- Returns:
- object as string
-
getPaymentDeduction
public java.math.BigDecimal getPaymentDeduction()
Description copied from interface:HeaderReturn the value that has to be deducted of the payment amount.- Specified by:
getPaymentDeductionin interfaceHeader- Returns:
- BigDecimal
-
setPaymentDeduction
public void setPaymentDeduction(java.math.BigDecimal value)
Description copied from interface:HeaderSet the value that has to be deducted of the payment amount.- Specified by:
setPaymentDeductionin interfaceHeader- Parameters:
value- amount to be deducted
-
-