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.
Yii 1.0 or above
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'), ) }
Be the first person to leave a comment
Please login to leave your comment.