com.retek.component.customerorder.impl
Class ReturnLineRefundCalculator
java.lang.Object
com.retek.component.customerorder.impl.ReturnLineRefundCalculator
- Direct Known Subclasses:
- PackComponentReturnLineRefundCalculator, StandardReturnLineRefundCalculator
- public abstract class ReturnLineRefundCalculator
- extends java.lang.Object
Abstract strategy class which encapsulates common behavior for computing return line refund
values.
Method Summary |
protected abstract void |
allocateTaxInvoiceLineItemRecords(boolean lockTaxRecordAllocations)
|
protected abstract void |
allocateTaxInvoiceRecords(boolean lockTaxRecordAllocations)
|
protected ReturnLineAccommodationAdjustment |
buildAccommodationAdjustment(CustomerOrderLine orderLine,
GeneralAccommodation accommodation,
ReturnLineAccommodationAdjustmentType type,
Quantity totalChargeableQuantity,
Money maximumDiscountAmount,
Money previousDiscountAmount)
|
protected ReturnLinePromotionAdjustment |
buildPromotionAdjustment(CustomerOrderLinePromotionDiscountRollup discountRollup,
Quantity totalChargeableQuantity)
|
protected abstract void |
calculateAdditionalShippingRefundAmount()
|
protected abstract void |
calculateGiftRefundAmount()
|
protected abstract void |
calculateMerchandiseRefundAmount()
|
protected abstract void |
calculatePersonalizationRefundAmount()
|
protected Money |
calculatePromotionAdjustments(Quantity refundableQuantity,
java.util.Collection promotionDiscounts,
java.util.Set discountTypes)
|
protected void |
calculateRefundLineLevelTaxes(boolean lockTaxRecordAllocations)
|
protected void |
calculateRefundStandardShippingTax(boolean lockTaxRecordAllocations)
|
void |
calculateRefundValues(boolean lockTaxRecordAllocations)
|
protected static Money |
calculateStandardShippingTax(Money refundStandardShippingCharge,
CustomerOrderLineImpl orderLine,
ReturnLineImpl returnLine)
|
protected void |
doAllocateTaxInvoiceRecordsFromContainers(boolean lockTaxRecordAllocations)
|
Money |
getCalculatedExtendedAdditionalShippingCharge()
|
Money |
getCalculatedExtendedAdditionalShippingTax()
|
Money |
getCalculatedExtendedPrice()
|
Money |
getCalculatedExtendedTax()
|
Money |
getCalculatedGiftServiceCharge()
|
Money |
getCalculatedGiftServiceTax()
|
Money |
getCalculatedPersonalizationServiceCharge()
|
Money |
getCalculatedPersonalizationServiceTax()
|
Money |
getCalculatedStandardShippingCharge()
|
Money |
getCalculatedStandardShippingTax()
|
protected java.util.List |
getContainerLinesSortedByDate()
|
protected java.util.List |
getContainersSortedByDate()
|
DistributedContext |
getContext()
|
Money |
getRefundExtendedAdditionalShippingCharge()
|
Money |
getRefundExtendedAdditionalShippingTax()
|
Money |
getRefundExtendedPrice()
|
Money |
getRefundExtendedTax()
|
Money |
getRefundGiftServiceCharge()
|
Money |
getRefundGiftServiceTax()
|
Money |
getRefundPersonalizationServiceCharge()
|
Money |
getRefundPersonalizationServiceTax()
|
Money |
getRefundStandardShippingCharge()
|
Money |
getRefundStandardShippingTax()
|
ReturnLineImpl |
getReturnLine()
|
java.util.Collection |
getReturnLineAccommodationAdjustments()
|
java.util.Collection |
getReturnLinePromotionAdjustments()
|
java.util.Collection |
getReturnLineTaxInvoiceLineItemRecords()
|
java.util.Collection |
getReturnLineTaxInvoiceRecords()
|
protected Quantity |
getReturnQuantity()
|
protected abstract void |
logAdditionalReturnLineDetail()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static RetekLogger logger
returnLine
protected ReturnLineImpl returnLine
calculatedExtendedPrice
protected Money calculatedExtendedPrice
calculatedExtendedAdditionalShippingCharge
protected Money calculatedExtendedAdditionalShippingCharge
calculatedPersonalizationServiceCharge
protected Money calculatedPersonalizationServiceCharge
calculatedGiftServiceCharge
protected Money calculatedGiftServiceCharge
calculatedStandardShippingCharge
protected Money calculatedStandardShippingCharge
calculatedExtendedTax
protected Money calculatedExtendedTax
calculatedExtendedAdditionalShippingTax
protected Money calculatedExtendedAdditionalShippingTax
calculatedPersonalizationServiceTax
protected Money calculatedPersonalizationServiceTax
calculatedGiftServiceTax
protected Money calculatedGiftServiceTax
calculatedStandardShippingTax
protected Money calculatedStandardShippingTax
refundExtendedPrice
protected Money refundExtendedPrice
refundExtendedAdditionalShippingCharge
protected Money refundExtendedAdditionalShippingCharge
refundPersonalizationServiceCharge
protected Money refundPersonalizationServiceCharge
refundGiftServiceCharge
protected Money refundGiftServiceCharge
refundStandardShippingCharge
protected Money refundStandardShippingCharge
refundExtendedTax
protected Money refundExtendedTax
refundExtendedAdditionalShippingTax
protected Money refundExtendedAdditionalShippingTax
refundPersonalizationServiceTax
protected Money refundPersonalizationServiceTax
refundGiftServiceTax
protected Money refundGiftServiceTax
refundStandardShippingTax
protected Money refundStandardShippingTax
accommodatedTax
protected Money accommodatedTax
returnLinePromotionAdjustments
protected java.util.List returnLinePromotionAdjustments
returnLineAccommodationAdjustments
protected java.util.List returnLineAccommodationAdjustments
returnLineTaxInvoiceRecords
protected java.util.List returnLineTaxInvoiceRecords
returnLineTaxInvoiceLineItemRecords
protected java.util.List returnLineTaxInvoiceLineItemRecords
ReturnLineRefundCalculator
public ReturnLineRefundCalculator(ReturnLineImpl returnLine)
getReturnLine
public ReturnLineImpl getReturnLine()
getContext
public DistributedContext getContext()
getCalculatedExtendedPrice
public Money getCalculatedExtendedPrice()
getCalculatedExtendedTax
public Money getCalculatedExtendedTax()
getCalculatedPersonalizationServiceCharge
public Money getCalculatedPersonalizationServiceCharge()
getCalculatedPersonalizationServiceTax
public Money getCalculatedPersonalizationServiceTax()
getCalculatedExtendedAdditionalShippingCharge
public Money getCalculatedExtendedAdditionalShippingCharge()
getCalculatedExtendedAdditionalShippingTax
public Money getCalculatedExtendedAdditionalShippingTax()
getCalculatedGiftServiceCharge
public Money getCalculatedGiftServiceCharge()
getCalculatedGiftServiceTax
public Money getCalculatedGiftServiceTax()
getCalculatedStandardShippingCharge
public Money getCalculatedStandardShippingCharge()
getCalculatedStandardShippingTax
public Money getCalculatedStandardShippingTax()
getRefundExtendedAdditionalShippingCharge
public Money getRefundExtendedAdditionalShippingCharge()
getRefundExtendedAdditionalShippingTax
public Money getRefundExtendedAdditionalShippingTax()
getRefundExtendedPrice
public Money getRefundExtendedPrice()
getRefundExtendedTax
public Money getRefundExtendedTax()
getRefundGiftServiceCharge
public Money getRefundGiftServiceCharge()
getRefundGiftServiceTax
public Money getRefundGiftServiceTax()
getRefundPersonalizationServiceCharge
public Money getRefundPersonalizationServiceCharge()
getRefundPersonalizationServiceTax
public Money getRefundPersonalizationServiceTax()
getRefundStandardShippingCharge
public Money getRefundStandardShippingCharge()
getRefundStandardShippingTax
public Money getRefundStandardShippingTax()
getReturnLinePromotionAdjustments
public java.util.Collection getReturnLinePromotionAdjustments()
getReturnLineAccommodationAdjustments
public java.util.Collection getReturnLineAccommodationAdjustments()
getReturnLineTaxInvoiceRecords
public java.util.Collection getReturnLineTaxInvoiceRecords()
getReturnLineTaxInvoiceLineItemRecords
public java.util.Collection getReturnLineTaxInvoiceLineItemRecords()
getReturnQuantity
protected final Quantity getReturnQuantity()
throws SystemException
- Throws:
SystemException
calculateRefundValues
public final void calculateRefundValues(boolean lockTaxRecordAllocations)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
calculateMerchandiseRefundAmount
protected abstract void calculateMerchandiseRefundAmount()
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
calculateAdditionalShippingRefundAmount
protected abstract void calculateAdditionalShippingRefundAmount()
throws SystemException
- Throws:
SystemException
calculateGiftRefundAmount
protected abstract void calculateGiftRefundAmount()
throws SystemException
- Throws:
SystemException
calculatePersonalizationRefundAmount
protected abstract void calculatePersonalizationRefundAmount()
throws SystemException
- Throws:
SystemException
allocateTaxInvoiceLineItemRecords
protected abstract void allocateTaxInvoiceLineItemRecords(boolean lockTaxRecordAllocations)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
allocateTaxInvoiceRecords
protected abstract void allocateTaxInvoiceRecords(boolean lockTaxRecordAllocations)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
logAdditionalReturnLineDetail
protected abstract void logAdditionalReturnLineDetail()
throws SystemException
- Throws:
SystemException
calculatePromotionAdjustments
protected final Money calculatePromotionAdjustments(Quantity refundableQuantity,
java.util.Collection promotionDiscounts,
java.util.Set discountTypes)
throws SystemException
- Throws:
SystemException
buildPromotionAdjustment
protected final ReturnLinePromotionAdjustment buildPromotionAdjustment(CustomerOrderLinePromotionDiscountRollup discountRollup,
Quantity totalChargeableQuantity)
throws SystemException
- Throws:
SystemException
calculateRefundStandardShippingTax
protected void calculateRefundStandardShippingTax(boolean lockTaxRecordAllocations)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
calculateRefundLineLevelTaxes
protected void calculateRefundLineLevelTaxes(boolean lockTaxRecordAllocations)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
calculateStandardShippingTax
protected static Money calculateStandardShippingTax(Money refundStandardShippingCharge,
CustomerOrderLineImpl orderLine,
ReturnLineImpl returnLine)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
doAllocateTaxInvoiceRecordsFromContainers
protected final void doAllocateTaxInvoiceRecordsFromContainers(boolean lockTaxRecordAllocations)
throws SystemException,
BusinessException
- Throws:
SystemException
BusinessException
buildAccommodationAdjustment
protected final ReturnLineAccommodationAdjustment buildAccommodationAdjustment(CustomerOrderLine orderLine,
GeneralAccommodation accommodation,
ReturnLineAccommodationAdjustmentType type,
Quantity totalChargeableQuantity,
Money maximumDiscountAmount,
Money previousDiscountAmount)
throws SystemException
- Throws:
SystemException
getContainersSortedByDate
protected final java.util.List getContainersSortedByDate()
throws SystemException
- Throws:
SystemException
getContainerLinesSortedByDate
protected final java.util.List getContainerLinesSortedByDate()
throws SystemException
- Throws:
SystemException
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28