Skip to content

Enforced CHE prefix in swiss uid and vat modules. #423

Closed
@jeffh92

Description

@jeffh92

Currently, the modules for the Swiss UID and related VAT numbers enforce that the CHE prefix is part of the validated number.
But, wouldn't it be more in the spirit of how most other modules work to strip this prefix as part of the compactization?
The uid module also already uses the compact form, e.g. to check numbers with the Swiss Federal Statistical Office web service which also supports the compact forms.

We already adjusted this locally for our purposes as we store the compact forms to optimize searching.
So I will gladly make PR with the adjustment if this should be desired.

Kind regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions