-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix condominium_fiscal_code generator length from 9 to 11 characters #3037
base: main
Are you sure you want to change the base?
fix condominium_fiscal_code generator length from 9 to 11 characters #3037
Conversation
@@ -101,7 +101,7 @@ def stock_market | |||
# @return [String] | |||
# | |||
# @example | |||
# Faker::Finance.condominium_fiscal_code #=> "012345678" | |||
# Faker::Finance.condominium_fiscal_code #=> "01234567890" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be worth updating the doc for this as well:
# @param country [String] Two capital letter country code to use for the vat number.
becomes:
# @param country [String] Two capital letter country code to use for the condominium fiscal code number.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i noticed, it is wrong. I need to update it. Thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you provide a link to where the length is documented? I couldn't find anything about it to have enough information to review this. Thank you!
The condominium is a juridical person so has 11 character length (only number). Check page 4 (italian version but from Agenzia delle Entrate) |
the real length of a condominium fiscal_code is 11 and not 9: the first 7 numbers identify the condominium, the later 3 identify the office and the latest is the control character
a21ac40
to
c42cbec
Compare
Motivation / Background
This Pull Request has been created because the real length of a condominium fiscal_code in Italy is 11 and not 9: the first 7 numbers identify the condominium, the later 3 identify the office and the latest is the control character
Additional information
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]
If you're proposing a new generator or locale: