com.retek.component.customerorder
Interface Discount
- All Superinterfaces:
- BusinessObject, DistributedObject
- public interface Discount
- extends DistributedObject
Methods inherited from interface com.retek.commons.component.DistributedObject |
debugToString, discardChanges, getContext, getId, getReference, isDeleted, isDirty, isDirtyDeep, isDirtyIgnoreFields, isPersisted, refresh |
getDiscountType
public DiscountType getDiscountType()
throws SystemException
- Throws:
SystemException
equalsType
public boolean equalsType(Discount discount)
throws SystemException
- Throws:
SystemException
getCreatedByUser
public User getCreatedByUser()
throws SystemException
- Throws:
SystemException
getCreatedDate
public RDate getCreatedDate()
throws SystemException
- Throws:
SystemException
getLastUpdatedByUser
public User getLastUpdatedByUser()
throws SystemException
- Throws:
SystemException
getLastUpdatedDate
public RDate getLastUpdatedDate()
throws SystemException
- Throws:
SystemException
getDiscountPercent
public Quantity getDiscountPercent()
throws SystemException
- Return the discount percent for the discount if the discount is
a percent-based discount, ex. employee discount. May be zero/null if the discount
is a dollar-off discount, ex. alternate selling discount.
- Returns:
- double discount percent
- Throws:
SystemException
getUnitDiscountAmount
public Money getUnitDiscountAmount()
throws SystemException
- Throws:
SystemException
isSaleDiscount
public boolean isSaleDiscount()
throws SystemException
- Throws:
SystemException
setDiscountPercent
public void setDiscountPercent(Quantity discountPercent)
throws SystemException
- Throws:
SystemException
setSaleDiscount
public void setSaleDiscount(boolean isMarked)
throws SystemException
- Throws:
SystemException
setUnitDiscountAmount
public void setUnitDiscountAmount(Money discountAmount)
throws SystemException
- Throws:
SystemException
getExtendedDiscountAmount
public Money getExtendedDiscountAmount()
throws SystemException
- Return an extended discount amount for the discount, based on the chargeable qty
of the order line * unit discount amount.
- Returns:
- Money extended discount amount
- Throws:
SystemException
getExtendedDiscountAmount
public Money getExtendedDiscountAmount(Quantity quantity)
throws SystemException
- Return an extended discount amount for the discount, based on the specified
order line quantity.
- Parameters:
quantity
- order line quantity
- Returns:
- Money unit discount amount * quantity
- Throws:
SystemException
Copyright © 2005 Retek Inc. All Rights Reserved.
- Generated at Fri, 01/21/2005 14:25