Search in sources :

Example 6 with TaxRule

use of edu.cornell.kfs.pmw.batch.TaxRule in project cu-kfs by CU-CommunityApps.

the class PaymentWorksTaxRuleDependencyServiceImplTest method testDetermineTaxRuleToUseForDataPopulationForeignIndividual.

@Test
void testDetermineTaxRuleToUseForDataPopulationForeignIndividual() {
    PaymentWorksVendor pmwVendor = new PaymentWorksVendor();
    pmwVendor.setSupplierCategory("Foreign Individual");
    pmwVendor.setRequestingCompanyTinType(PaymentWorksConstants.PaymentWorksTinType.FOREIGN_TIN.getPmwCodeAsString());
    TaxRule actualResults = taxRuleService.determineTaxRuleToUseForDataPopulation(pmwVendor, "CA");
    assertEquals(TaxRule.FOREIGN_INDIVIDUAL, actualResults);
}
Also used : PaymentWorksVendor(edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor) TaxRule(edu.cornell.kfs.pmw.batch.TaxRule) Test(org.junit.jupiter.api.Test)

Example 7 with TaxRule

use of edu.cornell.kfs.pmw.batch.TaxRule in project cu-kfs by CU-CommunityApps.

the class PaymentWorksTaxRuleDependencyServiceImplTest method testDetermineTaxRuleToUseForDataPopulationForeignIndividualUsTaxPayerId.

@Test
void testDetermineTaxRuleToUseForDataPopulationForeignIndividualUsTaxPayerId() {
    PaymentWorksVendor pmwVendor = new PaymentWorksVendor();
    pmwVendor.setSupplierCategory("Foreign Individual");
    pmwVendor.setRequestingCompanyTinType(PaymentWorksConstants.PaymentWorksTinType.SSN.getPmwCodeAsString());
    TaxRule actualResults = taxRuleService.determineTaxRuleToUseForDataPopulation(pmwVendor, "CA");
    assertEquals(TaxRule.FOREIGN_INDIVIDUAL_US_TAX_PAYER, actualResults);
}
Also used : PaymentWorksVendor(edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor) TaxRule(edu.cornell.kfs.pmw.batch.TaxRule) Test(org.junit.jupiter.api.Test)

Example 8 with TaxRule

use of edu.cornell.kfs.pmw.batch.TaxRule in project cu-kfs by CU-CommunityApps.

the class PaymentWorksTaxRuleDependencyServiceImplTest method testDetermineTaxRuleToUseForDataPopulationForeignEntity.

@Test
void testDetermineTaxRuleToUseForDataPopulationForeignEntity() {
    PaymentWorksVendor pmwVendor = new PaymentWorksVendor();
    pmwVendor.setSupplierCategory("Foreign Entity");
    TaxRule actualResults = taxRuleService.determineTaxRuleToUseForDataPopulation(pmwVendor, "CA");
    assertEquals(TaxRule.FOREIGN_ENTITY, actualResults);
}
Also used : PaymentWorksVendor(edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor) TaxRule(edu.cornell.kfs.pmw.batch.TaxRule) Test(org.junit.jupiter.api.Test)

Aggregations

TaxRule (edu.cornell.kfs.pmw.batch.TaxRule)8 PaymentWorksVendor (edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor)7 Test (org.junit.jupiter.api.Test)7 KfsVendorDataWrapper (edu.cornell.kfs.pmw.batch.businessobject.KfsVendorDataWrapper)1 VendorHeader (org.kuali.kfs.vnd.businessobject.VendorHeader)1