org.kuali.kfs.sys.service.impl
Class TaxServiceImpl

java.lang.Object
  extended by org.kuali.kfs.sys.service.impl.TaxServiceImpl
All Implemented Interfaces:
TaxService

@Transactional
public class TaxServiceImpl
extends Object
implements TaxService


Constructor Summary
TaxServiceImpl()
           
 
Method Summary
 org.kuali.rice.kns.util.KualiDecimal getPretaxAmount(Date dateOfTransaction, String postalCode, org.kuali.rice.kns.util.KualiDecimal amountWithTax)
          This method returns a preTax amount
 List<TaxDetail> getSalesTaxDetails(Date dateOfTransaction, String postalCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method returns a list of Tax Detail BO's for Sales Tax
 TaxRegionService getTaxRegionService()
           
 org.kuali.rice.kns.util.KualiDecimal getTotalSalesTaxAmount(Date dateOfTransaction, String postalCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method returns the total sales tax amount
 List<TaxDetail> getUseTaxDetails(Date dateOfTransaction, String postalCode, org.kuali.rice.kns.util.KualiDecimal amount)
          This method returns a list of Tax Detail BO's for Sales Tax
protected  TaxDetail populateTaxDetail(TaxRegion taxRegion, Date dateOfTransaction, org.kuali.rice.kns.util.KualiDecimal amount)
          This method returns a populated Tax Detail BO based on the Tax Region BO and amount
protected  Integer postalCodeDigitsToUse()
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setTaxRegionService(TaxRegionService taxRegionService)
           
protected  String truncatePostalCodeForSalesTaxRegionService(String postalCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaxServiceImpl

public TaxServiceImpl()
Method Detail

getSalesTaxDetails

public List<TaxDetail> getSalesTaxDetails(Date dateOfTransaction,
                                          String postalCode,
                                          org.kuali.rice.kns.util.KualiDecimal amount)
Description copied from interface: TaxService
This method returns a list of Tax Detail BO's for Sales Tax

Specified by:
getSalesTaxDetails in interface TaxService
Parameters:
dateOfTransaction - date to include tax rates from
postalCode - postal code to get tax rates
amount - amount to be taxed
Returns:
See Also:
org.kuali.kfs.sys.service.TaxService#getSalesTaxDetails(java.lang.String, java.lang.String, org.kuali.rice.kns.util.KualiDecimal)

getUseTaxDetails

public List<TaxDetail> getUseTaxDetails(Date dateOfTransaction,
                                        String postalCode,
                                        org.kuali.rice.kns.util.KualiDecimal amount)
Description copied from interface: TaxService
This method returns a list of Tax Detail BO's for Sales Tax

Specified by:
getUseTaxDetails in interface TaxService
Parameters:
dateOfTransaction - date to include tax rates from
postalCode - postal code to get tax rates
amount - amount to be taxed
Returns:
See Also:
org.kuali.kfs.sys.service.TaxService#getUseTaxDetails(java.lang.String, java.lang.String, org.kuali.rice.kns.util.KualiDecimal)

getTotalSalesTaxAmount

public org.kuali.rice.kns.util.KualiDecimal getTotalSalesTaxAmount(Date dateOfTransaction,
                                                                   String postalCode,
                                                                   org.kuali.rice.kns.util.KualiDecimal amount)
Description copied from interface: TaxService
This method returns the total sales tax amount

Specified by:
getTotalSalesTaxAmount in interface TaxService
Parameters:
dateOfTransaction - date to include tax rates from
postalCode - postal code to get tax rates
amount - amount to be taxed
Returns:
See Also:
org.kuali.kfs.sys.service.TaxService#getTotalSalesTaxAmount(java.lang.String, java.lang.String, org.kuali.rice.kns.util.KualiDecimal)

getPretaxAmount

public org.kuali.rice.kns.util.KualiDecimal getPretaxAmount(Date dateOfTransaction,
                                                            String postalCode,
                                                            org.kuali.rice.kns.util.KualiDecimal amountWithTax)
This method returns a preTax amount

Specified by:
getPretaxAmount in interface TaxService
Parameters:
dateOfTransaction -
postalCode -
amountWithTax -
Returns:

populateTaxDetail

protected TaxDetail populateTaxDetail(TaxRegion taxRegion,
                                      Date dateOfTransaction,
                                      org.kuali.rice.kns.util.KualiDecimal amount)
This method returns a populated Tax Detail BO based on the Tax Region BO and amount

Parameters:
taxRegion -
amount -
Returns:

truncatePostalCodeForSalesTaxRegionService

protected String truncatePostalCodeForSalesTaxRegionService(String postalCode)

postalCodeDigitsToUse

protected Integer postalCodeDigitsToUse()

getTaxRegionService

public TaxRegionService getTaxRegionService()

setTaxRegionService

public void setTaxRegionService(TaxRegionService taxRegionService)

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.