Skip to content

sandrobocon/field-type-cnpj-for-PyroCMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Field-Type-CNPJ

CNPJ (Cadastro Nacional de Pessoa Juridica) Field Type for PyroCMS

How to install

Download the cnpj field type and place it in addons/shared_addons/field_types or addons/[site_ref]/field_types and make sure that the folder you will copy is named "cnpj" without quotes.

How it works

This FieldType will check if the input is 14 numeric long (removing '.', '-' and '/' automatically) and if it is a valid format for an brazilian CNPJ, make sure to set the field type as unique, if necessary, when using it via Streams module or with Streams API. It will save as bigint, but accept and will return in CNPJ format '00.000.000/0000-00'

Based on (https://github.com/ChristianGiupponi/Field-Type-Codice-Fiscale)

About

Field type CNPJ for PyroCMS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages