Skip to content

Commit

Permalink
Update Codelist "ZugferdReferenceCodeQualifiers" (UNTDID 1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Oct 19, 2024
1 parent dcb05a9 commit 6c9ce73
Show file tree
Hide file tree
Showing 2 changed files with 7,637 additions and 895 deletions.
24 changes: 24 additions & 0 deletions make/gencodelists.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

require dirname(__FILE__) . "/../vendor/autoload.php";

define('DOWNLOADDEF_KEY_ENABLED', 'enabled');
define('DOWNLOADDEF_LIB_NAME', 'libname');
define('DOWNLOADDEF_LIB_TITLE', 'libtitle');
define('DOWNLOADDEF_KEY_URL', 'url');
Expand Down Expand Up @@ -190,6 +191,7 @@ function createCodeClassFromKositJson(array $fileToDownload): void
{
// Define some internal variables

$classGenerationEnabled = $fileToDownload[DOWNLOADDEF_KEY_ENABLED] ?? false;
$classNamespace = $fileToDownload[DOWNLOADDEF_KEY_CLASSNAMESPACE];
$className = $fileToDownload[DOWNLOADDEF_KEY_CLASSNAME];
$classDir = PathUtils::combineAllPaths(dirname(__FILE__), "classes");
Expand All @@ -208,6 +210,17 @@ function createCodeClassFromKositJson(array $fileToDownload): void
$libName = $fileToDownload[DOWNLOADDEF_LIB_NAME];
$libTitle = $fileToDownload[DOWNLOADDEF_LIB_TITLE];

// Check enabled

if ($classGenerationEnabled !== true) {
outputline(sprintf("Generating class %s is disabled", $className));
return;
}

// Logging

outputline(sprintf("Generating class %s", $className));

// Check destination directory

if (!is_file($classDir)) {
Expand Down Expand Up @@ -383,6 +396,7 @@ function createCodeClasses(array $filesToDownload): void

$filesToDownload = [
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -404,6 +418,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -426,6 +441,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -448,6 +464,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -470,6 +487,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -489,6 +507,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -508,6 +527,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -527,6 +547,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -546,6 +567,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -565,6 +587,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand All @@ -584,6 +607,7 @@ function createCodeClasses(array $filesToDownload): void
DOWNLOADDEF_KEY_CLASSCONSTANT_PREFIX => [],
],
[
DOWNLOADDEF_KEY_ENABLED => false,
DOWNLOADDEF_LIB_NAME => 'zugferd',
DOWNLOADDEF_LIB_TITLE => 'Zugferd',
DOWNLOADDEF_KEY_URL => [
Expand Down
Loading

0 comments on commit 6c9ce73

Please sign in to comment.