>>PHP
taxNamesForZip Function
Returns the names of taxes suggested for withholding, according to the employee's work and home Zip Codes.
Syntax
value = taxNamesForZip($workzip, $homezip)
Part | Description |
value | A array of strings result |
$workzip | A number corresponding to the employee's workplace Zip Code. |
$homezip | A number corresponding to the employee's residence Zip Code. |
Remarks |
---|
To facilitate the choice of correct withholding taxes, this method returns recommended taxes in the form of an array of strings. The developer supplies an employee's work and home Zip Codes, allowing TaxControls to make determinations based on resident/nonresident rules and reciprocal agreements.
Note: Not all jurisdictions can be accurately dilineated using Zip Codes. The taxes suggested by this method represent a "best-guess" selection based on the available facts and rules. When muliple jurisdictions overlap ZIP Code boundaries, all possible tax names are returned.
See Also: taxQuery