Class ItemBaseImpl
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.SimpleItemImpl
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.ItemBaseImpl
-
- All Implemented Interfaces:
BackendAware,BusinessObject,MessageListHolder,ItemBase,SimpleItem,java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<SimpleItem>
- Direct Known Subclasses:
ItemSalesDoc
public class ItemBaseImpl extends SimpleItemImpl implements ItemBase
Item of a sales document. Each sales document consists of a header and a number of items. This items are represented by this class.- Version:
- 1.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.interf.ItemBase
ItemBase.ItemUsage
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringbusinessObjectTypeBusiness object typeprotected booleancancelableItem can be cancelledprotected java.lang.StringconfigTypeConfiguration typeprotected booleanconfigurableItem is configurable?protected java.util.DateconfirmedDeliveryDateConfirmed delivery dateprotected java.math.BigDecimalconfirmedQuantityConfirmed quantityprotected java.util.DatecreatedAtCreated dateprotected java.lang.StringcurrencyCurrencyprotected booleandeletableItem is deletableprotected java.math.BigDecimaldeliveredQuantityAlready delivered quantityprotected java.lang.StringdeliveredQuantityUnitDelivered quantity unitprotected java.lang.StringdeliveryPriorityDelivery priorityprotected booleanerroneousInvalid from an business logic point of viewprotected java.math.BigDecimalfreeQuantityFree quantity (related to free goods)protected java.math.BigDecimalfreightValueFreight valueprotected java.math.BigDecimalgrossValueGross valueprotected java.math.BigDecimalgrossValueWOFreightGross value without freightprotected java.lang.StringitemCategoryItem categoryprotected ItemBase.ItemUsageitemUsageItem usageprotected java.lang.StringitmTypeUsageItem type usageprotected java.util.DatelatestDeliveryDateLatest delivery dateprotected java.math.BigDecimalnetPriceNet priceprotected java.lang.StringnetPriceUnitNet price unitprotected java.math.BigDecimalnetQuantPriceUnitQuantity for net priceprotected java.math.BigDecimalnetValueNet valueprotected java.math.BigDecimalnetValueWOFreightNet value without freightprotected java.math.BigDecimaloldQuantityPrevious quantityprotected PartnerListpartnerListPartner listprotected java.util.List<java.lang.String>possibleUnitsList of possible unitsprotected java.util.List<ConnectedDocumentItem>predecessorListDoc Flow for the document items since doc flow harmonization for CRM 5.2protected booleanpriceRelevantItem is price relevantprotected booleanproductExistsReturns true if the product of the item exists in the backendprotected java.math.BigDecimalquantityToDeliverQuantity to deliverprotected java.util.DatereqDeliveryDateRequired delivery dateprotected java.util.List<Schedline>scheduleLinesList of schedule linesprotected booleanstatisticalStatisticalprotected java.util.List<ConnectedDocumentItem>successorListList of successorsprotected java.math.BigDecimaltaxValueTax valueprotected TexttextItem textprotected java.math.BigDecimaltotalDiscountTotal discountprotected java.math.BigDecimaltotalValueTotal valueprotected booleanvariantItem is product variant?-
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.item.businessobject.interf.ItemBase
ITEM_CONFIGTYPE_VARIANT
-
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID
-
-
Constructor Summary
Constructors Constructor Description ItemBaseImpl()Default constructor for the Item
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPredecessor(ConnectedDocumentItem predecessor)Adds aConnectedDocumentItemto the predecessor list.voidaddSuccessor(ConnectedDocumentItem successor)Adds aConnectedDocumentItemto the successor list.java.lang.Objectclone()Performs a deep-copy rather than a shallow copy.voidclonePredecessorList(ItemBaseImpl myClone)voidcloneScheduleLines(ItemBaseImpl myClone)voidcloneSuccessorList(ItemBaseImpl myClone)ConnectedDocumentItemcreateConnectedDocumentItemData()Create aConnectedDocumentItemDataobjectSchedlinecreateScheduleLine()Create a new ScheduleLine object.TextcreateText()Creates a text object.java.lang.StringgetConfigType()Returns configType flag value, if the item is configurablejava.util.DategetConfirmedDeliveryDate()Get the confirmed delivery date for the item.java.math.BigDecimalgetConfirmedQuantity()Get the confirmed quantity for the item.java.util.DategetCreatedAt()java.lang.StringgetCurrency()Gets the currency for the item.java.math.BigDecimalgetDeliveredQuantity()Get the delivered quantity for this item.java.lang.StringgetDeliveredQuantityUnit()Get the delivered quantity unit for this item.java.lang.StringgetDeliveryPriority()Returns the delivery priority keyjava.math.BigDecimalgetFreeQuantity()Retrieves the free quantity.java.math.BigDecimalgetFreightValue()Return the freight value / shipping costs.java.math.BigDecimalgetGrossValue()Returns the price of this item inclusive taxes.java.math.BigDecimalgetGrossValueWOFreight()Returns the property grossValueWOFreightjava.lang.StringgetItemCategory()ItemBase.ItemUsagegetItemUsage()Returns the item usage of this item.java.lang.StringgetItmTypeUsage()Returns the item type usage of the back end.java.math.BigDecimalgetNetPrice()Price of one base unit (unit price) of this item without taxes.java.lang.StringgetNetPriceUnit()Returns the unit that is used for the unit price.
e.g.java.math.BigDecimalgetNetPriceWOFreight()java.math.BigDecimalgetNetQuantPriceUnit()Returns the quantity of the unit that is used for the unit price.
e.g.java.math.BigDecimalgetNetValue()Get the net costs for this item.
Whereas NetPrice gives the price per base unit, the NetValue is the price for the whole quantity.java.math.BigDecimalgetNetValueWOFreight()Get the net costs for this item without freight.
Whereas NetPrice gives the price per base unit, the NetValue is the price for the whole quantity.java.math.BigDecimalgetOldQuantity()Returns the old quantity of this item.
If the quantity is changed for a item, this quantity shows the value before.PartnerListgetPartnerListData()Get the business partner listjava.util.List<java.lang.String>getPossibleUnits()returns a list of all possible units of this product.java.util.List<ConnectedDocumentItem>getPredecessorList()Get the predecessor list.java.math.BigDecimalgetQuantityToDeliver()Gets the still to deliver quantity.java.util.DategetReqDeliveryDate()Return the requested delivery date of this item.
The date that the delivery was requested for, NOT the confirmed delivery date.java.util.List<Schedline>getScheduleLines()Returns all schedule lines.java.util.List<ConnectedDocumentItem>getSuccessorList()Gets the successor list.java.math.BigDecimalgetTaxValue()Gets the tax value of this item.TextgetText()Returns the text on item level for this item.java.math.BigDecimalgetTotalDiscount()voidinit()This method is called after all properties have been set It needs to be defined in the Spring bean definition as init-method.booleanisCancelable()booleanisConfigurable()Determine, whether or no the item is configurable.booleanisConfigurationDirty()Do we need to sync the configuration with the backend?booleanisDeletable()Indicates whether the item is deletable.booleanisErroneous()booleanisPriceRelevant()returns true, if the item is price relevantbooleanisProductEmpty()Returns true if the productId is null or ""booleanisProductExists()Returns true if the product exists in the back endbooleanisStatistical()booleanisVariant()voidsetBusinessObjectType(java.lang.String busType)Sets Item's Business Object TypevoidsetCancelable(boolean cancelable)Sets if item can be cancelled.voidsetConfigType(java.lang.String configType)Sets the configType flag, if the item is configurablevoidsetConfigurable(boolean configurable)Marks an item as configurablevoidsetConfigurableDirty(boolean isDirty)voidsetConfirmedDeliveryDate(java.util.Date confirmedDeliveryDate)Sets Confirmed Delivery Date.voidsetConfirmedQuantity(java.math.BigDecimal confirmedQuantity)Sets confirmed quantity.voidsetCreatedAt(java.util.Date createdAt)voidsetCurrency(java.lang.String currency)Sets the currency for this item.
e.g.voidsetDeletable(boolean deletable)Sets if item can be deleted.voidsetDeliverdQuantity(java.math.BigDecimal deliveredQuantity)Sets delivered quantity.voidsetDeliverdQuantityUnit(java.lang.String unit)Sets delivered quantity unit.voidsetDeliveryPriority(java.lang.String deliveryPriority)Sets the delivery priority key.voidsetErroneous(boolean erroneous)Sets this item as erroneous or not.voidsetFreeQuantity(java.math.BigDecimal arg)Sets the free quantity.voidsetFreightValue(java.math.BigDecimal freightValue)Sets a freight value.voidsetGrossValue(java.math.BigDecimal grossValue)Sets a gross value.voidsetGrossValueWOFreight(java.math.BigDecimal grossValueWOFreight)Set the property grossValueWOFreightvoidsetItemCategory(java.lang.String itemCategory)Sets item categoryvoidsetItemUsage(ItemBase.ItemUsage itemUsage)Sets the item usage for this item.
e.g free goodvoidsetItmTypeUsage(java.lang.String itmTypeUsage)Sets an item type usage .voidsetLatestDeliveryDate(java.util.Date latestDeliveryDate)The latest delivery date is the date of the latest schedule linevoidsetNetPrice(java.math.BigDecimal netPrice)Sets an item net price.voidsetNetPriceUnit(java.lang.String netPriceUnit)Sets an item net price unit.
This is the unit of the unit price.voidsetNetPriceWOFreight(java.math.BigDecimal netPriceWOFreight)voidsetNetQuantPriceUnit(java.math.BigDecimal netQuantPriceUnit)Sets an item net quantity price unit.
This is the quantity of the base unit of the unit price.voidsetNetValue(java.math.BigDecimal netValue)Sets net value.
Price without tax.voidsetNetValueWOFreight(java.math.BigDecimal netValueWOFreight)Sets net value with out freight.
Price without tax or freight.voidsetOldQuantity(java.math.BigDecimal oldQuantity)Set the property oldQuantity.voidsetPartnerList(PartnerList partnerList)Set the business partner listvoidsetPartnerListData(PartnerList list)Set the business partner list Analogy to the header set business partner listvoidsetPossibleUnits(java.util.List<java.lang.String> possibleUnits)Sets all units that are possible for that product.voidsetPriceRelevant(boolean isPriceRelevant)Sets the flag, that shows, if the position is price relevantvoidsetProductExists(boolean productExists)Sets the information, whether the product exists in the back endvoidsetQuantity(java.math.BigDecimal quantity)Sets an item quantity.voidsetQuantityToDeliver(java.math.BigDecimal qty)Sets an item quantity to deliver.voidsetReqDeliveryDate(java.util.Date date)Sets required delivery date.
This is the date the delivery is requested, not the confirmed delivery date.voidsetScheduleLines(java.util.List<Schedline> scheduleLines)Sets schedule lines for the item .voidsetStatistical(boolean statistical)Sets statisticalvoidsetTaxValue(java.math.BigDecimal taxValue)Sets the tax value of this item.voidsetText(Text text)Sets the text on item level.voidsetTotalDiscount(java.math.BigDecimal totalDiscount)Sets the total discount, which is used for strike through prices.voidsetVariant(boolean variant)Setter if this item is a variant of a configurable product or notjava.lang.StringtoString()Returns a String representation of the item, which can be used for debugging purpose.-
Methods inherited from class de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.impl.SimpleItemImpl
compareTo, getDescription, getLastQuantity, getNumberInt, getParentId, getProductGuid, getProductId, getQuantity, getTypedExtensionMap, getUnit, isProductChanged, setDescription, setNumberInt, setParentId, setProductChanged, setProductGuid, setProductId, setUnit
-
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, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setBackendObject, setBackendType, setExtensionMap, setGenericFactory, setHandle, setInvalid, setModuleConfigurationAccess, setTechKey, 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, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, 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.item.businessobject.interf.SimpleItem
getDescription, getLastQuantity, getNumberInt, getParentId, getProductGuid, getProductId, getQuantity, getTypedExtensionMap, getUnit, isProductChanged, setDescription, setNumberInt, setParentId, setProductChanged, setProductGuid, setProductId, setUnit
-
-
-
-
Field Detail
-
createdAt
protected java.util.Date createdAt
Created date
-
currency
protected java.lang.String currency
Currency
-
configurable
protected boolean configurable
Item is configurable?
-
variant
protected boolean variant
Item is product variant?
-
configType
protected java.lang.String configType
Configuration type
-
deliveredQuantity
protected java.math.BigDecimal deliveredQuantity
Already delivered quantity
-
deliveredQuantityUnit
protected java.lang.String deliveredQuantityUnit
Delivered quantity unit
-
itmTypeUsage
protected java.lang.String itmTypeUsage
Item type usage
-
itemUsage
protected ItemBase.ItemUsage itemUsage
Item usage
-
businessObjectType
protected java.lang.String businessObjectType
Business object type
-
latestDeliveryDate
protected java.util.Date latestDeliveryDate
Latest delivery date
-
freeQuantity
protected java.math.BigDecimal freeQuantity
Free quantity (related to free goods)
-
oldQuantity
protected java.math.BigDecimal oldQuantity
Previous quantity
-
text
protected Text text
Item text
-
netPriceUnit
protected java.lang.String netPriceUnit
Net price unit
-
netQuantPriceUnit
protected java.math.BigDecimal netQuantPriceUnit
Quantity for net price
-
taxValue
protected java.math.BigDecimal taxValue
Tax value
-
netValue
protected java.math.BigDecimal netValue
Net value
-
netValueWOFreight
protected java.math.BigDecimal netValueWOFreight
Net value without freight
-
freightValue
protected java.math.BigDecimal freightValue
Freight value
-
grossValue
protected java.math.BigDecimal grossValue
Gross value
-
grossValueWOFreight
protected java.math.BigDecimal grossValueWOFreight
Gross value without freight
-
netPrice
protected java.math.BigDecimal netPrice
Net price
-
totalDiscount
protected java.math.BigDecimal totalDiscount
Total discount
-
totalValue
protected java.math.BigDecimal totalValue
Total value
-
reqDeliveryDate
protected java.util.Date reqDeliveryDate
Required delivery date
-
confirmedDeliveryDate
protected java.util.Date confirmedDeliveryDate
Confirmed delivery date
-
confirmedQuantity
protected java.math.BigDecimal confirmedQuantity
Confirmed quantity
-
possibleUnits
protected java.util.List<java.lang.String> possibleUnits
List of possible units
-
quantityToDeliver
protected java.math.BigDecimal quantityToDeliver
Quantity to deliver
-
scheduleLines
protected java.util.List<Schedline> scheduleLines
List of schedule lines
-
partnerList
protected PartnerList partnerList
Partner list
-
deliveryPriority
protected java.lang.String deliveryPriority
Delivery priority
-
deletable
protected boolean deletable
Item is deletable
-
cancelable
protected boolean cancelable
Item can be cancelled
-
priceRelevant
protected boolean priceRelevant
Item is price relevant
-
predecessorList
protected java.util.List<ConnectedDocumentItem> predecessorList
Doc Flow for the document items since doc flow harmonization for CRM 5.2
-
successorList
protected java.util.List<ConnectedDocumentItem> successorList
List of successors
-
erroneous
protected boolean erroneous
Invalid from an business logic point of view
-
productExists
protected boolean productExists
Returns true if the product of the item exists in the backend
-
itemCategory
protected java.lang.String itemCategory
Item category
-
statistical
protected boolean statistical
Statistical
-
-
Method Detail
-
init
public void init()
Description copied from interface:BusinessObjectThis method is called after all properties have been set It needs to be defined in the Spring bean definition as init-method.- Specified by:
initin interfaceBusinessObject- Overrides:
initin classBusinessObjectBase
-
addPredecessor
public void addPredecessor(ConnectedDocumentItem predecessor)
Description copied from interface:ItemBaseAdds aConnectedDocumentItemto the predecessor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Specified by:
addPredecessorin interfaceItemBase- Parameters:
predecessor- ConnectedDocumentItem to be added to the predecessor list
-
addSuccessor
public void addSuccessor(ConnectedDocumentItem successor)
Description copied from interface:ItemBaseAdds aConnectedDocumentItemto the successor list. Anullreference passed to this function will be ignored, in this case nothing will happen.- Specified by:
addSuccessorin interfaceItemBase- Parameters:
successor- ConnectedDocument to be added to the successor list
-
clone
public java.lang.Object clone()
Performs a deep-copy rather than a shallow copy. For sake of performance you should avoid haevy usage of this method, as creating a deep copy is quite expensive.
TheexternalObjectwill not be cloned, only the reference is copied.- Specified by:
clonein interfaceItemBase- Overrides:
clonein classSimpleItemImpl- Returns:
- deep-copy of this object
-
cloneSuccessorList
public final void cloneSuccessorList(ItemBaseImpl myClone)
- Parameters:
myClone-
-
cloneScheduleLines
public final void cloneScheduleLines(ItemBaseImpl myClone)
- Parameters:
myClone-
-
clonePredecessorList
public final void clonePredecessorList(ItemBaseImpl myClone)
- Parameters:
myClone-
-
createConnectedDocumentItemData
public ConnectedDocumentItem createConnectedDocumentItemData()
Description copied from interface:ItemBaseCreate aConnectedDocumentItemDataobject- Specified by:
createConnectedDocumentItemDatain interfaceItemBase- Returns:
- ConnectedDocumentItemData object
- See Also:
ConnectedDocumentItem
-
createScheduleLine
public Schedline createScheduleLine()
Description copied from interface:ItemBaseCreate a new ScheduleLine object.- Specified by:
createScheduleLinein interfaceItemBase- Returns:
- newly created schedule line object
-
createText
public Text createText()
Description copied from interface:ItemBaseCreates a text object. This method is used by back end objects to get instances of the text object.- Specified by:
createTextin interfaceItemBase- Returns:
- newly created text object
-
getConfigType
public java.lang.String getConfigType()
Returns configType flag value, if the item is configurable- Specified by:
getConfigTypein interfaceItemBase- Returns:
- A,B,X,G, etc, if the item is configurable
-
getConfirmedDeliveryDate
public java.util.Date getConfirmedDeliveryDate()
Description copied from interface:ItemBaseGet the confirmed delivery date for the item.- Specified by:
getConfirmedDeliveryDatein interfaceItemBase- Returns:
- confirmed delivery date
-
getConfirmedQuantity
public java.math.BigDecimal getConfirmedQuantity()
Description copied from interface:ItemBaseGet the confirmed quantity for the item.- Specified by:
getConfirmedQuantityin interfaceItemBase- Returns:
- confirmed quantity
-
getCreatedAt
public java.util.Date getCreatedAt()
- Specified by:
getCreatedAtin interfaceItemBase- Returns:
- created at date of this item
-
setCreatedAt
public void setCreatedAt(java.util.Date createdAt)
- Specified by:
setCreatedAtin interfaceItemBase- Parameters:
createdAt- createdAt date of this item
-
getCurrency
public java.lang.String getCurrency()
Description copied from interface:ItemBaseGets the currency for the item.- Specified by:
getCurrencyin interfaceItemBase- Returns:
- the currency
-
getDeliveredQuantity
public java.math.BigDecimal getDeliveredQuantity()
Description copied from interface:ItemBaseGet the delivered quantity for this item.- Specified by:
getDeliveredQuantityin interfaceItemBase- Returns:
- delivered quantity as BigDecimal
-
getDeliveredQuantityUnit
public java.lang.String getDeliveredQuantityUnit()
Description copied from interface:ItemBaseGet the delivered quantity unit for this item.- Specified by:
getDeliveredQuantityUnitin interfaceItemBase- Returns:
- delivered quantity unit of measure
-
getDeliveryPriority
public java.lang.String getDeliveryPriority()
Description copied from interface:ItemBaseReturns the delivery priority key- Specified by:
getDeliveryPriorityin interfaceItemBase- Returns:
- String
-
getFreeQuantity
public java.math.BigDecimal getFreeQuantity()
Description copied from interface:ItemBaseRetrieves the free quantity. Only relevant for inclusive free goods.- Specified by:
getFreeQuantityin interfaceItemBase- Returns:
- the free quantity in local specific format.
-
getFreightValue
public java.math.BigDecimal getFreightValue()
Description copied from interface:ItemBaseReturn the freight value / shipping costs.- Specified by:
getFreightValuein interfaceItemBase- Returns:
- BigDecimal of freight value
-
getGrossValue
public java.math.BigDecimal getGrossValue()
Description copied from interface:ItemBaseReturns the price of this item inclusive taxes.- Specified by:
getGrossValuein interfaceItemBase- Returns:
- gross value
-
getItmTypeUsage
public java.lang.String getItmTypeUsage()
Description copied from interface:ItemBaseReturns the item type usage of the back end.- Specified by:
getItmTypeUsagein interfaceItemBase- Returns:
- ItemtypeUsage
-
getItemUsage
public ItemBase.ItemUsage getItemUsage()
Description copied from interface:ItemBaseReturns the item usage of this item.- Specified by:
getItemUsagein interfaceItemBase- Returns:
- ItemUsage
- See Also:
ItemBase.ItemUsage
-
getNetPrice
public java.math.BigDecimal getNetPrice()
Description copied from interface:ItemBasePrice of one base unit (unit price) of this item without taxes.- Specified by:
getNetPricein interfaceItemBase- Returns:
- Price of 1 unit without taxes
-
getNetPriceUnit
public java.lang.String getNetPriceUnit()
Description copied from interface:ItemBaseReturns the unit that is used for the unit price.
e.g. PC if the price is calculated per 2 PC- Specified by:
getNetPriceUnitin interfaceItemBase- Returns:
- unit of the net price
-
getNetQuantPriceUnit
public java.math.BigDecimal getNetQuantPriceUnit()
Description copied from interface:ItemBaseReturns the quantity of the unit that is used for the unit price.
e.g. 2 if the price is calculated per 2 PC- Specified by:
getNetQuantPriceUnitin interfaceItemBase- Returns:
- quantity of the unit for which the unit price is calculated
-
getNetValue
public java.math.BigDecimal getNetValue()
Description copied from interface:ItemBaseGet the net costs for this item.
Whereas NetPrice gives the price per base unit, the NetValue is the price for the whole quantity. This includes the Shipping costs/freight.- Specified by:
getNetValuein interfaceItemBase- Returns:
- price of this item without taxes
-
getNetPriceWOFreight
public java.math.BigDecimal getNetPriceWOFreight()
- Specified by:
getNetPriceWOFreightin interfaceItemBase- Returns:
- netPriceWOFreight
-
getNetValueWOFreight
public java.math.BigDecimal getNetValueWOFreight()
Description copied from interface:ItemBaseGet the net costs for this item without freight.
Whereas NetPrice gives the price per base unit, the NetValue is the price for the whole quantity. This is excluding the Shipping costs/freight.- Specified by:
getNetValueWOFreightin interfaceItemBase- Returns:
- price of this item without taxes and freight
-
getOldQuantity
public java.math.BigDecimal getOldQuantity()
Description copied from interface:ItemBaseReturns the old quantity of this item.
If the quantity is changed for a item, this quantity shows the value before. This can e.g. be used for some business events.- Specified by:
getOldQuantityin interfaceItemBase- Returns:
- quantity before the change
-
getPartnerListData
public PartnerList getPartnerListData()
Description copied from interface:ItemBaseGet the business partner list- Specified by:
getPartnerListDatain interfaceItemBase- Returns:
- PartnerListData list of business partners
-
getPossibleUnits
public java.util.List<java.lang.String> getPossibleUnits()
Description copied from interface:ItemBasereturns a list of all possible units of this product.- Specified by:
getPossibleUnitsin interfaceItemBase- Returns:
- list of units
-
getPredecessorList
public java.util.List<ConnectedDocumentItem> getPredecessorList()
Description copied from interface:ItemBaseGet the predecessor list.- Specified by:
getPredecessorListin interfaceItemBase- Returns:
- list of all predecessor documents
- See Also:
ConnectedDocumentItem
-
getQuantityToDeliver
public java.math.BigDecimal getQuantityToDeliver()
Description copied from interface:ItemBaseGets the still to deliver quantity. Difference between ordered quantity and already delivered quantity.- Specified by:
getQuantityToDeliverin interfaceItemBase- Returns:
- the quantity
-
getScheduleLines
public java.util.List<Schedline> getScheduleLines()
Description copied from interface:ItemBaseReturns all schedule lines.- Specified by:
getScheduleLinesin interfaceItemBase- Returns:
- list of schedule lines
- See Also:
Schedline
-
getSuccessorList
public java.util.List<ConnectedDocumentItem> getSuccessorList()
Description copied from interface:ItemBaseGets the successor list.- Specified by:
getSuccessorListin interfaceItemBase- Returns:
- list of the successor items
-
getTaxValue
public java.math.BigDecimal getTaxValue()
Description copied from interface:ItemBaseGets the tax value of this item.- Specified by:
getTaxValuein interfaceItemBase- Returns:
- tax value
-
getText
public Text getText()
Description copied from interface:ItemBaseReturns the text on item level for this item.
-
getTotalDiscount
public java.math.BigDecimal getTotalDiscount()
- Specified by:
getTotalDiscountin interfaceItemBase- Returns:
- total discount, which is used for strike through prices
-
isCancelable
public boolean isCancelable()
- Specified by:
isCancelablein interfaceItemBase- Returns:
- whether this item can be cancelled
-
isConfigurable
public boolean isConfigurable()
Description copied from interface:ItemBaseDetermine, whether or no the item is configurable.- Specified by:
isConfigurablein interfaceItemBase- Returns:
trueif the item can be configured, otherwisefalse.
-
isDeletable
public boolean isDeletable()
Description copied from interface:ItemBaseIndicates whether the item is deletable.- Specified by:
isDeletablein interfaceItemBase- Returns:
trueif the item is deletable; otherwisefalse.
-
isErroneous
public boolean isErroneous()
- Specified by:
isErroneousin interfaceItemBase- Returns:
- true if the item is invalid
-
isPriceRelevant
public boolean isPriceRelevant()
returns true, if the item is price relevant- Returns:
- true, if the item is price relevant
-
setBusinessObjectType
public void setBusinessObjectType(java.lang.String busType)
Description copied from interface:ItemBaseSets Item's Business Object Type- Specified by:
setBusinessObjectTypein interfaceItemBase- Parameters:
busType- item type which is used for the item classification in the back end
-
setCancelable
public void setCancelable(boolean cancelable)
Description copied from interface:ItemBaseSets if item can be cancelled.- Specified by:
setCancelablein interfaceItemBase- Parameters:
cancelable- iftruean item can be cancelled
-
setConfigType
public void setConfigType(java.lang.String configType)
Sets the configType flag, if the item is configurable- Specified by:
setConfigTypein interfaceItemBase- Parameters:
configType- contains the valueA,B,X, G, etc..
-
setConfigurable
public void setConfigurable(boolean configurable)
Marks an item as configurable- Specified by:
setConfigurablein interfaceItemBase- Parameters:
configurable-true, only if the item should be considered configurable
-
setConfirmedDeliveryDate
public void setConfirmedDeliveryDate(java.util.Date confirmedDeliveryDate)
Description copied from interface:ItemBaseSets Confirmed Delivery Date.- Specified by:
setConfirmedDeliveryDatein interfaceItemBase- Parameters:
confirmedDeliveryDate- the already confirmed delivery date
-
setConfirmedQuantity
public void setConfirmedQuantity(java.math.BigDecimal confirmedQuantity)
Description copied from interface:ItemBaseSets confirmed quantity.- Specified by:
setConfirmedQuantityin interfaceItemBase- Parameters:
confirmedQuantity- item quantity
-
setCurrency
public void setCurrency(java.lang.String currency)
Description copied from interface:ItemBaseSets the currency for this item.
e.g. USD or EUR- Specified by:
setCurrencyin interfaceItemBase- Parameters:
currency- currency
-
setDeletable
public void setDeletable(boolean deletable)
Description copied from interface:ItemBaseSets if item can be deleted.- Specified by:
setDeletablein interfaceItemBase- Parameters:
deletable- iftruean item can be deleted
-
setDeliverdQuantity
public void setDeliverdQuantity(java.math.BigDecimal deliveredQuantity)
Description copied from interface:ItemBaseSets delivered quantity.- Specified by:
setDeliverdQuantityin interfaceItemBase- Parameters:
deliveredQuantity- the already delivered quantity
-
setDeliverdQuantityUnit
public void setDeliverdQuantityUnit(java.lang.String unit)
Description copied from interface:ItemBaseSets delivered quantity unit.- Specified by:
setDeliverdQuantityUnitin interfaceItemBase- Parameters:
unit- the unit belonging to the delivered quantity
-
setDeliveryPriority
public void setDeliveryPriority(java.lang.String deliveryPriority)
Description copied from interface:ItemBaseSets the delivery priority key.- Specified by:
setDeliveryPriorityin interfaceItemBase- Parameters:
deliveryPriority- priority for delivery
-
setErroneous
public void setErroneous(boolean erroneous)
Description copied from interface:ItemBaseSets this item as erroneous or not.- Specified by:
setErroneousin interfaceItemBase- Parameters:
erroneous- true if the item has errors
-
setFreeQuantity
public void setFreeQuantity(java.math.BigDecimal arg)
Description copied from interface:ItemBaseSets the free quantity. Only relevant for inclusive free goods.- Specified by:
setFreeQuantityin interfaceItemBase- Parameters:
arg- the free quantity in local specific format.
-
setFreightValue
public void setFreightValue(java.math.BigDecimal freightValue)
Description copied from interface:ItemBaseSets a freight value.- Specified by:
setFreightValuein interfaceItemBase- Parameters:
freightValue- freight costs for this item
-
setGrossValue
public void setGrossValue(java.math.BigDecimal grossValue)
Description copied from interface:ItemBaseSets a gross value.- Specified by:
setGrossValuein interfaceItemBase- Parameters:
grossValue- gross value for this item
-
setItmTypeUsage
public void setItmTypeUsage(java.lang.String itmTypeUsage)
Description copied from interface:ItemBaseSets an item type usage .- Specified by:
setItmTypeUsagein interfaceItemBase- Parameters:
itmTypeUsage- type of the item as string
-
setItemUsage
public void setItemUsage(ItemBase.ItemUsage itemUsage)
Description copied from interface:ItemBaseSets the item usage for this item.
e.g free good- Specified by:
setItemUsagein interfaceItemBase- Parameters:
itemUsage- an item usage- See Also:
ItemBase.ItemUsage
-
setNetPrice
public void setNetPrice(java.math.BigDecimal netPrice)
Description copied from interface:ItemBaseSets an item net price.- Specified by:
setNetPricein interfaceItemBase- Parameters:
netPrice- value to set
-
setNetPriceWOFreight
public void setNetPriceWOFreight(java.math.BigDecimal netPriceWOFreight)
- Specified by:
setNetPriceWOFreightin interfaceItemBase
-
setNetPriceUnit
public void setNetPriceUnit(java.lang.String netPriceUnit)
Description copied from interface:ItemBaseSets an item net price unit.
This is the unit of the unit price.- Specified by:
setNetPriceUnitin interfaceItemBase- Parameters:
netPriceUnit- value to set
-
setNetQuantPriceUnit
public void setNetQuantPriceUnit(java.math.BigDecimal netQuantPriceUnit)
Description copied from interface:ItemBaseSets an item net quantity price unit.
This is the quantity of the base unit of the unit price.- Specified by:
setNetQuantPriceUnitin interfaceItemBase- Parameters:
netQuantPriceUnit- value to set
-
setNetValue
public void setNetValue(java.math.BigDecimal netValue)
Description copied from interface:ItemBaseSets net value.
Price without tax. For the overall quantity.- Specified by:
setNetValuein interfaceItemBase- Parameters:
netValue- value to set
-
setNetValueWOFreight
public void setNetValueWOFreight(java.math.BigDecimal netValueWOFreight)
Description copied from interface:ItemBaseSets net value with out freight.
Price without tax or freight. For the overall quantity.- Specified by:
setNetValueWOFreightin interfaceItemBase- Parameters:
netValueWOFreight- value to set
-
setOldQuantity
public void setOldQuantity(java.math.BigDecimal oldQuantity)
Description copied from interface:ItemBaseSet the property oldQuantity. Replaces the method with String parameter.- Specified by:
setOldQuantityin interfaceItemBase- Parameters:
oldQuantity- The value of oldQuantity property as BigDecimal.
-
setPartnerList
public void setPartnerList(PartnerList partnerList)
Set the business partner list- Parameters:
partnerList- new list of business partners
-
setPartnerListData
public void setPartnerListData(PartnerList list)
Description copied from interface:ItemBaseSet the business partner list Analogy to the header set business partner list- Specified by:
setPartnerListDatain interfaceItemBase- Parameters:
list- PartnerListData list of business partners
-
setPossibleUnits
public void setPossibleUnits(java.util.List<java.lang.String> possibleUnits)
Description copied from interface:ItemBaseSets all units that are possible for that product.- Specified by:
setPossibleUnitsin interfaceItemBase- Parameters:
possibleUnits- list of all units
-
setPriceRelevant
public void setPriceRelevant(boolean isPriceRelevant)
Description copied from interface:ItemBaseSets the flag, that shows, if the position is price relevant- Specified by:
setPriceRelevantin interfaceItemBase- Parameters:
isPriceRelevant- true or false
-
setQuantityToDeliver
public void setQuantityToDeliver(java.math.BigDecimal qty)
Description copied from interface:ItemBaseSets an item quantity to deliver.- Specified by:
setQuantityToDeliverin interfaceItemBase- Parameters:
qty- value to set
-
setReqDeliveryDate
public void setReqDeliveryDate(java.util.Date date)
Description copied from interface:ItemBaseSets required delivery date.
This is the date the delivery is requested, not the confirmed delivery date.- Specified by:
setReqDeliveryDatein interfaceItemBase- Parameters:
date- value to set
-
setScheduleLines
public void setScheduleLines(java.util.List<Schedline> scheduleLines)
Description copied from interface:ItemBaseSets schedule lines for the item .- Specified by:
setScheduleLinesin interfaceItemBase- Parameters:
scheduleLines- list of Schedlines- See Also:
Schedline
-
setTaxValue
public void setTaxValue(java.math.BigDecimal taxValue)
Description copied from interface:ItemBaseSets the tax value of this item.- Specified by:
setTaxValuein interfaceItemBase- Parameters:
taxValue- value to set
-
setText
public void setText(Text text)
Description copied from interface:ItemBaseSets the text on item level.
-
setTotalDiscount
public void setTotalDiscount(java.math.BigDecimal totalDiscount)
Description copied from interface:ItemBaseSets the total discount, which is used for strike through prices. The number must be positive (e.g. 10 and not -10, this is how it comes from IPC).- Specified by:
setTotalDiscountin interfaceItemBase- Parameters:
totalDiscount- value to set
-
toString
public java.lang.String toString()
Returns a String representation of the item, which can be used for debugging purpose. This is not suitable for display on the user interface.- Overrides:
toStringin classSimpleItemImpl
-
isProductExists
public boolean isProductExists()
Description copied from interface:ItemBaseReturns true if the product exists in the back end- Specified by:
isProductExistsin interfaceItemBase- Returns:
- true if the product exists in the back end
-
setProductExists
public void setProductExists(boolean productExists)
Description copied from interface:ItemBaseSets the information, whether the product exists in the back end- Specified by:
setProductExistsin interfaceItemBase- Parameters:
productExists- false if the product does not exist in the back end
-
getReqDeliveryDate
public java.util.Date getReqDeliveryDate()
Description copied from interface:ItemBaseReturn the requested delivery date of this item.
The date that the delivery was requested for, NOT the confirmed delivery date.- Specified by:
getReqDeliveryDatein interfaceItemBase- Returns:
- RequestedDeliveryDate
-
isProductEmpty
public boolean isProductEmpty()
Description copied from interface:ItemBaseReturns true if the productId is null or ""- Specified by:
isProductEmptyin interfaceItemBase- Returns:
- true if there is no product maintained
-
getGrossValueWOFreight
public java.math.BigDecimal getGrossValueWOFreight()
Description copied from interface:ItemBaseReturns the property grossValueWOFreight- Specified by:
getGrossValueWOFreightin interfaceItemBase- Returns:
- grossValueWOFreight
-
setGrossValueWOFreight
public void setGrossValueWOFreight(java.math.BigDecimal grossValueWOFreight)
Description copied from interface:ItemBaseSet the property grossValueWOFreight- Specified by:
setGrossValueWOFreightin interfaceItemBase- Parameters:
grossValueWOFreight- value to set
-
setLatestDeliveryDate
public void setLatestDeliveryDate(java.util.Date latestDeliveryDate)
Description copied from interface:ItemBaseThe latest delivery date is the date of the latest schedule line- Specified by:
setLatestDeliveryDatein interfaceItemBase- Parameters:
latestDeliveryDate- the latestDeliveryDate to set
-
setQuantity
public void setQuantity(java.math.BigDecimal quantity)
Description copied from interface:SimpleItemSets an item quantity.- Specified by:
setQuantityin interfaceSimpleItem- Overrides:
setQuantityin classSimpleItemImpl- Parameters:
quantity- value to set
-
isConfigurationDirty
public boolean isConfigurationDirty()
Description copied from interface:ItemBaseDo we need to sync the configuration with the backend?- Specified by:
isConfigurationDirtyin interfaceItemBase- Returns:
- Dirty?
-
setConfigurableDirty
public void setConfigurableDirty(boolean isDirty)
- Specified by:
setConfigurableDirtyin interfaceItemBase- Parameters:
isDirty-true, if there is the need to sync the configuration with the back-end
-
isVariant
public boolean isVariant()
-
setVariant
public void setVariant(boolean variant)
Description copied from interface:ItemBaseSetter if this item is a variant of a configurable product or not- Specified by:
setVariantin interfaceItemBase- Parameters:
variant- true id this item is a variant
-
getItemCategory
public java.lang.String getItemCategory()
- Specified by:
getItemCategoryin interfaceItemBase- Returns:
- item category
-
setItemCategory
public void setItemCategory(java.lang.String itemCategory)
Description copied from interface:ItemBaseSets item category- Specified by:
setItemCategoryin interfaceItemBase- Parameters:
itemCategory- item category
-
isStatistical
public boolean isStatistical()
- Specified by:
isStatisticalin interfaceItemBase- Returns:
- statistical
-
setStatistical
public void setStatistical(boolean statistical)
Description copied from interface:ItemBaseSets statistical- Specified by:
setStatisticalin interfaceItemBase
-
-