com.retek.component.customerorder.impl
Class ShipToTotalsImpl

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

public abstract class ShipToTotalsImpl
extends SecondClassObjectImpl
implements ShipToTotals


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Constructor Summary
ShipToTotalsImpl(DistributedContext context, ShipToTotalsDto dto)
           
 
Method Summary
protected  void calculateStandardShippingCharge()
           
protected  void calculateTaxes()
           
protected abstract  void doCalculateRushDeliveryTax(Money a, Money b)
           
protected abstract  boolean doCheckTaxRecalculationRequired()
           
protected abstract  void doClearTaxValuesForError()
           
 Money getAdditionalShippingCharge()
           
 Money getCurrentStandardShippingItemTotal()
           
 Money getCurrentTotalStandardShippingCharge()
           
protected  CustomerOrder getOrder()
           
protected abstract  CustomerOrderLineCalculator getOrderLineCalculator()
           
protected abstract  CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes)
           
protected abstract  CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes, boolean applyReturnLines)
           
 Money getOriginalStandardShippingCharge()
           
 Money getPreviousStdShippingTax()
           
 Money getRealTotalStandardShippingCharge()
           
 Money getServiceCharge()
           
 ShippingRateTable getShippingRateTable()
           
 ShipTo getShipTo()
           
 ShipToTotalsDto getShipToTotalsDto()
           
abstract  Money getStandardShippingCharge()
           
 Money getStandardShippingCharge(Money totalMerchChargeForStdShipping)
           
abstract  Money getStandardShippingTax()
           
abstract  Money getStandardShippingTax(Money standardShippingCharge)
           
 Money getTotalAccommodationAmount()
           
 Money getTotalAccommodationTaxAmount()
           
 Money getTotalAdditionalShippingCharge()
           
 Money getTotalAdditionalShippingTax()
           
 Money getTotalAdditionalShippingTax(boolean applyReturnRefundTaxes)
           
 Money getTotalExtendedPrice()
           
 Money getTotalExtendedTax()
           
 Money getTotalExtendedTax(boolean applyReturnRefundTaxes)
           
 Money getTotalGiftServiceCharge()
           
abstract  Money getTotalMerchChargeForStandardShipping()
           
 Money getTotalMerchTaxAmount()
           
 Money getTotalNetRushShippingCharge()
           
 Money getTotalNetStandardShippingCharge()
           
 Money getTotalPersonalizationServiceCharge()
           
 Money getTotalPromotionAmount()
           
 Money getTotalReturnAccommodationAmount()
           
 Money getTotalReturnAccommodationTaxAmount()
           
 Money getTotalReturnAdditionalShippingCharge()
           
 Money getTotalReturnExtendedTax()
           
 Money getTotalReturnMerchAmount()
           
 Money getTotalReturnPostage()
           
 Money getTotalReturnPromotionAmount()
           
 Money getTotalReturnRefundAdditionalShippingCharge()
           
 Money getTotalReturnRefundAmount()
           
 Money getTotalReturnRefundExtendedTax()
           
 Money getTotalReturnRefundMerchAmount()
           
 Money getTotalReturnRefundShippingAndHandlingAmount()
           
 Money getTotalReturnRefundShippingTax()
           
 Money getTotalReturnRefundStandardShippingAmount()
           
 Money getTotalReturnRefundTaxAmount()
           
 Money getTotalReturnRefundValueAddedServiceTax()
           
 Money getTotalReturnRefundVASAmount()
           
 Money getTotalReturnShippingAndHandlingAmount()
           
 Money getTotalReturnShippingTax()
           
 Money getTotalReturnStandardShippingAmount()
           
 Money getTotalReturnTaxAmount()
           
 Money getTotalReturnValueAddedServiceTax()
           
 Money getTotalReturnVASAmount()
           
 Money getTotalServiceCharge()
           
 Money getTotalShippingTax()
           
 Money getTotalShippingTax(boolean applyReturnRefundTaxes)
           
 Money getTotalStandardShippingTax()
           
abstract  Money getTotalStandardShippingTax(boolean applyReturnRefundTaxes)
           
 Money getTotalTax()
           
 Money getTotalTax(boolean applyReturnRefundTaxes)
           
 Money getTotalValueAddedServiceTax()
           
 Money getTotalValueAddedServiceTax(boolean applyReturnRefundTaxes)
           
 void printDetails()
           
 void printDetails(java.lang.String label)
           
 void setCurrentStandardShippingItemTotal(Money amount)
           
 void setCurrentTotalStandardShippingCharge(Money amount)
           
 void setPreviousStdShippingTax(Money prevShippingTax)
           
 void setShipTo(ShipTo shipTo)
           
 
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
clearCalculatedTotals, clearTaxCalculationError, getRushDeliveryCharge, getRushDeliveryTax, getRushDeliveryTax, getTotalExtendTaxPercentage, getTotalMerchChargeForRushShipping, getTotalShippingCharge, getTotalShipToLevelShippingChargesAndTax, getTotalStandardShippingCharge, isTaxCalculationValid
 
Methods inherited from interface com.retek.commons.component.BusinessObject
getBusinessInterface
 

Constructor Detail

ShipToTotalsImpl

public ShipToTotalsImpl(DistributedContext context,
                        ShipToTotalsDto dto)
Method Detail

getShipToTotalsDto

public ShipToTotalsDto getShipToTotalsDto()
                                   throws SystemException
Throws:
SystemException

setShipTo

public void setShipTo(ShipTo shipTo)
               throws SystemException
Specified by:
setShipTo in interface ShipToTotals
Throws:
SystemException

getShipTo

public ShipTo getShipTo()
                 throws SystemException
Specified by:
getShipTo in interface ShipToTotals
Throws:
SystemException

getTotalExtendedPrice

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

getTotalPersonalizationServiceCharge

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

getTotalGiftServiceCharge

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

getTotalServiceCharge

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

getServiceCharge

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

getAdditionalShippingCharge

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

getTotalAdditionalShippingCharge

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

getTotalExtendedTax

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

getTotalExtendedTax

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

getTotalAdditionalShippingTax

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

getTotalAdditionalShippingTax

public Money getTotalAdditionalShippingTax(boolean applyReturnRefundTaxes)
                                    throws SystemException,
                                           BusinessException
Throws:
SystemException
BusinessException

getTotalShippingTax

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

getTotalStandardShippingTax

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

getTotalShippingTax

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

getTotalValueAddedServiceTax

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

getTotalValueAddedServiceTax

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

getTotalTax

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

getTotalPromotionAmount

public Money getTotalPromotionAmount()
                              throws SystemException
Specified by:
getTotalPromotionAmount in interface ShipToTotals
Throws:
SystemException

getOriginalStandardShippingCharge

public Money getOriginalStandardShippingCharge()
                                        throws SystemException
Specified by:
getOriginalStandardShippingCharge in interface ShipToTotals
Throws:
SystemException

getTotalTax

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

getTotalAccommodationAmount

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

getTotalAccommodationTaxAmount

public Money getTotalAccommodationTaxAmount()
                                     throws SystemException
Specified by:
getTotalAccommodationTaxAmount in interface ShipToTotals
Throws:
SystemException

getTotalMerchTaxAmount

public final Money getTotalMerchTaxAmount()
                                   throws SystemException,
                                          BusinessException
Throws:
SystemException
BusinessException

getCurrentStandardShippingItemTotal

public Money getCurrentStandardShippingItemTotal()
                                          throws SystemException
Specified by:
getCurrentStandardShippingItemTotal in interface ShipToTotals
Throws:
SystemException

setCurrentStandardShippingItemTotal

public void setCurrentStandardShippingItemTotal(Money amount)
                                         throws SystemException
Specified by:
setCurrentStandardShippingItemTotal in interface ShipToTotals
Throws:
SystemException

getCurrentTotalStandardShippingCharge

public Money getCurrentTotalStandardShippingCharge()
                                            throws SystemException
Specified by:
getCurrentTotalStandardShippingCharge in interface ShipToTotals
Throws:
SystemException

setCurrentTotalStandardShippingCharge

public void setCurrentTotalStandardShippingCharge(Money amount)
                                           throws SystemException
Specified by:
setCurrentTotalStandardShippingCharge in interface ShipToTotals
Throws:
SystemException

getPreviousStdShippingTax

public Money getPreviousStdShippingTax()
                                throws SystemException
Specified by:
getPreviousStdShippingTax in interface ShipToTotals
Throws:
SystemException

setPreviousStdShippingTax

public void setPreviousStdShippingTax(Money prevShippingTax)
                               throws SystemException
Specified by:
setPreviousStdShippingTax in interface ShipToTotals
Throws:
SystemException

getRealTotalStandardShippingCharge

public Money getRealTotalStandardShippingCharge()
                                         throws SystemException,
                                                BusinessException
Throws:
SystemException
BusinessException

getStandardShippingCharge

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

printDetails

public void printDetails()
                  throws SystemException,
                         BusinessException
Throws:
SystemException
BusinessException

printDetails

public void printDetails(java.lang.String label)
                  throws SystemException,
                         BusinessException
Throws:
SystemException
BusinessException

calculateTaxes

protected void calculateTaxes()
                       throws SystemException,
                              BusinessException
Throws:
SystemException
BusinessException

calculateStandardShippingCharge

protected final void calculateStandardShippingCharge()
                                              throws SystemException,
                                                     BusinessException
Throws:
SystemException
BusinessException

getShippingRateTable

public ShippingRateTable getShippingRateTable()
                                       throws SystemException
Specified by:
getShippingRateTable in interface ShipToTotals
Throws:
SystemException

getOrder

protected final CustomerOrder getOrder()
                                throws SystemException
Throws:
SystemException

getStandardShippingCharge

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

getStandardShippingTax

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

getStandardShippingTax

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

getTotalStandardShippingTax

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

getTotalMerchChargeForStandardShipping

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

getOrderLineCalculator

protected abstract CustomerOrderLineCalculator getOrderLineCalculator()
                                                               throws SystemException,
                                                                      BusinessException
Throws:
SystemException
BusinessException

getOrderLineCalculator

protected abstract CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes)
                                                               throws SystemException,
                                                                      BusinessException
Throws:
SystemException
BusinessException

getOrderLineCalculator

protected abstract CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes,
                                                                      boolean applyReturnLines)
                                                               throws SystemException,
                                                                      BusinessException
Throws:
SystemException
BusinessException

doCheckTaxRecalculationRequired

protected abstract boolean doCheckTaxRecalculationRequired()
                                                    throws SystemException,
                                                           BusinessException
Throws:
SystemException
BusinessException

doCalculateRushDeliveryTax

protected abstract void doCalculateRushDeliveryTax(Money a,
                                                   Money b)
                                            throws SystemException,
                                                   BusinessException
Throws:
SystemException
BusinessException

doClearTaxValuesForError

protected abstract void doClearTaxValuesForError()
                                          throws SystemException,
                                                 BusinessException
Throws:
SystemException
BusinessException

getTotalNetStandardShippingCharge

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

getTotalNetRushShippingCharge

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

getTotalReturnRefundAmount

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

getTotalReturnRefundMerchAmount

public Money getTotalReturnRefundMerchAmount()
                                      throws SystemException
Specified by:
getTotalReturnRefundMerchAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnMerchAmount

public Money getTotalReturnMerchAmount()
                                throws SystemException
Specified by:
getTotalReturnMerchAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundTaxAmount

public Money getTotalReturnRefundTaxAmount()
                                    throws SystemException
Specified by:
getTotalReturnRefundTaxAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnTaxAmount

public Money getTotalReturnTaxAmount()
                              throws SystemException
Specified by:
getTotalReturnTaxAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundVASAmount

public Money getTotalReturnRefundVASAmount()
                                    throws SystemException
Specified by:
getTotalReturnRefundVASAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnVASAmount

public Money getTotalReturnVASAmount()
                              throws SystemException
Specified by:
getTotalReturnVASAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundStandardShippingAmount

public Money getTotalReturnRefundStandardShippingAmount()
                                                 throws SystemException
Specified by:
getTotalReturnRefundStandardShippingAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnStandardShippingAmount

public Money getTotalReturnStandardShippingAmount()
                                           throws SystemException
Specified by:
getTotalReturnStandardShippingAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnAccommodationAmount

public Money getTotalReturnAccommodationAmount()
                                        throws SystemException
Specified by:
getTotalReturnAccommodationAmount in interface ShipToTotals
Returns:
The total Money value that the ship-to's totals were reduced by as a result of the accomodation. For a merchandise accomodation, this includes both the base accomodation amount and the tax amount.

Where appropriate, if the base amount is necessary, this can be calculated from getTotalReturnAccommodationAmount().subtract(getTotalReturnAccommodationTaxAmount()).

Throws:
SystemException

getTotalReturnAccommodationTaxAmount

public Money getTotalReturnAccommodationTaxAmount()
                                           throws SystemException
Specified by:
getTotalReturnAccommodationTaxAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundShippingAndHandlingAmount

public Money getTotalReturnRefundShippingAndHandlingAmount()
                                                    throws SystemException
Specified by:
getTotalReturnRefundShippingAndHandlingAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnShippingAndHandlingAmount

public Money getTotalReturnShippingAndHandlingAmount()
                                              throws SystemException
Specified by:
getTotalReturnShippingAndHandlingAmount in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundAdditionalShippingCharge

public Money getTotalReturnRefundAdditionalShippingCharge()
                                                   throws SystemException
Specified by:
getTotalReturnRefundAdditionalShippingCharge in interface ShipToTotals
Throws:
SystemException

getTotalReturnAdditionalShippingCharge

public Money getTotalReturnAdditionalShippingCharge()
                                             throws SystemException
Specified by:
getTotalReturnAdditionalShippingCharge in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundExtendedTax

public Money getTotalReturnRefundExtendedTax()
                                      throws SystemException
Specified by:
getTotalReturnRefundExtendedTax in interface ShipToTotals
Throws:
SystemException

getTotalReturnExtendedTax

public Money getTotalReturnExtendedTax()
                                throws SystemException
Specified by:
getTotalReturnExtendedTax in interface ShipToTotals
Throws:
SystemException

getTotalReturnPromotionAmount

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

getTotalReturnRefundShippingTax

public Money getTotalReturnRefundShippingTax()
                                      throws SystemException
Specified by:
getTotalReturnRefundShippingTax in interface ShipToTotals
Throws:
SystemException

getTotalReturnShippingTax

public Money getTotalReturnShippingTax()
                                throws SystemException
Specified by:
getTotalReturnShippingTax in interface ShipToTotals
Throws:
SystemException

getTotalReturnRefundValueAddedServiceTax

public Money getTotalReturnRefundValueAddedServiceTax()
                                               throws SystemException
Specified by:
getTotalReturnRefundValueAddedServiceTax in interface ShipToTotals
Throws:
SystemException

getTotalReturnValueAddedServiceTax

public Money getTotalReturnValueAddedServiceTax()
                                         throws SystemException
Specified by:
getTotalReturnValueAddedServiceTax in interface ShipToTotals
Throws:
SystemException

getTotalReturnPostage

public Money getTotalReturnPostage()
                            throws SystemException
Specified by:
getTotalReturnPostage in interface ShipToTotals
Throws:
SystemException


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