Permalink
Browse files

Fix so that a separator can be used. Still to be done however is to f…

…ill in separator automatically when a format example is chosen
  • Loading branch information...
1 parent 569382e commit 5ada62c97ff539ccd54568a4315e3b7c85238a31 @psauvetre psauvetre committed Aug 7, 2015
View
@@ -8,4 +8,8 @@ cache/*
resources/themes/classic/.sass-cache/*
resources/themes/default/.sass-cache/*
resources/themes/.sass-cache/*
-node_modules*
+node_modules*
+/nbproject/private/
+.externalToolBuilders/Generatedata PHP Builder.launch
+nbproject/project.properties
+nbproject/project.xml
@@ -25,7 +25,7 @@ public function generate($generator, $generationContextData) {
// Default, 10 siffers + '-'
// TODO: Option for 10 siffers without '-'
// TODO: support several countries?
- $ccSeparator = '-'; //self::getOrganisationNumberSeparator($options["cc_separator"]);
+ $ccSeparator = self::getOrganisationNumberSeparator($generationOptions["cc_separator"]);
$orgnr = $this->generateRandomSwedishOrganisationNumber($ccSeparator);
@@ -26,7 +26,7 @@ public function generate($generator, $generationContextData) {
// TODO: Option for 12 siffers without '-'
// TODO: more options? (not 10 siffers since it could generate real personal number)
// TODO: support several countries?
- $ccSeparator = '-'; //self::getPersonalNumberSeparator($options["cc_separator"]);
+ $ccSeparator = self::getPersonalNumberSeparator($generationOptions["cc_separator"]);
$personnr = $this->generateRandomSwedishPersonalNumber($ccSeparator);

0 comments on commit 5ada62c

Please sign in to comment.