|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.fp.document.service.impl.DisbursementVoucherTaxServiceImpl
public class DisbursementVoucherTaxServiceImpl
This is the default implementation of the DisbursementVoucherExtractService interface. This class handles queries and validation on tax id numbers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.kuali.kfs.fp.document.DisbursementVoucherConstants |
---|
DisbursementVoucherConstants.DocumentStatusCodes, DisbursementVoucherConstants.DvPdpExtractGroup, DisbursementVoucherConstants.PaymentReasonCodes, DisbursementVoucherConstants.RouteLevelNames, DisbursementVoucherConstants.TabByReasonCode, DisbursementVoucherConstants.TabKey |
Field Summary |
---|
Constructor Summary | |
---|---|
DisbursementVoucherTaxServiceImpl()
|
Method Summary | |
---|---|
void |
clearNRATaxLines(DisbursementVoucherDocument document)
Removes non-resident alien (NRA) tax lines from the document's accounting lines and updates the check total. |
protected void |
generateNRATaxLines(DisbursementVoucherDocument document)
This method generates non-resident alien (NRA) tax lines for the given disbursement voucher. |
protected AccountingLine |
generateTaxAccountingLine(DisbursementVoucherDocument document,
String chart,
String account,
String objectCode,
org.kuali.rice.kns.util.KualiDecimal taxPercent,
org.kuali.rice.kns.util.KualiDecimal taxableAmount)
Generates an accounting line for the chart, account, object code & tax percentage values given. |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the value of the businessObjectService instance. |
org.kuali.rice.kns.service.MaintenanceDocumentService |
getMaintenanceDocumentService()
Gets the value of the maintenanceDocumentService instance. |
org.kuali.rice.kns.util.KualiDecimal |
getNonResidentAlienTaxAmount(DisbursementVoucherDocument document)
This method retrieves the non-resident alien (NRA) tax amount using the disbursement voucher given to calculate the amount. |
List<Integer> |
getNRATaxLineNumbers(String taxLineString)
Parses the tax line string given and returns a list of line numbers as Integers. |
String |
getUniversalId(String taxIDNumber,
String taxPayerTypeCode)
This method retrieves the universal id of the individual or business entity who matches the tax id number and type code given. |
String |
getVendorId(String taxIDNumber,
String taxPayerTypeCode)
This method retrieves the vendor identification code for the vendor found who has a matching tax id and tax payer type code. |
void |
processNonResidentAlienTax(DisbursementVoucherDocument document)
This method validates the non-resident alien (NRA) tax information for the document and if the information validates, the NRA tax lines are generated. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
This method sets the businessObjectService attribute to the value given. |
void |
setMaintenanceDocumentService(org.kuali.rice.kns.service.MaintenanceDocumentService maintenanceDocumentService)
This method sets the maintenanceDocumentService attribute to the value given. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
This method sets the parameterService attribute to the value given. |
void |
validateNonResidentAlienInformation(DisbursementVoucherDocument document)
Validates fields for an alien payment. |
protected boolean |
validateNRATaxInformation(DisbursementVoucherDocument document)
This method performs a series of validation checks to ensure that the disbursement voucher given contains non-resident alien specific information and non-resident alien tax lines are necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisbursementVoucherTaxServiceImpl()
Method Detail |
---|
public String getUniversalId(String taxIDNumber, String taxPayerTypeCode)
getUniversalId
in interface DisbursementVoucherTaxService
taxIDNumber
- The tax identification number of the user being retrieved.taxPayerTypeCode
- The tax payer type code of the user being retrieved. See the TAX_TYPE_* constants defined in
DisbursementVoucherRuleConstants for examples of valid tax type codes.
org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService#getEmployeeNumber(java.lang.String, java.lang.String)
public String getVendorId(String taxIDNumber, String taxPayerTypeCode)
getVendorId
in interface DisbursementVoucherTaxService
taxIDNumber
- The tax id number used to retrieve the associated vendor.taxPayerTypeCode
- The tax payer type code used to retrieve the associated vendor. See the TAX_TYPE_* constants defined in
DisbursementVoucherRuleConstants for examples of valid tax type codes.
org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService#getPayeeNumber(java.lang.String, java.lang.String)
protected void generateNRATaxLines(DisbursementVoucherDocument document)
document
- The disbursement voucher the NRA tax lines will be added to.org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService#generateNRATaxLines(org.kuali.kfs.fp.document.DisbursementVoucherDocument)
protected AccountingLine generateTaxAccountingLine(DisbursementVoucherDocument document, String chart, String account, String objectCode, org.kuali.rice.kns.util.KualiDecimal taxPercent, org.kuali.rice.kns.util.KualiDecimal taxableAmount)
document
- The disbursement voucher the tax will be applied to.chart
- The chart code to be assigned to the accounting line generated.account
- The account code to be assigned to the accounting line generated.objectCode
- The object code used on the accounting line generated.taxPercent
- The tax rate to be used to calculate the tax amount.taxableAmount
- The total amount that is taxable. This amount is used in conjunction with the tax percent
to calculate the amount for the accounting lined being generated.
public void processNonResidentAlienTax(DisbursementVoucherDocument document)
processNonResidentAlienTax
in interface DisbursementVoucherTaxService
document
- The disbursement voucher document the NRA tax information will be validated and the subsequent
tax lines generated for.org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService#processNonResidentAlienTax(org.kuali.kfs.fp.document.DisbursementVoucherDocument,
java.util.List)
public void clearNRATaxLines(DisbursementVoucherDocument document)
clearNRATaxLines
in interface DisbursementVoucherTaxService
document
- The disbursement voucher the NRA tax lines will be removed from.public org.kuali.rice.kns.util.KualiDecimal getNonResidentAlienTaxAmount(DisbursementVoucherDocument document)
getNonResidentAlienTaxAmount
in interface DisbursementVoucherTaxService
document
- The disbursement voucher the NRA tax line amount will be calculated for.
DisbursementVoucherTaxService.getNonResidentAlienTaxAmount(org.kuali.kfs.fp.document.DisbursementVoucherDocument)
protected boolean validateNRATaxInformation(DisbursementVoucherDocument document)
document
- The disbursement voucher document to validate the tax lines for.
org.kuali.kfs.fp.document.service.DisbursementVoucherTaxService#validateNRATaxInformation(org.kuali.kfs.fp.document.DisbursementVoucherDocument)
,
org.kuali.kfs.fp.document.validation.impl.DisbursementVoucherDocumentRule#validateNonResidentAlienInformation(DisbursementVoucherDocument)
public List<Integer> getNRATaxLineNumbers(String taxLineString)
getNRATaxLineNumbers
in interface DisbursementVoucherTaxService
taxLineString
- The string to be parsed.
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The ParameterService to be set.public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public org.kuali.rice.kns.service.MaintenanceDocumentService getMaintenanceDocumentService()
public void setMaintenanceDocumentService(org.kuali.rice.kns.service.MaintenanceDocumentService maintenanceDocumentService)
maintenanceDocumentService
- The maintenanceDocumentService to set.public void validateNonResidentAlienInformation(DisbursementVoucherDocument document)
document
- submitted disbursement voucher document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |