com.retek.component.customerorder.impl
Class StandardReturnLineRefundCalculator

java.lang.Object
  extended bycom.retek.component.customerorder.impl.ReturnLineRefundCalculator
      extended bycom.retek.component.customerorder.impl.StandardReturnLineRefundCalculator
Direct Known Subclasses:
ZeroChargeReturnLineRefundCalculator

public class StandardReturnLineRefundCalculator
extends ReturnLineRefundCalculator

Strategy class which encapsulates behavior for computing return line refund values for a standard (normal, exchange, replacement) return line. Standard return line charged taxes are computed through proration summation and proration of actual charged taxes off shipped containers/container lines that have been shipped for the item being returned.


Field Summary
protected  CustomerOrderLineImpl refundableOrderLine
           
protected  Quantity refundableQuantity
           
 
Fields inherited from class com.retek.component.customerorder.impl.ReturnLineRefundCalculator
accommodatedTax, calculatedExtendedAdditionalShippingCharge, calculatedExtendedAdditionalShippingTax, calculatedExtendedPrice, calculatedExtendedTax, calculatedGiftServiceCharge, calculatedGiftServiceTax, calculatedPersonalizationServiceCharge, calculatedPersonalizationServiceTax, calculatedStandardShippingCharge, calculatedStandardShippingTax, logger, refundExtendedAdditionalShippingCharge, refundExtendedAdditionalShippingTax, refundExtendedPrice, refundExtendedTax, refundGiftServiceCharge, refundGiftServiceTax, refundPersonalizationServiceCharge, refundPersonalizationServiceTax, refundStandardShippingCharge, refundStandardShippingTax, returnLine, returnLineAccommodationAdjustments, returnLinePromotionAdjustments, returnLineTaxInvoiceLineItemRecords, returnLineTaxInvoiceRecords
 
Constructor Summary
StandardReturnLineRefundCalculator(ReturnLineImpl returnLine)
           
 
Method Summary
protected  void allocateTaxInvoiceLineItemRecords(boolean lockTaxRecordAllocations)
           
protected  void allocateTaxInvoiceRecords(boolean lockTaxRecordAllocations)
           
protected  void calculateAdditionalShippingRefundAmount()
           
protected  void calculateGiftRefundAmount()
           
protected  void calculateMerchandiseRefundAmount()
           
protected  void calculatePersonalizationRefundAmount()
           
protected  CustomerOrderLine getChargeableOrderLine()
           
protected  void logAdditionalReturnLineDetail()
           
 
Methods inherited from class com.retek.component.customerorder.impl.ReturnLineRefundCalculator
buildAccommodationAdjustment, buildPromotionAdjustment, calculatePromotionAdjustments, calculateRefundLineLevelTaxes, calculateRefundStandardShippingTax, calculateRefundValues, calculateStandardShippingTax, doAllocateTaxInvoiceRecordsFromContainers, getCalculatedExtendedAdditionalShippingCharge, getCalculatedExtendedAdditionalShippingTax, getCalculatedExtendedPrice, getCalculatedExtendedTax, getCalculatedGiftServiceCharge, getCalculatedGiftServiceTax, getCalculatedPersonalizationServiceCharge, getCalculatedPersonalizationServiceTax, getCalculatedStandardShippingCharge, getCalculatedStandardShippingTax, getContainerLinesSortedByDate, getContainersSortedByDate, getContext, getRefundExtendedAdditionalShippingCharge, getRefundExtendedAdditionalShippingTax, getRefundExtendedPrice, getRefundExtendedTax, getRefundGiftServiceCharge, getRefundGiftServiceTax, getRefundPersonalizationServiceCharge, getRefundPersonalizationServiceTax, getRefundStandardShippingCharge, getRefundStandardShippingTax, getReturnLine, getReturnLineAccommodationAdjustments, getReturnLinePromotionAdjustments, getReturnLineTaxInvoiceLineItemRecords, getReturnLineTaxInvoiceRecords, getReturnQuantity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

refundableOrderLine

protected CustomerOrderLineImpl refundableOrderLine

refundableQuantity

protected Quantity refundableQuantity
Constructor Detail

StandardReturnLineRefundCalculator

public StandardReturnLineRefundCalculator(ReturnLineImpl returnLine)
                                   throws SystemException
Method Detail

getChargeableOrderLine

protected final CustomerOrderLine getChargeableOrderLine()
                                                  throws SystemException
Throws:
SystemException

calculateMerchandiseRefundAmount

protected final void calculateMerchandiseRefundAmount()
                                               throws SystemException,
                                                      BusinessException
Specified by:
calculateMerchandiseRefundAmount in class ReturnLineRefundCalculator
Throws:
SystemException
BusinessException

calculateAdditionalShippingRefundAmount

protected final void calculateAdditionalShippingRefundAmount()
                                                      throws SystemException
Specified by:
calculateAdditionalShippingRefundAmount in class ReturnLineRefundCalculator
Throws:
SystemException

calculateGiftRefundAmount

protected final void calculateGiftRefundAmount()
                                        throws SystemException
Specified by:
calculateGiftRefundAmount in class ReturnLineRefundCalculator
Throws:
SystemException

calculatePersonalizationRefundAmount

protected final void calculatePersonalizationRefundAmount()
                                                   throws SystemException
Specified by:
calculatePersonalizationRefundAmount in class ReturnLineRefundCalculator
Throws:
SystemException

logAdditionalReturnLineDetail

protected final void logAdditionalReturnLineDetail()
                                            throws SystemException
Specified by:
logAdditionalReturnLineDetail in class ReturnLineRefundCalculator
Throws:
SystemException

allocateTaxInvoiceRecords

protected void allocateTaxInvoiceRecords(boolean lockTaxRecordAllocations)
                                  throws SystemException,
                                         BusinessException
Specified by:
allocateTaxInvoiceRecords in class ReturnLineRefundCalculator
Throws:
SystemException
BusinessException

allocateTaxInvoiceLineItemRecords

protected void allocateTaxInvoiceLineItemRecords(boolean lockTaxRecordAllocations)
                                          throws SystemException,
                                                 BusinessException
Specified by:
allocateTaxInvoiceLineItemRecords in class ReturnLineRefundCalculator
Throws:
SystemException
BusinessException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28