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,Serializable,Cloneable,Comparable<SimpleItem>
- Direct Known Subclasses:
ItemSalesDoc
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.interf.ItemBase
ItemBase.ItemUsage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBusiness object typeprotected booleanItem can be cancelledprotected StringConfiguration typeprotected booleanItem is configurable?protected DateConfirmed delivery dateprotected BigDecimalConfirmed quantityprotected DateCreated dateprotected StringCurrencyprotected booleanItem is deletableprotected BigDecimalAlready delivered quantityprotected StringDelivered quantity unitprotected StringDelivery priorityprotected booleanInvalid from an business logic point of viewprotected BigDecimalFree quantity (related to free goods)protected BigDecimalFreight valueprotected BigDecimalGross valueprotected BigDecimalGross value without freightprotected StringItem categoryprotected ItemBase.ItemUsageItem usageprotected StringItem type usageprotected DateLatest delivery dateprotected BigDecimalNet priceprotected StringNet price unitprotected BigDecimalQuantity for net priceprotected BigDecimalNet valueprotected BigDecimalNet value without freightprotected BigDecimalPrevious quantityprotected PartnerListPartner listList of possible unitsprotected List<ConnectedDocumentItem>Doc Flow for the document items since doc flow harmonization for CRM 5.2protected booleanItem is price relevantprotected booleanReturns true if the product of the item exists in the backendprotected BigDecimalQuantity to deliverprotected DateRequired delivery dateList of schedule linesprotected booleanStatisticalprotected List<ConnectedDocumentItem>List of successorsprotected BigDecimalTax valueprotected TextItem textprotected BigDecimalTotal discountprotected BigDecimalTotal valueprotected booleanItem is product variant?Fields inherited from class de.hybris.platform.sap.core.bol.businessobject.BusinessObjectBase
backendObject, backendType, bobMessages, bobState, extensionData, genericFactory, handle, moduleConfigurationAccess, techKeyFields inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.item.businessobject.interf.ItemBase
ITEM_CONFIGTYPE_VARIANTFields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPredecessor(ConnectedDocumentItem predecessor) Adds aConnectedDocumentItemto the predecessor list.voidaddSuccessor(ConnectedDocumentItem successor) Adds aConnectedDocumentItemto the successor list.clone()Performs a deep-copy rather than a shallow copy.final voidclonePredecessorList(ItemBaseImpl myClone) final voidcloneScheduleLines(ItemBaseImpl myClone) final voidcloneSuccessorList(ItemBaseImpl myClone) Create aConnectedDocumentItemDataobjectCreate a new ScheduleLine object.Creates a text object.Returns configType flag value, if the item is configurableGet the confirmed delivery date for the item.Get the confirmed quantity for the item.Gets the currency for the item.Get the delivered quantity for this item.Get the delivered quantity unit for this item.Returns the delivery priority keyRetrieves the free quantity.Return the freight value / shipping costs.Returns the price of this item inclusive taxes.Returns the property grossValueWOFreightReturns the item usage of this item.Returns the item type usage of the back end.Price of one base unit (unit price) of this item without taxes.Returns the unit that is used for the unit price.
e.g.Returns the quantity of the unit that is used for the unit price.
e.g.Get the net costs for this item.
Whereas NetPrice gives the price per base unit, the NetValue is the price for the whole quantity.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.Returns the old quantity of this item.
If the quantity is changed for a item, this quantity shows the value before.Get the business partner listreturns a list of all possible units of this product.Get the predecessor list.Gets the still to deliver quantity.Return the requested delivery date of this item.
The date that the delivery was requested for, NOT the confirmed delivery date.Returns all schedule lines.Gets the successor list.Gets the tax value of this item.getText()Returns the text on item level for this item.voidinit()This method is called after all properties have been set It needs to be defined in the Spring bean definition as init-method.booleanbooleanDetermine, whether or no the item is configurable.booleanDo we need to sync the configuration with the backend?booleanIndicates whether the item is deletable.booleanbooleanreturns true, if the item is price relevantbooleanReturns true if the productId is null or ""booleanReturns true if the product exists in the back endbooleanbooleanvoidsetBusinessObjectType(String busType) Sets Item's Business Object TypevoidsetCancelable(boolean cancelable) Sets if item can be cancelled.voidsetConfigType(String configType) Sets the configType flag, if the item is configurablevoidsetConfigurable(boolean configurable) Marks an item as configurablevoidsetConfigurableDirty(boolean isDirty) voidsetConfirmedDeliveryDate(Date confirmedDeliveryDate) Sets Confirmed Delivery Date.voidsetConfirmedQuantity(BigDecimal confirmedQuantity) Sets confirmed quantity.voidsetCreatedAt(Date createdAt) voidsetCurrency(String currency) Sets the currency for this item.
e.g.voidsetDeletable(boolean deletable) Sets if item can be deleted.voidsetDeliverdQuantity(BigDecimal deliveredQuantity) Sets delivered quantity.voidSets delivered quantity unit.voidsetDeliveryPriority(String deliveryPriority) Sets the delivery priority key.voidsetErroneous(boolean erroneous) Sets this item as erroneous or not.voidSets the free quantity.voidsetFreightValue(BigDecimal freightValue) Sets a freight value.voidsetGrossValue(BigDecimal grossValue) Sets a gross value.voidsetGrossValueWOFreight(BigDecimal grossValueWOFreight) Set the property grossValueWOFreightvoidsetItemCategory(String itemCategory) Sets item categoryvoidsetItemUsage(ItemBase.ItemUsage itemUsage) Sets the item usage for this item.
e.g free goodvoidsetItmTypeUsage(String itmTypeUsage) Sets an item type usage .voidsetLatestDeliveryDate(Date latestDeliveryDate) The latest delivery date is the date of the latest schedule linevoidsetNetPrice(BigDecimal netPrice) Sets an item net price.voidsetNetPriceUnit(String netPriceUnit) Sets an item net price unit.
This is the unit of the unit price.voidsetNetPriceWOFreight(BigDecimal netPriceWOFreight) voidsetNetQuantPriceUnit(BigDecimal netQuantPriceUnit) Sets an item net quantity price unit.
This is the quantity of the base unit of the unit price.voidsetNetValue(BigDecimal netValue) Sets net value.
Price without tax.voidsetNetValueWOFreight(BigDecimal netValueWOFreight) Sets net value with out freight.
Price without tax or freight.voidsetOldQuantity(BigDecimal oldQuantity) Set the property oldQuantity.voidsetPartnerList(PartnerList partnerList) Set the business partner listvoidSet the business partner list Analogy to the header set business partner listvoidsetPossibleUnits(List<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(BigDecimal quantity) Sets an item quantity.voidSets an item quantity to deliver.voidsetReqDeliveryDate(Date date) Sets required delivery date.
This is the date the delivery is requested, not the confirmed delivery date.voidsetScheduleLines(List<Schedline> scheduleLines) Sets schedule lines for the item .voidsetStatistical(boolean statistical) Sets statisticalvoidsetTaxValue(BigDecimal taxValue) Sets the tax value of this item.voidSets the text on item level.voidsetTotalDiscount(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 nottoString()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, setUnitMethods 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, setValidMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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, setValidMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageListMethods 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 Details
-
createdAt
Created date -
currency
Currency -
configurable
protected boolean configurableItem is configurable? -
variant
protected boolean variantItem is product variant? -
configType
Configuration type -
deliveredQuantity
Already delivered quantity -
deliveredQuantityUnit
Delivered quantity unit -
itmTypeUsage
Item type usage -
itemUsage
Item usage -
businessObjectType
Business object type -
latestDeliveryDate
Latest delivery date -
freeQuantity
Free quantity (related to free goods) -
oldQuantity
Previous quantity -
text
Item text -
netPriceUnit
Net price unit -
netQuantPriceUnit
Quantity for net price -
taxValue
Tax value -
netValue
Net value -
netValueWOFreight
Net value without freight -
freightValue
Freight value -
grossValue
Gross value -
grossValueWOFreight
Gross value without freight -
netPrice
Net price -
totalDiscount
Total discount -
totalValue
Total value -
reqDeliveryDate
Required delivery date -
confirmedDeliveryDate
Confirmed delivery date -
confirmedQuantity
Confirmed quantity -
possibleUnits
List of possible units -
quantityToDeliver
Quantity to deliver -
scheduleLines
List of schedule lines -
partnerList
Partner list -
deliveryPriority
Delivery priority -
deletable
protected boolean deletableItem is deletable -
cancelable
protected boolean cancelableItem can be cancelled -
priceRelevant
protected boolean priceRelevantItem is price relevant -
predecessorList
Doc Flow for the document items since doc flow harmonization for CRM 5.2 -
successorList
List of successors -
erroneous
protected boolean erroneousInvalid from an business logic point of view -
productExists
protected boolean productExistsReturns true if the product of the item exists in the backend -
itemCategory
Item category -
statistical
protected boolean statisticalStatistical
-
-
Constructor Details
-
ItemBaseImpl
public ItemBaseImpl()Default constructor for the Item
-
-
Method Details
-
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
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
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
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
- Parameters:
myClone-
-
cloneScheduleLines
- Parameters:
myClone-
-
clonePredecessorList
- Parameters:
myClone-
-
createConnectedDocumentItemData
Description copied from interface:ItemBaseCreate aConnectedDocumentItemDataobject- Specified by:
createConnectedDocumentItemDatain interfaceItemBase- Returns:
- ConnectedDocumentItemData object
- See Also:
-
createScheduleLine
Description copied from interface:ItemBaseCreate a new ScheduleLine object.- Specified by:
createScheduleLinein interfaceItemBase- Returns:
- newly created schedule line object
-
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
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
Description copied from interface:ItemBaseGet the confirmed delivery date for the item.- Specified by:
getConfirmedDeliveryDatein interfaceItemBase- Returns:
- confirmed delivery date
-
getConfirmedQuantity
Description copied from interface:ItemBaseGet the confirmed quantity for the item.- Specified by:
getConfirmedQuantityin interfaceItemBase- Returns:
- confirmed quantity
-
getCreatedAt
- Specified by:
getCreatedAtin interfaceItemBase- Returns:
- created at date of this item
-
setCreatedAt
- Specified by:
setCreatedAtin interfaceItemBase- Parameters:
createdAt- createdAt date of this item
-
getCurrency
Description copied from interface:ItemBaseGets the currency for the item.- Specified by:
getCurrencyin interfaceItemBase- Returns:
- the currency
-
getDeliveredQuantity
Description copied from interface:ItemBaseGet the delivered quantity for this item.- Specified by:
getDeliveredQuantityin interfaceItemBase- Returns:
- delivered quantity as BigDecimal
-
getDeliveredQuantityUnit
Description copied from interface:ItemBaseGet the delivered quantity unit for this item.- Specified by:
getDeliveredQuantityUnitin interfaceItemBase- Returns:
- delivered quantity unit of measure
-
getDeliveryPriority
Description copied from interface:ItemBaseReturns the delivery priority key- Specified by:
getDeliveryPriorityin interfaceItemBase- Returns:
- String
-
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
Description copied from interface:ItemBaseReturn the freight value / shipping costs.- Specified by:
getFreightValuein interfaceItemBase- Returns:
- BigDecimal of freight value
-
getGrossValue
Description copied from interface:ItemBaseReturns the price of this item inclusive taxes.- Specified by:
getGrossValuein interfaceItemBase- Returns:
- gross value
-
getItmTypeUsage
Description copied from interface:ItemBaseReturns the item type usage of the back end.- Specified by:
getItmTypeUsagein interfaceItemBase- Returns:
- ItemtypeUsage
-
getItemUsage
Description copied from interface:ItemBaseReturns the item usage of this item.- Specified by:
getItemUsagein interfaceItemBase- Returns:
- ItemUsage
- See Also:
-
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
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
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
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
- Specified by:
getNetPriceWOFreightin interfaceItemBase- Returns:
- netPriceWOFreight
-
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
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
Description copied from interface:ItemBaseGet the business partner list- Specified by:
getPartnerListDatain interfaceItemBase- Returns:
- PartnerListData list of business partners
-
getPossibleUnits
Description copied from interface:ItemBasereturns a list of all possible units of this product.- Specified by:
getPossibleUnitsin interfaceItemBase- Returns:
- list of units
-
getPredecessorList
Description copied from interface:ItemBaseGet the predecessor list.- Specified by:
getPredecessorListin interfaceItemBase- Returns:
- list of all predecessor documents
- See Also:
-
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
Description copied from interface:ItemBaseReturns all schedule lines.- Specified by:
getScheduleLinesin interfaceItemBase- Returns:
- list of schedule lines
- See Also:
-
getSuccessorList
Description copied from interface:ItemBaseGets the successor list.- Specified by:
getSuccessorListin interfaceItemBase- Returns:
- list of the successor items
-
getTaxValue
Description copied from interface:ItemBaseGets the tax value of this item.- Specified by:
getTaxValuein interfaceItemBase- Returns:
- tax value
-
getText
Description copied from interface:ItemBaseReturns the text on item level for this item. -
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
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
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
Description copied from interface:ItemBaseSets Confirmed Delivery Date.- Specified by:
setConfirmedDeliveryDatein interfaceItemBase- Parameters:
confirmedDeliveryDate- the already confirmed delivery date
-
setConfirmedQuantity
Description copied from interface:ItemBaseSets confirmed quantity.- Specified by:
setConfirmedQuantityin interfaceItemBase- Parameters:
confirmedQuantity- item quantity
-
setCurrency
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
Description copied from interface:ItemBaseSets delivered quantity.- Specified by:
setDeliverdQuantityin interfaceItemBase- Parameters:
deliveredQuantity- the already delivered quantity
-
setDeliverdQuantityUnit
Description copied from interface:ItemBaseSets delivered quantity unit.- Specified by:
setDeliverdQuantityUnitin interfaceItemBase- Parameters:
unit- the unit belonging to the delivered quantity
-
setDeliveryPriority
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
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
Description copied from interface:ItemBaseSets a freight value.- Specified by:
setFreightValuein interfaceItemBase- Parameters:
freightValue- freight costs for this item
-
setGrossValue
Description copied from interface:ItemBaseSets a gross value.- Specified by:
setGrossValuein interfaceItemBase- Parameters:
grossValue- gross value for this item
-
setItmTypeUsage
Description copied from interface:ItemBaseSets an item type usage .- Specified by:
setItmTypeUsagein interfaceItemBase- Parameters:
itmTypeUsage- type of the item as string
-
setItemUsage
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:
-
setNetPrice
Description copied from interface:ItemBaseSets an item net price.- Specified by:
setNetPricein interfaceItemBase- Parameters:
netPrice- value to set
-
setNetPriceWOFreight
- Specified by:
setNetPriceWOFreightin interfaceItemBase
-
setNetPriceUnit
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
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
Description copied from interface:ItemBaseSets net value.
Price without tax. For the overall quantity.- Specified by:
setNetValuein interfaceItemBase- Parameters:
netValue- value to set
-
setNetValueWOFreight
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
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
Set the business partner list- Parameters:
partnerList- new list of business partners
-
setPartnerListData
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
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
Description copied from interface:ItemBaseSets an item quantity to deliver.- Specified by:
setQuantityToDeliverin interfaceItemBase- Parameters:
qty- value to set
-
setReqDeliveryDate
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
Description copied from interface:ItemBaseSets schedule lines for the item .- Specified by:
setScheduleLinesin interfaceItemBase- Parameters:
scheduleLines- list of Schedlines- See Also:
-
setTaxValue
Description copied from interface:ItemBaseSets the tax value of this item.- Specified by:
setTaxValuein interfaceItemBase- Parameters:
taxValue- value to set
-
setText
Description copied from interface:ItemBaseSets the text on item level. -
setTotalDiscount
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
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
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
Description copied from interface:ItemBaseReturns the property grossValueWOFreight- Specified by:
getGrossValueWOFreightin interfaceItemBase- Returns:
- grossValueWOFreight
-
setGrossValueWOFreight
Description copied from interface:ItemBaseSet the property grossValueWOFreight- Specified by:
setGrossValueWOFreightin interfaceItemBase- Parameters:
grossValueWOFreight- value to set
-
setLatestDeliveryDate
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
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
- Specified by:
getItemCategoryin interfaceItemBase- Returns:
- item category
-
setItemCategory
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
-