@Transactional public class TaxServiceImpl extends Object implements TaxService
Modifier and Type | Field and Description |
---|---|
protected org.kuali.rice.coreservice.framework.parameter.ParameterService |
parameterService |
protected static String |
POSTAL_CODE_DIGITS_PASSED_TO_SALES_TAX_REGION_SERVICE |
protected TaxRegionService |
taxRegionService |
Constructor and Description |
---|
TaxServiceImpl() |
Modifier and Type | Method and Description |
---|---|
org.kuali.rice.core.api.util.type.KualiDecimal |
getPretaxAmount(Date dateOfTransaction,
String postalCode,
org.kuali.rice.core.api.util.type.KualiDecimal amountWithTax)
This method returns a preTax amount
|
List<TaxDetail> |
getSalesTaxDetails(Date dateOfTransaction,
String postalCode,
org.kuali.rice.core.api.util.type.KualiDecimal amount)
This method returns a list of Tax Detail BO's for Sales Tax
|
org.kuali.rice.core.api.util.type.KualiDecimal |
getTotalSalesTaxAmount(Date dateOfTransaction,
String postalCode,
org.kuali.rice.core.api.util.type.KualiDecimal amount)
This method returns the total sales tax amount
|
List<TaxDetail> |
getUseTaxDetails(Date dateOfTransaction,
String postalCode,
org.kuali.rice.core.api.util.type.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.core.api.util.type.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.coreservice.framework.parameter.ParameterService parameterService) |
void |
setTaxRegionService(TaxRegionService taxRegionService) |
protected String |
truncatePostalCodeForSalesTaxRegionService(String postalCode) |
protected static final String POSTAL_CODE_DIGITS_PASSED_TO_SALES_TAX_REGION_SERVICE
protected TaxRegionService taxRegionService
protected org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService
public TaxServiceImpl()
public List<TaxDetail> getSalesTaxDetails(Date dateOfTransaction, String postalCode, org.kuali.rice.core.api.util.type.KualiDecimal amount)
TaxService
getSalesTaxDetails
in interface TaxService
dateOfTransaction
- date to include tax rates frompostalCode
- postal code to get tax ratesamount
- amount to be taxedorg.kuali.ole.sys.service.TaxService#getSalesTaxDetails(java.lang.String, java.lang.String,
org.kuali.rice.core.api.util.type.KualiDecimal)
public List<TaxDetail> getUseTaxDetails(Date dateOfTransaction, String postalCode, org.kuali.rice.core.api.util.type.KualiDecimal amount)
TaxService
getUseTaxDetails
in interface TaxService
dateOfTransaction
- date to include tax rates frompostalCode
- postal code to get tax ratesamount
- amount to be taxedorg.kuali.ole.sys.service.TaxService#getUseTaxDetails(java.lang.String, java.lang.String,
org.kuali.rice.core.api.util.type.KualiDecimal)
public org.kuali.rice.core.api.util.type.KualiDecimal getTotalSalesTaxAmount(Date dateOfTransaction, String postalCode, org.kuali.rice.core.api.util.type.KualiDecimal amount)
TaxService
getTotalSalesTaxAmount
in interface TaxService
dateOfTransaction
- date to include tax rates frompostalCode
- postal code to get tax ratesamount
- amount to be taxedorg.kuali.ole.sys.service.TaxService#getTotalSalesTaxAmount(java.lang.String, java.lang.String,
org.kuali.rice.core.api.util.type.KualiDecimal)
public org.kuali.rice.core.api.util.type.KualiDecimal getPretaxAmount(Date dateOfTransaction, String postalCode, org.kuali.rice.core.api.util.type.KualiDecimal amountWithTax)
getPretaxAmount
in interface TaxService
dateOfTransaction
- postalCode
- amountWithTax
- protected TaxDetail populateTaxDetail(TaxRegion taxRegion, Date dateOfTransaction, org.kuali.rice.core.api.util.type.KualiDecimal amount)
taxRegion
- amount
- protected String truncatePostalCodeForSalesTaxRegionService(String postalCode)
protected Integer postalCodeDigitsToUse()
public void setTaxRegionService(TaxRegionService taxRegionService)
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.