public class PromotionOrderEntryConsumed extends GeneratedPromotionOrderEntryConsumed
AbstractOrderEntry
where the quantity may be less than or equal to the quantity of the underlying order entry. The unit price is taken
from the underlying order entry and the entry price is calculated from this and the quantity specified. There is also
an adjusted unit price and a calculated adjusted entry price. The adjusted unit price is set by the promotion
represent the change in price if the promotion's actions are applied.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationExceptionADJUSTEDUNITPRICE, CODE, DEFAULT_INITIAL_ATTRIBUTES, ORDERENTRY, ORDERENTRYNUMBER, PROMOTIONRESULT, QUANTITYLANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
PromotionOrderEntryConsumed() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAdjustedEntryPrice()
Get the adjusted price for this order entry.
|
double |
getAdjustedEntryPrice(SessionContext ctx)
Get the adjusted price for this order entry.
|
double |
getEntryPrice()
The original price for this order entry.
|
double |
getEntryPrice(SessionContext ctx)
The original price for this order entry.
|
Product |
getProduct()
Get the product for this order entry.
|
Product |
getProduct(SessionContext ctx)
Get the product for this order entry.
|
Unit |
getUnit()
Get the units for this order entry.
|
Unit |
getUnit(SessionContext ctx)
Get the units for this order entry.
|
double |
getUnitPrice()
The original unit price for this order entry.
|
double |
getUnitPrice(SessionContext ctx)
The original unit price for this order entry.
|
boolean |
isRemovedFromOrder()
Flag to indicate if this promotion order entry is consumed.
|
void |
setRemovedFromOrder(boolean removedFromOrder)
Flag to indicate if this promotion order entry is consumed.
|
getAdjustedUnitPrice, getAdjustedUnitPrice, getAdjustedUnitPriceAsPrimitive, getAdjustedUnitPriceAsPrimitive, getCode, getCode, getDefaultAttributeModes, getOrderEntry, getOrderEntry, getOrderEntryNumber, getOrderEntryNumber, getOrderEntryNumberAsPrimitive, getOrderEntryNumberAsPrimitive, getPromotionResult, getPromotionResult, getQuantity, getQuantity, getQuantityAsPrimitive, getQuantityAsPrimitive, setAdjustedUnitPrice, setAdjustedUnitPrice, setAdjustedUnitPrice, setAdjustedUnitPrice, setCode, setCode, setOrderEntry, setOrderEntry, setOrderEntryNumber, setOrderEntryNumber, setOrderEntryNumber, setOrderEntryNumber, setPromotionResult, setPromotionResult, setQuantity, setQuantity, setQuantity, setQuantitycreateItem, getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getImplementation, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacesetTenantpublic final double getEntryPrice()
public double getEntryPrice(SessionContext ctx)
ctx - The hybris contextpublic final double getUnitPrice()
public double getUnitPrice(SessionContext ctx)
ctx - The hybris contextpublic boolean isRemovedFromOrder()
public void setRemovedFromOrder(boolean removedFromOrder)
removedFromOrder - flagpublic final Product getProduct()
public Product getProduct(SessionContext ctx)
ctx - The hybris contextpublic final Unit getUnit()
public Unit getUnit(SessionContext ctx)
ctx - The hybris contextpublic final double getAdjustedEntryPrice()
public double getAdjustedEntryPrice(SessionContext ctx)
ctx - The hybris contextCopyright © 2018 SAP SE. All Rights Reserved.