ecuitvalidator

Validates CUIT used by AFIP in Argentina.
3 followers

This extensions allos to validate CUIT numbers used by the AFIP (http://www.afip.gob.ar) in Argentina.

A CUIT is a 11 digit number. The last digit is a validation code. This extension uses this validation code to verify the CUIT, as a way to avoid saving inconsistent data.

Requirements

Yii 1.0 or above

Usage

Extract the release file under a directory of your choice (e.g. protected/extensions/validators) In the model you should use:

public function rules()
{
   return array(
        array('<attributeName>', 'ext.validators.ECuitValidator'),
   )
}

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension