com.retek.component.customerorder.impl
Class ZeroChargeShipToTotalsImpl

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.ZeroChargeShipToTotalsImpl
All Implemented Interfaces:
BusinessObject, SecondClassObject, ShipToTotals, ZeroChargeShipToTotals

public class ZeroChargeShipToTotalsImpl
extends ShipToTotalsImpl
implements ZeroChargeShipToTotals


Field Summary
 
Fields inherited from class com.retek.commons.component.impl.BusinessObjectImpl
context
 
Constructor Summary
ZeroChargeShipToTotalsImpl(DistributedContext context, boolean calculateShippingChargeAndTaxes)
           
ZeroChargeShipToTotalsImpl(DistributedContext context, ZeroChargeShipToTotalsDto dto)
           
 
Method Summary
protected  void calculateTaxes()
           
 void clearCalculatedTotals()
           
 void clearTaxCalculationError()
           
protected  void doCalculateRushDeliveryTax(Money shippingAndHandlingTax, Money standardShippingTax)
           
protected  boolean doCheckTaxRecalculationRequired()
           
protected  void doClearTaxValuesForError()
           
 ZeroChargeShipToTotalsDto getDto()
           
protected  CustomerOrderLineCalculator getOrderLineCalculator()
           
protected  CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes)
           
protected  CustomerOrderLineCalculator getOrderLineCalculator(boolean applyReturnRefundTaxes, boolean applyReturnLines)
           
 Money getRushDeliveryCharge()
           
 Money getRushDeliveryTax()
           
 Money getRushDeliveryTax(Money rushDeliveryCharge)
           
 Money getStandardShippingCharge()
           
 Money getStandardShippingTax()
           
 Money getStandardShippingTax(Money standardShippingCharge)
           
 RDate getTaxInvoiceDate()
           
 java.lang.String getTaxInvoiceNumber()
          Return the unique tax invoice identifier for the zero sale shipping totals.
 Percent getTotalExtendTaxPercentage()
           
 Money getTotalMerchChargeForRushShipping()
           
 Money getTotalMerchChargeForStandardShipping()
           
 Money getTotalShippingCharge()
           
 Money getTotalShipToLevelShippingChargesAndTax()
           
 Money getTotalStandardShippingCharge()
           
 Money getTotalStandardShippingTax(boolean applyReturnRefundTaxes)
           
 boolean isTaxCalculationValid()
           
 void setTaxInvoiceNumber(java.lang.String taxInvoiceNumber)
           
 
Methods inherited from class com.retek.component.customerorder.impl.ShipToTotalsImpl
calculateStandardShippingCharge, 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

ZeroChargeShipToTotalsImpl

public ZeroChargeShipToTotalsImpl(DistributedContext context,
                                  ZeroChargeShipToTotalsDto dto)

ZeroChargeShipToTotalsImpl

public ZeroChargeShipToTotalsImpl(DistributedContext context,
                                  boolean calculateShippingChargeAndTaxes)
                           throws SystemException
Method Detail

getDto

public ZeroChargeShipToTotalsDto getDto()
                                 throws SystemException
Throws:
SystemException

clearCalculatedTotals

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

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

getTaxInvoiceNumber

public java.lang.String getTaxInvoiceNumber()
                                     throws SystemException
Description copied from interface: ZeroChargeShipToTotals
Return the unique tax invoice identifier for the zero sale shipping totals. Zero sale orders are never sent through ship confirmation, so this invoice number is generated at the time that taxes are calculated for the ship to. Note: This will only be non-null for a zero sale ship-to, replacement zero charge ship-to will not have this available).

Specified by:
getTaxInvoiceNumber in interface ZeroChargeShipToTotals
Returns:
String unique tax invoice number
Throws:
SystemException

setTaxInvoiceNumber

public void setTaxInvoiceNumber(java.lang.String taxInvoiceNumber)
                         throws SystemException
Throws:
SystemException

getTaxInvoiceDate

public RDate getTaxInvoiceDate()
                        throws SystemException
Specified by:
getTaxInvoiceDate in interface ZeroChargeShipToTotals
Throws:
SystemException

getTotalMerchChargeForRushShipping

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

getRushDeliveryCharge

public Money getRushDeliveryCharge()
                            throws SystemException,
                                   BusinessException
Specified by:
getRushDeliveryCharge 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

getTotalShippingCharge

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

getTotalStandardShippingCharge

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

getTotalExtendTaxPercentage

public Percent getTotalExtendTaxPercentage()
Specified by:
getTotalExtendTaxPercentage in interface ShipToTotals

getTotalShipToLevelShippingChargesAndTax

public Money getTotalShipToLevelShippingChargesAndTax()
Specified by:
getTotalShipToLevelShippingChargesAndTax in interface ShipToTotals

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

getRushDeliveryTax

public Money getRushDeliveryTax()
Specified by:
getRushDeliveryTax in interface ShipToTotals

getRushDeliveryTax

public Money getRushDeliveryTax(Money rushDeliveryCharge)
Specified by:
getRushDeliveryTax in interface ShipToTotals

getOrderLineCalculator

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

getOrderLineCalculator

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

getOrderLineCalculator

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

getTotalMerchChargeForStandardShipping

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

calculateTaxes

protected final void calculateTaxes()
                             throws SystemException,
                                    BusinessException
Overrides:
calculateTaxes in class ShipToTotalsImpl
Throws:
SystemException
BusinessException

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)
Specified by:
doCalculateRushDeliveryTax in class ShipToTotalsImpl

doClearTaxValuesForError

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


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