Skip to content

Commit

Permalink
fix condominium_fiscal_code generator
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FiloSpaTeam committed Jan 10, 2025
1 parent 789251c commit b379861
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/faker/default/finance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ def stock_market
##
# Returns a random condominium fiscal code.
#
# @param country [String] Two capital letter country code to use for the vat number.
# @param country [String] Two capital letter country code to use for the condominium fiscal code number.
# @return [String]
#
# @example
# Faker::Finance.condominium_fiscal_code #=> "012345678"
# Faker::Finance.condominium_fiscal_code #=> "01234567890"
#
# @faker.version next
def condominium_fiscal_code(country: 'IT')
Expand Down
2 changes: 1 addition & 1 deletion lib/locales/en/finance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ en:
- /6771#########{5,6}L/
- /6709#########{5,6}L/
condominium_fiscal_code:
IT: "#########"
IT: "###########"
vat_number:
AT: "ATU########"
AR: "AR###########"
Expand Down

0 comments on commit b379861

Please sign in to comment.