com.retek.component.customerorder.impl
Class CustomerOrderPromotionDiscountImpl
java.lang.Object
com.retek.commons.component.impl.BusinessObjectImpl
com.retek.commons.component.impl.SecondClassObjectImpl
com.retek.component.customerorder.impl.CustomerOrderPromotionDiscountImpl
- All Implemented Interfaces:
- BusinessObject, CustomerOrderPromotionDiscount, SecondClassObject
- public class CustomerOrderPromotionDiscountImpl
- extends SecondClassObjectImpl
- implements CustomerOrderPromotionDiscount
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CustomerOrderPromotionDiscountImpl
public CustomerOrderPromotionDiscountImpl(DistributedContext context,
CustomerOrderPromotionDiscountDto dto)
getDto
public CustomerOrderPromotionDiscountDto getDto()
getDiscountType
public CustomerOrderPromotionDiscountType getDiscountType()
- Description copied from interface:
CustomerOrderPromotionDiscount
- Return the promotion discount type identifier for the discount.
- Specified by:
getDiscountType
in interface CustomerOrderPromotionDiscount
- Returns:
- CustomerOrderPromotionDiscountType discount type identifier
setDiscountType
public void setDiscountType(CustomerOrderPromotionDiscountType discountType)
getDiscountAmount
public Money getDiscountAmount()
- Description copied from interface:
CustomerOrderPromotionDiscount
- Return the discount amount for the discount.
- Specified by:
getDiscountAmount
in interface CustomerOrderPromotionDiscount
- Returns:
- Money discount amount
setDiscountAmount
public void setDiscountAmount(Money dollarOffAmount)
addDiscountAmountUsed
public void addDiscountAmountUsed(Money discountAmount)
getDiscountAmountLeft
public Money getDiscountAmountLeft()
getDiscountAmountUsed
public Money getDiscountAmountUsed()
getParentObject
public PromotionDiscountable getParentObject()
throws SystemException
- Throws:
SystemException
setParentObject
public void setParentObject(PromotionDiscountable parentObject)
throws SystemException
- Throws:
SystemException
getPromotion
public Promotion getPromotion()
throws SystemException
- Description copied from interface:
CustomerOrderPromotionDiscount
- Return the promotion which triggered the discount.
- Specified by:
getPromotion
in interface CustomerOrderPromotionDiscount
- Returns:
- Promotion promotion source
- Throws:
SystemException
setPromotion
public void setPromotion(Promotion promotion)
throws SystemException
- Throws:
SystemException
isLocked
public boolean isLocked()
- Description copied from interface:
CustomerOrderPromotionDiscount
- Return a boolean indicating if the promotion discount is locked
(ie. it has been allocated during settlement processing when a line
has been shipped). A locked discount record will not be removed from
a particular parent business object if discounts are re-applied.
- Specified by:
isLocked
in interface CustomerOrderPromotionDiscount
- Returns:
- boolean true if discount is locked
markLocked
public void markLocked()
getCreatedByUser
public User getCreatedByUser()
throws SystemException
- Throws:
SystemException
setCreatedByUser
public void setCreatedByUser(User user)
setCreateDate
public void setCreateDate(RDate createDate)
getCreateDate
public RDate getCreateDate()
getServiceLine
public CustomerOrderServiceLine getServiceLine()
throws SystemException
- Description copied from interface:
CustomerOrderPromotionDiscount
- Return the parent service line for the discount (if it is
a service line level promotion discount). Returns null if
the parent is an order or order line.
- Specified by:
getServiceLine
in interface CustomerOrderPromotionDiscount
- Returns:
- CustomerOrderServiceLine parent service line
- Throws:
SystemException
createCopy
public CustomerOrderPromotionDiscountImpl createCopy()
throws SystemException
- Throws:
SystemException
lockAllocation
public void lockAllocation(Money amountToAllocate)
throws SystemException
- Throws:
SystemException
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28