All Implemented Interfaces:
BackendAware, BusinessObject, MessageListHolder, ItemBase, SimpleItem, Serializable, Cloneable, 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:
  • Field Details

    • createdAt

      protected Date createdAt
      Created date
    • currency

      protected String currency
      Currency
    • configurable

      protected boolean configurable
      Item is configurable?
    • variant

      protected boolean variant
      Item is product variant?
    • configType

      protected String configType
      Configuration type
    • deliveredQuantity

      protected BigDecimal deliveredQuantity
      Already delivered quantity
    • deliveredQuantityUnit

      protected String deliveredQuantityUnit
      Delivered quantity unit
    • itmTypeUsage

      protected String itmTypeUsage
      Item type usage
    • itemUsage

      protected ItemBase.ItemUsage itemUsage
      Item usage
    • businessObjectType

      protected String businessObjectType
      Business object type
    • latestDeliveryDate

      protected Date latestDeliveryDate
      Latest delivery date
    • freeQuantity

      protected BigDecimal freeQuantity
      Free quantity (related to free goods)
    • oldQuantity

      protected BigDecimal oldQuantity
      Previous quantity
    • text

      protected Text text
      Item text
    • netPriceUnit

      protected String netPriceUnit
      Net price unit
    • netQuantPriceUnit

      protected BigDecimal netQuantPriceUnit
      Quantity for net price
    • taxValue

      protected BigDecimal taxValue
      Tax value
    • netValue

      protected BigDecimal netValue
      Net value
    • netValueWOFreight

      protected BigDecimal netValueWOFreight
      Net value without freight
    • freightValue

      protected BigDecimal freightValue
      Freight value
    • grossValue

      protected BigDecimal grossValue
      Gross value
    • grossValueWOFreight

      protected BigDecimal grossValueWOFreight
      Gross value without freight
    • netPrice

      protected BigDecimal netPrice
      Net price
    • totalDiscount

      protected BigDecimal totalDiscount
      Total discount
    • totalValue

      protected BigDecimal totalValue
      Total value
    • reqDeliveryDate

      protected Date reqDeliveryDate
      Required delivery date
    • confirmedDeliveryDate

      protected Date confirmedDeliveryDate
      Confirmed delivery date
    • confirmedQuantity

      protected BigDecimal confirmedQuantity
      Confirmed quantity
    • possibleUnits

      protected List<String> possibleUnits
      List of possible units
    • quantityToDeliver

      protected BigDecimal quantityToDeliver
      Quantity to deliver
    • scheduleLines

      protected List<Schedline> scheduleLines
      List of schedule lines
    • partnerList

      protected PartnerList partnerList
      Partner list
    • deliveryPriority

      protected 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 List<ConnectedDocumentItem> predecessorList
      Doc Flow for the document items since doc flow harmonization for CRM 5.2
    • successorList

      protected 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 String itemCategory
      Item category
    • statistical

      protected boolean statistical
      Statistical
  • Constructor Details

    • ItemBaseImpl

      public ItemBaseImpl()
      Default constructor for the Item
  • Method Details

    • init

      public void init()
      Description copied from interface: BusinessObject
      This method is called after all properties have been set It needs to be defined in the Spring bean definition as init-method.
      Specified by:
      init in interface BusinessObject
      Overrides:
      init in class BusinessObjectBase
    • addPredecessor

      public void addPredecessor(ConnectedDocumentItem predecessor)
      Description copied from interface: ItemBase
      Adds a ConnectedDocumentItem to the predecessor list. A null reference passed to this function will be ignored, in this case nothing will happen.
      Specified by:
      addPredecessor in interface ItemBase
      Parameters:
      predecessor - ConnectedDocumentItem to be added to the predecessor list
    • addSuccessor

      public void addSuccessor(ConnectedDocumentItem successor)
      Description copied from interface: ItemBase
      Adds a ConnectedDocumentItem to the successor list. A null reference passed to this function will be ignored, in this case nothing will happen.
      Specified by:
      addSuccessor in interface ItemBase
      Parameters:
      successor - ConnectedDocument to be added to the successor list
    • clone

      public 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.
      The externalObject will not be cloned, only the reference is copied.
      Specified by:
      clone in interface ItemBase
      Overrides:
      clone in class SimpleItemImpl
      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: ItemBase
      Create a ConnectedDocumentItemData object
      Specified by:
      createConnectedDocumentItemData in interface ItemBase
      Returns:
      ConnectedDocumentItemData object
      See Also:
    • createScheduleLine

      public Schedline createScheduleLine()
      Description copied from interface: ItemBase
      Create a new ScheduleLine object.
      Specified by:
      createScheduleLine in interface ItemBase
      Returns:
      newly created schedule line object
    • createText

      public Text createText()
      Description copied from interface: ItemBase
      Creates a text object. This method is used by back end objects to get instances of the text object.
      Specified by:
      createText in interface ItemBase
      Returns:
      newly created text object
    • getConfigType

      public String getConfigType()
      Returns configType flag value, if the item is configurable
      Specified by:
      getConfigType in interface ItemBase
      Returns:
      A,B,X,G, etc, if the item is configurable
    • getConfirmedDeliveryDate

      public Date getConfirmedDeliveryDate()
      Description copied from interface: ItemBase
      Get the confirmed delivery date for the item.
      Specified by:
      getConfirmedDeliveryDate in interface ItemBase
      Returns:
      confirmed delivery date
    • getConfirmedQuantity

      public BigDecimal getConfirmedQuantity()
      Description copied from interface: ItemBase
      Get the confirmed quantity for the item.
      Specified by:
      getConfirmedQuantity in interface ItemBase
      Returns:
      confirmed quantity
    • getCreatedAt

      public Date getCreatedAt()
      Specified by:
      getCreatedAt in interface ItemBase
      Returns:
      created at date of this item
    • setCreatedAt

      public void setCreatedAt(Date createdAt)
      Specified by:
      setCreatedAt in interface ItemBase
      Parameters:
      createdAt - createdAt date of this item
    • getCurrency

      public String getCurrency()
      Description copied from interface: ItemBase
      Gets the currency for the item.
      Specified by:
      getCurrency in interface ItemBase
      Returns:
      the currency
    • getDeliveredQuantity

      public BigDecimal getDeliveredQuantity()
      Description copied from interface: ItemBase
      Get the delivered quantity for this item.
      Specified by:
      getDeliveredQuantity in interface ItemBase
      Returns:
      delivered quantity as BigDecimal
    • getDeliveredQuantityUnit

      public String getDeliveredQuantityUnit()
      Description copied from interface: ItemBase
      Get the delivered quantity unit for this item.
      Specified by:
      getDeliveredQuantityUnit in interface ItemBase
      Returns:
      delivered quantity unit of measure
    • getDeliveryPriority

      public String getDeliveryPriority()
      Description copied from interface: ItemBase
      Returns the delivery priority key
      Specified by:
      getDeliveryPriority in interface ItemBase
      Returns:
      String
    • getFreeQuantity

      public BigDecimal getFreeQuantity()
      Description copied from interface: ItemBase
      Retrieves the free quantity. Only relevant for inclusive free goods.
      Specified by:
      getFreeQuantity in interface ItemBase
      Returns:
      the free quantity in local specific format.
    • getFreightValue

      public BigDecimal getFreightValue()
      Description copied from interface: ItemBase
      Return the freight value / shipping costs.
      Specified by:
      getFreightValue in interface ItemBase
      Returns:
      BigDecimal of freight value
    • getGrossValue

      public BigDecimal getGrossValue()
      Description copied from interface: ItemBase
      Returns the price of this item inclusive taxes.
      Specified by:
      getGrossValue in interface ItemBase
      Returns:
      gross value
    • getItmTypeUsage

      public String getItmTypeUsage()
      Description copied from interface: ItemBase
      Returns the item type usage of the back end.
      Specified by:
      getItmTypeUsage in interface ItemBase
      Returns:
      ItemtypeUsage
    • getItemUsage

      public ItemBase.ItemUsage getItemUsage()
      Description copied from interface: ItemBase
      Returns the item usage of this item.
      Specified by:
      getItemUsage in interface ItemBase
      Returns:
      ItemUsage
      See Also:
    • getNetPrice

      public BigDecimal getNetPrice()
      Description copied from interface: ItemBase
      Price of one base unit (unit price) of this item without taxes.
      Specified by:
      getNetPrice in interface ItemBase
      Returns:
      Price of 1 unit without taxes
    • getNetPriceUnit

      public String getNetPriceUnit()
      Description copied from interface: ItemBase
      Returns the unit that is used for the unit price.
      e.g. PC if the price is calculated per 2 PC
      Specified by:
      getNetPriceUnit in interface ItemBase
      Returns:
      unit of the net price
    • getNetQuantPriceUnit

      public BigDecimal getNetQuantPriceUnit()
      Description copied from interface: ItemBase
      Returns 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:
      getNetQuantPriceUnit in interface ItemBase
      Returns:
      quantity of the unit for which the unit price is calculated
    • getNetValue

      public BigDecimal getNetValue()
      Description copied from interface: ItemBase
      Get 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:
      getNetValue in interface ItemBase
      Returns:
      price of this item without taxes
    • getNetPriceWOFreight

      public BigDecimal getNetPriceWOFreight()
      Specified by:
      getNetPriceWOFreight in interface ItemBase
      Returns:
      netPriceWOFreight
    • getNetValueWOFreight

      public BigDecimal getNetValueWOFreight()
      Description copied from interface: ItemBase
      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. This is excluding the Shipping costs/freight.
      Specified by:
      getNetValueWOFreight in interface ItemBase
      Returns:
      price of this item without taxes and freight
    • getOldQuantity

      public BigDecimal getOldQuantity()
      Description copied from interface: ItemBase
      Returns 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:
      getOldQuantity in interface ItemBase
      Returns:
      quantity before the change
    • getPartnerListData

      public PartnerList getPartnerListData()
      Description copied from interface: ItemBase
      Get the business partner list
      Specified by:
      getPartnerListData in interface ItemBase
      Returns:
      PartnerListData list of business partners
    • getPossibleUnits

      public List<String> getPossibleUnits()
      Description copied from interface: ItemBase
      returns a list of all possible units of this product.
      Specified by:
      getPossibleUnits in interface ItemBase
      Returns:
      list of units
    • getPredecessorList

      public List<ConnectedDocumentItem> getPredecessorList()
      Description copied from interface: ItemBase
      Get the predecessor list.
      Specified by:
      getPredecessorList in interface ItemBase
      Returns:
      list of all predecessor documents
      See Also:
    • getQuantityToDeliver

      public BigDecimal getQuantityToDeliver()
      Description copied from interface: ItemBase
      Gets the still to deliver quantity. Difference between ordered quantity and already delivered quantity.
      Specified by:
      getQuantityToDeliver in interface ItemBase
      Returns:
      the quantity
    • getScheduleLines

      public List<Schedline> getScheduleLines()
      Description copied from interface: ItemBase
      Returns all schedule lines.
      Specified by:
      getScheduleLines in interface ItemBase
      Returns:
      list of schedule lines
      See Also:
    • getSuccessorList

      public List<ConnectedDocumentItem> getSuccessorList()
      Description copied from interface: ItemBase
      Gets the successor list.
      Specified by:
      getSuccessorList in interface ItemBase
      Returns:
      list of the successor items
    • getTaxValue

      public BigDecimal getTaxValue()
      Description copied from interface: ItemBase
      Gets the tax value of this item.
      Specified by:
      getTaxValue in interface ItemBase
      Returns:
      tax value
    • getText

      public Text getText()
      Description copied from interface: ItemBase
      Returns the text on item level for this item.
      Specified by:
      getText in interface ItemBase
      Returns:
      text object
      See Also:
    • getTotalDiscount

      public BigDecimal getTotalDiscount()
      Specified by:
      getTotalDiscount in interface ItemBase
      Returns:
      total discount, which is used for strike through prices
    • isCancelable

      public boolean isCancelable()
      Specified by:
      isCancelable in interface ItemBase
      Returns:
      whether this item can be cancelled
    • isConfigurable

      public boolean isConfigurable()
      Description copied from interface: ItemBase
      Determine, whether or no the item is configurable.
      Specified by:
      isConfigurable in interface ItemBase
      Returns:
      true if the item can be configured, otherwise false.
    • isDeletable

      public boolean isDeletable()
      Description copied from interface: ItemBase
      Indicates whether the item is deletable.
      Specified by:
      isDeletable in interface ItemBase
      Returns:
      true if the item is deletable; otherwise false.
    • isErroneous

      public boolean isErroneous()
      Specified by:
      isErroneous in interface ItemBase
      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(String busType)
      Description copied from interface: ItemBase
      Sets Item's Business Object Type
      Specified by:
      setBusinessObjectType in interface ItemBase
      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: ItemBase
      Sets if item can be cancelled.
      Specified by:
      setCancelable in interface ItemBase
      Parameters:
      cancelable - if true an item can be cancelled
    • setConfigType

      public void setConfigType(String configType)
      Sets the configType flag, if the item is configurable
      Specified by:
      setConfigType in interface ItemBase
      Parameters:
      configType - contains the value A,B,X, G, etc..
    • setConfigurable

      public void setConfigurable(boolean configurable)
      Marks an item as configurable
      Specified by:
      setConfigurable in interface ItemBase
      Parameters:
      configurable - true, only if the item should be considered configurable
    • setConfirmedDeliveryDate

      public void setConfirmedDeliveryDate(Date confirmedDeliveryDate)
      Description copied from interface: ItemBase
      Sets Confirmed Delivery Date.
      Specified by:
      setConfirmedDeliveryDate in interface ItemBase
      Parameters:
      confirmedDeliveryDate - the already confirmed delivery date
    • setConfirmedQuantity

      public void setConfirmedQuantity(BigDecimal confirmedQuantity)
      Description copied from interface: ItemBase
      Sets confirmed quantity.
      Specified by:
      setConfirmedQuantity in interface ItemBase
      Parameters:
      confirmedQuantity - item quantity
    • setCurrency

      public void setCurrency(String currency)
      Description copied from interface: ItemBase
      Sets the currency for this item.
      e.g. USD or EUR
      Specified by:
      setCurrency in interface ItemBase
      Parameters:
      currency - currency
    • setDeletable

      public void setDeletable(boolean deletable)
      Description copied from interface: ItemBase
      Sets if item can be deleted.
      Specified by:
      setDeletable in interface ItemBase
      Parameters:
      deletable - if true an item can be deleted
    • setDeliverdQuantity

      public void setDeliverdQuantity(BigDecimal deliveredQuantity)
      Description copied from interface: ItemBase
      Sets delivered quantity.
      Specified by:
      setDeliverdQuantity in interface ItemBase
      Parameters:
      deliveredQuantity - the already delivered quantity
    • setDeliverdQuantityUnit

      public void setDeliverdQuantityUnit(String unit)
      Description copied from interface: ItemBase
      Sets delivered quantity unit.
      Specified by:
      setDeliverdQuantityUnit in interface ItemBase
      Parameters:
      unit - the unit belonging to the delivered quantity
    • setDeliveryPriority

      public void setDeliveryPriority(String deliveryPriority)
      Description copied from interface: ItemBase
      Sets the delivery priority key.
      Specified by:
      setDeliveryPriority in interface ItemBase
      Parameters:
      deliveryPriority - priority for delivery
    • setErroneous

      public void setErroneous(boolean erroneous)
      Description copied from interface: ItemBase
      Sets this item as erroneous or not.
      Specified by:
      setErroneous in interface ItemBase
      Parameters:
      erroneous - true if the item has errors
    • setFreeQuantity

      public void setFreeQuantity(BigDecimal arg)
      Description copied from interface: ItemBase
      Sets the free quantity. Only relevant for inclusive free goods.
      Specified by:
      setFreeQuantity in interface ItemBase
      Parameters:
      arg - the free quantity in local specific format.
    • setFreightValue

      public void setFreightValue(BigDecimal freightValue)
      Description copied from interface: ItemBase
      Sets a freight value.
      Specified by:
      setFreightValue in interface ItemBase
      Parameters:
      freightValue - freight costs for this item
    • setGrossValue

      public void setGrossValue(BigDecimal grossValue)
      Description copied from interface: ItemBase
      Sets a gross value.
      Specified by:
      setGrossValue in interface ItemBase
      Parameters:
      grossValue - gross value for this item
    • setItmTypeUsage

      public void setItmTypeUsage(String itmTypeUsage)
      Description copied from interface: ItemBase
      Sets an item type usage .
      Specified by:
      setItmTypeUsage in interface ItemBase
      Parameters:
      itmTypeUsage - type of the item as string
    • setItemUsage

      public void setItemUsage(ItemBase.ItemUsage itemUsage)
      Description copied from interface: ItemBase
      Sets the item usage for this item.
      e.g free good
      Specified by:
      setItemUsage in interface ItemBase
      Parameters:
      itemUsage - an item usage
      See Also:
    • setNetPrice

      public void setNetPrice(BigDecimal netPrice)
      Description copied from interface: ItemBase
      Sets an item net price.
      Specified by:
      setNetPrice in interface ItemBase
      Parameters:
      netPrice - value to set
    • setNetPriceWOFreight

      public void setNetPriceWOFreight(BigDecimal netPriceWOFreight)
      Specified by:
      setNetPriceWOFreight in interface ItemBase
    • setNetPriceUnit

      public void setNetPriceUnit(String netPriceUnit)
      Description copied from interface: ItemBase
      Sets an item net price unit.
      This is the unit of the unit price.
      Specified by:
      setNetPriceUnit in interface ItemBase
      Parameters:
      netPriceUnit - value to set
    • setNetQuantPriceUnit

      public void setNetQuantPriceUnit(BigDecimal netQuantPriceUnit)
      Description copied from interface: ItemBase
      Sets an item net quantity price unit.
      This is the quantity of the base unit of the unit price.
      Specified by:
      setNetQuantPriceUnit in interface ItemBase
      Parameters:
      netQuantPriceUnit - value to set
    • setNetValue

      public void setNetValue(BigDecimal netValue)
      Description copied from interface: ItemBase
      Sets net value.
      Price without tax. For the overall quantity.
      Specified by:
      setNetValue in interface ItemBase
      Parameters:
      netValue - value to set
    • setNetValueWOFreight

      public void setNetValueWOFreight(BigDecimal netValueWOFreight)
      Description copied from interface: ItemBase
      Sets net value with out freight.
      Price without tax or freight. For the overall quantity.
      Specified by:
      setNetValueWOFreight in interface ItemBase
      Parameters:
      netValueWOFreight - value to set
    • setOldQuantity

      public void setOldQuantity(BigDecimal oldQuantity)
      Description copied from interface: ItemBase
      Set the property oldQuantity. Replaces the method with String parameter.
      Specified by:
      setOldQuantity in interface ItemBase
      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: ItemBase
      Set the business partner list Analogy to the header set business partner list
      Specified by:
      setPartnerListData in interface ItemBase
      Parameters:
      list - PartnerListData list of business partners
    • setPossibleUnits

      public void setPossibleUnits(List<String> possibleUnits)
      Description copied from interface: ItemBase
      Sets all units that are possible for that product.
      Specified by:
      setPossibleUnits in interface ItemBase
      Parameters:
      possibleUnits - list of all units
    • setPriceRelevant

      public void setPriceRelevant(boolean isPriceRelevant)
      Description copied from interface: ItemBase
      Sets the flag, that shows, if the position is price relevant
      Specified by:
      setPriceRelevant in interface ItemBase
      Parameters:
      isPriceRelevant - true or false
    • setQuantityToDeliver

      public void setQuantityToDeliver(BigDecimal qty)
      Description copied from interface: ItemBase
      Sets an item quantity to deliver.
      Specified by:
      setQuantityToDeliver in interface ItemBase
      Parameters:
      qty - value to set
    • setReqDeliveryDate

      public void setReqDeliveryDate(Date date)
      Description copied from interface: ItemBase
      Sets required delivery date.
      This is the date the delivery is requested, not the confirmed delivery date.
      Specified by:
      setReqDeliveryDate in interface ItemBase
      Parameters:
      date - value to set
    • setScheduleLines

      public void setScheduleLines(List<Schedline> scheduleLines)
      Description copied from interface: ItemBase
      Sets schedule lines for the item .
      Specified by:
      setScheduleLines in interface ItemBase
      Parameters:
      scheduleLines - list of Schedlines
      See Also:
    • setTaxValue

      public void setTaxValue(BigDecimal taxValue)
      Description copied from interface: ItemBase
      Sets the tax value of this item.
      Specified by:
      setTaxValue in interface ItemBase
      Parameters:
      taxValue - value to set
    • setText

      public void setText(Text text)
      Description copied from interface: ItemBase
      Sets the text on item level.
      Specified by:
      setText in interface ItemBase
      Parameters:
      text - text on item level
      See Also:
    • setTotalDiscount

      public void setTotalDiscount(BigDecimal totalDiscount)
      Description copied from interface: ItemBase
      Sets 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:
      setTotalDiscount in interface ItemBase
      Parameters:
      totalDiscount - value to set
    • toString

      public 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:
      toString in class SimpleItemImpl
    • isProductExists

      public boolean isProductExists()
      Description copied from interface: ItemBase
      Returns true if the product exists in the back end
      Specified by:
      isProductExists in interface ItemBase
      Returns:
      true if the product exists in the back end
    • setProductExists

      public void setProductExists(boolean productExists)
      Description copied from interface: ItemBase
      Sets the information, whether the product exists in the back end
      Specified by:
      setProductExists in interface ItemBase
      Parameters:
      productExists - false if the product does not exist in the back end
    • getReqDeliveryDate

      public Date getReqDeliveryDate()
      Description copied from interface: ItemBase
      Return the requested delivery date of this item.
      The date that the delivery was requested for, NOT the confirmed delivery date.
      Specified by:
      getReqDeliveryDate in interface ItemBase
      Returns:
      RequestedDeliveryDate
    • isProductEmpty

      public boolean isProductEmpty()
      Description copied from interface: ItemBase
      Returns true if the productId is null or ""
      Specified by:
      isProductEmpty in interface ItemBase
      Returns:
      true if there is no product maintained
    • getGrossValueWOFreight

      public BigDecimal getGrossValueWOFreight()
      Description copied from interface: ItemBase
      Returns the property grossValueWOFreight
      Specified by:
      getGrossValueWOFreight in interface ItemBase
      Returns:
      grossValueWOFreight
    • setGrossValueWOFreight

      public void setGrossValueWOFreight(BigDecimal grossValueWOFreight)
      Description copied from interface: ItemBase
      Set the property grossValueWOFreight
      Specified by:
      setGrossValueWOFreight in interface ItemBase
      Parameters:
      grossValueWOFreight - value to set
    • setLatestDeliveryDate

      public void setLatestDeliveryDate(Date latestDeliveryDate)
      Description copied from interface: ItemBase
      The latest delivery date is the date of the latest schedule line
      Specified by:
      setLatestDeliveryDate in interface ItemBase
      Parameters:
      latestDeliveryDate - the latestDeliveryDate to set
    • setQuantity

      public void setQuantity(BigDecimal quantity)
      Description copied from interface: SimpleItem
      Sets an item quantity.
      Specified by:
      setQuantity in interface SimpleItem
      Overrides:
      setQuantity in class SimpleItemImpl
      Parameters:
      quantity - value to set
    • isConfigurationDirty

      public boolean isConfigurationDirty()
      Description copied from interface: ItemBase
      Do we need to sync the configuration with the backend?
      Specified by:
      isConfigurationDirty in interface ItemBase
      Returns:
      Dirty?
    • setConfigurableDirty

      public void setConfigurableDirty(boolean isDirty)
      Specified by:
      setConfigurableDirty in interface ItemBase
      Parameters:
      isDirty - true, if there is the need to sync the configuration with the back-end
    • isVariant

      public boolean isVariant()
      Specified by:
      isVariant in interface ItemBase
      Returns:
      true if this item is a variant of a configurable product
    • setVariant

      public void setVariant(boolean variant)
      Description copied from interface: ItemBase
      Setter if this item is a variant of a configurable product or not
      Specified by:
      setVariant in interface ItemBase
      Parameters:
      variant - true id this item is a variant
    • getItemCategory

      public String getItemCategory()
      Specified by:
      getItemCategory in interface ItemBase
      Returns:
      item category
    • setItemCategory

      public void setItemCategory(String itemCategory)
      Description copied from interface: ItemBase
      Sets item category
      Specified by:
      setItemCategory in interface ItemBase
      Parameters:
      itemCategory - item category
    • isStatistical

      public boolean isStatistical()
      Specified by:
      isStatistical in interface ItemBase
      Returns:
      statistical
    • setStatistical

      public void setStatistical(boolean statistical)
      Description copied from interface: ItemBase
      Sets statistical
      Specified by:
      setStatistical in interface ItemBase