HRMTaxIDEditCA

HRM Tax ID Edit - CA

Minor Business Rule

Object Name: N0800017

Parent DLL: CFND

Location: Client/Server

Language: NER

Functional Description
The Named ER performs tax id edit specific to CANADA.  This Named ER is called by "HRM Tax ID Edit"(N0800015) if 

the employee's country of employment is 'CA'.

 

Setup Notes


Technical Specifications


Parameters


Data ItemData Structure Description I/ORequired  TableNotes

SSNszSocialSecurityNumber   I/ORInput could be unscrub tax id Output is scrub tax id 

(no special char)

EV01cErrorFlag     O'1' = fails 9 digit length tax id req.


Related Tables 


Table Table Description


Processing


Call Named ER "Scrub Tax ID" (N0800014), passing in szSocial Security and returning back

    the scrub tax id and the length of the tax id


If the length of the tax id <> 9

    cErrorFlag = '1'


Else

//Else the tax id passes the length requirement of 9//

    Perform Modulus 10 Self-Check digit (see Named ER for logic details)

    If the scub tax id fails the  Modulus 10 Self-Check digit requirement 

           cErrorFlag = '2'

   End If

End If


szSocialSecurityNumber = scrub tax id 


Data Structure

DN0800017 - HRM Tax ID Edit - CA

Parameter NameData ItemData TypeReq/OptI/O/Both
szSocialSecurityNumberSSNcharNONENONE

A number that indicates the tax ID. In the United States, the tax ID is the social security number. In Canada, it is the social insurance number. 
If you add employee information for a non-US or non-Canadian company, you can leave this field blank. However, if the international code is 
set to Y and the default company is non-Canadian and non-United States, you can enter a 16-character number for the tax ID. The system 
does not permit duplicate tax ID numbers. Also, the number cannot include dashes. For example, if a social security number of nn-nn-nnnn is 
used, the number should be entered as follows: 123456789.

cErrorFlagEV01charNONENONE

An option that specifies the type of processing for an event.

Related Functions

None

Related Tables

None