com.retek.component.customerorder.impl
Class NormalShipToTotalsImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.BusinessObjectImpl
      extended bycom.retek.commons.component.impl.SecondClassObjectImpl
          extended bycom.retek.component.customerorder.impl.ShipToTotalsImpl
              extended bycom.retek.component.customerorder.impl.NormalShipToTotalsImpl
All Implemented Interfaces:
BusinessObject, NormalShipToTotals, SecondClassObject, ShipToTotals

public class NormalShipToTotalsImpl
extends ShipToTotalsImpl
implements NormalShipToTotals


Nested Class Summary
protected static interface NormalShipToTotalsImpl.TaxGetter
           
 
Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Constructor Summary
NormalShipToTotalsImpl(DistributedContext context)
           
NormalShipToTotalsImpl(DistributedContext context, NormalShipToTotalsDto dto)
           
 
Method Summary
 void addToPreviousRushMerchTotal(Money previousRushMerchTotal)
           
protected  Money calculateProratedShippingTaxes(Money quotedTax, NormalShipToTotalsImpl.TaxGetter taxGetter)
           
 void clearCalculatedTotals()
           
 void clearTaxCalculationError()
           
protected  void doCalculateRushDeliveryTax(Money shippingAndHandlingTax, Money standardShippingTax)
           
protected  boolean doCheckTaxRecalculationRequired()
           
protected  void doClearTaxValuesForError()
           
 NormalShipToTotalsDto getDto()
           
protected  CustomerOrderLineCalculator getOrderLineCalculator()
           
protected  CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes)
           
protected  CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes, boolean applyReturnLines)
           
 Money getPreviousRushDeliveryCharge()
           
 Money getPreviousRushDeliveryTax()
           
 Money getPreviousRushMerchTotal()
           
 Money getRushDeliveryCharge()
           
 Money getRushDeliveryTax()
           
 Money getRushDeliveryTax(Money rushDeliveryCharge)
           
 Money getStandardShippingCharge()
           
 Money getStandardShippingTax()
           
 Money getStandardShippingTax(Money standardShippingCharge)
           
 Percent getTotalExtendTaxPercentage()
           
 Money getTotalMerchChargeForRushShipping()
           
 Money getTotalMerchChargeForStandardShipping()
           
 Money getTotalShippingCharge()
           
 Money getTotalShipToLevelShippingChargesAndTax()
           
 Money getTotalStandardShippingCharge()
           
 Money getTotalStandardShippingTax(boolean applyReturnRefundTaxes)
           
 boolean isTaxCalculationValid()
           
 void setPreviousRushDeliveryCharge(Money rushCharge)
           
 void setPreviousRushDeliveryTax(Money prevRushDeliveryTax)
           
 
Methods inherited from class com.retek.component.customerorder.impl.ShipToTotalsImpl
calculateStandardShippingCharge, calculateTaxes, getAdditionalShippingCharge, getCurrentStandardShippingItemTotal, getCurrentTotalStandardShippingCharge, getOrder, getOriginalStandardShippingCharge, getPreviousStdShippingTax, getRealTotalStandardShippingCharge, getServiceCharge, getShippingRateTable, getShipTo, getShipToTotalsDto, getStandardShippingCharge, getTotalAccommodationAmount, getTotalAccommodationTaxAmount, getTotalAdditionalShippingCharge, getTotalAdditionalShippingTax, getTotalAdditionalShippingTax, getTotalExtendedPrice, getTotalExtendedTax, getTotalExtendedTax, getTotalGiftServiceCharge, getTotalMerchTaxAmount, getTotalNetRushShippingCharge, getTotalNetStandardShippingCharge, getTotalPersonalizationServiceCharge, getTotalPromotionAmount, getTotalReturnAccommodationAmount, getTotalReturnAccommodationTaxAmount, getTotalReturnAdditionalShippingCharge, getTotalReturnExtendedTax, getTotalReturnMerchAmount, getTotalReturnPostage, getTotalReturnPromotionAmount, getTotalReturnRefundAdditionalShippingCharge, getTotalReturnRefundAmount, getTotalReturnRefundExtendedTax, getTotalReturnRefundMerchAmount, getTotalReturnRefundShippingAndHandlingAmount, getTotalReturnRefundShippingTax, getTotalReturnRefundStandardShippingAmount, getTotalReturnRefundTaxAmount, getTotalReturnRefundValueAddedServiceTax, getTotalReturnRefundVASAmount, getTotalReturnShippingAndHandlingAmount, getTotalReturnShippingTax, getTotalReturnStandardShippingAmount, getTotalReturnTaxAmount, getTotalReturnValueAddedServiceTax, getTotalReturnVASAmount, getTotalServiceCharge, getTotalShippingTax, getTotalShippingTax, getTotalStandardShippingTax, getTotalTax, getTotalTax, getTotalValueAddedServiceTax, getTotalValueAddedServiceTax, printDetails, printDetails, setCurrentStandardShippingItemTotal, setCurrentTotalStandardShippingCharge, setPreviousStdShippingTax, setShipTo
 
Methods inherited from class com.retek.commons.component.impl.SecondClassObjectImpl
equals, getGenericDto, hashCode, setGenericDto, toString, wrap, wrap, wrap, wrap
 
Methods inherited from class com.retek.commons.component.impl.BusinessObjectImpl
checkRelation, checkRelation, getBusinessInterface, getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.component.customerorder.ShipToTotals
getAdditionalShippingCharge, getCurrentStandardShippingItemTotal, getCurrentTotalStandardShippingCharge, getOriginalStandardShippingCharge, getPreviousStdShippingTax, getServiceCharge, getShippingRateTable, getShipTo, getStandardShippingCharge, getTotalAccommodationAmount, getTotalAccommodationTaxAmount, getTotalAdditionalShippingCharge, getTotalAdditionalShippingTax, getTotalExtendedPrice, getTotalExtendedTax, getTotalExtendedTax, getTotalGiftServiceCharge, getTotalNetRushShippingCharge, getTotalNetStandardShippingCharge, getTotalPersonalizationServiceCharge, getTotalPromotionAmount, getTotalReturnAccommodationAmount, getTotalReturnAccommodationTaxAmount, getTotalReturnAdditionalShippingCharge, getTotalReturnExtendedTax, getTotalReturnMerchAmount, getTotalReturnPostage, getTotalReturnPromotionAmount, getTotalReturnRefundAdditionalShippingCharge, getTotalReturnRefundAmount, getTotalReturnRefundExtendedTax, getTotalReturnRefundMerchAmount, getTotalReturnRefundShippingAndHandlingAmount, getTotalReturnRefundShippingTax, getTotalReturnRefundStandardShippingAmount, getTotalReturnRefundTaxAmount, getTotalReturnRefundValueAddedServiceTax, getTotalReturnRefundVASAmount, getTotalReturnShippingAndHandlingAmount, getTotalReturnShippingTax, getTotalReturnStandardShippingAmount, getTotalReturnTaxAmount, getTotalReturnValueAddedServiceTax, getTotalReturnVASAmount, getTotalServiceCharge, getTotalShippingTax, getTotalShippingTax, getTotalStandardShippingTax, getTotalTax, getTotalTax, getTotalValueAddedServiceTax, getTotalValueAddedServiceTax, setCurrentStandardShippingItemTotal, setCurrentTotalStandardShippingCharge, setPreviousStdShippingTax, setShipTo
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

NormalShipToTotalsImpl

public NormalShipToTotalsImpl(DistributedContext context,
                              NormalShipToTotalsDto dto)

NormalShipToTotalsImpl

public NormalShipToTotalsImpl(DistributedContext context)
Method Detail

getDto

public NormalShipToTotalsDto getDto()
                             throws SystemException
Throws:
SystemException

clearTaxCalculationError

public void clearTaxCalculationError()
                              throws SystemException
Specified by:
clearTaxCalculationError in interface ShipToTotals
Throws:
SystemException

isTaxCalculationValid

public boolean isTaxCalculationValid()
                              throws SystemException
Specified by:
isTaxCalculationValid in interface ShipToTotals
Throws:
SystemException

getRushDeliveryCharge

public Money getRushDeliveryCharge()
                            throws SystemException,
                                   BusinessException
Specified by:
getRushDeliveryCharge in interface ShipToTotals
Throws:
SystemException
BusinessException

getStandardShippingTax

public Money getStandardShippingTax()
                             throws BusinessException,
                                    SystemException
Specified by:
getStandardShippingTax in interface ShipToTotals
Specified by:
getStandardShippingTax in class ShipToTotalsImpl
Throws:
BusinessException
SystemException

getStandardShippingTax

public Money getStandardShippingTax(Money standardShippingCharge)
                             throws BusinessException,
                                    SystemException
Specified by:
getStandardShippingTax in interface ShipToTotals
Specified by:
getStandardShippingTax in class ShipToTotalsImpl
Throws:
BusinessException
SystemException

getTotalStandardShippingTax

public final Money getTotalStandardShippingTax(boolean applyReturnRefundTaxes)
                                        throws BusinessException,
                                               SystemException
Specified by:
getTotalStandardShippingTax in interface ShipToTotals
Specified by:
getTotalStandardShippingTax in class ShipToTotalsImpl
Throws:
BusinessException
SystemException

getTotalExtendTaxPercentage

public Percent getTotalExtendTaxPercentage()
                                    throws SystemException,
                                           BusinessException
Specified by:
getTotalExtendTaxPercentage in interface ShipToTotals
Throws:
SystemException
BusinessException

getStandardShippingCharge

public Money getStandardShippingCharge()
                                throws SystemException,
                                       BusinessException
Specified by:
getStandardShippingCharge in interface ShipToTotals
Specified by:
getStandardShippingCharge in class ShipToTotalsImpl
Throws:
SystemException
BusinessException

getTotalStandardShippingCharge

public Money getTotalStandardShippingCharge()
                                     throws SystemException,
                                            BusinessException
Specified by:
getTotalStandardShippingCharge in interface ShipToTotals
Throws:
SystemException
BusinessException

getTotalShippingCharge

public Money getTotalShippingCharge()
                             throws SystemException,
                                    BusinessException
Specified by:
getTotalShippingCharge in interface ShipToTotals
Throws:
SystemException
BusinessException

getRushDeliveryTax

public Money getRushDeliveryTax()
                         throws SystemException,
                                BusinessException
Specified by:
getRushDeliveryTax in interface ShipToTotals
Throws:
SystemException
BusinessException

getRushDeliveryTax

public Money getRushDeliveryTax(Money rushDeliveryCharge)
                         throws BusinessException,
                                SystemException
Specified by:
getRushDeliveryTax in interface ShipToTotals
Throws:
BusinessException
SystemException

getOrderLineCalculator

protected final CustomerOrderLineCalculator getOrderLineCalculator()
                                                            throws SystemException
Specified by:
getOrderLineCalculator in class ShipToTotalsImpl
Throws:
SystemException

getOrderLineCalculator

protected final CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes)
                                                            throws SystemException
Specified by:
getOrderLineCalculator in class ShipToTotalsImpl
Throws:
SystemException

getOrderLineCalculator

protected final CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes,
                                                                   boolean applyReturnLines)
                                                            throws SystemException
Specified by:
getOrderLineCalculator in class ShipToTotalsImpl
Throws:
SystemException

clearCalculatedTotals

public void clearCalculatedTotals()
                           throws SystemException,
                                  BusinessException
Specified by:
clearCalculatedTotals in interface ShipToTotals
Throws:
SystemException
BusinessException

setPreviousRushDeliveryTax

public void setPreviousRushDeliveryTax(Money prevRushDeliveryTax)
                                throws BusinessException,
                                       SystemException
Specified by:
setPreviousRushDeliveryTax in interface NormalShipToTotals
Throws:
BusinessException
SystemException

getPreviousRushDeliveryTax

public Money getPreviousRushDeliveryTax()
                                 throws BusinessException,
                                        SystemException
Specified by:
getPreviousRushDeliveryTax in interface NormalShipToTotals
Throws:
BusinessException
SystemException

doCheckTaxRecalculationRequired

protected final boolean doCheckTaxRecalculationRequired()
                                                 throws SystemException,
                                                        BusinessException
Specified by:
doCheckTaxRecalculationRequired in class ShipToTotalsImpl
Throws:
SystemException
BusinessException

doCalculateRushDeliveryTax

protected final void doCalculateRushDeliveryTax(Money shippingAndHandlingTax,
                                                Money standardShippingTax)
                                         throws SystemException,
                                                BusinessException
Specified by:
doCalculateRushDeliveryTax in class ShipToTotalsImpl
Throws:
SystemException
BusinessException

doClearTaxValuesForError

protected final void doClearTaxValuesForError()
                                       throws SystemException
Specified by:
doClearTaxValuesForError in class ShipToTotalsImpl
Throws:
SystemException

getTotalShipToLevelShippingChargesAndTax

public Money getTotalShipToLevelShippingChargesAndTax()
                                               throws BusinessException,
                                                      SystemException
Specified by:
getTotalShipToLevelShippingChargesAndTax in interface ShipToTotals
Throws:
BusinessException
SystemException

getPreviousRushDeliveryCharge

public Money getPreviousRushDeliveryCharge()
                                    throws BusinessException,
                                           SystemException
Specified by:
getPreviousRushDeliveryCharge in interface NormalShipToTotals
Throws:
BusinessException
SystemException

setPreviousRushDeliveryCharge

public void setPreviousRushDeliveryCharge(Money rushCharge)
                                   throws BusinessException,
                                          SystemException
Specified by:
setPreviousRushDeliveryCharge in interface NormalShipToTotals
Throws:
BusinessException
SystemException

getPreviousRushMerchTotal

public Money getPreviousRushMerchTotal()
                                throws SystemException,
                                       BusinessException
Specified by:
getPreviousRushMerchTotal in interface NormalShipToTotals
Throws:
SystemException
BusinessException

getTotalMerchChargeForRushShipping

public Money getTotalMerchChargeForRushShipping()
                                         throws BusinessException,
                                                SystemException
Specified by:
getTotalMerchChargeForRushShipping in interface ShipToTotals
Throws:
BusinessException
SystemException

addToPreviousRushMerchTotal

public void addToPreviousRushMerchTotal(Money previousRushMerchTotal)
                                 throws SystemException,
                                        BusinessException
Specified by:
addToPreviousRushMerchTotal in interface NormalShipToTotals
Throws:
SystemException
BusinessException

getTotalMerchChargeForStandardShipping

public Money getTotalMerchChargeForStandardShipping()
                                             throws BusinessException,
                                                    SystemException
Specified by:
getTotalMerchChargeForStandardShipping in interface ShipToTotals
Specified by:
getTotalMerchChargeForStandardShipping in class ShipToTotalsImpl
Throws:
BusinessException
SystemException

calculateProratedShippingTaxes

protected Money calculateProratedShippingTaxes(Money quotedTax,
                                               NormalShipToTotalsImpl.TaxGetter taxGetter)
                                        throws SystemException,
                                               BusinessException
Throws:
SystemException
BusinessException


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