Interface HeaderBase
- All Superinterfaces:
BusinessObject,Cloneable,MessageListHolder,Serializable,SimpleHeader
- All Known Subinterfaces:
Header
- All Known Implementing Classes:
HeaderBaseImpl,HeaderSalesDocument
Represents the backend's view of the header of a sales document.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant defining a document that is in the completion status COMPLETED.static final StringConstant defining a document that is in the completion status INPROCESS.static final StringConstant defining a document that is in the completion status OPEN.Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPredecessor(ConnectedDocument predecessorData) Adds aConnectedDocumentto the predecessor list.voidaddSuccessor(ConnectedDocument successorData) Adds aConnectedDocumentto the successor list.clone()Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.create aConnectedDocumentobject.Creates a text object.Get the date, the document was changed the last time.Get the date, the document was created.Get the currency used for this document.Returns the delivery priority keyGet the distribution channel.Get the devision.Returns the type of the document, the header belongs to.Get the price for the freight of the order.Get the price including all taxes but not the freight.Get the gross price without freight.Get the net priceGet the net price without freight.getPartnerId(String partnerFunction) Returns the partner id for the given partner function.getPartnerKey(String partnerFunction) Returns the partner key for the given partner function.Get the business partner listGet the date the order was created from the customer's point of view.Get the predecessor listGet the process type of the document.Get the description of the process typeGet the external purchase order number.Get the requested delivery date.Get the number of the sales document the header belongs to.Get the origin of the sales document.Get the sales office.Get the sales organization for the document.Get the shipping conditions for the document.Get the successor listGet the taxes that have to be paid for the document.Get the date, the document is valid from.Get the date, the document is valid to.booleanCheck whether or not the document is changeable.voidsetChangeable(boolean changeable) Set whether or not the document is changeable using a String parameter.voidsetChangedAt(Date changedAt) Set the date, the document was changed the last time.voidsetCreatedAt(Date createdAt) Set the date, document was created.voidsetCurrency(String currency) Set the currency used for the document the header belongs to.voidsetDeliveryPriority(String deliveryPriority) Sets the delivery priority key.voidsetDisChannel(String disChannel) Set the distribution channel.voidsetDivision(String division) Set the devision.voidsetDocumentType(DocumentType docType) Set the document type.voidsetFreightValue(BigDecimal freightValue) Set the price for the freight of the order.voidsetGrossValue(BigDecimal grossValue) Set the price including all taxes but not the freight.voidsetGrossValueWOFreight(BigDecimal grossValueWOFreight) Set the gross value without freight.voidsetNetValue(BigDecimal netValue) Set the net pricevoidsetNetValueWOFreight(BigDecimal netValueWOFreight) Set the net price without freight.voidsetPartnerList(PartnerList list) Sets the business partner list.voidsetPostingDate(Date postingDate) Set the date the order was created from the customer's point of view.voidsetProcessType(String processType) Set the the process type of the document.voidsetProcessTypeDesc(String processTypeDesc) Sets the description of the process typevoidsetPurchaseOrderExt(String purchaseOrderExt) Set the external purchase order number.voidsetReqDeliveryDate(Date reqDeliveryDate) Set the requested delivery date.voidsetSalesDocNumber(String salesDocNumber) Set the number of the sales document the header belongs to.voidsetSalesDocumentsOrigin(String salesDocOrigin) Set the origin of the sales document.voidsetSalesOffice(String salesOffice) Set the sales office.voidsetSalesOrg(String salesOrg) Set the sales organization for the document.voidsetShipCond(String shipCond) Set the shipping conditions for the document.voidsetTaxValue(BigDecimal taxValue) Set the taxes that have to be paid for the document.voidsetTotalDiscount(BigDecimal totalDiscount) sets the total discount, which is used for strike through pricesvoidsetValidFrom(Date validFrom) Sets the date, the document is valid from.voidsetValidTo(Date validTo) Sets the date, the document is valid to.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, setValidMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageListMethods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.header.businessobject.interf.SimpleHeader
clear, getDescription, getText, getTypedExtensionMap, isDirty, setDescription, setDirty, setText
-
Field Details
-
DOCUMENT_COMPLETION_STATUS_OPEN
Constant defining a document that is in the completion status OPEN.- See Also:
-
DOCUMENT_COMPLETION_STATUS_INPROCESS
Constant defining a document that is in the completion status INPROCESS.- See Also:
-
DOCUMENT_COMPLETION_STATUS_COMPLETED
Constant defining a document that is in the completion status COMPLETED.- See Also:
-
-
Method Details
-
addPredecessor
Adds aConnectedDocumentto the predecessor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Parameters:
predecessorData- ConnectedDocument to be added to the predecessor list
-
addSuccessor
Adds aConnectedDocumentto the successor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Parameters:
successorData- ConnectedDocument to be added to the successor list
-
clone
Object clone()Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.- Returns:
- a deep-copy of this HeaderBase
-
createText
Text createText()Creates a text object. This method is used by back end objects to get instances of the text object.- Returns:
- newly created text object
-
createConnectedDocument
ConnectedDocument createConnectedDocument()create aConnectedDocumentobject.- Returns:
- new ConnectedDocument Instance
-
getChangedAt
Date getChangedAt()Get the date, the document was changed the last time.- Returns:
- the date, the document was changed the last time
-
getCreatedAt
Date getCreatedAt()Get the date, the document was created.- Returns:
- date, the document was created
-
getCurrency
String getCurrency()Get the currency used for this document.- Returns:
- the currency used for this document
-
getDeliveryPriority
String getDeliveryPriority()Returns the delivery priority key- Returns:
- String
-
getDisChannel
String getDisChannel()Get the distribution channel.- Returns:
- distribution channel
-
getDivision
String getDivision()Get the devision.- Returns:
- the devision
-
getDocumentType
DocumentType getDocumentType()Returns the type of the document, the header belongs to.- Returns:
- the document type.
-
getFreightValue
BigDecimal getFreightValue()Get the price for the freight of the order.- Returns:
- the price for the freight of the
-
getGrossValue
BigDecimal getGrossValue()Get the price including all taxes but not the freight.- Returns:
- the value
-
getNetValue
BigDecimal getNetValue()Get the net price- Returns:
- the price
-
getNetValueWOFreight
BigDecimal getNetValueWOFreight()Get the net price without freight.- Returns:
- the price
-
getPartnerId
Returns the partner id for the given partner function.- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner id
-
getPartnerKey
Returns the partner key for the given partner function.- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner GUID
-
getPartnerList
PartnerList getPartnerList()Get the business partner list- Returns:
- PartnerList list of business partners
-
getPostingDate
Date getPostingDate()Get the date the order was created from the customer's point of view.- Returns:
- the posting date
-
getPredecessorList
List<ConnectedDocument> getPredecessorList()Get the predecessor list- Returns:
- list of all predecessor documents
-
getProcessType
String getProcessType()Get the process type of the document.- Returns:
- process type
-
getProcessTypeDesc
String getProcessTypeDesc()Get the description of the process type- Returns:
- description of the process type
-
getPurchaseOrderExt
String getPurchaseOrderExt()Get the external purchase order number.- Returns:
- the purchase order number
-
getReqDeliveryDate
Date getReqDeliveryDate()Get the requested delivery date.- Returns:
- the request delivery date
-
getSalesDocNumber
String getSalesDocNumber()Get the number of the sales document the header belongs to.- Returns:
- the number of the sales document
-
getSalesDocumentsOrigin
String getSalesDocumentsOrigin()Get the origin of the sales document.- Returns:
- the origin of the sales document
-
getSalesOffice
String getSalesOffice()Get the sales office.- Returns:
- the sales office
-
getSalesOrg
String getSalesOrg()Get the sales organization for the document.- Returns:
- the sales organization
-
getShipCond
String getShipCond()Get the shipping conditions for the document.- Returns:
- the shipping conditions
-
getSuccessorList
List<ConnectedDocument> getSuccessorList()Get the successor list- Returns:
- list of all successor documents
-
getTaxValue
BigDecimal getTaxValue()Get the taxes that have to be paid for the document.- Returns:
- the taxes
-
getTotalDiscount
BigDecimal getTotalDiscount()- Returns:
- total discount, which is used for strike through prices
-
getValidFrom
Date getValidFrom()Get the date, the document is valid from.- Returns:
- date, the document is valid from
-
getValidTo
Date getValidTo()Get the date, the document is valid to.- Returns:
- date, the document is valid to
-
isChangeable
boolean isChangeable()Check whether or not the document is changeable.- Returns:
trueif the document is changeable, otherwisefalse.
-
setChangeable
void setChangeable(boolean changeable) Set whether or not the document is changeable using a String parameter.- Parameters:
changeable-" "or""indicates that the document is changeable, all other values that it is changeable.
-
setChangedAt
Set the date, the document was changed the last time.- Parameters:
changedAt- the date, the document was changed the last time
-
setCreatedAt
Set the date, document was created.- Parameters:
createdAt- the date to be set
-
setCurrency
Set the currency used for the document the header belongs to.- Parameters:
currency- the currency to be set
-
setDeliveryPriority
Sets the delivery priority key.- Parameters:
deliveryPriority- key
-
setDisChannel
Set the distribution channel.- Parameters:
disChannel- the distribution channel to be set
-
setDivision
Set the devision.- Parameters:
division- the devision to be set
-
setDocumentType
Set the document type.- Parameters:
docType- document type
-
setFreightValue
Set the price for the freight of the order.- Parameters:
freightValue- the price for the freight
-
setGrossValue
Set the price including all taxes but not the freight.- Parameters:
grossValue- the price to be set
-
setNetValue
Set the net price- Parameters:
netValue- the price to be set
-
setNetValueWOFreight
Set the net price without freight.- Parameters:
netValueWOFreight- the price to be set
-
setPartnerList
Sets the business partner list.- Parameters:
list- list of business partners
-
setPostingDate
Set the date the order was created from the customer's point of view.- Parameters:
postingDate- the date to be set
-
setProcessType
Set the the process type of the document.- Parameters:
processType- the process type to be set
-
setProcessTypeDesc
Sets the description of the process type- Parameters:
processTypeDesc- The processTypeDesc to set
-
setPurchaseOrderExt
Set the external purchase order number.- Parameters:
purchaseOrderExt- the number to be set
-
setReqDeliveryDate
Set the requested delivery date.- Parameters:
reqDeliveryDate- the requested delivery date to be set.
-
setSalesDocNumber
Set the number of the sales document the header belongs to.- Parameters:
salesDocNumber- the number of the sales document
-
setSalesDocumentsOrigin
Set the origin of the sales document.- Parameters:
salesDocOrigin- the origin to be set
-
setSalesOffice
Set the sales office.- Parameters:
salesOffice- the sales office
-
setSalesOrg
Set the sales organization for the document.- Parameters:
salesOrg- the sales organization.
-
setShipCond
Set the shipping conditions for the document.- Parameters:
shipCond- the shipping conditions
-
setTaxValue
Set the taxes that have to be paid for the document.- Parameters:
taxValue- the taxes to be set
-
setTotalDiscount
sets the total discount, which is used for strike through prices- Parameters:
totalDiscount- totalDiscount as BigDecimal
-
getGrossValueWOFreight
BigDecimal getGrossValueWOFreight()Get the gross price without freight.- Returns:
- the gross price without freight
-
setGrossValueWOFreight
Set the gross value without freight.- Parameters:
grossValueWOFreight- the price to be set
-
setValidFrom
Sets the date, the document is valid from.- Parameters:
validFrom- the validFrom date to be set.
-
setValidTo
Sets the date, the document is valid to.- Parameters:
validTo- the validTo date to be set.
-