Class HeaderBaseImpl
- 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
-
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,HeaderBase,SimpleHeader,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
HeaderSalesDocument
public class HeaderBaseImpl extends SimpleHeaderImpl implements HeaderBase
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 booleanchangeableDocument can be changed?protected java.util.DatechangedAtChanged dateprotected java.util.DatecreatedAtCreated dateprotected java.lang.StringcurrencyCurrencyprotected java.lang.StringdeliveryPriorityDelivery Priorityprotected java.lang.StringdisChannelDistribution channelprotected java.lang.StringdivisionDivisionprotected DocumentTypedocumentTypeDocument typeprotected java.math.BigDecimalfreightValueFreight valueprotected java.math.BigDecimalgrossValueGross valueprotected java.math.BigDecimalgrossValueWOFreightGross value without freightprotected java.math.BigDecimalnetValueNet valueprotected java.math.BigDecimalnetValueWOFreightNet value without freightprotected PartnerListpartnerListPartner listprotected java.util.DatepostingDatePosting dateprotected java.util.List<ConnectedDocument>predecessorListList of predecessorsprotected java.lang.StringprocessTypeProcess typeprotected java.lang.StringprocessTypeDescProcess type descriptionprotected java.lang.StringpurchaseOrderExtPurchase order numberprotected java.util.DatereqDeliveryDateRequired delivery dateprotected java.lang.StringsalesDocNumberSales document number from back endprotected java.lang.StringsalesDocumentsOriginOrigin of sales documentprotected java.lang.StringsalesOfficeSales officeprotected java.lang.StringsalesOrgSales organizationprotected java.lang.StringshipCondShipping conditionprotected java.util.List<ConnectedDocument>successorListList of successorsprotected java.math.BigDecimaltaxValueTax valueprotected java.math.BigDecimaltotalDiscountTotal discountprotected java.math.BigDecimaltotalValueTotal valueprotected java.util.DatevalidFromValid from dateprotected java.util.DatevalidToValid to date-
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.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 HeaderBaseImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPredecessor(ConnectedDocument predecessorData)Adds aConnectedDocumentto the predecessor list.voidaddSuccessor(ConnectedDocument successorData)Adds aConnectedDocumentto the successor list.voidclear()Drops the state of the object.java.lang.Objectclone()Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.protected java.util.DateconsolidateDate(java.util.Date date)If year >9999: Set it to 9999ConnectedDocumentcreateConnectedDocument()create aConnectedDocumentobject.TextcreateText()Creates a text object.java.util.DategetChangedAt()Get the date, the document was changed the last time.java.util.DategetCreatedAt()Get the date, the document was created.java.lang.StringgetCurrency()Get the currency used for this document.java.lang.StringgetDeliveryPriority()Returns the delivery priority keyjava.lang.StringgetDisChannel()Get the distribution channel.java.lang.StringgetDivision()Get the devision.DocumentTypegetDocumentType()Returns the type of the document, the header belongs to.java.math.BigDecimalgetFreightValue()Get the price for the freight of the order.java.math.BigDecimalgetGrossValue()Get the price including all taxes but not the freight.java.math.BigDecimalgetGrossValueWOFreight()Get the gross price without freight.java.math.BigDecimalgetNetValue()Get the net pricejava.math.BigDecimalgetNetValueWOFreight()Get the net price without freight.java.lang.StringgetPartnerId(java.lang.String partnerFunction)Returns the partner id for the given partner function.TechKeygetPartnerKey(java.lang.String partnerFunction)Returns the partner key for the given partner function.PartnerListgetPartnerList()Get the business partner listjava.util.DategetPostingDate()Get the date the order was created from the customer's point of view.java.util.List<ConnectedDocument>getPredecessorList()Get the predecessor listjava.lang.StringgetProcessType()Get the process type of the document.java.lang.StringgetProcessTypeDesc()Get the description of the process typejava.lang.StringgetPurchaseOrderExt()Get the external purchase order number.java.util.DategetReqDeliveryDate()Get the requested delivery date.java.lang.StringgetSalesDocNumber()Get the number of the sales document the header belongs to.java.lang.StringgetSalesDocumentsOrigin()Get the origin of the sales document.java.lang.StringgetSalesOffice()Get the sales office.java.lang.StringgetSalesOrg()Get the sales organization for the document.java.lang.StringgetShipCond()Get the shipping conditions for the document.java.util.List<ConnectedDocument>getSuccessorList()Get the successor listjava.math.BigDecimalgetTaxValue()Get the taxes that have to be paid for the document.java.math.BigDecimalgetTotalDiscount()java.util.DategetValidFrom()Get the date, the document is valid from.java.util.DategetValidTo()Get the date, the document is valid to.booleanisChangeable()Check whether or not the document is changeable.voidsetChangeable(boolean changeable)Set whether or not the document is changeable using a String parameter.voidsetChangedAt(java.util.Date changedAt)Set the date, the document was changed the last time.voidsetCreatedAt(java.util.Date createdAt)Set the date, document was created.voidsetCurrency(java.lang.String currency)Set the currency used for the document the header belongs to.voidsetDeliveryPriority(java.lang.String deliveryPriority)Sets the delivery priority key.voidsetDisChannel(java.lang.String disChannel)Set the distribution channel.voidsetDivision(java.lang.String division)Set the devision.voidsetDocumentType(DocumentType documentType)Set the document type.voidsetFreightValue(java.math.BigDecimal freightValue)Set the price for the freight of the order.voidsetGrossValue(java.math.BigDecimal grossValue)Set the price including all taxes but not the freight.voidsetGrossValueWOFreight(java.math.BigDecimal grossValueWOFreight)Set the gross value without freight.voidsetNetValue(java.math.BigDecimal netValue)Set the net pricevoidsetNetValueWOFreight(java.math.BigDecimal netValueWOFreight)Set the net price without freight.voidsetPartnerList(PartnerList partnerList)Sets the business partner list.voidsetPostingDate(java.util.Date postingDate)Set the date the order was created from the customer's point of view.voidsetProcessType(java.lang.String processType)Set the the process type of the document.voidsetProcessTypeDesc(java.lang.String processTypeDesc)Sets the description of the process typevoidsetPurchaseOrderExt(java.lang.String purchaseOrderExt)Set the external purchase order number.voidsetReqDeliveryDate(java.util.Date reqDeliveryDate)Set the requested delivery date.voidsetSalesDocNumber(java.lang.String salesDocNumber)Set the number of the sales document the header belongs to.voidsetSalesDocumentsOrigin(java.lang.String salesDocOrigin)Set the origin of the sales document.voidsetSalesOffice(java.lang.String salesOffice)Set the sales office.voidsetSalesOrg(java.lang.String salesOrg)Set the sales organization for the document.voidsetShipCond(java.lang.String shipCond)Set the shipping conditions for the document.voidsetTaxValue(java.math.BigDecimal taxValue)Set the taxes that have to be paid for the document.voidsetTechKey(TechKey techKey)Sets the key for the document and sets the docuemnt to dirty, so that a re-read is enforced with netx read.voidsetTotalDiscount(java.math.BigDecimal totalDiscount)sets the total discount, which is used for strike through pricesvoidsetValidFrom(java.util.Date validFrom)Sets the date, the document is valid from.voidsetValidTo(java.util.Date validTo)Sets the date, the document is valid to.java.lang.StringtoString()Returns a simplifies string representation of the object.-
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, setValid
-
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
-
changeable
protected boolean changeable
Document can be changed?
-
changedAt
protected java.util.Date changedAt
Changed date
-
createdAt
protected java.util.Date createdAt
Created date
-
currency
protected java.lang.String currency
Currency
-
division
protected java.lang.String division
Division
-
disChannel
protected java.lang.String disChannel
Distribution channel
-
documentType
protected DocumentType documentType
Document type
-
freightValue
protected java.math.BigDecimal freightValue
Freight value
-
grossValue
protected java.math.BigDecimal grossValue
Gross value
-
netValue
protected java.math.BigDecimal netValue
Net value
-
netValueWOFreight
protected java.math.BigDecimal netValueWOFreight
Net value without freight
-
grossValueWOFreight
protected java.math.BigDecimal grossValueWOFreight
Gross value without freight
-
totalValue
protected java.math.BigDecimal totalValue
Total value
-
partnerList
protected PartnerList partnerList
Partner list
-
processType
protected java.lang.String processType
Process type
-
processTypeDesc
protected java.lang.String processTypeDesc
Process type description
-
salesDocNumber
protected java.lang.String salesDocNumber
Sales document number from back end
-
purchaseOrderExt
protected java.lang.String purchaseOrderExt
Purchase order number
-
postingDate
protected java.util.Date postingDate
Posting date
-
salesDocumentsOrigin
protected java.lang.String salesDocumentsOrigin
Origin of sales document
-
salesOrg
protected java.lang.String salesOrg
Sales organization
-
salesOffice
protected java.lang.String salesOffice
Sales office
-
reqDeliveryDate
protected java.util.Date reqDeliveryDate
Required delivery date
-
validFrom
protected java.util.Date validFrom
Valid from date
-
validTo
protected java.util.Date validTo
Valid to date
-
shipCond
protected java.lang.String shipCond
Shipping condition
-
taxValue
protected java.math.BigDecimal taxValue
Tax value
-
totalDiscount
protected java.math.BigDecimal totalDiscount
Total discount
-
deliveryPriority
protected java.lang.String deliveryPriority
Delivery Priority
-
predecessorList
protected java.util.List<ConnectedDocument> predecessorList
List of predecessors
-
successorList
protected java.util.List<ConnectedDocument> successorList
List of successors
-
-
Method Detail
-
addPredecessor
public void addPredecessor(ConnectedDocument predecessorData)
Description copied from interface:HeaderBaseAdds aConnectedDocumentto the predecessor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Specified by:
addPredecessorin interfaceHeaderBase- Parameters:
predecessorData- ConnectedDocument to be added to the predecessor list
-
addSuccessor
public void addSuccessor(ConnectedDocument successorData)
Description copied from interface:HeaderBaseAdds aConnectedDocumentto the successor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Specified by:
addSuccessorin interfaceHeaderBase- Parameters:
successorData- ConnectedDocument to be added to the successor list
-
clear
public void clear()
Drops 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 classSimpleHeaderImpl
-
clone
public java.lang.Object clone()
Instead of a shallow-copy this returns a deep-copy of this HeaderBaseImpl instance.- Specified by:
clonein interfaceHeaderBase- Overrides:
clonein classSimpleHeaderImpl- Returns:
- a deep-copy of this HeaderBase
-
createText
public Text createText()
Description copied from interface:HeaderBaseCreates a text object. This method is used by back end objects to get instances of the text object.- Specified by:
createTextin interfaceHeaderBase- Returns:
- newly created text object
-
createConnectedDocument
public ConnectedDocument createConnectedDocument()
Description copied from interface:HeaderBasecreate aConnectedDocumentobject.- Specified by:
createConnectedDocumentin interfaceHeaderBase- Returns:
- new ConnectedDocument Instance
-
getChangedAt
public java.util.Date getChangedAt()
Description copied from interface:HeaderBaseGet the date, the document was changed the last time.- Specified by:
getChangedAtin interfaceHeaderBase- Returns:
- the date, the document was changed the last time
-
getCreatedAt
public java.util.Date getCreatedAt()
Description copied from interface:HeaderBaseGet the date, the document was created.- Specified by:
getCreatedAtin interfaceHeaderBase- Returns:
- date, the document was created
-
getCurrency
public java.lang.String getCurrency()
Description copied from interface:HeaderBaseGet the currency used for this document.- Specified by:
getCurrencyin interfaceHeaderBase- Returns:
- the currency used for this document
-
getDeliveryPriority
public java.lang.String getDeliveryPriority()
Description copied from interface:HeaderBaseReturns the delivery priority key- Specified by:
getDeliveryPriorityin interfaceHeaderBase- Returns:
- String
-
getDisChannel
public java.lang.String getDisChannel()
Description copied from interface:HeaderBaseGet the distribution channel.- Specified by:
getDisChannelin interfaceHeaderBase- Returns:
- distribution channel
-
getDivision
public java.lang.String getDivision()
Description copied from interface:HeaderBaseGet the devision.- Specified by:
getDivisionin interfaceHeaderBase- Returns:
- the devision
-
getDocumentType
public DocumentType getDocumentType()
Description copied from interface:HeaderBaseReturns the type of the document, the header belongs to.- Specified by:
getDocumentTypein interfaceHeaderBase- Returns:
- the document type.
-
getFreightValue
public java.math.BigDecimal getFreightValue()
Description copied from interface:HeaderBaseGet the price for the freight of the order.- Specified by:
getFreightValuein interfaceHeaderBase- Returns:
- the price for the freight of the
-
getGrossValue
public java.math.BigDecimal getGrossValue()
Description copied from interface:HeaderBaseGet the price including all taxes but not the freight.- Specified by:
getGrossValuein interfaceHeaderBase- Returns:
- the value
-
getNetValue
public java.math.BigDecimal getNetValue()
Description copied from interface:HeaderBaseGet the net price- Specified by:
getNetValuein interfaceHeaderBase- Returns:
- the price
-
getNetValueWOFreight
public java.math.BigDecimal getNetValueWOFreight()
Description copied from interface:HeaderBaseGet the net price without freight.- Specified by:
getNetValueWOFreightin interfaceHeaderBase- Returns:
- the price
-
getPartnerId
public java.lang.String getPartnerId(java.lang.String partnerFunction)
Description copied from interface:HeaderBaseReturns the partner id for the given partner function.- Specified by:
getPartnerIdin interfaceHeaderBase- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner id
-
getPartnerKey
public TechKey getPartnerKey(java.lang.String partnerFunction)
Description copied from interface:HeaderBaseReturns the partner key for the given partner function.- Specified by:
getPartnerKeyin interfaceHeaderBase- Parameters:
partnerFunction- partnerFucntion to be checked- Returns:
- partner GUID
-
getPartnerList
public PartnerList getPartnerList()
Description copied from interface:HeaderBaseGet the business partner list- Specified by:
getPartnerListin interfaceHeaderBase- Returns:
- PartnerList list of business partners
-
getPostingDate
public java.util.Date getPostingDate()
Description copied from interface:HeaderBaseGet the date the order was created from the customer's point of view.- Specified by:
getPostingDatein interfaceHeaderBase- Returns:
- the posting date
-
getPredecessorList
public java.util.List<ConnectedDocument> getPredecessorList()
Description copied from interface:HeaderBaseGet the predecessor list- Specified by:
getPredecessorListin interfaceHeaderBase- Returns:
- list of all predecessor documents
-
getProcessType
public java.lang.String getProcessType()
Description copied from interface:HeaderBaseGet the process type of the document.- Specified by:
getProcessTypein interfaceHeaderBase- Returns:
- process type
-
getProcessTypeDesc
public java.lang.String getProcessTypeDesc()
Description copied from interface:HeaderBaseGet the description of the process type- Specified by:
getProcessTypeDescin interfaceHeaderBase- Returns:
- description of the process type
-
getPurchaseOrderExt
public java.lang.String getPurchaseOrderExt()
Description copied from interface:HeaderBaseGet the external purchase order number.- Specified by:
getPurchaseOrderExtin interfaceHeaderBase- Returns:
- the purchase order number
-
getReqDeliveryDate
public java.util.Date getReqDeliveryDate()
Description copied from interface:HeaderBaseGet the requested delivery date.- Specified by:
getReqDeliveryDatein interfaceHeaderBase- Returns:
- the request delivery date
-
getSalesDocNumber
public java.lang.String getSalesDocNumber()
Description copied from interface:HeaderBaseGet the number of the sales document the header belongs to.- Specified by:
getSalesDocNumberin interfaceHeaderBase- Returns:
- the number of the sales document
-
getSalesDocumentsOrigin
public java.lang.String getSalesDocumentsOrigin()
Description copied from interface:HeaderBaseGet the origin of the sales document.- Specified by:
getSalesDocumentsOriginin interfaceHeaderBase- Returns:
- the origin of the sales document
-
getSalesOffice
public java.lang.String getSalesOffice()
Description copied from interface:HeaderBaseGet the sales office.- Specified by:
getSalesOfficein interfaceHeaderBase- Returns:
- the sales office
-
getSalesOrg
public java.lang.String getSalesOrg()
Description copied from interface:HeaderBaseGet the sales organization for the document.- Specified by:
getSalesOrgin interfaceHeaderBase- Returns:
- the sales organization
-
getShipCond
public java.lang.String getShipCond()
Description copied from interface:HeaderBaseGet the shipping conditions for the document.- Specified by:
getShipCondin interfaceHeaderBase- Returns:
- the shipping conditions
-
getSuccessorList
public java.util.List<ConnectedDocument> getSuccessorList()
Description copied from interface:HeaderBaseGet the successor list- Specified by:
getSuccessorListin interfaceHeaderBase- Returns:
- list of all successor documents
-
getTaxValue
public java.math.BigDecimal getTaxValue()
Description copied from interface:HeaderBaseGet the taxes that have to be paid for the document.- Specified by:
getTaxValuein interfaceHeaderBase- Returns:
- the taxes
-
getTotalDiscount
public java.math.BigDecimal getTotalDiscount()
- Specified by:
getTotalDiscountin interfaceHeaderBase- Returns:
- total discount, which is used for strike through prices
-
isChangeable
public boolean isChangeable()
Description copied from interface:HeaderBaseCheck whether or not the document is changeable.- Specified by:
isChangeablein interfaceHeaderBase- Returns:
trueif the document is changeable, otherwisefalse.
-
setChangeable
public void setChangeable(boolean changeable)
Description copied from interface:HeaderBaseSet whether or not the document is changeable using a String parameter.- Specified by:
setChangeablein interfaceHeaderBase- Parameters:
changeable-" "or""indicates that the document is changeable, all other values that it is changeable.
-
setChangedAt
public void setChangedAt(java.util.Date changedAt)
Description copied from interface:HeaderBaseSet the date, the document was changed the last time.- Specified by:
setChangedAtin interfaceHeaderBase- Parameters:
changedAt- the date, the document was changed the last time
-
setCreatedAt
public void setCreatedAt(java.util.Date createdAt)
Description copied from interface:HeaderBaseSet the date, document was created.- Specified by:
setCreatedAtin interfaceHeaderBase- Parameters:
createdAt- the date to be set
-
setCurrency
public void setCurrency(java.lang.String currency)
Description copied from interface:HeaderBaseSet the currency used for the document the header belongs to.- Specified by:
setCurrencyin interfaceHeaderBase- Parameters:
currency- the currency to be set
-
setDeliveryPriority
public void setDeliveryPriority(java.lang.String deliveryPriority)
Description copied from interface:HeaderBaseSets the delivery priority key.- Specified by:
setDeliveryPriorityin interfaceHeaderBase- Parameters:
deliveryPriority- key
-
setDisChannel
public void setDisChannel(java.lang.String disChannel)
Description copied from interface:HeaderBaseSet the distribution channel.- Specified by:
setDisChannelin interfaceHeaderBase- Parameters:
disChannel- the distribution channel to be set
-
setDivision
public void setDivision(java.lang.String division)
Description copied from interface:HeaderBaseSet the devision.- Specified by:
setDivisionin interfaceHeaderBase- Parameters:
division- the devision to be set
-
setDocumentType
public void setDocumentType(DocumentType documentType)
Description copied from interface:HeaderBaseSet the document type.- Specified by:
setDocumentTypein interfaceHeaderBase- Parameters:
documentType- document type
-
setFreightValue
public void setFreightValue(java.math.BigDecimal freightValue)
Description copied from interface:HeaderBaseSet the price for the freight of the order.- Specified by:
setFreightValuein interfaceHeaderBase- Parameters:
freightValue- the price for the freight
-
setGrossValue
public void setGrossValue(java.math.BigDecimal grossValue)
Description copied from interface:HeaderBaseSet the price including all taxes but not the freight.- Specified by:
setGrossValuein interfaceHeaderBase- Parameters:
grossValue- the price to be set
-
setNetValue
public void setNetValue(java.math.BigDecimal netValue)
Description copied from interface:HeaderBaseSet the net price- Specified by:
setNetValuein interfaceHeaderBase- Parameters:
netValue- the price to be set
-
setNetValueWOFreight
public void setNetValueWOFreight(java.math.BigDecimal netValueWOFreight)
Description copied from interface:HeaderBaseSet the net price without freight.- Specified by:
setNetValueWOFreightin interfaceHeaderBase- Parameters:
netValueWOFreight- the price to be set
-
setPartnerList
public void setPartnerList(PartnerList partnerList)
Description copied from interface:HeaderBaseSets the business partner list.- Specified by:
setPartnerListin interfaceHeaderBase- Parameters:
partnerList- list of business partners
-
setPostingDate
public void setPostingDate(java.util.Date postingDate)
Description copied from interface:HeaderBaseSet the date the order was created from the customer's point of view.- Specified by:
setPostingDatein interfaceHeaderBase- Parameters:
postingDate- the date to be set
-
setProcessType
public void setProcessType(java.lang.String processType)
Description copied from interface:HeaderBaseSet the the process type of the document.- Specified by:
setProcessTypein interfaceHeaderBase- Parameters:
processType- the process type to be set
-
setProcessTypeDesc
public void setProcessTypeDesc(java.lang.String processTypeDesc)
Description copied from interface:HeaderBaseSets the description of the process type- Specified by:
setProcessTypeDescin interfaceHeaderBase- Parameters:
processTypeDesc- The processTypeDesc to set
-
setPurchaseOrderExt
public void setPurchaseOrderExt(java.lang.String purchaseOrderExt)
Description copied from interface:HeaderBaseSet the external purchase order number.- Specified by:
setPurchaseOrderExtin interfaceHeaderBase- Parameters:
purchaseOrderExt- the number to be set
-
setReqDeliveryDate
public void setReqDeliveryDate(java.util.Date reqDeliveryDate)
Description copied from interface:HeaderBaseSet the requested delivery date.- Specified by:
setReqDeliveryDatein interfaceHeaderBase- Parameters:
reqDeliveryDate- the requested delivery date to be set.
-
setSalesDocNumber
public void setSalesDocNumber(java.lang.String salesDocNumber)
Description copied from interface:HeaderBaseSet the number of the sales document the header belongs to.- Specified by:
setSalesDocNumberin interfaceHeaderBase- Parameters:
salesDocNumber- the number of the sales document
-
setSalesDocumentsOrigin
public void setSalesDocumentsOrigin(java.lang.String salesDocOrigin)
Description copied from interface:HeaderBaseSet the origin of the sales document.- Specified by:
setSalesDocumentsOriginin interfaceHeaderBase- Parameters:
salesDocOrigin- the origin to be set
-
setSalesOffice
public void setSalesOffice(java.lang.String salesOffice)
Description copied from interface:HeaderBaseSet the sales office.- Specified by:
setSalesOfficein interfaceHeaderBase- Parameters:
salesOffice- the sales office
-
setSalesOrg
public void setSalesOrg(java.lang.String salesOrg)
Description copied from interface:HeaderBaseSet the sales organization for the document.- Specified by:
setSalesOrgin interfaceHeaderBase- Parameters:
salesOrg- the sales organization.
-
setShipCond
public void setShipCond(java.lang.String shipCond)
Description copied from interface:HeaderBaseSet the shipping conditions for the document.- Specified by:
setShipCondin interfaceHeaderBase- Parameters:
shipCond- the shipping conditions
-
setTaxValue
public void setTaxValue(java.math.BigDecimal taxValue)
Description copied from interface:HeaderBaseSet the taxes that have to be paid for the document.- Specified by:
setTaxValuein interfaceHeaderBase- Parameters:
taxValue- the taxes to be set
-
setTechKey
public void setTechKey(TechKey techKey)
Sets the key for the document and sets the docuemnt to dirty, so that a re-read is enforced with netx read.- Specified by:
setTechKeyin interfaceBusinessObject- Overrides:
setTechKeyin classBusinessObjectBase- Parameters:
techKey- the techKey to be set
-
setTotalDiscount
public void setTotalDiscount(java.math.BigDecimal totalDiscount)
Description copied from interface:HeaderBasesets the total discount, which is used for strike through prices- Specified by:
setTotalDiscountin interfaceHeaderBase- Parameters:
totalDiscount- totalDiscount as BigDecimal
-
toString
public java.lang.String toString()
Returns a simplifies string representation of the object. Useful for debugging/logging purpose, but not for display on the User Interface.- Overrides:
toStringin classSimpleHeaderImpl- Returns:
- object as string
-
getGrossValueWOFreight
public java.math.BigDecimal getGrossValueWOFreight()
Description copied from interface:HeaderBaseGet the gross price without freight.- Specified by:
getGrossValueWOFreightin interfaceHeaderBase- Returns:
- the gross price without freight
-
setGrossValueWOFreight
public void setGrossValueWOFreight(java.math.BigDecimal grossValueWOFreight)
Description copied from interface:HeaderBaseSet the gross value without freight.- Specified by:
setGrossValueWOFreightin interfaceHeaderBase- Parameters:
grossValueWOFreight- the price to be set
-
consolidateDate
protected java.util.Date consolidateDate(java.util.Date date)
If year >9999: Set it to 9999- Parameters:
date-- Returns:
- Changed date (if needed)
-
getValidFrom
public java.util.Date getValidFrom()
Description copied from interface:HeaderBaseGet the date, the document is valid from.- Specified by:
getValidFromin interfaceHeaderBase- Returns:
- date, the document is valid from
-
getValidTo
public java.util.Date getValidTo()
Description copied from interface:HeaderBaseGet the date, the document is valid to.- Specified by:
getValidToin interfaceHeaderBase- Returns:
- date, the document is valid to
-
setValidFrom
public void setValidFrom(java.util.Date validFrom)
Description copied from interface:HeaderBaseSets the date, the document is valid from.- Specified by:
setValidFromin interfaceHeaderBase- Parameters:
validFrom- the validFrom date to be set.
-
setValidTo
public void setValidTo(java.util.Date validTo)
Description copied from interface:HeaderBaseSets the date, the document is valid to.- Specified by:
setValidToin interfaceHeaderBase- Parameters:
validTo- the validTo date to be set.
-
-