|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.sys.document.validation.ParameterizedValidation
org.kuali.kfs.sys.document.validation.GenericValidation
org.kuali.kfs.module.purap.document.validation.impl.PaymentRequestTaxAreaValidation
public class PaymentRequestTaxAreaValidation
Constructor Summary | |
---|---|
PaymentRequestTaxAreaValidation()
|
Method Summary | |
---|---|
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
|
protected boolean |
listContainsValue(ArrayList<BigDecimal> list,
BigDecimal value)
Returns true if the specified ArrayList contains the specified BigDecimal value. |
ArrayList<BigDecimal> |
retrieveTaxRates(String incomeClassCode,
String incomeTaxTypeCode)
Retrieve active NonResidentAlien tax rate percent from database based on the specified income class and federal/state tax type. |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
boolean |
validate(AttributedDocumentEvent event)
Process business rules applicable to tax area data before calculating the withholding tax on payment request. |
protected boolean |
validateTaxIncomeClass(PaymentRequestDocument preq)
Validates tax income class: when Non-Reportable income class is chosen, all other fields shall be left blank; It assumed that the input tax income class code is valid (existing and active in the system) since it's chosen from drop-down list. |
protected boolean |
validateTaxIndicators(PaymentRequestDocument preq)
Validates rules among tax treaty, gross up, foreign source, USAID, other exempt, and Special W-4. |
protected boolean |
validateTaxRates(PaymentRequestDocument preq)
Validates federal and state tax rates based on each other and the income class. |
Methods inherited from class org.kuali.kfs.sys.document.validation.GenericValidation |
---|
setQuitOnFail, shouldQuitOnFail, stageValidation |
Methods inherited from class org.kuali.kfs.sys.document.validation.ParameterizedValidation |
---|
getParameterProperties, populateParameterFromEvent, populateParametersFromEvent, setParameterProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaymentRequestTaxAreaValidation()
Method Detail |
---|
public boolean validate(AttributedDocumentEvent event)
paymentRequest
- - payment request document
protected boolean validateTaxIncomeClass(PaymentRequestDocument preq)
paymentRequest
- - payment request document
protected boolean validateTaxRates(PaymentRequestDocument preq)
paymentRequest
- - payment request document
protected boolean validateTaxIndicators(PaymentRequestDocument preq)
paymentRequest
- - payment request document
public ArrayList<BigDecimal> retrieveTaxRates(String incomeClassCode, String incomeTaxTypeCode)
incomeClassCode
- The specified income class type code.incomeTaxTypeCode
- The specified income tax type code.
protected boolean listContainsValue(ArrayList<BigDecimal> list, BigDecimal value)
list
- the specified ArrayListvalue
- the specified BigDecimalpublic org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |