Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46934e278c | ||
|
|
aebfc2ca9b | ||
|
|
3247df1171 | ||
|
|
6cfaaf1ba9 | ||
|
|
fd3d88209c | ||
|
|
21b00e3bd6 | ||
|
|
e517163c9a | ||
|
|
df564c30ae | ||
|
|
558e45fe5f | ||
|
|
c660bd68de | ||
|
|
55378b2bbc | ||
|
|
ac23baf625 | ||
|
|
a1645784fe | ||
|
|
3d94505e8d | ||
|
|
5942ecf340 | ||
|
|
0b0286787b | ||
|
|
2936d8947a | ||
|
|
0ff312c0c0 | ||
|
|
2b27b9809d | ||
|
|
980e378a7b | ||
|
|
77960fe81f | ||
|
|
9ce42de4c1 | ||
|
|
d50995a21c | ||
|
|
897a1ac7f9 | ||
|
|
2705401393 | ||
|
|
f5894a6bef | ||
|
|
e7df5ac03a | ||
|
|
c16f368293 | ||
|
|
d63fa10a56 | ||
|
|
e8fa71175d | ||
|
|
09610889f3 | ||
|
|
d8fe9a3875 | ||
|
|
e9766dbdce | ||
|
|
b047465339 | ||
|
|
a60bf68345 | ||
|
|
97c6330a9a | ||
|
|
ec36b61275 | ||
|
|
7c8dbeef48 | ||
|
|
e293bd3b1c | ||
|
|
a7b845751b | ||
|
|
234f3a0bd2 | ||
|
|
f794d882ca | ||
|
|
05e348e9b7 | ||
|
|
654214cf37 | ||
|
|
8a6f73bd9b | ||
|
|
a6a8783319 | ||
|
|
1d20524678 | ||
|
|
88f6807399 | ||
|
|
91270fdfc3 | ||
|
|
e8d1b69407 | ||
|
|
3428408db5 | ||
|
|
32083c7966 | ||
|
|
d4296f30a5 | ||
|
|
57b86a8fbc | ||
|
|
3f941bb4bf | ||
|
|
60de688859 | ||
|
|
69eba9767a | ||
|
|
1d9c852113 | ||
|
|
b958d1a371 | ||
|
|
5b75938c73 | ||
|
|
1ff293f41f | ||
|
|
2d49212b08 | ||
|
|
b67f25606a | ||
|
|
0ee8fafbe1 | ||
|
|
6d2db1b258 | ||
|
|
6f6bf3695c | ||
|
|
a5f8d75caa | ||
|
|
ff722b5cef | ||
|
|
d305774bee | ||
|
|
1a733a6ba6 | ||
|
|
ade30c6b06 | ||
|
|
e796dd01ee | ||
|
|
63ffe0b0b4 | ||
|
|
25edb3f337 | ||
|
|
fe40e1807e | ||
|
|
26d4140c18 | ||
|
|
9f805aaec7 | ||
|
|
849a19b67a | ||
|
|
553ec901f3 | ||
|
|
0afa4f4855 | ||
|
|
3cb1548f2f | ||
|
|
ac5ca7b18b | ||
|
|
4ab2714bde | ||
|
|
bfdedefae3 | ||
|
|
3af41c06ab | ||
|
|
754360605c | ||
|
|
1b4384e3f3 | ||
|
|
ff7ddf7a9e | ||
|
|
2d876152aa | ||
|
|
24498e6fd1 | ||
|
|
de5d80c2df | ||
|
|
18d3edcd53 | ||
|
|
56af0f921b | ||
|
|
a14c41de4e | ||
|
|
9a8879dfbe | ||
|
|
21d756a2e3 | ||
|
|
93512b8345 | ||
|
|
5f95492a7f | ||
|
|
627b190fcb | ||
|
|
e42f836d9b | ||
|
|
b755a6f43e | ||
|
|
0a55544ca8 | ||
|
|
3c81c79819 | ||
|
|
e51664df6c | ||
|
|
f3dd122678 | ||
|
|
a628e96d06 | ||
|
|
2bb0148e49 | ||
|
|
289741d5d4 | ||
|
|
f070f4117c | ||
|
|
72ef3ff105 | ||
|
|
1301df80c2 | ||
|
|
56deb1e24b | ||
|
|
ec10ca3623 | ||
|
|
67c0c2fb0c | ||
|
|
eb45693257 | ||
|
|
5fdee68ccd | ||
|
|
7001bc0cf2 | ||
|
|
972839286c | ||
|
|
ede8fd840a | ||
|
|
6c700ea18b | ||
|
|
fe18ebf479 | ||
|
|
1d42565a84 | ||
|
|
272c811f4f | ||
|
|
c2c55bc8b2 | ||
|
|
8a6ce7606f | ||
|
|
7ec21c1cac | ||
|
|
f951242465 | ||
|
|
7dadb6806a | ||
|
|
6b539f43f3 | ||
|
|
1845441bc2 | ||
|
|
33c31d088c | ||
|
|
d0e7ba017c | ||
|
|
be0e15b3d4 | ||
|
|
f5e6d2105d | ||
|
|
0c6126010f | ||
|
|
29f295abf6 | ||
|
|
2aa98b81fe | ||
|
|
56adf72d12 | ||
|
|
773cd4f847 | ||
|
|
876e69e62c | ||
|
|
96b7b3f451 | ||
|
|
e751eed4a0 | ||
|
|
bad916cfb7 | ||
|
|
cc3d32fcbb | ||
|
|
79709e3a3e | ||
|
|
ab7d00b35d | ||
|
|
679a864906 | ||
|
|
f080d05dd6 | ||
|
|
00637042e2 | ||
|
|
fbb3ebb8c1 | ||
|
|
ec83ad598f | ||
|
|
2cb4871268 | ||
|
|
c1415dee41 | ||
|
|
540cd8eeb7 | ||
|
|
725e32daab | ||
|
|
160ebef39e | ||
|
|
672fc30d7e | ||
|
|
ba4f66f117 | ||
|
|
12fe4d8e15 | ||
|
|
5d7ffd7d58 | ||
|
|
6a8328a564 | ||
|
|
019de4e705 | ||
|
|
a1d1fdde14 | ||
|
|
1d14f00bb7 | ||
|
|
042037867b | ||
|
|
5f6ff13ce7 | ||
|
|
f08d9a9f40 | ||
|
|
7b49375efa | ||
|
|
91522ab32d | ||
|
|
a3e8c737de | ||
|
|
67c685f6c1 | ||
|
|
7aad54e6f2 | ||
|
|
b41820c39d | ||
|
|
fab89dead6 | ||
|
|
443a3ed248 | ||
|
|
5b133f724d | ||
|
|
5f8a586385 | ||
|
|
e863025fb1 | ||
|
|
91a38faecd | ||
|
|
1d3263373e | ||
|
|
f8ff4b82a3 | ||
|
|
d6c2cfaf1c | ||
|
|
cfe901b9c2 | ||
|
|
8443dae5ad | ||
|
|
dea7a3dc97 | ||
|
|
9e3be24c51 | ||
|
|
e744ebbe33 | ||
|
|
45ca0d2b46 | ||
|
|
f12561c62b | ||
|
|
976b30ccc0 | ||
|
|
198fbfe6a2 | ||
|
|
acb719730c | ||
|
|
0e3d4cbedb | ||
|
|
715fae8e33 | ||
|
|
f595183c05 | ||
|
|
98e0cfcf6f | ||
|
|
e14d29f7d4 | ||
|
|
24df764efb | ||
|
|
e3c08afe73 | ||
|
|
81b724c11a | ||
|
|
bfad61f1dd | ||
|
|
010cfe56b2 | ||
|
|
c1fa08fed0 | ||
|
|
ec41e2b02d | ||
|
|
bbc1b6c68a | ||
|
|
80d734e7d6 | ||
|
|
61e020c3d0 | ||
|
|
4e6aaba9ff | ||
|
|
578a21d327 | ||
|
|
c9c28792e5 | ||
|
|
35826088cb | ||
|
|
178df9b787 | ||
|
|
96a39d5cb2 | ||
|
|
83b8ba7f8d | ||
|
|
1796ec4964 | ||
|
|
48db290625 | ||
|
|
7c5f6dd5ef | ||
|
|
0a1683667f | ||
|
|
ef439f6faf | ||
|
|
98a303e941 | ||
|
|
3db1850e4f | ||
|
|
c1f0cda479 | ||
|
|
351fbab498 | ||
|
|
d5f9f4ef10 | ||
|
|
e105c611be | ||
|
|
6cdb331aae | ||
|
|
7b0bf9ec94 | ||
|
|
8617bf6c86 | ||
|
|
2601e46ec4 | ||
|
|
0c667d6b69 | ||
|
|
5a3957e143 | ||
|
|
e8accbb3ed | ||
|
|
2d7a02341d | ||
|
|
d3666c4618 | ||
|
|
ef24c9a616 | ||
|
|
8dee65d0dc | ||
|
|
5045846eed | ||
|
|
e8143c055b | ||
|
|
920b09dacc | ||
|
|
b5f1163e2d | ||
|
|
8271a69f45 | ||
|
|
f00351706e | ||
|
|
a5d97f1206 | ||
|
|
582e54ddc4 | ||
|
|
adee913568 | ||
|
|
396aa0bac6 | ||
|
|
77de1643f0 | ||
|
|
bf69fcceff | ||
|
|
d74127ebe2 | ||
|
|
aa486a4931 | ||
|
|
7ebd2dad1a | ||
|
|
7a82127494 | ||
|
|
490acc2e8b | ||
|
|
6af8044f7c | ||
|
|
70a10c4dba | ||
|
|
a1506ef58d | ||
|
|
af04ff690d | ||
|
|
6c1073e41c | ||
|
|
124c0af0f5 | ||
|
|
212bb660a1 | ||
|
|
6ee00f2bee | ||
|
|
b82e017f73 | ||
|
|
577f7445ab | ||
|
|
3a5895e356 | ||
|
|
dd658bf9d6 | ||
|
|
aa8fa5c1b2 | ||
|
|
2cfa87f44b | ||
|
|
0b642dcfe4 | ||
|
|
8a46908856 | ||
|
|
736128476b | ||
|
|
8e4afc0813 | ||
|
|
e5fa63b7e8 | ||
|
|
84df3a94d9 | ||
|
|
2c381ee741 | ||
|
|
dc86e715cb | ||
|
|
5f2252af71 | ||
|
|
455456b6bc | ||
|
|
045fdea923 | ||
|
|
8ff13614d2 | ||
|
|
331c88c38e | ||
|
|
c31d086356 | ||
|
|
dde36ccba2 | ||
|
|
97d98f7f12 |
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
# Tailwind 4's floor: browsers without cascade layers, or Chrome before 111, can't render the
|
||||||
|
# app's CSS, so the JS isn't transpiled for them either.
|
||||||
|
defaults and fully supports css-cascade-layers
|
||||||
|
not chrome < 111
|
||||||
@@ -1,21 +1,25 @@
|
|||||||
|
name: myep
|
||||||
type: php
|
type: php
|
||||||
docroot: public
|
docroot: public
|
||||||
php_version: "8.3"
|
php_version: "8.5"
|
||||||
webserver_type: apache-fpm
|
webserver_type: apache-fpm
|
||||||
xdebug_enabled: false
|
xdebug_enabled: false
|
||||||
additional_hostnames:
|
additional_hostnames:
|
||||||
- mysnz
|
- mysnz
|
||||||
- mysbw
|
- mysbw
|
||||||
- myser
|
- myser
|
||||||
additional_fqdns: []
|
additional_fqdns: [ ]
|
||||||
database:
|
database:
|
||||||
type: mysql
|
type: mariadb
|
||||||
version: "8.4"
|
version: "11.8"
|
||||||
|
webimage_extra_packages: [ ripgrep, bubblewrap, socat ]
|
||||||
use_dns_when_possible: true
|
use_dns_when_possible: true
|
||||||
|
timezone: Europe/Berlin
|
||||||
composer_version: "2"
|
composer_version: "2"
|
||||||
web_environment: []
|
web_environment: [ ]
|
||||||
|
nodejs_version: "24"
|
||||||
corepack_enable: false
|
corepack_enable: false
|
||||||
nodejs_version: "22"
|
omit_containers: [ddev-ssh-agent]
|
||||||
|
|
||||||
# Key features of DDEV's config.yaml:
|
# Key features of DDEV's config.yaml:
|
||||||
|
|
||||||
@@ -24,16 +28,16 @@ nodejs_version: "22"
|
|||||||
# If the name is omitted, the project will take the name of the enclosing directory,
|
# If the name is omitted, the project will take the name of the enclosing directory,
|
||||||
# which is useful if you want to have a copy of the project side by side with this one.
|
# which is useful if you want to have a copy of the project side by side with this one.
|
||||||
|
|
||||||
# type: <projecttype> # backdrop, cakephp, craftcms, drupal, drupal6, drupal7, drupal8, drupal9, drupal10, drupal11, generic, laravel, magento, magento2, php, shopware6, silverstripe, symfony, typo3, wordpress
|
# type: <projecttype> # asterios, backdrop, cakephp, codeigniter, craftcms, drupal, drupal6, drupal7, drupal8, drupal9, drupal10, drupal11, drupal12, generic, joomla, laravel, magento, magento2, maho, modx, php, shopware6, silverstripe, symfony, typo3, wordpress, wp-bedrock
|
||||||
# See https://docs.ddev.com/en/stable/users/quickstart/ for more
|
# See https://docs.ddev.com/en/stable/users/quickstart/ for more
|
||||||
# information on the different project types
|
# information on the different project types
|
||||||
|
|
||||||
# docroot: <relative_path> # Relative path to the directory containing index.php.
|
# docroot: <relative_path> # Relative path to the directory containing index.php.
|
||||||
|
|
||||||
# php_version: "8.3" # PHP version to use, "5.6" through "8.5"
|
# php_version: "8.4" # PHP version to use, "5.6" through "8.5"
|
||||||
|
|
||||||
# You can explicitly specify the webimage but this
|
# You can explicitly specify the webimage but this
|
||||||
# is not recommended, as the images are often closely tied to DDEV's' behavior,
|
# is not recommended, as the images are often closely tied to DDEV's behavior,
|
||||||
# so this can break upgrades.
|
# so this can break upgrades.
|
||||||
|
|
||||||
# webimage: <docker_image>
|
# webimage: <docker_image>
|
||||||
@@ -43,10 +47,18 @@ nodejs_version: "22"
|
|||||||
# database:
|
# database:
|
||||||
# type: <dbtype> # mysql, mariadb, postgres
|
# type: <dbtype> # mysql, mariadb, postgres
|
||||||
# version: <version> # database version, like "10.11" or "8.0"
|
# version: <version> # database version, like "10.11" or "8.0"
|
||||||
# MariaDB versions can be 5.5-10.8, 10.11, 11.4, 11.8
|
# MariaDB versions can be 5.5-10.8, 10.11, 11.4, 11.8, 12.3
|
||||||
# MySQL versions can be 5.5-8.0, 8.4
|
# MySQL versions can be 5.5-8.0, 8.4, 9.7
|
||||||
# PostgreSQL versions can be 9-18
|
# PostgreSQL versions can be 9-18
|
||||||
|
|
||||||
|
# You can explicitly specify the dbimage but this
|
||||||
|
# is not recommended, as the images are often closely tied to DDEV's behavior,
|
||||||
|
# so this can break upgrades.
|
||||||
|
|
||||||
|
# dbimage: <docker_image>
|
||||||
|
# It’s unusual to change this option, and we don’t recommend it without Docker experience and a good reason.
|
||||||
|
# Typically, this means additions to the existing db image using a .ddev/db-build/Dockerfile.*
|
||||||
|
|
||||||
# router_http_port: <port> # Port to be used for http (defaults to global configuration, usually 80)
|
# router_http_port: <port> # Port to be used for http (defaults to global configuration, usually 80)
|
||||||
# router_https_port: <port> # Port for https (defaults to global configuration, usually 443)
|
# router_https_port: <port> # Port for https (defaults to global configuration, usually 443)
|
||||||
|
|
||||||
@@ -66,8 +78,7 @@ nodejs_version: "22"
|
|||||||
# bind_all_ports is used (normally with router disabled)
|
# bind_all_ports is used (normally with router disabled)
|
||||||
|
|
||||||
# xhprof_mode: [prepend|xhgui|global]
|
# xhprof_mode: [prepend|xhgui|global]
|
||||||
# Set to "xhgui" to enable XHGui features
|
# Default is "xhgui"
|
||||||
# "xhgui" will become default in a future major release
|
|
||||||
|
|
||||||
# webserver_type: nginx-fpm, apache-fpm, generic
|
# webserver_type: nginx-fpm, apache-fpm, generic
|
||||||
|
|
||||||
@@ -85,22 +96,24 @@ nodejs_version: "22"
|
|||||||
# commands are executed.
|
# commands are executed.
|
||||||
|
|
||||||
# composer_version: "2"
|
# composer_version: "2"
|
||||||
# You can set it to "" or "2" (default) for Composer v2 or "1" for Composer v1
|
# You can set it to "" or "2" (default) for Composer v2
|
||||||
# to use the latest major version available at the time your container is built.
|
# to use the latest major version available at the time your container is built.
|
||||||
# It is also possible to use each other Composer version channel. This includes:
|
# It is also possible to use any other Composer version channel. This includes:
|
||||||
# - 2.2 (latest Composer LTS version)
|
# - 2.2 (latest Composer LTS version)
|
||||||
# - stable
|
# - stable
|
||||||
# - preview
|
# - preview
|
||||||
# - snapshot
|
# - snapshot
|
||||||
# Alternatively, an explicit Composer version may be specified, for example "2.2.18".
|
# Alternatively, an explicit Composer version may be specified, for example "2.2.18".
|
||||||
# To reinstall Composer after the image was built, run "ddev debug rebuild".
|
# To reinstall Composer after the image was built, run "ddev utility rebuild".
|
||||||
|
|
||||||
# nodejs_version: "22"
|
# nodejs_root: <relative_path>
|
||||||
|
# Relative path to the directory containing the Node.js version file from the
|
||||||
|
# project root. Only used with "nodejs_version: auto" or "nodejs_version: engine".
|
||||||
|
|
||||||
|
# nodejs_version: "24"
|
||||||
# change from the default system Node.js version to any other version.
|
# change from the default system Node.js version to any other version.
|
||||||
# See https://docs.ddev.com/en/stable/users/configuration/config/#nodejs_version for more information
|
# See https://docs.ddev.com/en/stable/users/configuration/config/#nodejs_version for more information
|
||||||
# and https://www.npmjs.com/package/n#specifying-nodejs-versions for the full documentation,
|
# and https://www.npmjs.com/package/n#specifying-nodejs-versions for the full documentation.
|
||||||
# Note that using of 'ddev nvm' is discouraged because "nodejs_version" is much easier to use,
|
|
||||||
# can specify any version, and is more robust than using 'nvm'.
|
|
||||||
|
|
||||||
# corepack_enable: false
|
# corepack_enable: false
|
||||||
# Change to 'true' to 'corepack enable' and gain access to latest versions of yarn/pnpm
|
# Change to 'true' to 'corepack enable' and gain access to latest versions of yarn/pnpm
|
||||||
@@ -160,9 +173,7 @@ nodejs_version: "22"
|
|||||||
# - "global": uses the value from the global config.
|
# - "global": uses the value from the global config.
|
||||||
# - "none": disables performance optimization for this project.
|
# - "none": disables performance optimization for this project.
|
||||||
# - "mutagen": enables Mutagen for this project.
|
# - "mutagen": enables Mutagen for this project.
|
||||||
# - "nfs": enables NFS for this project.
|
|
||||||
#
|
#
|
||||||
# See https://docs.ddev.com/en/stable/users/install/performance/#nfs
|
|
||||||
# See https://docs.ddev.com/en/stable/users/install/performance/#mutagen
|
# See https://docs.ddev.com/en/stable/users/install/performance/#mutagen
|
||||||
|
|
||||||
# fail_on_hook_fail: False
|
# fail_on_hook_fail: False
|
||||||
@@ -192,10 +203,10 @@ nodejs_version: "22"
|
|||||||
# The mailpit port is not normally bound on the host at all, instead being routed
|
# The mailpit port is not normally bound on the host at all, instead being routed
|
||||||
# through ddev-router, but it can be bound directly to localhost if specified here.
|
# through ddev-router, but it can be bound directly to localhost if specified here.
|
||||||
|
|
||||||
# webimage_extra_packages: [php7.4-tidy, php-bcmath]
|
# webimage_extra_packages: ['php${DDEV_PHP_VERSION}-tidy', 'php${DDEV_PHP_VERSION}-yac']
|
||||||
# Extra Debian packages that are needed in the webimage can be added here
|
# Extra Debian packages that are needed in the webimage can be added here
|
||||||
|
|
||||||
# dbimage_extra_packages: [telnet,netcat]
|
# dbimage_extra_packages: [netcat, telnet, sudo]
|
||||||
# Extra Debian packages that are needed in the dbimage can be added here
|
# Extra Debian packages that are needed in the dbimage can be added here
|
||||||
|
|
||||||
# use_dns_when_possible: true
|
# use_dns_when_possible: true
|
||||||
@@ -207,12 +218,15 @@ nodejs_version: "22"
|
|||||||
# project_tld: ddev.site
|
# project_tld: ddev.site
|
||||||
# The top-level domain used for project URLs
|
# The top-level domain used for project URLs
|
||||||
# The default "ddev.site" allows DNS lookup via a wildcard
|
# The default "ddev.site" allows DNS lookup via a wildcard
|
||||||
# If you prefer you can change this to "ddev.local" to preserve
|
|
||||||
# pre-v1.9 behavior.
|
|
||||||
|
|
||||||
# ngrok_args: --basic-auth username:pass1234
|
# share_default_provider: ngrok
|
||||||
# Provide extra flags to the "ngrok http" command, see
|
# The default share provider to use for "ddev share"
|
||||||
# https://ngrok.com/docs/agent/config/v3/#agent-configuration or run "ngrok http -h"
|
# Defaults to global configuration, usually "ngrok"
|
||||||
|
# Can be "ngrok" or "cloudflared" or the name of a custom provider from .ddev/share-providers/
|
||||||
|
|
||||||
|
# share_provider_args: --basic-auth username:pass1234
|
||||||
|
# Provide extra flags to the share provider script
|
||||||
|
# See https://docs.ddev.com/en/stable/users/configuration/config/#share_provider_args
|
||||||
|
|
||||||
# disable_settings_management: false
|
# disable_settings_management: false
|
||||||
# If true, DDEV will not create CMS-specific settings files like
|
# If true, DDEV will not create CMS-specific settings files like
|
||||||
@@ -274,7 +288,7 @@ nodejs_version: "22"
|
|||||||
# override_config: false
|
# override_config: false
|
||||||
# By default, config.*.yaml files are *merged* into the configuration
|
# By default, config.*.yaml files are *merged* into the configuration
|
||||||
# But this means that some things can't be overridden
|
# But this means that some things can't be overridden
|
||||||
# For example, if you have 'use_dns_when_possible: true'' you can't override it with a merge
|
# For example, if you have 'use_dns_when_possible: true' you can't override it with a merge
|
||||||
# and you can't erase existing hooks or all environment variables.
|
# and you can't erase existing hooks or all environment variables.
|
||||||
# However, with "override_config: true" in a particular config.*.yaml file,
|
# However, with "override_config: true" in a particular config.*.yaml file,
|
||||||
# 'use_dns_when_possible: false' can override the existing values, and
|
# 'use_dns_when_possible: false' can override the existing values, and
|
||||||
@@ -284,7 +298,7 @@ nodejs_version: "22"
|
|||||||
# web_environment: []
|
# web_environment: []
|
||||||
# or
|
# or
|
||||||
# additional_hostnames: []
|
# additional_hostnames: []
|
||||||
# can have their intended affect. 'override_config' affects only behavior of the
|
# can have their intended effect. 'override_config' affects only behavior of the
|
||||||
# config.*.yaml file it exists in.
|
# config.*.yaml file it exists in.
|
||||||
|
|
||||||
# Many DDEV commands can be extended to run tasks before or after the
|
# Many DDEV commands can be extended to run tasks before or after the
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ APP_SECRET=642ead390b8a38f0a017ec84d5362129
|
|||||||
#
|
#
|
||||||
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
|
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
|
||||||
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
|
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
|
||||||
DATABASE_URL="mysql://db:db@db:3306/db?serverVersion=8.4.0&charset=utf8mb4"
|
DATABASE_URL="mysql://db:db@db:3306/db?serverVersion=mariadb-11.8.9&charset=utf8mb4"
|
||||||
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=16&charset=utf8"
|
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=16&charset=utf8"
|
||||||
###< doctrine/doctrine-bundle ###
|
###< doctrine/doctrine-bundle ###
|
||||||
|
|
||||||
@@ -44,6 +44,9 @@ MAILJET_API_KEY=
|
|||||||
MAILJET_API_SECRET=
|
MAILJET_API_SECRET=
|
||||||
MAILJET_API_BASE_URL=https://api.mailjet.com/v3/REST
|
MAILJET_API_BASE_URL=https://api.mailjet.com/v3/REST
|
||||||
MAILJET_DEFAULT_LIST_ID=
|
MAILJET_DEFAULT_LIST_ID=
|
||||||
|
# Sub-account for the travel mailing lists
|
||||||
|
MAILJET_TRAVEL_MAILING_API_KEY=
|
||||||
|
MAILJET_TRAVEL_MAILING_API_SECRET=
|
||||||
# Development default for HTTP Basic Auth password; override in production secrets.
|
# Development default for HTTP Basic Auth password; override in production secrets.
|
||||||
MAILJET_WEBHOOK_BASIC_PASSWORD=secret
|
MAILJET_WEBHOOK_BASIC_PASSWORD=secret
|
||||||
APP_NEWSLETTER_CONFIRMATION_TTL_HOURS=1
|
APP_NEWSLETTER_CONFIRMATION_TTL_HOURS=1
|
||||||
@@ -54,9 +57,20 @@ APP_NEWSLETTER_CONFIRMATION_TTL_HOURS=1
|
|||||||
# (override in .env.local/production secrets as usual).
|
# (override in .env.local/production secrets as usual).
|
||||||
ACCOMMODATION_OFFER_LINK_SECRET=abf8ec28cc2162d9121d35d6f8cbf7c29728cdacce0303e22e1bac854501728a
|
ACCOMMODATION_OFFER_LINK_SECRET=abf8ec28cc2162d9121d35d6f8cbf7c29728cdacce0303e22e1bac854501728a
|
||||||
|
|
||||||
|
ACCOMMODATION_TERMS_AT=
|
||||||
|
ACCOMMODATION_TERMS_CH=
|
||||||
|
ACCOMMODATION_TERMS_IT=
|
||||||
|
|
||||||
BPN_CONNECT_BASE_URL=https://bpn-connect.ep-reisen.app
|
BPN_CONNECT_BASE_URL=https://bpn-connect.ep-reisen.app
|
||||||
BPN_CONNECT_API_KEY=
|
BPN_CONNECT_API_KEY=
|
||||||
|
|
||||||
|
# ClickUp task created when an accommodation booking is confirmed. Token/ids are secrets and
|
||||||
|
# stay empty here — set them in .env.local. Without them the handler skips with a warning.
|
||||||
|
CLICKUP_API_TOKEN=
|
||||||
|
CLICKUP_LIST_ID=
|
||||||
|
CLICKUP_TEMPLATE_ID=
|
||||||
|
CLICKUP_API_BASE_URL=https://api.clickup.com/api/v2
|
||||||
|
|
||||||
APP_BPN_USER=
|
APP_BPN_USER=
|
||||||
APP_BPN_PASSWORD=
|
APP_BPN_PASSWORD=
|
||||||
APP_BPN_IP=
|
APP_BPN_IP=
|
||||||
@@ -71,6 +85,12 @@ APP_LEGAL_NOTICE_URL="https://www.ep-reisen.de/unternehmen/impressum-skireisever
|
|||||||
APP_TERMS_AND_CONDITIONS_URL="https://www.ep-reisen.de/skireisen/infos/allgemeine-infos/agb/"
|
APP_TERMS_AND_CONDITIONS_URL="https://www.ep-reisen.de/skireisen/infos/allgemeine-infos/agb/"
|
||||||
APP_PRIVACY_POLICY_URL="https://www.ep-reisen.de/unternehmen/impressum-skireiseveranstalter/datenschutz-winterreisen/"
|
APP_PRIVACY_POLICY_URL="https://www.ep-reisen.de/unternehmen/impressum-skireiseveranstalter/datenschutz-winterreisen/"
|
||||||
APP_CMS_API_BASE_URL="https://www.ep-reisen.de/"
|
APP_CMS_API_BASE_URL="https://www.ep-reisen.de/"
|
||||||
|
# TYPO3 API key (X-Api-Key), sent by the typo3.client scoped client and by app:content:sync;
|
||||||
|
# the real value per stage goes in .env.local
|
||||||
|
APP_CMS_API_KEY=
|
||||||
|
# Bearer tokens for the chatbot MCP endpoints (/mcp, /mcp/trips), one per client: "name:token,name:token"
|
||||||
|
# (e.g. "n8n:…,claude-desktop:…"); empty refuses every request
|
||||||
|
APP_MCP_TOKENS=
|
||||||
APP_WEBSITE_BASE_URL="https://www.ep-reisen.de/"
|
APP_WEBSITE_BASE_URL="https://www.ep-reisen.de/"
|
||||||
APP_BASE_URL="https://my.ep-reisen.de"
|
APP_BASE_URL="https://my.ep-reisen.de"
|
||||||
APP_CUSTOMER_SERVICE_EMAIL="[email protected]"
|
APP_CUSTOMER_SERVICE_EMAIL="[email protected]"
|
||||||
@@ -81,10 +101,17 @@ APP_TRAVEL_PREFER_REMOTE=false
|
|||||||
APP_TRAVEL_ENABLE_FALLBACK=true
|
APP_TRAVEL_ENABLE_FALLBACK=true
|
||||||
APP_TRAVEL_SNAPSHOT_RETENTION_BUFFER_DAYS=14
|
APP_TRAVEL_SNAPSHOT_RETENTION_BUFFER_DAYS=14
|
||||||
|
|
||||||
|
# Off turns every navigation into a full page load, which the web debug toolbar needs: its loader
|
||||||
|
# script never runs on a boosted body swap. Explicit hx-get/hx-post requests are unaffected.
|
||||||
|
# Only for local debugging; prod and the boosted code paths (HxRedirectResponse, error modal) need it on.
|
||||||
|
APP_HTMX_BOOST=true
|
||||||
|
|
||||||
# Emails
|
# Emails
|
||||||
APP_DEFAULT_EMAIL_FROM=[email protected]
|
APP_DEFAULT_EMAIL_FROM=[email protected]
|
||||||
APP_DEFAULT_EMAIL_TO=[email protected]
|
APP_DEFAULT_EMAIL_TO=[email protected]
|
||||||
ACCOMMODATION_INQUIRY_EMAIL=info@ep-reisen.de
|
ACCOMMODATION_INQUIRY_EMAIL=gruppen@ep-reisen.de
|
||||||
|
# Comma-separated; recipients of the role nomination notification. Empty means disable notification.
|
||||||
|
APP_ROLE_NOMINATION_EMAILS=
|
||||||
|
|
||||||
# Global common defaults
|
# Global common defaults
|
||||||
APP_SEASON_WINTER_FROM=2026-10-01
|
APP_SEASON_WINTER_FROM=2026-10-01
|
||||||
@@ -101,19 +128,11 @@ APP_UNDERSUBSCRIPTION_SURCHARGE_40_CHF=2.5
|
|||||||
# Use 'O' during beta phase, switch to 'F' for production
|
# Use 'O' during beta phase, switch to 'F' for production
|
||||||
DEFAULT_BOOKING_STATUS=F
|
DEFAULT_BOOKING_STATUS=F
|
||||||
|
|
||||||
XML_EXPORT_PATH="%kernel.project_dir%/var/xmlexport"
|
SFTP_XML_SOURCE_HOST=
|
||||||
XML_EXPORT_CONTINGENTS_PATH="%kernel.project_dir%/var/xmlexportzimmer"
|
SFTP_XML_SOURCE_PORT=
|
||||||
JSON_EXPORT_PATH="%kernel.project_dir%/var/jsonexport"
|
SFTP_XML_SOURCE_USER=
|
||||||
|
SFTP_XML_SOURCE_PASSWORD=
|
||||||
SFTP_XML_EXPORT_HOST=
|
SFTP_XML_SOURCE_ROOT=
|
||||||
SFTP_XML_EXPORT_PORT=
|
|
||||||
SFTP_XML_EXPORT_USER=
|
|
||||||
SFTP_XML_EXPORT_PASSWORD=
|
|
||||||
|
|
||||||
SFTP_XML_EXPORT_CONTINGENTS_HOST=
|
|
||||||
SFTP_XML_EXPORT_CONTINGENTS_PORT=
|
|
||||||
SFTP_XML_EXPORT_CONTINGENTS_USER=
|
|
||||||
SFTP_XML_EXPORT_CONTINGENTS_PASSWORD=
|
|
||||||
|
|
||||||
###> league/oauth2-server-bundle ###
|
###> league/oauth2-server-bundle ###
|
||||||
OAUTH_PRIVATE_KEY=%kernel.project_dir%/config/secret/private.key
|
OAUTH_PRIVATE_KEY=%kernel.project_dir%/config/secret/private.key
|
||||||
@@ -126,3 +145,8 @@ OAUTH_ENCRYPTION_KEY=580084fd179e67399467f59ee96658ac
|
|||||||
# postgresql+advisory://db_user:db_password@localhost/db_name
|
# postgresql+advisory://db_user:db_password@localhost/db_name
|
||||||
LOCK_DSN=flock
|
LOCK_DSN=flock
|
||||||
###< symfony/lock ###
|
###< symfony/lock ###
|
||||||
|
|
||||||
|
MAINTENANCE_MODE_ENABLED=false
|
||||||
|
MAINTENANCE_MODE_IP_WHITELIST=188.245.62.21
|
||||||
|
MAINTENANCE_MODE_ROUTE_WHITELIST=
|
||||||
|
MAINTENANCE_MODE_PATH_WHITELIST=/api,/token
|
||||||
@@ -8,13 +8,9 @@
|
|||||||
/vendor/
|
/vendor/
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
###> phpunit/phpunit ###
|
|
||||||
/phpunit.xml
|
|
||||||
.phpunit.result.cache
|
|
||||||
###< phpunit/phpunit ###
|
|
||||||
|
|
||||||
###> symfony/phpunit-bridge ###
|
###> symfony/phpunit-bridge ###
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
|
.phpunit.cache
|
||||||
/phpunit.xml
|
/phpunit.xml
|
||||||
###< symfony/phpunit-bridge ###
|
###< symfony/phpunit-bridge ###
|
||||||
|
|
||||||
@@ -37,3 +33,7 @@ yarn-error.log
|
|||||||
###> phpstan/phpstan ###
|
###> phpstan/phpstan ###
|
||||||
phpstan.neon
|
phpstan.neon
|
||||||
###< phpstan/phpstan ###
|
###< phpstan/phpstan ###
|
||||||
|
|
||||||
|
###> config reference ###
|
||||||
|
/config/reference.php
|
||||||
|
###< config reference ###
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
import { Controller } from '@hotwired/stimulus'
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The navigation (sidebar or header tabs) as a drawer on small screens: a modal <dialog> (target
|
||||||
|
* "dialog"), so focus stays inside and Escape closes it. A click on the dimmed page beside it closes it
|
||||||
|
* too, and so does widening the window until the navigation shows (lg).
|
||||||
|
*/
|
||||||
|
export default class extends Controller {
|
||||||
|
static targets = ['dialog']
|
||||||
|
|
||||||
|
connect () {
|
||||||
|
this.wide = window.matchMedia('(min-width: 64rem)')
|
||||||
|
this.onWide = (event) => event.matches && this.close()
|
||||||
|
this.wide.addEventListener('change', this.onWide)
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnect () {
|
||||||
|
this.wide.removeEventListener('change', this.onWide)
|
||||||
|
}
|
||||||
|
|
||||||
|
open () {
|
||||||
|
this.dialogTarget.showModal()
|
||||||
|
}
|
||||||
|
|
||||||
|
close () {
|
||||||
|
this.dialogTarget.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
// a click on the dialog element itself, not on its content, is a click on the backdrop
|
||||||
|
closeOnBackdrop (event) {
|
||||||
|
if (event.target === this.dialogTarget) {
|
||||||
|
this.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
import {Controller} from '@hotwired/stimulus'
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Keeps buttons disabled until the given fields pass the browser's constraint validation
|
||||||
|
* (required, min, max, step, …), which the form types render from the same rules the server
|
||||||
|
* validates. A text field holding only whitespace counts as empty, as NotBlank does.
|
||||||
|
*
|
||||||
|
* Works on forms with novalidate too: that only stops the browser from blocking the submit.
|
||||||
|
*/
|
||||||
|
export default class extends Controller {
|
||||||
|
static targets = ['field', 'button']
|
||||||
|
|
||||||
|
connect() {
|
||||||
|
this.update()
|
||||||
|
}
|
||||||
|
|
||||||
|
update() {
|
||||||
|
const invalid = this.fieldTargets.some(field => !field.checkValidity()
|
||||||
|
|| ('radio' !== field.type && 'checkbox' !== field.type && '' === field.value.trim()))
|
||||||
|
this.buttonTargets.forEach(button => button.disabled = invalid)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,10 +11,13 @@ export default class extends Controller {
|
|||||||
|
|
||||||
connect() {
|
connect() {
|
||||||
this.itemsCountValue = this.fieldTargets.length
|
this.itemsCountValue = this.fieldTargets.length
|
||||||
|
// A running counter rather than the current count: after a remove, count + 1 can be an
|
||||||
|
// index a remaining entry still holds, and the two would submit into the same slot.
|
||||||
|
this.nextIndex = this.fieldTargets.length
|
||||||
}
|
}
|
||||||
|
|
||||||
addItem() {
|
addItem() {
|
||||||
const index = this.fieldTargets.length + 1
|
const index = this.nextIndex++
|
||||||
const prototype = JSON.parse(this.prototypeValue)
|
const prototype = JSON.parse(this.prototypeValue)
|
||||||
const newField = prototype.replace(/__name__/g, index)
|
const newField = prototype.replace(/__name__/g, index)
|
||||||
this.fieldsTarget.insertAdjacentHTML('beforeend', newField)
|
this.fieldsTarget.insertAdjacentHTML('beforeend', newField)
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import {Controller} from '@hotwired/stimulus'
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Shows an indicator over an iframe until its content has loaded.
|
||||||
|
*
|
||||||
|
* The controller sets the frame's src itself, after the load listener is attached, so a fast
|
||||||
|
* response cannot finish before anybody listens.
|
||||||
|
*/
|
||||||
|
export default class extends Controller {
|
||||||
|
static targets = ['frame', 'indicator']
|
||||||
|
static values = {src: String}
|
||||||
|
|
||||||
|
connect() {
|
||||||
|
this.loaded = this.loaded.bind(this)
|
||||||
|
this.frameTarget.addEventListener('load', this.loaded)
|
||||||
|
this.frameTarget.src = this.srcValue
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnect() {
|
||||||
|
this.frameTarget.removeEventListener('load', this.loaded)
|
||||||
|
}
|
||||||
|
|
||||||
|
loaded() {
|
||||||
|
this.indicatorTarget.classList.add('hidden')
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
import { Controller } from '@hotwired/stimulus'
|
||||||
|
|
||||||
|
/*
|
||||||
|
* A small menu behind a "⋯" button: the button (menu#toggle) opens the panel (target "panel") below
|
||||||
|
* itself. The panel is positioned fixed, so a scrolling container can't cut it off. Escape, a click
|
||||||
|
* outside or a click on one of its items closes it; arrow keys move between the items. Scrolling or
|
||||||
|
* resizing closes it too: a fixed panel would stay put while its row moves away (a table swiped
|
||||||
|
* sideways on a phone).
|
||||||
|
*/
|
||||||
|
export default class extends Controller {
|
||||||
|
static targets = ['button', 'panel']
|
||||||
|
|
||||||
|
connect () {
|
||||||
|
this.onOutside = (event) => {
|
||||||
|
if (!this.element.contains(event.target)) {
|
||||||
|
this.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.onKey = (event) => this.key(event)
|
||||||
|
this.onScroll = (event) => {
|
||||||
|
if (!this.panelTarget.contains(event.target)) {
|
||||||
|
this.close()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.onResize = () => this.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnect () {
|
||||||
|
this.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle (event) {
|
||||||
|
event.stopPropagation()
|
||||||
|
this.panelTarget.hidden ? this.open() : this.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
open () {
|
||||||
|
const box = this.buttonTarget.getBoundingClientRect()
|
||||||
|
const panel = this.panelTarget
|
||||||
|
panel.hidden = false
|
||||||
|
// below the button, aligned to its right edge, and inside the window
|
||||||
|
const left = Math.max(8, Math.min(box.right - panel.offsetWidth, window.innerWidth - panel.offsetWidth - 8))
|
||||||
|
const below = box.bottom + 4 + panel.offsetHeight <= window.innerHeight
|
||||||
|
panel.style.left = `${left}px`
|
||||||
|
panel.style.top = `${below ? box.bottom + 4 : box.top - panel.offsetHeight - 4}px`
|
||||||
|
this.buttonTarget.setAttribute('aria-expanded', 'true')
|
||||||
|
document.addEventListener('click', this.onOutside, true)
|
||||||
|
document.addEventListener('keydown', this.onKey)
|
||||||
|
// capture: scroll events don't bubble, and the scrolling box may be any ancestor
|
||||||
|
document.addEventListener('scroll', this.onScroll, true)
|
||||||
|
window.addEventListener('resize', this.onResize)
|
||||||
|
this.items()[0]?.focus({ preventScroll: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
close () {
|
||||||
|
if (this.panelTarget.hidden) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.panelTarget.hidden = true
|
||||||
|
this.buttonTarget.setAttribute('aria-expanded', 'false')
|
||||||
|
document.removeEventListener('click', this.onOutside, true)
|
||||||
|
document.removeEventListener('keydown', this.onKey)
|
||||||
|
document.removeEventListener('scroll', this.onScroll, true)
|
||||||
|
window.removeEventListener('resize', this.onResize)
|
||||||
|
}
|
||||||
|
|
||||||
|
// an item was chosen: it does its own work (htmx, link), the menu only closes
|
||||||
|
choose () {
|
||||||
|
this.close()
|
||||||
|
}
|
||||||
|
|
||||||
|
key (event) {
|
||||||
|
const items = this.items()
|
||||||
|
const index = items.indexOf(document.activeElement)
|
||||||
|
if (event.key === 'Escape') {
|
||||||
|
event.stopPropagation()
|
||||||
|
this.close()
|
||||||
|
this.buttonTarget.focus()
|
||||||
|
} else if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
||||||
|
event.preventDefault()
|
||||||
|
const next = (index + (event.key === 'ArrowDown' ? 1 : -1) + items.length) % items.length
|
||||||
|
items[next]?.focus()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
items () {
|
||||||
|
return [...this.panelTarget.querySelectorAll('a, button:not([disabled])')]
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
import { Controller } from '@hotwired/stimulus'
|
|
||||||
|
|
||||||
export default class extends Controller {
|
|
||||||
static outlets = [ 'mobilenav' ]
|
|
||||||
static classes = [ 'closed' ]
|
|
||||||
|
|
||||||
trigger({ params: { mode } }) {
|
|
||||||
this.mobilenavOutlet.toggle(mode)
|
|
||||||
}
|
|
||||||
|
|
||||||
toggle(mode) {
|
|
||||||
// Add animation classes only now to avoid fouc
|
|
||||||
this.element.classList.add('transition-transform', 'duration-300')
|
|
||||||
this.element.classList.toggle(this.closedClass, 'close' === mode)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
import { Controller } from '@hotwired/stimulus'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unchecks conflicting additional services as soon as one is selected, so the user sees the
|
||||||
|
* result immediately instead of waiting for the debounced htmx refresh. The server resolves
|
||||||
|
* the same conflicts again and stays the source of truth.
|
||||||
|
*/
|
||||||
|
export default class extends Controller {
|
||||||
|
|
||||||
|
static targets = [ 'input' ]
|
||||||
|
|
||||||
|
select(event) {
|
||||||
|
const input = event.target
|
||||||
|
|
||||||
|
if (!input.checked) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const group = input.dataset.exclusionGroup
|
||||||
|
|
||||||
|
if (!group) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
const exclusive = '1' === input.dataset.exclusive
|
||||||
|
|
||||||
|
this.inputTargets
|
||||||
|
.filter(other => other !== input)
|
||||||
|
.filter(other => other.dataset.exclusionGroup === group)
|
||||||
|
.filter(other => exclusive || '1' === other.dataset.exclusive)
|
||||||
|
.forEach(other => { other.checked = false })
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
import { Controller } from '@hotwired/stimulus'
|
|
||||||
|
|
||||||
export default class extends Controller {
|
|
||||||
|
|
||||||
static classes = ['closed', 'iconClosed', 'iconExpanded']
|
|
||||||
static targets = ['submenu', 'button', 'icon']
|
|
||||||
static values = { expanded: Boolean }
|
|
||||||
|
|
||||||
toggleSubmenu() {
|
|
||||||
this.expandedValue = !this.expandedValue
|
|
||||||
}
|
|
||||||
|
|
||||||
expandedValueChanged(expanded) {
|
|
||||||
this.submenuTarget.classList.toggle(this.closedClass, false === expanded)
|
|
||||||
if (false === this.hasButtonTarget) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
this.buttonTarget.setAttribute('aria-expanded', expanded)
|
|
||||||
if (false === this.hasIconTarget) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (true === expanded) {
|
|
||||||
this.iconTarget.classList.add(...this.iconExpandedClasses)
|
|
||||||
this.iconTarget.classList.remove(...this.iconClosedClasses)
|
|
||||||
} else {
|
|
||||||
this.iconTarget.classList.add(...this.iconClosedClasses)
|
|
||||||
this.iconTarget.classList.remove(...this.iconExpandedClasses)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
import { Controller } from '@hotwired/stimulus'
|
||||||
|
import Sortable from 'sortablejs'
|
||||||
|
|
||||||
|
export default class extends Controller {
|
||||||
|
|
||||||
|
static targets = [ 'list', 'item', 'handle', 'positionField', 'positionLabel', 'status' ]
|
||||||
|
|
||||||
|
static values = {
|
||||||
|
url: String,
|
||||||
|
}
|
||||||
|
|
||||||
|
connect() {
|
||||||
|
this.abortController = null
|
||||||
|
|
||||||
|
// The sortable container may be nested (e.g. a tbody) when the controller element also
|
||||||
|
// has to wrap elements that must not be dragged, like the status message.
|
||||||
|
new Sortable(this.hasListTarget ? this.listTarget : this.element, {
|
||||||
|
draggable: '[data-sortable-target="item"]',
|
||||||
|
handle: '[data-sortable-target="handle"]',
|
||||||
|
sort: true,
|
||||||
|
fallbackOnBody: true,
|
||||||
|
onEnd: e => {
|
||||||
|
this.updateOrdering()
|
||||||
|
this.persist()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
disconnect() {
|
||||||
|
this.abortController?.abort()
|
||||||
|
}
|
||||||
|
|
||||||
|
updateOrdering() {
|
||||||
|
this.positionFieldTargets.forEach((field, index) => {
|
||||||
|
field.value = index + 1
|
||||||
|
})
|
||||||
|
this.positionLabelTargets.forEach((label, index) => {
|
||||||
|
label.innerText = index + 1
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sends the new order to the server. Only active when a url value is present, so the
|
||||||
|
* controller stays usable for plain form ordering.
|
||||||
|
*/
|
||||||
|
persist() {
|
||||||
|
if (!this.hasUrlValue || this.urlValue === '') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// A drag while the previous request is still running makes that request obsolete.
|
||||||
|
this.abortController?.abort()
|
||||||
|
this.abortController = new AbortController()
|
||||||
|
|
||||||
|
const ids = this.itemTargets
|
||||||
|
.map(item => Number(item.dataset.sortableId))
|
||||||
|
.filter(id => Number.isInteger(id) && id > 0)
|
||||||
|
|
||||||
|
this.setStatus('speichert …')
|
||||||
|
|
||||||
|
fetch(this.urlValue, {
|
||||||
|
method: 'POST',
|
||||||
|
credentials: 'include',
|
||||||
|
signal: this.abortController.signal,
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
|
body: JSON.stringify({ ids }),
|
||||||
|
})
|
||||||
|
.then(response => {
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error(`Unexpected response ${response.status}`)
|
||||||
|
}
|
||||||
|
this.setStatus('Reihenfolge gespeichert')
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
if (error.name === 'AbortError') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
console.error('Failed to persist ordering', error)
|
||||||
|
this.setStatus('Speichern fehlgeschlagen')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
setStatus(message) {
|
||||||
|
this.statusTargets.forEach(status => {
|
||||||
|
status.innerText = message
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@ import {Controller} from '@hotwired/stimulus'
|
|||||||
|
|
||||||
export default class extends Controller {
|
export default class extends Controller {
|
||||||
static classes = ['closed', 'open', 'iconOpen']
|
static classes = ['closed', 'open', 'iconOpen']
|
||||||
static targets = ['content', 'icon', 'container']
|
static targets = ['content', 'icon', 'container', 'trigger']
|
||||||
static values = {
|
static values = {
|
||||||
open: {
|
open: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -43,6 +43,10 @@ export default class extends Controller {
|
|||||||
this.iconTarget.classList.toggle(iconClass, true === open)
|
this.iconTarget.classList.toggle(iconClass, true === open)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.hasTriggerTarget) {
|
||||||
|
this.triggerTarget.setAttribute('aria-expanded', String(open))
|
||||||
|
}
|
||||||
|
|
||||||
// Toggle class on container element (or controller element) if specified
|
// Toggle class on container element (or controller element) if specified
|
||||||
if (this.hasOpenClass) {
|
if (this.hasOpenClass) {
|
||||||
const container = this.hasContainerTarget ? this.containerTarget : this.element
|
const container = this.hasContainerTarget ? this.containerTarget : this.element
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 500 153" xmlns="http://www.w3.org/2000/svg"><g fill="#0084d4"><path d="m332.922 85.597c4.527 0 7.819 3.292 7.819 7.819 0 4.115-2.675 6.79-5.762 7.613l6.791 11.934h-3.704l-6.379-11.523h-7.613v11.523h-3.292v-27.366zm-8.642 12.963h8.642c2.469 0 4.527-2.058 4.527-5.144 0-3.293-2.264-5.144-5.35-5.144h-7.819z" fill-rule="nonzero"/><path d="m374.28 85.597v2.88h-15.432v9.877h13.374v2.881h-13.374v9.053h15.843v2.675h-19.135v-27.366z" fill-rule="nonzero"/><path d="m389.095 85.597h3.292v27.366h-3.292z"/><path d="m406.79 111.317.823-2.675c1.029.411 4.733 1.852 8.436 1.852 4.527 0 6.791-1.852 6.791-4.527 0-3.498-3.498-4.321-6.996-5.35-4.321-1.234-8.848-2.675-8.848-8.024 0-4.939 3.704-7.408 9.259-7.408 3.292 0 6.79 1.029 8.642 1.852l-.823 2.675s-4.115-1.646-7.613-1.646c-3.704 0-6.173 1.852-6.173 4.527 0 3.292 3.704 4.321 6.996 5.349 4.321 1.235 8.848 2.675 8.848 8.025 0 5.144-4.116 7.407-9.671 7.407-4.321 0-8.025-1.234-9.671-2.057z" fill-rule="nonzero"/><path d="m458.848 85.597v2.88h-15.432v9.877h13.374v2.881h-13.374v9.053h15.843v2.675h-19.136v-27.366z" fill-rule="nonzero"/><path d="m476.955 85.597 8.642 12.963 5.967 9.259-.206-9.259v-12.963h3.292v27.366h-3.498l-8.642-13.375-5.761-9.053.206 9.259v13.169h-3.292v-27.366z" fill-rule="nonzero"/><path d="m339.712 123.663v2.88h-15.432v9.877h13.374v2.88h-13.374v9.054h15.843v2.881h-19.135v-27.572z" fill-rule="nonzero"/><path d="m352.263 123.663 8.231 23.251 8.23-23.251h3.498l-9.876 27.366h-3.704l-9.877-27.366z" fill-rule="nonzero"/><path d="m401.44 123.663v2.88h-15.432v9.877h13.375v2.88h-13.375v9.054h15.844v2.881h-19.136v-27.572z" fill-rule="nonzero"/><path d="m416.872 123.663 8.642 12.963 5.967 9.259-.205-9.259v-12.963h3.292v27.366h-3.498l-8.642-13.375-5.761-9.053.205 9.259v13.169h-3.292v-27.366z" fill-rule="nonzero"/><path d="m466.872 123.457v3.086h-9.259v24.486h-3.292v-24.692h-9.259v-2.88z" fill-rule="nonzero"/><path d="m475.309 149.177.823-2.675c1.028.412 4.732 1.852 8.436 1.852 4.527 0 6.79-1.852 6.79-4.527 0-3.498-3.498-4.321-6.996-5.35-4.321-1.234-8.848-2.675-8.848-8.024 0-4.939 3.704-7.408 9.26-7.408 3.292 0 6.79 1.029 8.642 1.852l-.823 2.675s-4.116-1.646-7.614-1.646c-3.703 0-6.172 1.852-6.172 4.527 0 3.292 3.703 4.321 6.995 5.349 4.321 1.235 8.848 2.675 8.848 8.025 0 5.144-4.115 7.408-9.671 7.408-4.115 0-8.024-1.235-9.67-2.058z" fill-rule="nonzero"/><path d="m367.695 1.852v10.905h-33.333v17.078h28.395v11.112h-28.395v15.637h33.951v10.906h-47.12v-65.638z" fill-rule="nonzero"/><path d="m418.93 16.255c0 5.556-3.292 11.729-10.7 16.255l11.317 13.169s2.264-4.115 2.264-9.465h9.876c-.206 10.082-4.938 17.901-4.938 17.901l12.14 13.992h-14.609l-4.938-5.761c-4.527 3.909-10.494 6.173-17.284 6.173-12.346 0-23.457-7.202-23.457-20.782 0-8.848 5.761-14.404 11.728-18.519-3.292-4.321-5.761-7.202-5.761-12.963 0-11.317 9.465-15.638 16.872-15.638 7.408 0 17.49 4.321 17.49 15.638zm-28.189 31.276c0 6.173 4.526 10.082 11.728 10.082 3.704 0 6.996-1.029 9.671-3.292l-14.403-16.667c-4.116 2.264-6.996 5.35-6.996 9.877zm5.967-30.659c0 3.293 2.057 5.144 4.321 7.614 3.704-1.646 6.378-4.527 6.378-7.819 0-3.91-2.674-5.35-5.349-5.35-3.498 0-5.35 2.263-5.35 5.555z" fill-rule="nonzero"/><path d="m479.424 1.852c11.111 0 20.164 9.259 20.164 20.988 0 12.551-9.053 21.399-19.958 21.399h-15.844v23.456h-13.169v-65.843zm-15.638 31.276h13.169c6.173 0 9.671-4.527 9.671-10.288 0-7.202-5.556-9.877-10.7-9.877h-12.14z" fill-rule="nonzero"/><path d="m220.165.617c-74.898 11.317-167.902 39.301-167.902 78.601 0 36.42 86.009 27.161 86.009 27.161s-137.86 45.884-137.86-14.404c0-68.312 173.868-91.358 219.753-91.358z" fill-rule="nonzero"/></g><path d="m34.979 151.235c74.898-11.112 167.902-39.301 167.902-78.601 0-36.42-86.009-27.161-86.009-27.161s137.861-45.885 137.861 14.404c0 68.518-173.869 91.358-219.754 91.358z" fill="#f8c62f" fill-rule="nonzero"/><path d="m124.897 70.576-26.337 8.231 25.103 1.646-.823-4.939z" fill="#0084d4" fill-rule="nonzero"/><path d="m156.173 72.428-18.93 5.967-7.202 19.959-3.498-23.251 8.231-22.017 3.498 16.256z" fill="#f8c62f" fill-rule="nonzero"/></svg>
|
||||||
|
After Width: | Height: | Size: 4.0 KiB |
@@ -21,6 +21,7 @@
|
|||||||
<symbol id="icon-download" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3" /></symbol>
|
<symbol id="icon-download" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3" /></symbol>
|
||||||
<symbol id="icon-sort" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" /></symbol>
|
<symbol id="icon-sort" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9" /></symbol>
|
||||||
<symbol id="icon-arrow-left" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 12h-15m0 0l6.75 6.75M4.5 12l6.75-6.75" /></symbol>
|
<symbol id="icon-arrow-left" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 12h-15m0 0l6.75 6.75M4.5 12l6.75-6.75" /></symbol>
|
||||||
|
<symbol id="icon-chevron-down" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></symbol>
|
||||||
<symbol id="icon-arrow-right" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75" /></symbol>
|
<symbol id="icon-arrow-right" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12h15m0 0l-6.75-6.75M19.5 12l-6.75 6.75" /></symbol>
|
||||||
<symbol id="icon-document" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></symbol>
|
<symbol id="icon-document" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z" /></symbol>
|
||||||
<symbol id="icon-filter" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z" /></symbol>
|
<symbol id="icon-filter" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z" /></symbol>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.6 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 700 490" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><mask id="a"><image height="490" transform="matrix(.00288044 .00008847 .00008847 -.00288044 -.5862 .835135)" width="700" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAHqCAAAAADD7sLoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGsElEQVR4nO3dQW7bRgBA0SHTm/VGvWCPVQRIqy4cSVHkBKRlmvzWewsDjClybPxMZiJZnk4Dmua9BwBvJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXrD/2HsDDTt8+5j7Tp7jFytv8u90o3kE/3r//XHzqfP4wzXdH03Q+msYY8/lofDn/0TT9eDRP46WC6f4xrxxdHvzaCTe3H/PN7W9PuB3MK1/O/Wiv15tuTvjVaOfx/dR5GuOfvxZ/b/dg2UCWeMkSL1niPZiVm7Zp3WOWnflBG8eH9Tds7+kt5Sw78737upy5xYXHZX93bGZessRLlnjJsub92YrlKfsy85IlXrLES5Z4f2/nBbD19+/YsP3ayucg3v3Zq+2eMll34cMy85IlXrLES9bTrXlXLE+3HcPCU8fuoz0uMy9Z4iVLvGSJd6m918n73v6Qnm7D9iZHKGeLTd4Rvq4HmHnJEi9Z4iXrmde8B3jhy3aLziOMYWtm3t35b4y3Ei9Z4iVLvGQ984ZtjOSrtoJD3oiZlyzxkiVesp59zXuxyZuQLj917ZtMbXLh2krazLulVg2t0Q7xEiZessRLlg3b1rbZCTLMvISJlyzxkiXeBx3hZyE2u+bBF+E2bHcO8JPjOz/dV3nhmpmXLPGSJV6ynmXNu/KXTG/3+6i38Kzv92vm/TjbRvNpklxOvGSJl6xnWfOepjHGaXz/cLr8G/vfOP+aivNqcJrHuK4Nbz/38nd9/vHo+rnp/jHXS033J9xe4XqZMcZ8c/TQ+F45GsvGN43xdfk3eA/PEu9Ls2O85MqnYNlAlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVesv4HAfsUn4ytnvgAAAAASUVORK5CYII="/></mask><linearGradient id="b" gradientTransform="matrix(346.842 10.6534 -10.6534 346.842 194.415 296.129)" gradientUnits="userSpaceOnUse" x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-color="#bcbbba"/><stop offset="1" stop-color="#565553"/></linearGradient><linearGradient id="c"><stop offset="0" stop-color="#38a548"/><stop offset=".04" stop-color="#38a548"/><stop offset=".91" stop-color="#a3c639"/><stop offset="1" stop-color="#a3c639"/></linearGradient><linearGradient id="d" gradientUnits="userSpaceOnUse" x1="27.6449" x2="329.4659" xlink:href="#c" y1="294.368" y2="294.368"/><linearGradient id="e" gradientUnits="userSpaceOnUse" x1="446.802" x2="605.544" xlink:href="#c" y1="267.649" y2="267.649"/><linearGradient id="f" gradientTransform="matrix(170.152 5.22629 -5.22629 170.152 451.782 264.535)" gradientUnits="userSpaceOnUse" x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-color="#118ece"/><stop offset=".04" stop-color="#118ece"/><stop offset=".91" stop-color="#184050"/><stop offset="1" stop-color="#184050"/></linearGradient><g mask="url(#a)"><path d="m194.119 305.842c82.487-5.378 144.251 2.12 145.365 2.304 103.692 17.276 164.073 19.425 201.218 16.582l.165-5.09c-26.441 1.313-62.179-2.767-105.949-8.079-34.114-4.14-128.221-34.151-239.888-35.469z" fill="url(#b)" fill-rule="nonzero"/></g><g fill-rule="nonzero"><path d="m197.896 191.813 65.607-48.765 16.602 4.882 27.895-31.182 35.653 48.047 25.115 9.5 64.998 70.249-69.739-55.007-15.345 5.156-37.617-47.693-17.036 17.035-25.195-4.806-30.27 32.225.755-19.807z" fill="#194050"/><path d="m38.408 306.474c-6.228 20.417-10.765 29.685-10.765 29.685 114.575-92.78 253.335-76.5 301.822-68.124-20.416-6.28-53.109-14.042-93.153-15.321-2.838-.095-5.695-.137-8.575-.137-63.667 0-137.636 22.097-189.329 53.897z" fill="url(#d)"/><path d="m602.405 251.387c-3.773 14.368-15.048 26.054-33.505 34.746-23.254 10.95-65.423 7.092-122.097-11.058 56.626 21.98 99.929 28.75 123.31 19.387 17.943-7.186 29.194-17.413 33.425-30.402 3.003-9.222 2.252-18.934.255-27.32.269 4.797-.095 9.741-1.388 14.647z" fill="url(#e)"/><path d="m605.397 211.094-6.403 4.315c.18.265 18.079 27.414 10.685 52.708-4.169 14.255-15.827 25.648-34.642 33.868-24.444 10.667-68.738 5.138-128.108-16.001-45.857-16.337-84.494-36.357-84.815-36.527-Line truncated
|
||||||
|
After Width: | Height: | Size: 8.4 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg clip-rule="evenodd" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2" viewBox="0 0 700 490" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><mask id="a"><image height="490" transform="matrix(.00288044 .00008847 .00008847 -.00288044 -.5862 .835135)" width="700" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAHqCAAAAADD7sLoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGsElEQVR4nO3dQW7bRgBA0SHTm/VGvWCPVQRIqy4cSVHkBKRlmvzWewsDjClybPxMZiJZnk4Dmua9BwBvJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXLPGSJV6yxEuWeMkSL1niJUu8ZImXrD/2HsDDTt8+5j7Tp7jFytv8u90o3kE/3r//XHzqfP4wzXdH03Q+msYY8/lofDn/0TT9eDRP46WC6f4xrxxdHvzaCTe3H/PN7W9PuB3MK1/O/Wiv15tuTvjVaOfx/dR5GuOfvxZ/b/dg2UCWeMkSL1niPZiVm7Zp3WOWnflBG8eH9Tds7+kt5Sw78737upy5xYXHZX93bGZessRLlnjJsub92YrlKfsy85IlXrLES5Z4f2/nBbD19+/YsP3ayucg3v3Zq+2eMll34cMy85IlXrLES9bTrXlXLE+3HcPCU8fuoz0uMy9Z4iVLvGSJd6m918n73v6Qnm7D9iZHKGeLTd4Rvq4HmHnJEi9Z4iXrmde8B3jhy3aLziOMYWtm3t35b4y3Ei9Z4iVLvGQ984ZtjOSrtoJD3oiZlyzxkiVesp59zXuxyZuQLj917ZtMbXLh2krazLulVg2t0Q7xEiZessRLlg3b1rbZCTLMvISJlyzxkiXeBx3hZyE2u+bBF+E2bHcO8JPjOz/dV3nhmpmXLPGSJV6ynmXNu/KXTG/3+6i38Kzv92vm/TjbRvNpklxOvGSJl6xnWfOepjHGaXz/cLr8G/vfOP+aivNqcJrHuK4Nbz/38nd9/vHo+rnp/jHXS033J9xe4XqZMcZ8c/TQ+F45GsvGN43xdfk3eA/PEu9Ls2O85MqnYNlAlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVessRLlnjJEi9Z4iVLvGSJlyzxkiVesv4HAfsUn4ytnvgAAAAASUVORK5CYII="/></mask><linearGradient id="b" gradientTransform="matrix(346.842 10.6534 -10.6534 346.842 194.415 296.129)" gradientUnits="userSpaceOnUse" x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-color="#bcbbba"/><stop offset="1" stop-color="#565553"/></linearGradient><linearGradient id="c"><stop offset="0" stop-color="#38a548"/><stop offset=".04" stop-color="#38a548"/><stop offset=".91" stop-color="#a3c639"/><stop offset="1" stop-color="#a3c639"/></linearGradient><linearGradient id="d" gradientUnits="userSpaceOnUse" x1="27.6449" x2="329.4659" xlink:href="#c" y1="294.368" y2="294.368"/><linearGradient id="e" gradientUnits="userSpaceOnUse" x1="446.802" x2="605.544" xlink:href="#c" y1="267.649" y2="267.649"/><linearGradient id="f" gradientTransform="matrix(170.152 5.22629 -5.22629 170.152 451.782 264.535)" gradientUnits="userSpaceOnUse" x1="0" x2="1" y1="0" y2="0"><stop offset="0" stop-color="#118ece"/><stop offset=".04" stop-color="#118ece"/><stop offset=".91" stop-color="#184050"/><stop offset="1" stop-color="#184050"/></linearGradient><g mask="url(#a)"><path d="m194.119 305.842c82.487-5.378 144.251 2.12 145.365 2.304 103.692 17.276 164.073 19.425 201.218 16.582l.165-5.09c-26.441 1.313-62.179-2.767-105.949-8.079-34.114-4.14-128.221-34.151-239.888-35.469z" fill="url(#b)" fill-rule="nonzero"/></g><g fill-rule="nonzero"><path d="m197.896 191.813 65.607-48.765 16.602 4.882 27.895-31.182 35.653 48.047 25.115 9.5 64.998 70.249-69.739-55.007-15.345 5.156-37.617-47.693-17.036 17.035-25.195-4.806-30.27 32.225.755-19.807z" fill="#194050"/><path d="m38.408 306.474c-6.228 20.417-10.765 29.685-10.765 29.685 114.575-92.78 253.335-76.5 301.822-68.124-20.416-6.28-53.109-14.042-93.153-15.321-2.838-.095-5.695-.137-8.575-.137-63.667 0-137.636 22.097-189.329 53.897z" fill="url(#d)"/><path d="m602.405 251.387c-3.773 14.368-15.048 26.054-33.505 34.746-23.254 10.95-65.423 7.092-122.097-11.058 56.626 21.98 99.929 28.75 123.31 19.387 17.943-7.186 29.194-17.413 33.425-30.402 3.003-9.222 2.252-18.934.255-27.32.269 4.797-.095 9.741-1.388 14.647z" fill="url(#e)"/><path d="m605.397 211.094-6.403 4.315c.18.265 18.079 27.414 10.685 52.708-4.169 14.255-15.827 25.648-34.642 33.868-24.444 10.667-68.738 5.138-128.108-16.001-45.857-16.337-84.494-36.357-84.815-36.527-Line truncated
|
||||||
|
After Width: | Height: | Size: 9.2 KiB |
@@ -90,7 +90,7 @@ function handleHistoryRestore() {
|
|||||||
function handleTimeout() {
|
function handleTimeout() {
|
||||||
// Don't decrement here — htmx:afterRequest always fires alongside htmx:timeout
|
// Don't decrement here — htmx:afterRequest always fires alongside htmx:timeout
|
||||||
// and handles the counter. This handler only shows the alert.
|
// and handles the counter. This handler only shows the alert.
|
||||||
alert('Die Anfrage hat zu lange gedauert. Bitte versuchen Sie es erneut. Falls das Problem weiterhin besteht, kontaktieren Sie bitte unseren Support.')
|
alert('Die Anfrage hat zu lange gedauert. Bitte versuche es erneut. Falls das Problem weiterhin besteht, kontaktiere bitte unseren Support.')
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleBeforeHistorySave() {
|
function handleBeforeHistorySave() {
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
/* Admin-only additions to ep-design.css, built on its tokens */
|
||||||
|
@layer base {
|
||||||
|
.htmx-indicator {
|
||||||
|
@apply invisible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.htmx-request .htmx-indicator,
|
||||||
|
.htmx-request.htmx-indicator {
|
||||||
|
@apply visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* checked boxes and radios in the brand colour (@tailwindcss/forms fills them with currentColor) */
|
||||||
|
[type="checkbox"],
|
||||||
|
[type="radio"] {
|
||||||
|
@apply text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* thin scrollbars without a track for inner scrolling areas, as in app.css */
|
||||||
|
body * {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: var(--color-line) transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@layer components {
|
||||||
|
.badge {
|
||||||
|
@apply inline-flex items-center px-1.5 py-0.5 text-xs font-bold whitespace-nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tippy-box {
|
||||||
|
@apply bg-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
||||||
|
border-top-color: var(--color-brand);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
||||||
|
border-bottom-color: var(--color-brand);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
||||||
|
border-left-color: var(--color-brand);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
||||||
|
border-right-color: var(--color-brand);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* a list in a card, scrolling sideways when it is wider than the content column */
|
||||||
|
@layer components {
|
||||||
|
.data-table-wrapper {
|
||||||
|
@apply mb-8 overflow-x-auto border border-line bg-white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table-wrapper__inner {
|
||||||
|
@apply min-w-full align-middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table tbody tr {
|
||||||
|
@apply hover:bg-brand-light/50;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
@import "components/button.css";
|
@import "./components/button.css";
|
||||||
@import "components/forms.css";
|
@import "./components/forms.css";
|
||||||
@import "components/gallery.css";
|
@import "./components/gallery.css";
|
||||||
@import "components/pagination.css";
|
@import "./components/pagination.css";
|
||||||
@import "components/price_calendar.css";
|
@import "./components/price_calendar.css";
|
||||||
@import "components/toast.css";
|
@import "./components/toast.css";
|
||||||
@import "components/tooltip.css";
|
@import "./components/tooltip.css";
|
||||||
@import "components/typography.css";
|
@import "./components/typography.css";
|
||||||
@import "components/rte-content.css";
|
@import "./components/rte-content.css";
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
@import "components/autocomplete.css";
|
|
||||||
@import "components/badge.css";
|
|
||||||
@import "components/button.css";
|
|
||||||
@import "components/datatable.css";
|
|
||||||
@import "components/datepicker.css";
|
|
||||||
@import "components/forms.css";
|
|
||||||
@import "components/pagination.css";
|
|
||||||
@import "components/toast.css";
|
|
||||||
@import "components/tooltip.css";
|
|
||||||
@import "components/typography.css";
|
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
/* Shared by app.css and admin.css, imported right after tailwindcss */
|
||||||
|
@source "../../templates";
|
||||||
|
@source "../../src";
|
||||||
|
@source "../../assets";
|
||||||
|
@source inline("rotate-90");
|
||||||
|
|
||||||
|
@plugin "@tailwindcss/forms";
|
||||||
|
|
||||||
|
@theme {
|
||||||
|
--font-sans: Lato, sans-serif;
|
||||||
|
|
||||||
|
--color-primary: #3d8ccb;
|
||||||
|
--color-secondary: #f9c700;
|
||||||
|
--color-primary-bg: #ebf3fa;
|
||||||
|
--color-primary-light: #0070e0;
|
||||||
|
--color-primary-medium: #165883;
|
||||||
|
--color-primary-dark: #18527b;
|
||||||
|
--color-pink: #fa1a8c;
|
||||||
|
|
||||||
|
--color-sbw-primary: #B3820F;
|
||||||
|
--color-sbw-secondary: #E91C26;
|
||||||
|
--color-sbw-primary-dark: #8D7207;
|
||||||
|
--color-sbw-overlay: #c20000;
|
||||||
|
|
||||||
|
--color-snz-primary: #82c3c6;
|
||||||
|
--color-snz-secondary: #f9c33d;
|
||||||
|
--color-snz-primary-dark: #82c3c6;
|
||||||
|
|
||||||
|
--color-ser-primary: #006fb6;
|
||||||
|
--color-ser-secondary: #DE2C1B;
|
||||||
|
--color-ser-primary-light: #04A4CC;
|
||||||
|
|
||||||
|
--background-image-badge-gradient: linear-gradient(120deg, rgba(150,1,103,1) 0%, rgba(158,3,106,1) 40%, rgba(250,26,140,1) 100%);
|
||||||
|
--background-image-brand-gradient: linear-gradient(to top right, #009fff, #165883, #18527b);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Tailwind 3 defaults that Tailwind 4 changed: borders were gray-200 instead of currentColor,
|
||||||
|
* and buttons had a pointer cursor.
|
||||||
|
*/
|
||||||
|
@layer base {
|
||||||
|
*,
|
||||||
|
::after,
|
||||||
|
::before,
|
||||||
|
::backdrop,
|
||||||
|
::file-selector-button {
|
||||||
|
border-color: var(--color-gray-200, currentcolor);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:not(:disabled),
|
||||||
|
[role="button"]:not(:disabled) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Thin scrollbars without a track for inner scrolling areas. The page scrollbar takes its
|
||||||
|
* style from <html>, which body * leaves out. Firefox and Chrome/Edge 121+ honour these;
|
||||||
|
* Safari keeps its own overlay scrollbars.
|
||||||
|
*/
|
||||||
|
@layer base {
|
||||||
|
body * {
|
||||||
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: var(--color-gray-300) transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
/* Reserve the scrollbar gutter so content does not shift width when a
|
||||||
|
scrollbar appears (e.g. when a collapsible section is opened). */
|
||||||
|
@utility scroll-stable {
|
||||||
|
scrollbar-gutter: stable;
|
||||||
|
}
|
||||||
@@ -1,7 +1,12 @@
|
|||||||
@import "tailwindcss/base";
|
/* The admin in the E&P corporate design; shares nothing with app.css, so the frontend stays as it is */
|
||||||
@import "_base.css";
|
@import "tailwindcss" source(none);
|
||||||
|
@import "toastify-js/src/toastify.css" layer(base);
|
||||||
|
@import "tippy.js/dist/tippy.css" layer(base);
|
||||||
|
@import "./ep-design.css";
|
||||||
|
@import "./_admin.css";
|
||||||
|
|
||||||
@import "tailwindcss/components";
|
@source "../../templates";
|
||||||
@import "_components_admin.css";
|
@source "../../src";
|
||||||
|
@source "../../assets";
|
||||||
|
|
||||||
@import "tailwindcss/utilities";
|
@plugin "@tailwindcss/forms";
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
@import "tailwindcss/base";
|
@import "tailwindcss" source(none);
|
||||||
@import "_base.css";
|
@import "./_theme.css";
|
||||||
|
@import "./_base.css" layer(base);
|
||||||
@import "tailwindcss/components";
|
@import "./_components.css" layer(components);
|
||||||
@import "_components.css";
|
@import "./_utilities.css";
|
||||||
|
|
||||||
@import "tailwindcss/utilities";
|
|
||||||
@@ -1,16 +1,22 @@
|
|||||||
.button {
|
.button {
|
||||||
@apply inline-flex items-center justify-center space-x-2 h-8 leading-8 md:h-10 md:leading-10 px-4 md:px-8 cursor-pointer;
|
/* Same box as the @tailwindcss/forms inputs (1px border, py-2, 24px line), so a button lines up with a field beside it.
|
||||||
@apply uppercase leading-none text-center text-sm md:text-base;
|
The line height is set with each font size (text-sm/6), because text-sm's own line height would override a plain leading-6. */
|
||||||
@apply transition-colors outline-none focus:outline-2 focus:outline-offset-2 focus:outline-primary-dark;
|
@apply inline-flex items-center justify-center space-x-2 px-4 md:px-8 py-2 border border-transparent bg-origin-border cursor-pointer;
|
||||||
|
@apply uppercase text-center text-sm/6 md:text-base/6;
|
||||||
|
@apply transition-colors outline-hidden focus:outline-2 focus:outline-offset-2 focus:outline-primary-dark;
|
||||||
@apply rounded-md;
|
@apply rounded-md;
|
||||||
|
/* At least one line tall even when the content is only a smaller icon: line + padding + border */
|
||||||
|
min-height: calc(1lh + 2 * --spacing(2) + 2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button--small {
|
.button--small {
|
||||||
@apply px-2 py-1 md:px-4 text-xs sm:text-sm;
|
@apply px-2 py-1 md:px-4 text-xs/6 sm:text-sm/6;
|
||||||
|
min-height: calc(1lh + 2 * --spacing(1) + 2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button--primary {
|
.button--primary {
|
||||||
background: linear-gradient(120deg, #960167 0%, #9e036a 40%, #fa1a8c 100%);
|
/* Only the image: the background shorthand would reset .button's background-origin */
|
||||||
|
background-image: linear-gradient(120deg, #960167 0%, #9e036a 40%, #fa1a8c 100%);
|
||||||
@apply text-white;
|
@apply text-white;
|
||||||
@apply hover:bg-none hover:bg-pink/80;
|
@apply hover:bg-none hover:bg-pink/80;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@
|
|||||||
|
|
||||||
[data-vc-theme=light] .vc-date[data-vc-date-selected] .vc-date__btn,
|
[data-vc-theme=light] .vc-date[data-vc-date-selected] .vc-date__btn,
|
||||||
[data-vc-theme=light] .vc-date[data-vc-date-selected] .vc-date__btn:hover {
|
[data-vc-theme=light] .vc-date[data-vc-date-selected] .vc-date__btn:hover {
|
||||||
background-color: theme('colors.secondary');
|
background-color: var(--color-secondary);
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
.pc-day {
|
.pc-day {
|
||||||
@apply relative w-full text-center py-1 px-0.5 text-sm leading-tight rounded text-white cursor-pointer;
|
@apply relative w-full text-center py-1 px-0.5 text-sm leading-tight rounded-sm text-white cursor-pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pc-day--out-of-month {
|
.pc-day--out-of-month {
|
||||||
@@ -11,11 +11,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.pc-day[data-status="blocked-to-ok"] {
|
.pc-day[data-status="blocked-to-ok"] {
|
||||||
background: linear-gradient(to bottom right, theme('colors.gray.400') 50%, theme('colors.emerald.500') 50%);
|
background: linear-gradient(to bottom right, var(--color-gray-400) 50%, var(--color-emerald-500) 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pc-day[data-status="checkout-only"] {
|
.pc-day[data-status="checkout-only"] {
|
||||||
background: linear-gradient(to bottom right, theme('colors.emerald.500') 50%, theme('colors.gray.400') 50%);
|
background: linear-gradient(to bottom right, var(--color-emerald-500) 50%, var(--color-gray-400) 50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.pc-day[data-status="past"] {
|
.pc-day[data-status="past"] {
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
.pc-day.pc-day--pending-start,
|
.pc-day.pc-day--pending-start,
|
||||||
.pc-day.pc-day--selected-start,
|
.pc-day.pc-day--selected-start,
|
||||||
.pc-day.pc-day--selected-end {
|
.pc-day.pc-day--selected-end {
|
||||||
@apply bg-none outline-none bg-secondary text-gray-700;
|
@apply bg-none outline-hidden bg-secondary text-gray-700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pc-day.pc-day--in-range {
|
.pc-day.pc-day--in-range {
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
@import "toastify-js/src/toastify.css";
|
@import "toastify-js/src/toastify.css";
|
||||||
|
|
||||||
.toastify {
|
.toastify {
|
||||||
@apply shadow-lg rounded;
|
@apply shadow-lg rounded-sm;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toastify--success {
|
.toastify--success {
|
||||||
@apply text-gray-100;
|
@apply text-gray-100;
|
||||||
background: theme('colors.emerald.600');
|
background: var(--color-emerald-600);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toastify--warning {
|
.toastify--warning {
|
||||||
@apply text-gray-100;
|
@apply text-gray-100;
|
||||||
background: theme('colors.red.600');
|
background: var(--color-red-600);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toastify--error {
|
.toastify--error {
|
||||||
@apply text-gray-100;
|
@apply text-gray-100;
|
||||||
background: theme('colors.red.700');
|
background: var(--color-red-700);
|
||||||
}
|
}
|
||||||
|
|
||||||
.toastify--info {
|
.toastify--info {
|
||||||
@apply text-gray-100;
|
@apply text-gray-100;
|
||||||
background: theme('colors.primary');
|
background: var(--color-primary);
|
||||||
}
|
}
|
||||||
@@ -1,71 +1,71 @@
|
|||||||
@import "tippy.js/dist/tippy.css";
|
@import "tippy.js/dist/tippy.css";
|
||||||
|
|
||||||
.tippy-box {
|
.tippy-box {
|
||||||
background-color: theme('colors.primary');
|
background-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
||||||
border-top-color: theme('colors.primary');
|
border-top-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
||||||
border-bottom-color: theme('colors.primary');
|
border-bottom-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
||||||
border-left-color: theme('colors.primary');
|
border-left-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
||||||
border-right-color: theme('colors.primary');
|
border-right-color: var(--color-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sbw {
|
.sbw {
|
||||||
.tippy-box {
|
.tippy-box {
|
||||||
background-color: theme('colors.sbw.secondary');
|
background-color: var(--color-sbw-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
||||||
border-top-color: theme('colors.sbw.secondary');
|
border-top-color: var(--color-sbw-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
||||||
border-bottom-color: theme('colors.sbw.secondary');
|
border-bottom-color: var(--color-sbw-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
||||||
border-left-color: theme('colors.sbw.secondary');
|
border-left-color: var(--color-sbw-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
||||||
border-right-color: theme('colors.sbw.secondary');
|
border-right-color: var(--color-sbw-secondary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.snz {
|
.snz {
|
||||||
.tippy-box {
|
.tippy-box {
|
||||||
background-color: theme('colors.snz.primary-dark');
|
background-color: var(--color-snz-primary-dark);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
||||||
border-top-color: theme('colors.snz.primary-dark');
|
border-top-color: var(--color-snz-primary-dark);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
||||||
border-bottom-color: theme('colors.snz.primary-dark');
|
border-bottom-color: var(--color-snz-primary-dark);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
||||||
border-left-color: theme('colors.snz.primary-dark');
|
border-left-color: var(--color-snz-primary-dark);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
||||||
border-right-color: theme('colors.snz.primary-dark');
|
border-right-color: var(--color-snz-primary-dark);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ser {
|
.ser {
|
||||||
.tippy-box {
|
.tippy-box {
|
||||||
background-color: theme('colors.ser.secondary');
|
background-color: var(--color-ser-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
||||||
border-top-color: theme('colors.ser.secondary');
|
border-top-color: var(--color-ser-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
||||||
border-bottom-color: theme('colors.ser.secondary');
|
border-bottom-color: var(--color-ser-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
||||||
border-left-color: theme('colors.ser.secondary');
|
border-left-color: var(--color-ser-secondary);
|
||||||
}
|
}
|
||||||
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
||||||
border-right-color: theme('colors.ser.secondary');
|
border-right-color: var(--color-ser-secondary);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,377 @@
|
|||||||
|
/*
|
||||||
|
* E&P corporate design for the internal Symfony tools, taken from the E&P apps template (Gitea EP/apps,
|
||||||
|
* frontend/app/globals.css, frontend/components/): Lato, deep blue as the brand colour, magenta only
|
||||||
|
* for the one main action of a page, square shapes, light blue page.
|
||||||
|
* Status colours (green, red, amber) always come with text, never alone.
|
||||||
|
*
|
||||||
|
* Import after Tailwind: @import "tailwindcss"; @import "./ep-design.css"; @plugin "@tailwindcss/forms";
|
||||||
|
* The toast styles expect toastify-js, imported into the base layer before this file:
|
||||||
|
* @import "toastify-js/src/toastify.css" layer(base); unlayered (or through its own <link>), its
|
||||||
|
* colours and gradient beat these layered styles whatever their specificity.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Lato (OFL) ships with the app, so browsers load nothing from Google: 400 (and italic), 700, 900. No 600:
|
||||||
|
* font-semibold renders as 700, like font-bold; font-black is 900. The weights are not remapped.
|
||||||
|
*/
|
||||||
|
@font-face {
|
||||||
|
font-family: "Lato";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("../fonts/lato-400.woff2") format("woff2");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Lato";
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 400;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("../fonts/lato-400-italic.woff2") format("woff2");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Lato";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 700;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("../fonts/lato-700.woff2") format("woff2");
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: "Lato";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 900;
|
||||||
|
font-display: swap;
|
||||||
|
src: url("../fonts/lato-900.woff2") format("woff2");
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme {
|
||||||
|
--font-sans: "Lato", ui-sans-serif, system-ui, sans-serif;
|
||||||
|
|
||||||
|
/* square everywhere; rounded-full stays round. Plain `rounded` reads --radius. */
|
||||||
|
--radius: 0px;
|
||||||
|
--radius-xs: 0px;
|
||||||
|
--radius-sm: 0px;
|
||||||
|
--radius-md: 0px;
|
||||||
|
--radius-lg: 0px;
|
||||||
|
--radius-xl: 0px;
|
||||||
|
--radius-2xl: 0px;
|
||||||
|
--radius-3xl: 0px;
|
||||||
|
--radius-4xl: 0px;
|
||||||
|
|
||||||
|
--color-brand: #18527b; /* E&P deep blue, 8.5:1 on white */
|
||||||
|
--color-brand-dark: #103c5b;
|
||||||
|
--color-brand-mid: #165883;
|
||||||
|
--color-brand-bright: #009fff; /* underlines and focus, never text */
|
||||||
|
--color-brand-light: #e3eef8;
|
||||||
|
|
||||||
|
--color-page: #ebf3fa; /* page background */
|
||||||
|
--color-line: #d8e3ed; /* borders */
|
||||||
|
--color-ink: #27272a; /* text */
|
||||||
|
--color-muted: #52525b; /* secondary text, 7.7:1 on white */
|
||||||
|
|
||||||
|
--color-accent: #c4097c; /* magenta of the main action */
|
||||||
|
--color-accent-from: #960167;
|
||||||
|
--color-accent-to: #fa1a8c;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Tailwind 3 defaults that Tailwind 4 changed: borders were a light gray instead of currentColor,
|
||||||
|
* and buttons had a pointer cursor.
|
||||||
|
*/
|
||||||
|
@layer base {
|
||||||
|
*,
|
||||||
|
::after,
|
||||||
|
::before,
|
||||||
|
::backdrop,
|
||||||
|
::file-selector-button {
|
||||||
|
border-color: var(--color-line, currentcolor);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:not(:disabled),
|
||||||
|
[role="button"]:not(:disabled) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* text size of every E&P app: 14px; text-base (16px) and up only for headings */
|
||||||
|
body {
|
||||||
|
font-size: var(--text-sm);
|
||||||
|
line-height: var(--text-sm--line-height);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* modals: centred (Preflight resets the browser's margin: auto), the page behind dimmed and blurred */
|
||||||
|
dialog:modal {
|
||||||
|
margin: auto;
|
||||||
|
max-height: 85vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
dialog::backdrop {
|
||||||
|
background: rgb(39 39 42 / 0.35);
|
||||||
|
backdrop-filter: blur(3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* visible keyboard focus everywhere (WCAG 2.4.7) */
|
||||||
|
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
|
||||||
|
outline: 3px solid var(--color-brand-bright);
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Components as in the apps template (frontend/components/ui.ts, Field.tsx, Alert.tsx). Magenta
|
||||||
|
* only for the one main action of a page.
|
||||||
|
*/
|
||||||
|
@layer components {
|
||||||
|
.btn,
|
||||||
|
.btn-primary,
|
||||||
|
.btn-secondary {
|
||||||
|
@apply inline-flex items-center justify-center gap-2 px-4 py-2.5 text-xs font-bold uppercase tracking-wide no-underline transition-colors disabled:cursor-not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary {
|
||||||
|
@apply text-white;
|
||||||
|
background-image: linear-gradient(120deg, var(--color-accent-from), #9e036a 40%, var(--color-accent-to));
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:hover {
|
||||||
|
background-image: linear-gradient(120deg, #7d0156, #8a035d 40%, #e3107c);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-primary:disabled {
|
||||||
|
background-image: none;
|
||||||
|
background-color: #64748b;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary {
|
||||||
|
@apply border border-brand bg-white text-brand hover:bg-brand hover:text-white;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* small actions in toolbars and on cards, next to the one main action */
|
||||||
|
.btn-tool {
|
||||||
|
@apply inline-flex items-center gap-1 rounded border border-line bg-white px-2 py-1 text-sm text-ink hover:border-brand hover:text-brand disabled:cursor-default disabled:border-line disabled:text-gray-400;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* the "⋯" behind which the actions of a card or row wait (menu_controller.js); finger-sized on touch screens */
|
||||||
|
.btn-more {
|
||||||
|
@apply inline-flex h-6 w-6 pointer-coarse:h-10 pointer-coarse:w-10 shrink-0 items-center justify-center rounded text-muted hover:bg-page hover:text-brand aria-expanded:bg-page aria-expanded:text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-panel {
|
||||||
|
@apply fixed z-40 min-w-48 border border-line bg-white py-1 text-sm shadow-lg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item {
|
||||||
|
@apply block w-full px-3 py-1.5 pointer-coarse:py-3 text-left text-ink no-underline hover:bg-page hover:text-brand focus:bg-page;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-item-danger {
|
||||||
|
@apply block w-full px-3 py-1.5 pointer-coarse:py-3 text-left text-red-800 hover:bg-page hover:text-red-900 focus:bg-page;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input {
|
||||||
|
@apply block w-full border border-slate-500 bg-white px-3 py-2 text-sm text-slate-900 placeholder:text-slate-500 focus:border-brand-bright aria-[invalid=true]:border-red-700 aria-[invalid=true]:ring-1 aria-[invalid=true]:ring-red-700 disabled:bg-slate-100 disabled:text-slate-600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-label {
|
||||||
|
@apply block text-xs font-bold uppercase tracking-wide text-slate-700;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* white box on the light blue page */
|
||||||
|
.card {
|
||||||
|
@apply border border-line bg-white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
@apply text-base font-bold uppercase tracking-wide text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* a row of tabs; the base line is an inset shadow, so a row that scrolls sideways doesn't scroll vertically too */
|
||||||
|
.tabs {
|
||||||
|
@apply flex overflow-x-auto shadow-[inset_0_-1px_0_var(--color-line)];
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab {
|
||||||
|
@apply shrink-0 whitespace-nowrap border-b-4 border-transparent px-3 py-2 text-sm text-ink no-underline hover:text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tab[aria-current],
|
||||||
|
.tab[aria-selected="true"] {
|
||||||
|
@apply border-brand-bright font-bold text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* the main views as tabs in the header (_partials/_header.html.twig), for apps with few views */
|
||||||
|
.header-tab {
|
||||||
|
@apply flex items-center whitespace-nowrap border-b-4 border-transparent px-3 text-ink no-underline hover:text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-tab[aria-current] {
|
||||||
|
@apply border-brand-bright font-bold text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sidebar navigation for apps with many views (_partials/_sidebar_menu.html.twig): on the light
|
||||||
|
* blue page, the current item is a white box.
|
||||||
|
*/
|
||||||
|
.sidebar-heading {
|
||||||
|
@apply px-2 pt-5 pb-1 text-[11px] font-bold uppercase tracking-wide text-muted;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-link {
|
||||||
|
@apply flex w-full items-center gap-x-3 p-2 text-left text-sm leading-6 font-bold text-ink no-underline hover:bg-white/60 hover:text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-sublink {
|
||||||
|
@apply block py-2 pr-2 pl-10 text-sm leading-6 text-ink no-underline hover:bg-white/60 hover:text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
:is(.sidebar-link, .sidebar-sublink)[aria-current],
|
||||||
|
.sidebar-link--ancestor {
|
||||||
|
@apply bg-white text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-group > summary {
|
||||||
|
@apply list-none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-group > summary::-webkit-details-marker {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* chevron of a group that opens in place */
|
||||||
|
.sidebar-group > summary::after {
|
||||||
|
@apply ml-auto size-2 shrink-0 rotate-45 border-r-2 border-b-2 border-current opacity-60 transition-transform content-[''];
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-group[open] > summary::after {
|
||||||
|
@apply -rotate-135;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* the navigation (sidebar or header tabs) as a drawer from the left on small screens (drawer_controller.js) */
|
||||||
|
dialog.drawer {
|
||||||
|
@apply m-0 h-dvh max-h-none w-80 max-w-[calc(100vw-4rem)] bg-page p-0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* a modal dialog doesn't stop the page behind it from scrolling: on touch screens the page took the
|
||||||
|
* gesture first, and a long navigation in the drawer only scrolled once the page was at its end.
|
||||||
|
* Only for the drawer: locking for every dialog:modal would hide the page's scrollbar under a
|
||||||
|
* desktop modal and shift the layout sideways.
|
||||||
|
*/
|
||||||
|
html:has(dialog.drawer:modal) {
|
||||||
|
@apply overflow-hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* lists in a card: the outer cells line up with the card's padding */
|
||||||
|
.data-table {
|
||||||
|
@apply w-full;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table thead tr {
|
||||||
|
@apply border-b-2 border-brand text-left text-[11px] font-bold uppercase tracking-wide text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table th {
|
||||||
|
@apply px-2 py-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table td {
|
||||||
|
@apply px-2 py-1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table :is(th, td):first-child {
|
||||||
|
@apply pl-5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table :is(th, td):last-child {
|
||||||
|
@apply pr-5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.data-table tbody tr {
|
||||||
|
@apply border-b last:border-b-0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Lists of entries in a card, as on a dashboard (components/dashboard/): one line per entry, the
|
||||||
|
* whole line is the link or button, its parts separated by a dot, the text cut off with "…".
|
||||||
|
*/
|
||||||
|
.entry-list {
|
||||||
|
@apply divide-y divide-line;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-list > li {
|
||||||
|
@apply py-2 first:pt-0 last:pb-0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* a work queue that would otherwise grow the card without limit; keep it rare, it scrolls awkwardly on phones */
|
||||||
|
.entry-list--scroll {
|
||||||
|
@apply max-h-64 overflow-y-auto pr-3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-link {
|
||||||
|
@apply flex w-full min-w-0 items-center gap-1.5 text-left text-ink no-underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
:is(a, button).entry-link {
|
||||||
|
@apply hover:text-brand;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-link > * {
|
||||||
|
@apply shrink-0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* the text after the icon: one line, cut off as a whole with "…" */
|
||||||
|
.entry-text {
|
||||||
|
@apply min-w-0 shrink truncate;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* icons and dots inside the text flow with it (Tailwind's preflight makes svg a block) */
|
||||||
|
.entry-text :is(svg, img) {
|
||||||
|
@apply inline-block align-middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.entry-dot {
|
||||||
|
@apply text-muted;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* notices (_partials/_alert.html.twig): light, with a coloured bar on the left */
|
||||||
|
.notice {
|
||||||
|
@apply border-l-4 px-4 py-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* toasts (toast_controller.js) in the colours of the notices */
|
||||||
|
.toastify {
|
||||||
|
@apply max-w-sm rounded-none border-l-4 bg-none px-4 py-3 text-sm shadow-lg;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toastify--success {
|
||||||
|
@apply border-emerald-700 bg-emerald-50 text-emerald-950;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toastify--error {
|
||||||
|
@apply border-red-700 bg-red-50 text-red-950;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toastify--warning {
|
||||||
|
@apply border-amber-600 bg-amber-50 text-amber-950;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toastify--info {
|
||||||
|
@apply border-brand bg-brand-light text-ink;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toastify .toast-close {
|
||||||
|
@apply ml-3 text-current opacity-60 hover:opacity-100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
|
animation-duration: 0.01ms !important;
|
||||||
|
animation-iteration-count: 1 !important;
|
||||||
|
transition-duration: 0.01ms !important;
|
||||||
|
scroll-behavior: auto !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 131 KiB |
|
After Width: | Height: | Size: 176 KiB |
|
After Width: | Height: | Size: 134 KiB |
@@ -0,0 +1,4 @@
|
|||||||
|
### list custom fields
|
||||||
|
GET {{clickup_baseurl}}/list/{{clickup_list_id}}/field?include_applied_objects=true
|
||||||
|
Authorization: {{clickup_api_token}}
|
||||||
|
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=8.1",
|
"php": ">=8.5",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
@@ -14,53 +14,57 @@
|
|||||||
"doctrine/doctrine-bundle": "^2.13",
|
"doctrine/doctrine-bundle": "^2.13",
|
||||||
"doctrine/doctrine-migrations-bundle": "^3.3",
|
"doctrine/doctrine-migrations-bundle": "^3.3",
|
||||||
"doctrine/orm": "^3.3",
|
"doctrine/orm": "^3.3",
|
||||||
|
"dompdf/dompdf": "^3.1",
|
||||||
"fakerphp/faker": "^1.24",
|
"fakerphp/faker": "^1.24",
|
||||||
"flagception/flagception-bundle": "^6.1",
|
"flagception/flagception-bundle": "^6.1",
|
||||||
"knplabs/knp-menu-bundle": "^3.7",
|
"knplabs/knp-menu-bundle": "^3.7",
|
||||||
"knplabs/knp-paginator-bundle": "^6.10",
|
"knplabs/knp-paginator-bundle": "^6.10",
|
||||||
"league/flysystem-bundle": "^3.4",
|
"league/flysystem-bundle": "^3.4",
|
||||||
"league/flysystem-sftp-v3": "^3.29",
|
"league/flysystem-sftp-v3": "^3.29",
|
||||||
|
"league/html-to-markdown": "^5.1",
|
||||||
"league/oauth2-server-bundle": "^1.0",
|
"league/oauth2-server-bundle": "^1.0",
|
||||||
"nelexa/zip": "^4.0",
|
"maennchen/zipstream-php": "^3.2",
|
||||||
"nesbot/carbon": "^3.8",
|
"nesbot/carbon": "^3.8",
|
||||||
"phpdocumentor/reflection-docblock": "^5.6",
|
"phpdocumentor/reflection-docblock": "^5.6",
|
||||||
"phpoffice/phpspreadsheet": "^5.4",
|
"phpoffice/phpspreadsheet": "^5.4",
|
||||||
"phpstan/phpdoc-parser": "^2.0",
|
"phpstan/phpdoc-parser": "^2.0",
|
||||||
"spatie/crypto": "^2.1",
|
"spatie/crypto": "^2.1",
|
||||||
"symfony/apache-pack": "^1.0",
|
"symfony/apache-pack": "^1.0",
|
||||||
"symfony/asset": "6.4.*",
|
"symfony/asset": "7.4.*",
|
||||||
"symfony/console": "6.4.*",
|
"symfony/console": "7.4.*",
|
||||||
"symfony/doctrine-messenger": "6.4.*",
|
"symfony/doctrine-messenger": "7.4.*",
|
||||||
"symfony/dom-crawler": "6.4.*",
|
"symfony/dom-crawler": "7.4.*",
|
||||||
"symfony/dotenv": "6.4.*",
|
"symfony/dotenv": "7.4.*",
|
||||||
"symfony/expression-language": "6.4.*",
|
"symfony/expression-language": "7.4.*",
|
||||||
"symfony/flex": "^2",
|
"symfony/flex": "^2",
|
||||||
"symfony/form": "6.4.*",
|
"symfony/form": "7.4.*",
|
||||||
"symfony/framework-bundle": "6.4.*",
|
"symfony/framework-bundle": "7.4.*",
|
||||||
"symfony/html-sanitizer": "6.4.*",
|
"symfony/html-sanitizer": "7.4.*",
|
||||||
"symfony/http-client": "6.4.*",
|
"symfony/http-client": "7.4.*",
|
||||||
"symfony/intl": "6.4.*",
|
"symfony/intl": "7.4.*",
|
||||||
"symfony/lock": "6.4.*",
|
"symfony/lock": "7.4.*",
|
||||||
"symfony/mailer": "6.4.*",
|
"symfony/mailer": "7.4.*",
|
||||||
"symfony/mime": "6.4.*",
|
"symfony/mcp-bundle": "^0.14.1",
|
||||||
|
"symfony/mime": "7.4.*",
|
||||||
"symfony/monolog-bundle": "^3.0",
|
"symfony/monolog-bundle": "^3.0",
|
||||||
"symfony/notifier": "6.4.*",
|
"symfony/notifier": "7.4.*",
|
||||||
"symfony/process": "6.4.*",
|
"symfony/process": "7.4.*",
|
||||||
"symfony/property-access": "6.4.*",
|
"symfony/property-access": "7.4.*",
|
||||||
"symfony/property-info": "6.4.*",
|
"symfony/property-info": "7.4.*",
|
||||||
"symfony/runtime": "6.4.*",
|
"symfony/rate-limiter": "7.4.*",
|
||||||
"symfony/security-bundle": "6.4.*",
|
"symfony/runtime": "7.4.*",
|
||||||
"symfony/serializer": "6.4.*",
|
"symfony/security-bundle": "7.4.*",
|
||||||
|
"symfony/serializer": "7.4.*",
|
||||||
"symfony/stimulus-bundle": "^2.21",
|
"symfony/stimulus-bundle": "^2.21",
|
||||||
"symfony/string": "6.4.*",
|
"symfony/string": "7.4.*",
|
||||||
"symfony/translation": "6.4.*",
|
"symfony/translation": "7.4.*",
|
||||||
"symfony/twig-bundle": "6.4.*",
|
"symfony/twig-bundle": "7.4.*",
|
||||||
"symfony/uid": "6.4.*",
|
"symfony/uid": "7.4.*",
|
||||||
"symfony/ux-twig-component": "^2.36",
|
"symfony/ux-twig-component": "^2.36",
|
||||||
"symfony/validator": "6.4.*",
|
"symfony/validator": "7.4.*",
|
||||||
"symfony/web-link": "6.4.*",
|
"symfony/web-link": "7.4.*",
|
||||||
"symfony/webpack-encore-bundle": "^2.2",
|
"symfony/webpack-encore-bundle": "^2.2",
|
||||||
"symfony/yaml": "6.4.*",
|
"symfony/yaml": "7.4.*",
|
||||||
"twig/extra-bundle": "^2.12|^3.0",
|
"twig/extra-bundle": "^2.12|^3.0",
|
||||||
"twig/html-extra": "^3.15",
|
"twig/html-extra": "^3.15",
|
||||||
"twig/intl-extra": "*",
|
"twig/intl-extra": "*",
|
||||||
@@ -76,7 +80,7 @@
|
|||||||
},
|
},
|
||||||
"sort-packages": true,
|
"sort-packages": true,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": "8.3.30"
|
"php": "8.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@@ -118,7 +122,7 @@
|
|||||||
"extra": {
|
"extra": {
|
||||||
"symfony": {
|
"symfony": {
|
||||||
"allow-contrib": true,
|
"allow-contrib": true,
|
||||||
"require": "6.4.*",
|
"require": "7.4.*",
|
||||||
"docker": true
|
"docker": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -128,14 +132,14 @@
|
|||||||
"phpstan/phpstan": "^2.1",
|
"phpstan/phpstan": "^2.1",
|
||||||
"phpstan/phpstan-doctrine": "^2.0",
|
"phpstan/phpstan-doctrine": "^2.0",
|
||||||
"phpstan/phpstan-symfony": "^2.0",
|
"phpstan/phpstan-symfony": "^2.0",
|
||||||
"phpunit/phpunit": "^9.5",
|
"phpunit/phpunit": "^12",
|
||||||
"rector/rector": "^2.4",
|
"rector/rector": "^2.4",
|
||||||
"symfony/browser-kit": "6.4.*",
|
"symfony/browser-kit": "7.4.*",
|
||||||
"symfony/css-selector": "6.4.*",
|
"symfony/css-selector": "7.4.*",
|
||||||
"symfony/debug-bundle": "6.4.*",
|
"symfony/debug-bundle": "7.4.*",
|
||||||
"symfony/maker-bundle": "^1.0",
|
"symfony/maker-bundle": "^1.0",
|
||||||
"symfony/phpunit-bridge": "^7.1",
|
"symfony/phpunit-bridge": "^7.4",
|
||||||
"symfony/stopwatch": "6.4.*",
|
"symfony/stopwatch": "7.4.*",
|
||||||
"symfony/web-profiler-bundle": "6.4.*"
|
"symfony/web-profiler-bundle": "7.4.*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -20,4 +20,5 @@ return [
|
|||||||
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
|
Knp\Bundle\MenuBundle\KnpMenuBundle::class => ['all' => true],
|
||||||
Knp\Bundle\PaginatorBundle\KnpPaginatorBundle::class => ['all' => true],
|
Knp\Bundle\PaginatorBundle\KnpPaginatorBundle::class => ['all' => true],
|
||||||
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
|
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
|
||||||
|
Symfony\AI\McpBundle\McpBundle::class => ['all' => true],
|
||||||
];
|
];
|
||||||
@@ -9,8 +9,7 @@ doctrine:
|
|||||||
profiling_collect_backtrace: '%kernel.debug%'
|
profiling_collect_backtrace: '%kernel.debug%'
|
||||||
use_savepoints: true
|
use_savepoints: true
|
||||||
orm:
|
orm:
|
||||||
auto_generate_proxy_classes: true
|
enable_native_lazy_objects: true
|
||||||
enable_lazy_ghost_objects: true
|
|
||||||
validate_xml_mapping: true
|
validate_xml_mapping: true
|
||||||
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
||||||
auto_mapping: true
|
auto_mapping: true
|
||||||
@@ -33,8 +32,6 @@ when@test:
|
|||||||
when@prod:
|
when@prod:
|
||||||
doctrine:
|
doctrine:
|
||||||
orm:
|
orm:
|
||||||
auto_generate_proxy_classes: false
|
|
||||||
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
|
|
||||||
query_cache_driver:
|
query_cache_driver:
|
||||||
type: pool
|
type: pool
|
||||||
pool: doctrine.system_cache_pool
|
pool: doctrine.system_cache_pool
|
||||||
|
|||||||
@@ -2,16 +2,17 @@ flysystem:
|
|||||||
storages:
|
storages:
|
||||||
xml_export.storage:
|
xml_export.storage:
|
||||||
local:
|
local:
|
||||||
directory: '%env(resolve:XML_EXPORT_PATH)%'
|
directory: '%kernel.project_dir%/var/xmlexport'
|
||||||
xml_source.storage:
|
xml_source.storage:
|
||||||
sftp:
|
sftp:
|
||||||
host: '%env(SFTP_XML_EXPORT_HOST)%'
|
host: '%env(SFTP_XML_SOURCE_HOST)%'
|
||||||
port: '%env(int:SFTP_XML_EXPORT_PORT)%'
|
port: '%env(int:SFTP_XML_SOURCE_PORT)%'
|
||||||
username: '%env(SFTP_XML_EXPORT_USER)%'
|
username: '%env(SFTP_XML_SOURCE_USER)%'
|
||||||
password: '%env(SFTP_XML_EXPORT_PASSWORD)%'
|
password: '%env(SFTP_XML_SOURCE_PASSWORD)%'
|
||||||
|
root: '%env(SFTP_XML_SOURCE_ROOT)%'
|
||||||
xml_dump.storage:
|
xml_dump.storage:
|
||||||
local:
|
local:
|
||||||
directory: '%kernel.project_dir%/var/bpn'
|
directory: '%kernel.project_dir%/var/bpn'
|
||||||
json_export.storage:
|
json_export.storage:
|
||||||
local:
|
local:
|
||||||
directory: '%env(resolve:JSON_EXPORT_PATH)%'
|
directory: '%kernel.project_dir%/var/jsonexport'
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
# see https://symfony.com/doc/current/reference/configuration/framework.html
|
# see https://symfony.com/doc/current/reference/configuration/framework.html
|
||||||
framework:
|
framework:
|
||||||
secret: '%env(APP_SECRET)%'
|
secret: '%env(APP_SECRET)%'
|
||||||
annotations: false
|
|
||||||
http_method_override: false
|
http_method_override: false
|
||||||
handle_all_throwables: true
|
handle_all_throwables: true
|
||||||
|
|
||||||
@@ -17,12 +16,20 @@ framework:
|
|||||||
php_errors:
|
php_errors:
|
||||||
log: true
|
log: true
|
||||||
|
|
||||||
|
rate_limiter:
|
||||||
|
# Per MCP client. A chatbot turn makes a few tool calls; this catches runaway loops.
|
||||||
|
chatbot_mcp:
|
||||||
|
policy: sliding_window
|
||||||
|
limit: 60
|
||||||
|
interval: '1 minute'
|
||||||
|
|
||||||
http_client:
|
http_client:
|
||||||
scoped_clients:
|
scoped_clients:
|
||||||
typo3.client:
|
typo3.client:
|
||||||
base_uri: '%env(resolve:APP_CMS_API_BASE_URL)%'
|
base_uri: '%env(resolve:APP_CMS_API_BASE_URL)%'
|
||||||
headers:
|
headers:
|
||||||
accept: 'text/json'
|
accept: 'text/json'
|
||||||
|
X-Api-Key: '%env(APP_CMS_API_KEY)%'
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
framework:
|
framework:
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
services:
|
||||||
|
Psr\Http\Message\RequestFactoryInterface: '@http_discovery.psr17_factory'
|
||||||
|
Psr\Http\Message\ResponseFactoryInterface: '@http_discovery.psr17_factory'
|
||||||
|
Psr\Http\Message\ServerRequestFactoryInterface: '@http_discovery.psr17_factory'
|
||||||
|
Psr\Http\Message\StreamFactoryInterface: '@http_discovery.psr17_factory'
|
||||||
|
Psr\Http\Message\UploadedFileFactoryInterface: '@http_discovery.psr17_factory'
|
||||||
|
Psr\Http\Message\UriFactoryInterface: '@http_discovery.psr17_factory'
|
||||||
|
|
||||||
|
http_discovery.psr17_factory:
|
||||||
|
class: Http\Discovery\Psr17Factory
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
knp_menu:
|
knp_menu:
|
||||||
twig:
|
twig:
|
||||||
template: _partials/_menu.html.twig
|
template: admin/_partials/_sidebar_menu.html.twig
|
||||||
@@ -17,6 +17,11 @@ league_oauth2_server:
|
|||||||
default: ['email']
|
default: ['email']
|
||||||
persistence:
|
persistence:
|
||||||
doctrine: null
|
doctrine: null
|
||||||
|
client:
|
||||||
|
allow_plaintext_secrets: false
|
||||||
|
# App\Entity\OAuth2Client adds the required_roles column that
|
||||||
|
# App\EventListener\AuthorizationCodeListener gates authorization on.
|
||||||
|
classname: App\Entity\OAuth2Client
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
league_oauth2_server:
|
league_oauth2_server:
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
# The website chatbot's MCP server, called by the n8n AI Agent through its MCP Client Tool
|
||||||
|
# node. Read-only tools over the mirrored TYPO3 content and our own trip data; see
|
||||||
|
# docs/chatbot-mcp.md. Authentication is the "mcp" firewall in security.yaml.
|
||||||
|
mcp:
|
||||||
|
servers:
|
||||||
|
chatbot:
|
||||||
|
name: 'MyE&P chatbot'
|
||||||
|
version: '1.0.0'
|
||||||
|
instructions: 'Answers questions about the trips and website content of E&P Reisen and its brands. Every result carries a url to cite. Prices and availability are a snapshot as of dataAsOf; the booking page is binding. The structured trip fields of search_trips and get_trip (dates, rooms, prices, pickups, inclusions) come from the booking system and override anything editorial text says about them: product descriptions, FAQs and search_content/get_document results can be out of date.'
|
||||||
|
http:
|
||||||
|
path: /mcp
|
||||||
|
# DNS rebinding protection guards unauthenticated local servers. This one is
|
||||||
|
# public, behind a bearer token, and never called from a browser.
|
||||||
|
allowed_hosts: false
|
||||||
|
registry:
|
||||||
|
tools: ['App\Chatbot\Mcp\Tool\']
|
||||||
|
# The same trip tools without the website's editorial text: no search_content and
|
||||||
|
# get_document, and a get_trip that leaves out the product and hotel page texts.
|
||||||
|
# Same tokens as /mcp; a client picks the variant by the path it is pointed at.
|
||||||
|
chatbot_trips:
|
||||||
|
name: 'MyE&P chatbot (trips only)'
|
||||||
|
version: '1.0.0'
|
||||||
|
instructions: 'Answers questions about the trips of E&P Reisen and its brands: dates, rooms, prices, availability, pickups and inclusions, all from the booking system. Every result carries a url to cite. Prices and availability are a snapshot as of dataAsOf; the booking page is binding. Website texts such as descriptions, FAQs and terms are not available here: for anything the tools do not answer, refer the user to the url of the trip.'
|
||||||
|
http:
|
||||||
|
path: /mcp/trips
|
||||||
|
allowed_hosts: false
|
||||||
|
registry:
|
||||||
|
tools:
|
||||||
|
- 'App\Chatbot\Mcp\Tool\SearchTripsTool'
|
||||||
|
- 'App\Chatbot\Mcp\TripsOnly\'
|
||||||
@@ -25,6 +25,8 @@ framework:
|
|||||||
Symfony\Component\Notifier\Message\ChatMessage: async
|
Symfony\Component\Notifier\Message\ChatMessage: async
|
||||||
Symfony\Component\Notifier\Message\SmsMessage: async
|
Symfony\Component\Notifier\Message\SmsMessage: async
|
||||||
App\Message\MailjetNewsletterEventMessage: async
|
App\Message\MailjetNewsletterEventMessage: async
|
||||||
|
App\Message\CreateClickUpBookingTaskMessage: async
|
||||||
|
App\Message\RoleNominationMessage: async
|
||||||
|
|
||||||
# Route your messages to the transports
|
# Route your messages to the transports
|
||||||
# 'App\Message\YourMessage': async
|
# 'App\Message\YourMessage': async
|
||||||
@@ -5,6 +5,7 @@ monolog:
|
|||||||
- core
|
- core
|
||||||
- auth
|
- auth
|
||||||
- admin
|
- admin
|
||||||
|
- chatbot
|
||||||
|
|
||||||
when@dev:
|
when@dev:
|
||||||
monolog:
|
monolog:
|
||||||
@@ -33,11 +34,16 @@ when@dev:
|
|||||||
path: "%kernel.logs_dir%/%kernel.environment%.admin.log"
|
path: "%kernel.logs_dir%/%kernel.environment%.admin.log"
|
||||||
level: debug
|
level: debug
|
||||||
channels: ["admin"]
|
channels: ["admin"]
|
||||||
|
chatbot:
|
||||||
|
type: stream
|
||||||
|
path: "%kernel.logs_dir%/%kernel.environment%.chatbot.log"
|
||||||
|
level: debug
|
||||||
|
channels: ["chatbot"]
|
||||||
main:
|
main:
|
||||||
type: stream
|
type: stream
|
||||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||||
level: debug
|
level: debug
|
||||||
channels: ["!event", "!bpn", "!core", "!auth", "!admin"]
|
channels: ["!event", "!bpn", "!core", "!auth", "!admin", "!chatbot"]
|
||||||
# uncomment to get logging in your browser
|
# uncomment to get logging in your browser
|
||||||
# you may have to allow bigger header sizes in your Web server configuration
|
# you may have to allow bigger header sizes in your Web server configuration
|
||||||
#firephp:
|
#firephp:
|
||||||
@@ -96,13 +102,20 @@ when@prod: &prod_config
|
|||||||
path: "%kernel.logs_dir%/%kernel.environment%.admin.log"
|
path: "%kernel.logs_dir%/%kernel.environment%.admin.log"
|
||||||
level: info
|
level: info
|
||||||
channels: ["admin"]
|
channels: ["admin"]
|
||||||
|
# MCP tool calls, file only: the log for judging search quality later.
|
||||||
|
chatbot:
|
||||||
|
type: rotating_file
|
||||||
|
max_files: 30
|
||||||
|
path: "%kernel.logs_dir%/%kernel.environment%.chatbot.log"
|
||||||
|
level: info
|
||||||
|
channels: ["chatbot"]
|
||||||
main:
|
main:
|
||||||
type: fingers_crossed
|
type: fingers_crossed
|
||||||
action_level: error
|
action_level: error
|
||||||
handler: nested
|
handler: nested
|
||||||
excluded_http_codes: [404, 405]
|
excluded_http_codes: [404, 405]
|
||||||
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
|
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
|
||||||
channels: ["!bpn", "!core", "!auth", "!admin"]
|
channels: ["!bpn", "!core", "!auth", "!admin", "!chatbot"]
|
||||||
nested:
|
nested:
|
||||||
type: rotating_file
|
type: rotating_file
|
||||||
path: "%kernel.logs_dir%/%kernel.environment%.framework.log"
|
path: "%kernel.logs_dir%/%kernel.environment%.framework.log"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
framework:
|
||||||
|
property_info:
|
||||||
|
with_constructor_extractor: true
|
||||||
@@ -2,9 +2,12 @@ framework:
|
|||||||
router:
|
router:
|
||||||
utf8: true
|
utf8: true
|
||||||
|
|
||||||
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
|
# How URLs are generated where there is no request to take the host from: scheduled
|
||||||
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
|
# commands and, notably, the Messenger workers that send mail off the request path.
|
||||||
#default_uri: http://localhost
|
# Without it those links would point at http://localhost. Only ever consulted in a
|
||||||
|
# non-HTTP context, so web requests keep using their own host — which matters here,
|
||||||
|
# since one codebase serves four brands.
|
||||||
|
default_uri: '%env(APP_BASE_URL)%'
|
||||||
|
|
||||||
when@prod:
|
when@prod:
|
||||||
framework:
|
framework:
|
||||||
|
|||||||
@@ -15,9 +15,21 @@ security:
|
|||||||
mailjet:
|
mailjet:
|
||||||
password: '%env(MAILJET_WEBHOOK_BASIC_PASSWORD)%'
|
password: '%env(MAILJET_WEBHOOK_BASIC_PASSWORD)%'
|
||||||
roles: [ ROLE_MAILJET_WEBHOOK ]
|
roles: [ ROLE_MAILJET_WEBHOOK ]
|
||||||
|
# Never consulted: McpAccessTokenHandler builds the user from the client name its
|
||||||
|
# token belongs to. Named only because a firewall must have a provider.
|
||||||
|
mcp_provider:
|
||||||
|
memory:
|
||||||
|
users: []
|
||||||
|
|
||||||
role_hierarchy:
|
role_hierarchy:
|
||||||
ROLE_ADMIN: [ ROLE_GROUPS_ADMIN ]
|
# ROLE_CUSTOMER_EXPERT gates the customer-service surfaces (booking drafts, travel
|
||||||
ROLE_GROUPS_ADMIN: [ ROLE_GROUPS_MANAGER ]
|
# mailing). Inheriting it here is what keeps them open to administrators: the booking
|
||||||
|
# drafts used to be ROLE_ADMIN only before their #[IsGranted] moved to the narrower role.
|
||||||
|
ROLE_ADMIN:
|
||||||
|
- ROLE_GROUPS_ADMIN
|
||||||
|
- ROLE_CUSTOMER_EXPERT
|
||||||
|
ROLE_GROUPS_ADMIN:
|
||||||
|
- ROLE_GROUPS_MANAGER
|
||||||
firewalls:
|
firewalls:
|
||||||
dev:
|
dev:
|
||||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||||
@@ -38,6 +50,12 @@ security:
|
|||||||
provider: mailjet_webhook_provider
|
provider: mailjet_webhook_provider
|
||||||
http_basic:
|
http_basic:
|
||||||
realm: 'Mailjet Webhook'
|
realm: 'Mailjet Webhook'
|
||||||
|
mcp:
|
||||||
|
pattern: ^/mcp(/trips)?$
|
||||||
|
stateless: true
|
||||||
|
provider: mcp_provider
|
||||||
|
access_token:
|
||||||
|
token_handler: App\Security\McpAccessTokenHandler
|
||||||
main:
|
main:
|
||||||
lazy: true
|
lazy: true
|
||||||
provider: app_user_provider
|
provider: app_user_provider
|
||||||
@@ -51,6 +69,7 @@ security:
|
|||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/webhooks/mailjet/newsletter$, roles: ROLE_MAILJET_WEBHOOK, requires_channel: https }
|
- { path: ^/webhooks/mailjet/newsletter$, roles: ROLE_MAILJET_WEBHOOK, requires_channel: https }
|
||||||
|
- { path: ^/mcp(/trips)?$, roles: ROLE_CHATBOT_MCP, requires_channel: https }
|
||||||
- { path: ^/authorize, roles: IS_AUTHENTICATED_REMEMBERED, requires_channel: https }
|
- { path: ^/authorize, roles: IS_AUTHENTICATED_REMEMBERED, requires_channel: https }
|
||||||
- { path: ^/, roles: PUBLIC_ACCESS, requires_channel: https }
|
- { path: ^/, roles: PUBLIC_ACCESS, requires_channel: https }
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ twig:
|
|||||||
'%kernel.project_dir%/assets/images': images
|
'%kernel.project_dir%/assets/images': images
|
||||||
globals:
|
globals:
|
||||||
htmx_change_trigger: 'change delay:100ms'
|
htmx_change_trigger: 'change delay:100ms'
|
||||||
|
htmx_boost: '%env(bool:APP_HTMX_BOOST)%'
|
||||||
website_base_url: '%env(APP_WEBSITE_BASE_URL)%'
|
website_base_url: '%env(APP_WEBSITE_BASE_URL)%'
|
||||||
customer_service_email: '%env(APP_CUSTOMER_SERVICE_EMAIL)%'
|
customer_service_email: '%env(APP_CUSTOMER_SERVICE_EMAIL)%'
|
||||||
legal_notice_url: '%env(APP_LEGAL_NOTICE_URL)%'
|
legal_notice_url: '%env(APP_LEGAL_NOTICE_URL)%'
|
||||||
|
|||||||
@@ -14,4 +14,6 @@ when@test:
|
|||||||
intercept_redirects: false
|
intercept_redirects: false
|
||||||
|
|
||||||
framework:
|
framework:
|
||||||
profiler: { collect: false }
|
profiler:
|
||||||
|
collect: false
|
||||||
|
collect_serializer_data: true
|
||||||
@@ -3,13 +3,14 @@ zenstruck_schedule:
|
|||||||
|
|
||||||
mailer:
|
mailer:
|
||||||
service: mailer
|
service: mailer
|
||||||
default_to: [email protected]
|
default_to: [email protected]
|
||||||
default_from: info@ep-reisen.de
|
default_from: noreply@ep-reisen.de
|
||||||
subject_prefix: "[MyE&P]"
|
subject_prefix: "[MyE&P]"
|
||||||
|
|
||||||
schedule_extensions:
|
schedule_extensions:
|
||||||
email_on_failure:
|
email_on_failure:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
to: [email protected]
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- task: app:cleanup:xml-dumps
|
- task: app:cleanup:xml-dumps
|
||||||
@@ -28,6 +29,10 @@ zenstruck_schedule:
|
|||||||
frequency: "45 1 * * *"
|
frequency: "45 1 * * *"
|
||||||
description: "Removes expired pending newsletter double opt-in requests"
|
description: "Removes expired pending newsletter double opt-in requests"
|
||||||
|
|
||||||
|
- task: app:cleanup:travel-mailing-lists
|
||||||
|
frequency: "50 1 * * *"
|
||||||
|
description: "Deletes Mailjet travel mailing lists and their orphaned contacts 30 days after the travel started"
|
||||||
|
|
||||||
- task: league:oauth2-server:clear-expired-tokens
|
- task: league:oauth2-server:clear-expired-tokens
|
||||||
frequency: "0 * * * *"
|
frequency: "0 * * * *"
|
||||||
description: "Removes expired oauth2 tokens hourly"
|
description: "Removes expired oauth2 tokens hourly"
|
||||||
@@ -58,3 +63,23 @@ when@prod:
|
|||||||
- task: app:bpn:xml-sync
|
- task: app:bpn:xml-sync
|
||||||
frequency: "0 20-23,0-7 * * *"
|
frequency: "0 20-23,0-7 * * *"
|
||||||
description: "Syncs BusPro XML data hourly outside peak hours"
|
description: "Syncs BusPro XML data hourly outside peak hours"
|
||||||
|
|
||||||
|
- task: app:bpn:sync-contingents
|
||||||
|
frequency: "5-59/15 8-19 * * *"
|
||||||
|
description: "Syncs the full contingent horizon every 15 min. during peak hours"
|
||||||
|
|
||||||
|
- task: app:bpn:sync-contingents
|
||||||
|
frequency: "5 20-23,0-7 * * *"
|
||||||
|
description: "Syncs the full contingent horizon hourly outside peak hours"
|
||||||
|
|
||||||
|
- task: app:content:sync
|
||||||
|
frequency: "0 * * * *"
|
||||||
|
description: "Mirrors changes in the TYPO3 content feed for the chatbot MCP server"
|
||||||
|
|
||||||
|
- task: app:content:sync --refresh
|
||||||
|
frequency: "5 1 * * 0"
|
||||||
|
description: "Refetches TYPO3 content stored more than 7 days ago, within the night window"
|
||||||
|
|
||||||
|
- task: app:content:check-freshness --max-age 150
|
||||||
|
frequency: "10 * * * *"
|
||||||
|
description: "Fails when the TYPO3 content mirror has missed more than one hourly sync"
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
mcp:
|
||||||
|
resource: .
|
||||||
|
type: mcp
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
# yaml-language-server: $schema=../vendor/symfony/dependency-injection/Loader/schema/services.schema.json
|
||||||
# This file is the entry point to configure your own services.
|
# This file is the entry point to configure your own services.
|
||||||
# Files in the packages/ subdirectory configure your dependencies.
|
# Files in the packages/ subdirectory configure your dependencies.
|
||||||
|
|
||||||
@@ -14,6 +15,27 @@ parameters:
|
|||||||
default_email_from: '%env(APP_DEFAULT_EMAIL_FROM)%'
|
default_email_from: '%env(APP_DEFAULT_EMAIL_FROM)%'
|
||||||
default_email_to: '%env(APP_DEFAULT_EMAIL_TO)%'
|
default_email_to: '%env(APP_DEFAULT_EMAIL_TO)%'
|
||||||
accommodation_inquiry_email: '%env(ACCOMMODATION_INQUIRY_EMAIL)%'
|
accommodation_inquiry_email: '%env(ACCOMMODATION_INQUIRY_EMAIL)%'
|
||||||
|
role_nomination_notification_emails: '%env(csv:APP_ROLE_NOMINATION_EMAILS)%'
|
||||||
|
# Promo codes issued before the "R-" prefix was introduced, with the last day each is recognised
|
||||||
|
# as a promo code (VoucherCodeClassifier). Remove this parameter and the classifier branch
|
||||||
|
# reading it once the last date has passed.
|
||||||
|
legacy_promo_voucher_codes:
|
||||||
|
BEWERTUNG25: '2026-10-31'
|
||||||
|
ANNA50: '2026-12-20'
|
||||||
|
SIDNEY50: '2026-12-20'
|
||||||
|
LENA20: '2027-03-04'
|
||||||
|
BOTSCHAFTER2627: '2027-04-30'
|
||||||
|
|
||||||
|
# Named travel periods of the website search ("Reisezeitraum"), offered by the chatbot's
|
||||||
|
# search_trips. Duplicated from the TYPO3 search configuration on purpose: update both each
|
||||||
|
# season. Periods may overlap; one whose end has passed is no longer offered.
|
||||||
|
chatbot_travel_periods:
|
||||||
|
- { label: 'Vorsaison', from: '2026-11-01', to: '2026-12-20' }
|
||||||
|
- { label: 'um Weihnachten', from: '2026-12-20', to: '2026-12-28' }
|
||||||
|
- { label: 'Silvester', from: '2026-12-26', to: '2027-01-03' }
|
||||||
|
- { label: '1 Januarwoche', from: '2027-01-02', to: '2027-01-09' }
|
||||||
|
- { label: 'Nachsaison', from: '2027-03-20', to: '2027-05-01' }
|
||||||
|
- { label: 'Ostern', from: '2027-03-20', to: '2027-04-03' }
|
||||||
|
|
||||||
# MailJet list ids and their labels
|
# MailJet list ids and their labels
|
||||||
mailjet_lists:
|
mailjet_lists:
|
||||||
@@ -30,6 +52,40 @@ parameters:
|
|||||||
10321389: 'Reisen-Alert Stubaital'
|
10321389: 'Reisen-Alert Stubaital'
|
||||||
10554990: 'Reisen-Alert Ski & Boarderweek'
|
10554990: 'Reisen-Alert Ski & Boarderweek'
|
||||||
|
|
||||||
|
# Email domains whose accounts are members of staff. BusPro has no CRM selection expressing
|
||||||
|
# "works here", so ROLE_EMPLOYEE is derived from the address instead. Matched exactly on the
|
||||||
|
# domain part, never as a suffix.
|
||||||
|
employee_email_domains:
|
||||||
|
- 'ep-reisen.de'
|
||||||
|
|
||||||
|
# BusProNet "Hausleitung {CODE}" CRM selections, by selection id.
|
||||||
|
# DEPLOYMENT-CRITICAL: roles and hotel codes are synced on every login, so an id missing
|
||||||
|
# here does not merely fail to nominate a Hausleitung — it revokes the role and the hotel
|
||||||
|
# code from everyone holding it, one login at a time, with manual re-approval per user.
|
||||||
|
# Entries for houses that are not in use yet stay commented out.
|
||||||
|
bpn_crm_house_manager_ids:
|
||||||
|
1299: 'SSL'
|
||||||
|
1300: 'SST'
|
||||||
|
1301: 'MVK'
|
||||||
|
# 1302: 'ASB'
|
||||||
|
1303: 'LPJ'
|
||||||
|
1304: 'DKS'
|
||||||
|
1305: 'DGS'
|
||||||
|
1306: 'DPW'
|
||||||
|
1307: 'DKI'
|
||||||
|
1308: 'DWW'
|
||||||
|
1309: 'PMV'
|
||||||
|
# 1352: 'ASG'
|
||||||
|
1371: 'ASC'
|
||||||
|
1373: 'PCJ'
|
||||||
|
1374: 'SBW'
|
||||||
|
# 1375: 'UCH'
|
||||||
|
# 1376: 'SZO'
|
||||||
|
1377: 'KHH'
|
||||||
|
1459: 'SVS'
|
||||||
|
1461: 'SHM'
|
||||||
|
1462: 'AGR'
|
||||||
|
|
||||||
# MailJet contact metadata names for name synchronization
|
# MailJet contact metadata names for name synchronization
|
||||||
mailjet_contact_metadata_fields:
|
mailjet_contact_metadata_fields:
|
||||||
firstName: 'vorname'
|
firstName: 'vorname'
|
||||||
@@ -92,18 +148,22 @@ services:
|
|||||||
- '../src/Model'
|
- '../src/Model'
|
||||||
- '../src/Kernel.php'
|
- '../src/Kernel.php'
|
||||||
|
|
||||||
App\BusProNet\ApiClient:
|
App\BusProNet\Transport\XmlChannel:
|
||||||
arguments:
|
arguments:
|
||||||
$logger: '@monolog.logger.bpn'
|
$logger: '@monolog.logger.bpn'
|
||||||
$options:
|
$options:
|
||||||
bpn_username: '%env(APP_BPN_USER)%'
|
bpn_username: '%env(APP_BPN_USER)%'
|
||||||
bpn_password: '%env(APP_BPN_PASSWORD)%'
|
bpn_password: '%env(APP_BPN_PASSWORD)%'
|
||||||
bpn_api_ip: '%env(APP_BPN_IP)%'
|
|
||||||
bpn_api_ports: '%env(csv:APP_BPN_PORTS)%'
|
|
||||||
debug: '%env(bool:APP_BPN_DEBUG)%'
|
debug: '%env(bool:APP_BPN_DEBUG)%'
|
||||||
connection_timeout: '%env(int:APP_BPN_CONNECTION_TIMEOUT)%'
|
|
||||||
stream_timeout: '%env(int:APP_BPN_STREAM_TIMEOUT)%'
|
App\BusProNet\Transport\SocketTransport:
|
||||||
total_timeout: '%env(int:APP_BPN_TOTAL_TIMEOUT)%'
|
arguments:
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
$host: '%env(APP_BPN_IP)%'
|
||||||
|
$ports: '%env(csv:APP_BPN_PORTS)%'
|
||||||
|
$connectionTimeout: '%env(int:APP_BPN_CONNECTION_TIMEOUT)%'
|
||||||
|
$streamTimeout: '%env(int:APP_BPN_STREAM_TIMEOUT)%'
|
||||||
|
$totalTimeout: '%env(int:APP_BPN_TOTAL_TIMEOUT)%'
|
||||||
|
|
||||||
App\Twig\AppRuntime:
|
App\Twig\AppRuntime:
|
||||||
arguments:
|
arguments:
|
||||||
@@ -121,14 +181,6 @@ services:
|
|||||||
method: createMainMenu
|
method: createMainMenu
|
||||||
alias: admin_main
|
alias: admin_main
|
||||||
|
|
||||||
App\Menu\GroupsMenuBuilder:
|
|
||||||
arguments:
|
|
||||||
$factory: '@knp_menu.factory'
|
|
||||||
tags:
|
|
||||||
- name: knp_menu.menu_builder
|
|
||||||
method: createMainMenu
|
|
||||||
alias: groups_main
|
|
||||||
|
|
||||||
App\Service\BpnXmlSyncManager:
|
App\Service\BpnXmlSyncManager:
|
||||||
arguments:
|
arguments:
|
||||||
$xmlSource: '@xml_source.storage'
|
$xmlSource: '@xml_source.storage'
|
||||||
@@ -167,6 +219,10 @@ services:
|
|||||||
arguments:
|
arguments:
|
||||||
$cache: '@bpn.cache'
|
$cache: '@bpn.cache'
|
||||||
|
|
||||||
|
App\BusProNet\Utility\CountryCodeMapper:
|
||||||
|
arguments:
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
App\BusProNet\XmlLoader\HotelLoader:
|
App\BusProNet\XmlLoader\HotelLoader:
|
||||||
arguments:
|
arguments:
|
||||||
$cache: '@bpn.cache'
|
$cache: '@bpn.cache'
|
||||||
@@ -179,17 +235,49 @@ services:
|
|||||||
arguments:
|
arguments:
|
||||||
$cache: '@bpn.cache'
|
$cache: '@bpn.cache'
|
||||||
|
|
||||||
|
App\Service\TravelExportBuilder:
|
||||||
|
arguments:
|
||||||
|
$cache: '@bpn.cache'
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
|
App\Service\ProductExportBuilder:
|
||||||
|
arguments:
|
||||||
|
$cache: '@bpn.cache'
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
App\Service\VoucherValidator:
|
App\Service\VoucherValidator:
|
||||||
arguments:
|
arguments:
|
||||||
$cache: '@cache.app'
|
$cache: '@cache.app'
|
||||||
$logger: '@monolog.logger.bpn'
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
|
App\Service\VoucherCodeClassifier:
|
||||||
|
arguments:
|
||||||
|
$legacyPromoCodes: '%legacy_promo_voucher_codes%'
|
||||||
|
|
||||||
|
# Voucher purchase flow (/gutschein)
|
||||||
|
App\Service\VoucherTemplateProvider:
|
||||||
|
arguments:
|
||||||
|
$cache: '@bpn.cache'
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
|
App\Service\VoucherThumbnailResolver:
|
||||||
|
arguments:
|
||||||
|
$manifestPath: '%kernel.project_dir%/public/build/manifest.json'
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
|
App\Controller\Voucher\Step1Controller:
|
||||||
|
arguments:
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
|
App\Controller\Voucher\Step3Controller:
|
||||||
|
arguments:
|
||||||
|
$logger: '@monolog.logger.bpn'
|
||||||
|
|
||||||
# Field Handlers with dependencies
|
# Field Handlers with dependencies
|
||||||
App\Form\Service\ParticipantInsuranceFieldHandler: ~
|
App\Form\Service\ParticipantInsuranceFieldHandler: ~
|
||||||
App\Form\Service\ParticipantBulkInsuranceFieldHandler: ~
|
App\Form\Service\ParticipantBulkInsuranceFieldHandler: ~
|
||||||
App\Form\Service\ParticipantTransportationDiscountReplacementFieldHandler: ~
|
App\Form\Service\ParticipantTransportationDiscountReplacementFieldHandler: ~
|
||||||
App\Form\Service\ParticipantPurchaseVoucherFieldHandler: ~
|
App\Form\Service\ParticipantVoucherFieldHandler: ~
|
||||||
App\Form\Service\ParticipantPromoVoucherFieldHandler: ~
|
|
||||||
|
|
||||||
# Participant Field Handler Registry - most handlers instantiate dependencies directly, some use services
|
# Participant Field Handler Registry - most handlers instantiate dependencies directly, some use services
|
||||||
App\Form\Service\ParticipantFieldHandlerRegistry:
|
App\Form\Service\ParticipantFieldHandlerRegistry:
|
||||||
@@ -215,8 +303,7 @@ services:
|
|||||||
- '@App\Form\Service\ParticipantTransportationDiscountReplacementFieldHandler'
|
- '@App\Form\Service\ParticipantTransportationDiscountReplacementFieldHandler'
|
||||||
- '@App\Form\Service\ParticipantBulkInsuranceFieldHandler'
|
- '@App\Form\Service\ParticipantBulkInsuranceFieldHandler'
|
||||||
- '@App\Form\Service\ParticipantInsuranceFieldHandler'
|
- '@App\Form\Service\ParticipantInsuranceFieldHandler'
|
||||||
- '@App\Form\Service\ParticipantPurchaseVoucherFieldHandler'
|
- '@App\Form\Service\ParticipantVoucherFieldHandler'
|
||||||
- '@App\Form\Service\ParticipantPromoVoucherFieldHandler'
|
|
||||||
- '@App\Form\Service\ParticipantParkingFieldHandler'
|
- '@App\Form\Service\ParticipantParkingFieldHandler'
|
||||||
|
|
||||||
# Booking Status Rules
|
# Booking Status Rules
|
||||||
@@ -230,10 +317,37 @@ services:
|
|||||||
- '@App\BusProNet\Service\StatusRule\Selection1473StatusRule'
|
- '@App\BusProNet\Service\StatusRule\Selection1473StatusRule'
|
||||||
- '@App\BusProNet\Service\StatusRule\ChaperonServiceStatusRule'
|
- '@App\BusProNet\Service\StatusRule\ChaperonServiceStatusRule'
|
||||||
|
|
||||||
|
# Dashboard Widgets
|
||||||
|
App\Dashboard\Widget\StuckBookingDraftsWidgetProvider: ~
|
||||||
|
App\Dashboard\Widget\OpenGroupBookingsWidgetProvider: ~
|
||||||
|
App\Dashboard\Widget\PendingRoleApprovalsWidgetProvider: ~
|
||||||
|
App\Dashboard\Widget\RecentLogEntriesWidgetProvider: ~
|
||||||
|
|
||||||
|
# Dashboard Widget Registry
|
||||||
|
App\Dashboard\DashboardWidgetRegistry:
|
||||||
|
arguments:
|
||||||
|
$providers:
|
||||||
|
- '@App\Dashboard\Widget\StuckBookingDraftsWidgetProvider'
|
||||||
|
- '@App\Dashboard\Widget\OpenGroupBookingsWidgetProvider'
|
||||||
|
- '@App\Dashboard\Widget\PendingRoleApprovalsWidgetProvider'
|
||||||
|
- '@App\Dashboard\Widget\RecentLogEntriesWidgetProvider'
|
||||||
|
|
||||||
|
App\ContentFeed\ContentFeedClient:
|
||||||
|
arguments:
|
||||||
|
$baseUrl: '%env(APP_CMS_API_BASE_URL)%'
|
||||||
|
$apiKey: '%env(APP_CMS_API_KEY)%'
|
||||||
|
|
||||||
|
App\Chatbot\TravelPeriods:
|
||||||
|
arguments:
|
||||||
|
$periods: '%chatbot_travel_periods%'
|
||||||
|
|
||||||
|
App\Security\McpAccessTokenHandler:
|
||||||
|
arguments:
|
||||||
|
$tokens: '%env(APP_MCP_TOKENS)%'
|
||||||
|
|
||||||
App\Service\CmsDataProvider:
|
App\Service\CmsDataProvider:
|
||||||
arguments:
|
arguments:
|
||||||
$httpClient: '@typo3.client'
|
$httpClient: '@typo3.client'
|
||||||
$apiKey: 'AbcAbc123'# dummy key, not yet implemented
|
|
||||||
|
|
||||||
App\Logger\RequestIdProcessor:
|
App\Logger\RequestIdProcessor:
|
||||||
tags:
|
tags:
|
||||||
@@ -253,6 +367,18 @@ services:
|
|||||||
arguments:
|
arguments:
|
||||||
$mailjetLists: '%mailjet_lists%'
|
$mailjetLists: '%mailjet_lists%'
|
||||||
|
|
||||||
|
App\BusProNet\XmlParser\CrmAttributesResponseParser:
|
||||||
|
arguments:
|
||||||
|
$houseManagerIds: '%bpn_crm_house_manager_ids%'
|
||||||
|
|
||||||
|
App\Security\EmployeeDomainMatcher:
|
||||||
|
arguments:
|
||||||
|
$domains: '%employee_email_domains%'
|
||||||
|
|
||||||
|
App\MessageHandler\RoleNominationHandler:
|
||||||
|
arguments:
|
||||||
|
$notificationRecipients: '%role_nomination_notification_emails%'
|
||||||
|
|
||||||
App\Service\DomainConfigProvider:
|
App\Service\DomainConfigProvider:
|
||||||
arguments:
|
arguments:
|
||||||
$domainConfig: '%domain_config%'
|
$domainConfig: '%domain_config%'
|
||||||
@@ -265,7 +391,14 @@ services:
|
|||||||
|
|
||||||
App\Service\AccommodationBookingService:
|
App\Service\AccommodationBookingService:
|
||||||
arguments:
|
arguments:
|
||||||
$officeEmail: '%accommodation_inquiry_email%'
|
$accommodationEmail: '%accommodation_inquiry_email%'
|
||||||
|
|
||||||
|
App\Service\AccommodationTermsUrlProvider:
|
||||||
|
arguments:
|
||||||
|
$config:
|
||||||
|
AT: '%env(ACCOMMODATION_TERMS_AT)%'
|
||||||
|
CH: '%env(ACCOMMODATION_TERMS_CH)%'
|
||||||
|
IT: '%env(ACCOMMODATION_TERMS_IT)%'
|
||||||
|
|
||||||
App\Service\GroupsPriceCalculator:
|
App\Service\GroupsPriceCalculator:
|
||||||
arguments:
|
arguments:
|
||||||
@@ -290,10 +423,45 @@ services:
|
|||||||
App\BpnConnect\ContingentsClient:
|
App\BpnConnect\ContingentsClient:
|
||||||
parent: App\BpnConnect\AbstractApiClient
|
parent: App\BpnConnect\AbstractApiClient
|
||||||
|
|
||||||
App\Service\MailjetApiClient:
|
App\BpnConnect\TravelsClient:
|
||||||
|
parent: App\BpnConnect\AbstractApiClient
|
||||||
|
|
||||||
|
App\BpnConnect\RoomsClient:
|
||||||
|
parent: App\BpnConnect\AbstractApiClient
|
||||||
|
|
||||||
|
App\ClickUp\ApiClient:
|
||||||
|
arguments:
|
||||||
|
$apiToken: '%env(default::CLICKUP_API_TOKEN)%'
|
||||||
|
$listId: '%env(default::CLICKUP_LIST_ID)%'
|
||||||
|
$templateId: '%env(default::CLICKUP_TEMPLATE_ID)%'
|
||||||
|
$baseUrl: '%env(default::CLICKUP_API_BASE_URL)%'
|
||||||
|
|
||||||
|
App\Mailjet\ApiClient:
|
||||||
arguments:
|
arguments:
|
||||||
$apiKey: '%env(default::MAILJET_API_KEY)%'
|
$apiKey: '%env(default::MAILJET_API_KEY)%'
|
||||||
$apiSecret: '%env(default::MAILJET_API_SECRET)%'
|
$apiSecret: '%env(default::MAILJET_API_SECRET)%'
|
||||||
$apiBaseUrl: '%env(default::MAILJET_API_BASE_URL)%'
|
$apiBaseUrl: '%env(default::MAILJET_API_BASE_URL)%'
|
||||||
$defaultListId: '%env(default::MAILJET_DEFAULT_LIST_ID)%'
|
$defaultListId: '%env(default::MAILJET_DEFAULT_LIST_ID)%'
|
||||||
$contactMetadataFields: '%mailjet_contact_metadata_fields%'
|
$contactMetadataFields: '%mailjet_contact_metadata_fields%'
|
||||||
|
|
||||||
|
# Travel mailing lists live in a Mailjet sub-account, which has its own key pair and keeps
|
||||||
|
# its contacts and lists apart from the newsletter on the main account.
|
||||||
|
app.mailjet.travel_mailing_client:
|
||||||
|
class: App\Mailjet\ApiClient
|
||||||
|
arguments:
|
||||||
|
$apiKey: '%env(default::MAILJET_TRAVEL_MAILING_API_KEY)%'
|
||||||
|
$apiSecret: '%env(default::MAILJET_TRAVEL_MAILING_API_SECRET)%'
|
||||||
|
$apiBaseUrl: '%env(default::MAILJET_API_BASE_URL)%'
|
||||||
|
$contactMetadataFields: '%mailjet_contact_metadata_fields%'
|
||||||
|
|
||||||
|
App\Service\TravelMailingListManager:
|
||||||
|
arguments:
|
||||||
|
$mailjet: '@app.mailjet.travel_mailing_client'
|
||||||
|
|
||||||
|
App\EventListener\MaintenanceModeListener:
|
||||||
|
arguments:
|
||||||
|
$options:
|
||||||
|
enabled: '%env(bool:MAINTENANCE_MODE_ENABLED)%'
|
||||||
|
whitelisted_ips: '%env(csv:MAINTENANCE_MODE_IP_WHITELIST)%'
|
||||||
|
whitelisted_routes: '%env(csv:MAINTENANCE_MODE_ROUTE_WHITELIST)%'
|
||||||
|
whitelisted_paths: '%env(csv:MAINTENANCE_MODE_PATH_WHITELIST)%'
|
||||||
@@ -5,7 +5,7 @@ parameters:
|
|||||||
theme: base
|
theme: base
|
||||||
gtm_id: GTM-56LWRF
|
gtm_id: GTM-56LWRF
|
||||||
cmp_url: https://consent.cookiefirst.com/sites/my.ep-reisen.de-28eabc35-7085-4d8f-b450-522bd1a5247c/consent.js
|
cmp_url: https://consent.cookiefirst.com/sites/my.ep-reisen.de-28eabc35-7085-4d8f-b450-522bd1a5247c/consent.js
|
||||||
myswb.ddev.site:
|
mysbw.ddev.site:
|
||||||
theme: sbw
|
theme: sbw
|
||||||
gtm_id: GTM-MS2C8CH
|
gtm_id: GTM-MS2C8CH
|
||||||
cmp_url: https://consent.cookiefirst.com/sites/my.ski-boarderweek.de-d3641c34-8183-4b8d-b56e-c052e7a9223e/consent.js
|
cmp_url: https://consent.cookiefirst.com/sites/my.ski-boarderweek.de-d3641c34-8183-4b8d-b56e-c052e7a9223e/consent.js
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ require 'recipe/symfony.php';
|
|||||||
add('shared_dirs', [
|
add('shared_dirs', [
|
||||||
'config/secret',
|
'config/secret',
|
||||||
'var/bpn',
|
'var/bpn',
|
||||||
'var/log',
|
|
||||||
'var/sessions',
|
'var/sessions',
|
||||||
'var/jsonexport',
|
'var/jsonexport',
|
||||||
'var/xmlexport',
|
'var/xmlexport',
|
||||||
@@ -35,10 +34,13 @@ $rsyncOptions = [
|
|||||||
'.jj',
|
'.jj',
|
||||||
'node_modules',
|
'node_modules',
|
||||||
'.editorconfig',
|
'.editorconfig',
|
||||||
|
'.env.local',
|
||||||
|
'.env.local.php',
|
||||||
'.env.dev.local',
|
'.env.dev.local',
|
||||||
'.env.dev.local.php',
|
'.env.dev.local.php',
|
||||||
'.env.test',
|
'.env.test',
|
||||||
'.env.test.local',
|
'.env.test.local',
|
||||||
|
'.browserslistrc',
|
||||||
'.gitignore',
|
'.gitignore',
|
||||||
'.nvmrc',
|
'.nvmrc',
|
||||||
'.php-cs-fixer.cache',
|
'.php-cs-fixer.cache',
|
||||||
@@ -57,8 +59,7 @@ $rsyncOptions = [
|
|||||||
'phpunit.xml.dist',
|
'phpunit.xml.dist',
|
||||||
'public/.htaccess',
|
'public/.htaccess',
|
||||||
'ray.php',
|
'ray.php',
|
||||||
'tailwind.config.js',
|
'webpack.config.mjs',
|
||||||
'webpack.config.js',
|
|
||||||
'bin/.phpunit',
|
'bin/.phpunit',
|
||||||
'temp/',
|
'temp/',
|
||||||
'tests/',
|
'tests/',
|
||||||
@@ -76,75 +77,70 @@ $rsyncOptions = [
|
|||||||
'timeout' => 300,
|
'timeout' => 300,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Shared by all hosts.
|
||||||
|
set('bin/php', '/usr/bin/php');
|
||||||
|
set('http_user', 'myepsf');
|
||||||
|
// Must stay here: contrib/rsync.php sets the same key, but its __DIR__ is the vendor dir.
|
||||||
|
set('rsync_src', __DIR__);
|
||||||
|
set('rsync', $rsyncOptions);
|
||||||
|
|
||||||
host('prod')
|
host('prod')
|
||||||
->setHostname('185.243.135.29')
|
->setHostname('dedi10193.your-server.de')
|
||||||
->setRemoteUser('p704161')
|
->setDeployPath('/usr/www/users/myepsf/prod')
|
||||||
|
->setRemoteUser('myepsf')
|
||||||
->setForwardAgent(true)
|
->setForwardAgent(true)
|
||||||
->setSshMultiplexing(true)
|
->setSshMultiplexing(true)
|
||||||
->setDeployPath('/home/www/p704161/html/myep')
|
|
||||||
->set('writable_mode', 'chmod')
|
|
||||||
->set('http_user', 'p704161')
|
|
||||||
->set('bin/php', '/usr/local/bin/php')
|
|
||||||
->set('rsync_src', __DIR__)
|
|
||||||
->set('rsync', $rsyncOptions)
|
|
||||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.de')
|
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.de')
|
||||||
;
|
;
|
||||||
|
|
||||||
host('staging')
|
host('staging')
|
||||||
->setHostname('185.243.135.29')
|
->setHostname('dedi10193.your-server.de')
|
||||||
->setRemoteUser('p704161')
|
->setDeployPath('/usr/www/users/myepsf/staging')
|
||||||
|
->setRemoteUser('myepsf')
|
||||||
->setForwardAgent(true)
|
->setForwardAgent(true)
|
||||||
->setSshMultiplexing(true)
|
->setSshMultiplexing(true)
|
||||||
->setDeployPath('/home/www/p704161/html/myep-staging')
|
|
||||||
->set('writable_mode', 'chmod')
|
|
||||||
->set('http_user', 'p704161')
|
|
||||||
->set('bin/php', '/usr/local/bin/php')
|
|
||||||
->set('rsync_src', __DIR__)
|
|
||||||
->set('rsync', $rsyncOptions)
|
|
||||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.net --web-basic-auth=myep:staging')
|
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.net --web-basic-auth=myep:staging')
|
||||||
->add('shared_files', [
|
->add('shared_files', [
|
||||||
'public/.htpasswd',
|
'public/.htaccess',
|
||||||
])
|
|
||||||
;
|
|
||||||
|
|
||||||
host('develop')
|
|
||||||
->setHostname('185.243.135.29')
|
|
||||||
->setRemoteUser('p704161')
|
|
||||||
->setForwardAgent(true)
|
|
||||||
->setSshMultiplexing(true)
|
|
||||||
->setDeployPath('/home/www/p704161/html/myep-develop')
|
|
||||||
->set('writable_mode', 'chmod')
|
|
||||||
->set('http_user', 'p704161')
|
|
||||||
->set('bin/php', '/usr/local/bin/php')
|
|
||||||
->set('rsync_src', __DIR__)
|
|
||||||
->set('rsync', $rsyncOptions)
|
|
||||||
->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://mydev.ep-reisen.net --web-basic-auth=myep:develop')
|
|
||||||
->add('shared_files', [
|
|
||||||
'public/.htpasswd',
|
'public/.htpasswd',
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
|
|
||||||
task('deploy', [
|
task('deploy', [
|
||||||
'deploy:info',
|
'deploy:info',
|
||||||
|
'deploy:assets',
|
||||||
'deploy:setup',
|
'deploy:setup',
|
||||||
'deploy:lock',
|
'deploy:lock',
|
||||||
'deploy:release',
|
'deploy:release',
|
||||||
'deploy:assets',
|
|
||||||
'rsync',
|
'rsync',
|
||||||
'deploy:shared',
|
'deploy:shared',
|
||||||
'deploy:writable',
|
'deploy:writable',
|
||||||
'deploy:cache:clear',
|
'deploy:cache:warmup',
|
||||||
'database:migrate',
|
'database:migrate',
|
||||||
|
// Must run before the symlink flip: the cachetool probe file is only reachable through
|
||||||
|
// the release the docroot currently resolves to. It still pays off, because it drops the
|
||||||
|
// opcache entries keyed under current/public/*.
|
||||||
'cachetool:clear:opcache',
|
'cachetool:clear:opcache',
|
||||||
'deploy:publish',
|
'deploy:publish',
|
||||||
'deploy:stop-workers',
|
'deploy:stop-workers',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Purely local, so it runs before anything is created on the remote. once(), so
|
||||||
|
// deploying multiple hosts at the same time builds the bundle only once.
|
||||||
task('deploy:assets', function () {
|
task('deploy:assets', function () {
|
||||||
runLocally('ddev exec npm ci');
|
runLocally('ddev exec npm ci');
|
||||||
runLocally('ddev exec npm run build');
|
runLocally('ddev exec npm run build');
|
||||||
|
})->once();
|
||||||
|
|
||||||
|
// The recipe's deploy:cache:clear only does something when composer ran with
|
||||||
|
// --no-scripts, which never happens here: vendor/ is rsynced, composer never runs
|
||||||
|
// remotely. A fresh release has no var/cache to clear, so warm it up directly.
|
||||||
|
// Runs after deploy:writable so the default ACLs are already in place.
|
||||||
|
task('deploy:cache:warmup', function () {
|
||||||
|
run('{{bin/console}} cache:warmup {{console_options}}');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Workers keep running the previous release's code until they are told to stop.
|
||||||
task('deploy:stop-workers', function () {
|
task('deploy:stop-workers', function () {
|
||||||
run('{{bin/console}} messenger:stop-workers');
|
run('{{bin/console}} messenger:stop-workers');
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,790 @@
|
|||||||
|
# API Consumer Guide
|
||||||
|
|
||||||
|
This document describes the public JSON API exposed under `/api`, written for developers implementing a **client** in another application. It is self-contained: no access to this codebase is required to use it.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
A Symfony application exposing a read-mostly JSON API under the `/api` prefix. All `/api/*` requests are stateless and authenticated via OAuth2 Bearer tokens (League OAuth2 Server, JWT access tokens). Responses are `application/json`. HTTPS is enforced on all routes.
|
||||||
|
|
||||||
|
## Authentication
|
||||||
|
|
||||||
|
- Token endpoint: `POST /token` (unauthenticated).
|
||||||
|
- Enabled grants: **client_credentials**, **authorization_code** (PKCE required for public clients), **refresh_token**. Password and implicit grants are disabled.
|
||||||
|
- Access token TTL is **10 minutes** for every grant.
|
||||||
|
Do not hardcode it — read `expires_in` from the token response, it is authoritative and may be tuned.
|
||||||
|
A token can therefore expire part-way through a long page walk of `GET /api/exports/*`; re-request one on
|
||||||
|
401 and resume at the page you were on. At the default `perPage=500` either export is a single page today.
|
||||||
|
- Available scopes: `email`, `id`, `profile`, `roles`, `api`. Default scope if none requested: `email`.
|
||||||
|
- Each granted scope maps to a role `ROLE_OAUTH2_<SCOPE_UPPERCASE>` (e.g. scope `api` → `ROLE_OAUTH2_API`).
|
||||||
|
- Send the token as `Authorization: Bearer <access_token>`.
|
||||||
|
|
||||||
|
Scope required per endpoint:
|
||||||
|
|
||||||
|
| Scope needed | Endpoints |
|
||||||
|
|---|---|
|
||||||
|
| `api` | everything except the two below |
|
||||||
|
| `profile` | `GET /api/crm-attributes` |
|
||||||
|
| `email` | `GET /api/userinfo` (optional extra scopes `id`, `profile`, `roles` widen the response) |
|
||||||
|
|
||||||
|
`/api/userinfo` and `/api/crm-attributes` act on the **authenticated end user**, so they require an authorization_code token issued for a user. All other endpoints are machine-to-machine and work with client_credentials.
|
||||||
|
|
||||||
|
### Machine-to-machine example
|
||||||
|
|
||||||
|
```
|
||||||
|
POST /token
|
||||||
|
Content-Type: application/x-www-form-urlencoded
|
||||||
|
|
||||||
|
grant_type=client_credentials&client_id=...&client_secret=...&scope=api
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
GET /api/hotels
|
||||||
|
Authorization: Bearer eyJ0eXAi...
|
||||||
|
```
|
||||||
|
|
||||||
|
## Error conventions
|
||||||
|
|
||||||
|
There is no single error envelope; three shapes occur:
|
||||||
|
|
||||||
|
- `{"message": "..."}` — commonly with 404 / 400.
|
||||||
|
- `{"error": "...", "type": "api_error"}` — upstream failures on some endpoints. **Caution:** on `/api/products` and `/api/travels/{dateId}/{hotelId}/{dateTo}/availability` this shape is returned with HTTP **200**, so clients must check for the presence of an `error` key, not only the status code.
|
||||||
|
- `{"success": false, "message": "..."}` — the write endpoints (contact form, newsletter).
|
||||||
|
|
||||||
|
Validation failures on endpoints using mapped query strings / payloads (`/api/contingents/*`, `/api/exports/*`, `/api/newsletter-subscriptions`) return **400** with Symfony's constraint-violation body. Missing/invalid token yields **401**; insufficient scope yields **403**.
|
||||||
|
|
||||||
|
`GET /api/exports/*` deliberately uses real status codes throughout and never the 200-with-an-`error`-key shape: a failure there is a 5xx, so retry logic can key on the status code alone.
|
||||||
|
|
||||||
|
The HTTP methods listed below are the intended ones. Several read routes do not restrict methods server-side; clients should still use `GET` for them.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Endpoints
|
||||||
|
|
||||||
|
### Reference data (BusProNet master data)
|
||||||
|
|
||||||
|
#### `GET /api/hotels` — scope `api`
|
||||||
|
|
||||||
|
List of hotels. Array of objects: `id` (int), `code` (string), `name`, `city`, `street`, `phone`, `country`,
|
||||||
|
`costUnit`, `countryCode`.
|
||||||
|
|
||||||
|
- `country` is the **raw** upstream token, unnormalised, and is the join key into `GET /api/countries[].token`.
|
||||||
|
It mixes conventions: ISO-2 (`CH`, `NL`), European vehicle registration codes (`D`, `A`, `F`, `S`, `FL`) and
|
||||||
|
ISO-3 (`AUT`, `PRT`, `HRV`), sometimes several for the same country.
|
||||||
|
- `countryCode` (`string|null`) is that token mapped to a lowercase ISO 3166-1 alpha-2 code — use this one to pick
|
||||||
|
a flag. A token with no confident mapping yields **`null`**, never a guess and never `""`, so treat null as
|
||||||
|
"unknown" rather than as an error. New tokens appear upstream from time to time; they surface as null here until
|
||||||
|
the mapping table is extended.
|
||||||
|
- `costUnit` (`string|null`) is the raw upstream cost centre. It is a **string, not a number**: most hotels have
|
||||||
|
none, and some carry a space-separated list such as `"84 85"`. Store it as text and do not parse it.
|
||||||
|
|
||||||
|
#### `GET /api/hotels/{id}` — scope `api`
|
||||||
|
|
||||||
|
Single hotel by numeric id, same field set as the list, including `costUnit` and `countryCode`.
|
||||||
|
`404 {"message":"Not found"}` if unknown.
|
||||||
|
|
||||||
|
#### `GET /api/countries` — scope `api`
|
||||||
|
|
||||||
|
Array of `{id, name, token, nationality}`.
|
||||||
|
|
||||||
|
#### `GET /api/products` — scope `api`
|
||||||
|
|
||||||
|
Product master data from the upstream BusProNet system, cached server-side for 1 hour. On upstream failure returns `{"error": "...", "type": "api_error"}` **with status 200**.
|
||||||
|
|
||||||
|
#### `GET /api/last-update` — scope `api`
|
||||||
|
|
||||||
|
Timestamp of the last upstream data export: `{"timestamp": "YYYY-MM-DD HH:MM:SS"}` in `Europe/Berlin` local time.
|
||||||
|
If the export marker is missing or unreadable (for instance mid-sync), the answer is `{"timestamp": null}` with
|
||||||
|
status 200 — treat null as "unknown", not as "changed".
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Pickups (bus boarding points)
|
||||||
|
|
||||||
|
#### `GET /api/pickups` — scope `api`
|
||||||
|
|
||||||
|
Array of `{id, code, city, postalCode, street}`.
|
||||||
|
|
||||||
|
#### `GET /api/pickups/{id}` — scope `api`
|
||||||
|
|
||||||
|
Single pickup by numeric id, same fields as the list.
|
||||||
|
|
||||||
|
#### `GET /api/pickups-planning/{travelCode}` — scope `api`
|
||||||
|
|
||||||
|
Planned outbound (HIN) boarding stops for one travel code. Returns an array, chronologically sorted:
|
||||||
|
|
||||||
|
```json
|
||||||
|
[{"city": "...", "location": "...", "datetime": "YYYY-MM-DD HH:MM", "busNumber": "..."}]
|
||||||
|
```
|
||||||
|
|
||||||
|
`404 {"error":"Planning data not available"}` if no planning has been uploaded yet, `404 {"error":"Travel code not found"}` for an unknown code, `500 {"error":"Failed to read planning data"}` on storage errors.
|
||||||
|
|
||||||
|
#### `POST /api/pickups-planning` — scope `api`
|
||||||
|
|
||||||
|
Bulk-replaces the planning dataset. Body: a JSON **array** of raw planning rows using the upstream German keys:
|
||||||
|
|
||||||
|
```json
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"PlanungsArt": "HIN",
|
||||||
|
"Reisecode": "ABC123",
|
||||||
|
"Zustieg/Ausstieg Ort": "Köln",
|
||||||
|
"Zustieg/Ausstieg Strasse": "Hauptbahnhof",
|
||||||
|
"Zeit": "24.12.2026 07:30",
|
||||||
|
"BusNummer": "1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
Rows without `PlanungsArt === "HIN"` or without `Reisecode` are dropped; duplicates (same city + location + datetime + bus) are de-duplicated; results are grouped by `Reisecode` and sorted by time. Response `{"status":"ok"}` (200). `400 {"error":"Invalid JSON payload"}`, `500 {"error":"Failed to write pickups planning data"}`.
|
||||||
|
|
||||||
|
This is a full overwrite, not a merge.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Bulk exports
|
||||||
|
|
||||||
|
#### `GET /api/exports/travels` — scope `api`
|
||||||
|
|
||||||
|
Bulk export of every travel date × hotel pair with its boarding points resolved, for clients that mirror the
|
||||||
|
disposition locally. One request replaces a walk over `GET /api/travels` plus a per-pair detail call.
|
||||||
|
|
||||||
|
The two `/api/exports/*` endpoints are the only paginated ones and the only ones with a `meta` envelope.
|
||||||
|
|
||||||
|
It sits under `/api/exports`, not `/api/travels`, on purpose: `/api/travels/{dateCode}` accepts an
|
||||||
|
arbitrary string, so an export hung off that collection would share a namespace with every date code.
|
||||||
|
`/api/exports` never takes a parameterised segment, so there is nothing for it to collide with.
|
||||||
|
|
||||||
|
Query parameters:
|
||||||
|
|
||||||
|
| Parameter | Type | Default | Notes |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `page` | int ≥ 1 | `1` | Out of range is **not** clamped — see below |
|
||||||
|
| `perPage` | int 1–1000 | `500` | |
|
||||||
|
| `changedSince` | — | — | **Reserved, not implemented.** Sending it today is ignored; it is named here only so it is not claimed for anything else. |
|
||||||
|
|
||||||
|
A `page`/`perPage` outside those bounds returns **400** with Symfony's constraint-violation body (send
|
||||||
|
`Accept: application/json` to get it as JSON rather than an HTML error page). A `page` past the last one is *not*
|
||||||
|
an error: it returns `200` with an empty `data` array and the usual `meta`.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"busProId": 12794,
|
||||||
|
"code": "PCJSER261226",
|
||||||
|
"productCode": "PCJSER",
|
||||||
|
"product": "Semesterende - Portes du Soleil - Joliment",
|
||||||
|
"dateFrom": "2026-12-26",
|
||||||
|
"dateTo": "2026-12-30",
|
||||||
|
"hotel": {
|
||||||
|
"busProId": 225444,
|
||||||
|
"code": "PCJSER1",
|
||||||
|
"name": "NEU SER Jolimont 1",
|
||||||
|
"costUnit": "863",
|
||||||
|
"country": "CH",
|
||||||
|
"countryCode": "ch"
|
||||||
|
},
|
||||||
|
"pickups": [
|
||||||
|
{
|
||||||
|
"busProId": 18,
|
||||||
|
"code": "ESS-Route",
|
||||||
|
"city": "Essen",
|
||||||
|
"street": "Am Hauptbahnhof (Südausgang Fernbushaltestelle)",
|
||||||
|
"time": "20:15",
|
||||||
|
"datetime": "2026-12-25T20:15:00"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"page": 1,
|
||||||
|
"perPage": 500,
|
||||||
|
"total": 415,
|
||||||
|
"totalPages": 1,
|
||||||
|
"skipped": 0,
|
||||||
|
"pickupsWithoutMasterData": 0,
|
||||||
|
"sourceGeneratedAt": "2026-09-29T11:11:01+02:00",
|
||||||
|
"generatedAt": "2026-09-29T12:10:06+02:00"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Row identity.** `(busProId, hotel.busProId)` is unique across the whole export — upsert on that pair. `busProId`
|
||||||
|
is always an int and never null; `hotel` is always an object and never null; `pickups` is always an array, possibly
|
||||||
|
empty, never null.
|
||||||
|
|
||||||
|
**`productCode`** is the code of the travel (product) the date belongs to, e.g. `DKIWE`. Key on it to
|
||||||
|
recognise dates of the same product. Do not derive it from the date `code` by cutting off the date: some
|
||||||
|
products run dates under a different code (`DWWMP` runs `DWWMW…`), and group travels carry each group's own
|
||||||
|
code on the date. It is `null` for the few travels that have no code upstream.
|
||||||
|
|
||||||
|
**`meta` describes the whole export, not the page.** `total`, `totalPages`, `skipped`, `pickupsWithoutMasterData`,
|
||||||
|
`sourceGeneratedAt` and `generatedAt` are identical on every page, so you can read them once on page 1 and decide whether to walk the
|
||||||
|
rest. `total` is the row count **after** skips, and `totalPages` is `ceil(total / perPage)`.
|
||||||
|
|
||||||
|
- `skipped` — (travel, hotel) pairs dropped as unusable: a travel date that could not be parsed, or a hotel absent
|
||||||
|
from the hotel master data. Expect `0`. A non-zero value means upstream data is inconsistent, not that you have
|
||||||
|
lost rows you previously had.
|
||||||
|
- `pickupsWithoutMasterData` — count of **distinct** pickup ids referenced by a travel but absent from
|
||||||
|
`GET /api/pickups`. Those entries are still emitted, with `code`, `city` and `street` null: a departure point
|
||||||
|
with no name is more useful to a disposition view than one that silently vanished.
|
||||||
|
|
||||||
|
**Pickup times.** `pickups` is in **source order** — the order the boarding list is driven in — not sorted by time.
|
||||||
|
|
||||||
|
- `time` is `"HH:MM"` for display; `datetime` is the same reading with its date resolved, as
|
||||||
|
`YYYY-MM-DDTHH:MM:SS` **without an offset**. **Prefer `datetime`.**
|
||||||
|
- Both are upstream's local clock readings, not instants: coaches are timetabled in plain clock times. A stop at
|
||||||
|
`02:45` on the night the clocks go forward comes back as `…T02:45:00`, although that hour does not exist in
|
||||||
|
`Europe/Berlin`, and a stop in the hour repeated when the clocks go back passes through unchanged. Do not attach
|
||||||
|
an offset to compare or sort them; they already sort correctly as strings.
|
||||||
|
- Upstream states a boarding time either as a full date and time, taken verbatim, or as a bare time. A bare time
|
||||||
|
takes the departure date (`dateFrom`), and moves to the following day if it would otherwise fall before the
|
||||||
|
latest full date and time **anywhere** in the same boarding list, whatever its position. So on a departure
|
||||||
|
dated 26.12. whose list also dates a stop `26.12. 23:59`, a bare `02:15` comes back as `…12-27T02:15:00`.
|
||||||
|
`datetime` carries that resolution for bare-time sources too.
|
||||||
|
- A boarding point with no time upstream comes back with **both** `time` and `datetime` null. They are always
|
||||||
|
null together.
|
||||||
|
- Caveat: where upstream states full datetimes for a whole boarding list, those dates are taken verbatim. Some
|
||||||
|
lists date every stop to the evening before departure, including stops after midnight, so an entry can appear a
|
||||||
|
day earlier than the running order implies. This is upstream data, not a transformation applied here.
|
||||||
|
|
||||||
|
**Consistency.** The export is built from the same cached master data as `GET /api/hotels` and `GET /api/pickups`,
|
||||||
|
under one cache tag, so all three move together on an upstream sync rather than drifting between your calls.
|
||||||
|
It is cached for 3 hours; `generatedAt` is when the cached copy was assembled, not when you requested it.
|
||||||
|
|
||||||
|
**Page consistency.** `sourceGeneratedAt` is the timestamp of the upstream export the rows were built from — the
|
||||||
|
same value `GET /api/last-update` reports, as ISO-8601 — or `null` if it could not be read. An upstream sync can
|
||||||
|
replace the cached copy while you are walking the pages; if `sourceGeneratedAt` differs from the value you saw on
|
||||||
|
page 1, you have stitched two exports together. Discard what you have and restart from page 1.
|
||||||
|
|
||||||
|
#### `GET /api/exports/products` — scope `api`
|
||||||
|
|
||||||
|
Bulk export of every travel date × hotel pair with its **whole record**, for clients that import the product
|
||||||
|
catalogue: rooms with prices and availability, the pseudo price, all selection groups, the three service lists,
|
||||||
|
boarding points with prices, and the guide. Same grain, paging, query parameters, `meta` envelope, status codes and
|
||||||
|
page-consistency rule as `GET /api/exports/travels` above; only the rows differ.
|
||||||
|
|
||||||
|
**Unfiltered on purpose.** Nothing is dropped or rewritten for you. Return-leg (`RUECK`) services, `EIN` services,
|
||||||
|
`Buchungsstop` rooms and services, rooms without a price and boarding points with id `0` are all emitted. Which of
|
||||||
|
them a website shows, and how, is the client's rule, not this endpoint's.
|
||||||
|
|
||||||
|
**Which rooms can be booked.** Each room carries `bookable`, the one derived field: `true` exactly when the
|
||||||
|
booking flow offers the room for a new booking. That is status `Frei` with `available` above 0. A room on request
|
||||||
|
(`Anfrage`) is not bookable even with rooms left, because booking it would only produce an inquiry, unless its
|
||||||
|
`code` ends in `Anf` (case-sensitive, e.g. `6erSDAnf`): the office sells such a room on request on purpose, it is
|
||||||
|
`bookable`, and booking it makes the whole booking an inquiry. No room with `available` 0 or `null` is bookable. Show a room that is not bookable as sold out and do not count it towards places
|
||||||
|
or the "ab" price. Read `bookable` rather than deriving it from `status` and `available`, so a change to the rule
|
||||||
|
reaches you without a client change.
|
||||||
|
|
||||||
|
At current volumes the export is ~420 rows and ~3.8 MB of JSON (a row is 4–24 kB), so the default `perPage=500`
|
||||||
|
returns it in one page.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"data": [
|
||||||
|
{
|
||||||
|
"product": { "code": "DKIWE", "busProId": 1127 },
|
||||||
|
"date": {
|
||||||
|
"code": "DKIWE041226",
|
||||||
|
"busProId": 12437,
|
||||||
|
"from": "2026-12-04",
|
||||||
|
"to": "2026-12-06",
|
||||||
|
"type": "F"
|
||||||
|
},
|
||||||
|
"hotel": { "code": "DKIWEKT", "busProId": 222931 },
|
||||||
|
"pseudoPrice": null,
|
||||||
|
"selectionGroups": [
|
||||||
|
{
|
||||||
|
"busProId": 7,
|
||||||
|
"label": "Leistungen Skipass",
|
||||||
|
"selections": [ { "busProId": 92, "label": "3 Tage Skipass" } ]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transportServices": [
|
||||||
|
{ "busProId": 193804, "subType": "PKW", "label": "Eigene Anreise mit Rabatt", "price": -50, "status": "Frei", "direction": "HIN" }
|
||||||
|
],
|
||||||
|
"dateServices": [
|
||||||
|
{ "busProId": 193805, "subType": "SON", "label": "Keycard-Pfand (Pflichtabgabe)", "price": 5.4, "status": "Frei", "direction": null }
|
||||||
|
],
|
||||||
|
"hotelServices": [
|
||||||
|
{ "busProId": 193805, "subType": "SON", "label": "Keycard-Pfand (Pflichtabgabe)", "price": 5.4, "status": "Frei", "direction": null }
|
||||||
|
],
|
||||||
|
"rooms": [
|
||||||
|
{
|
||||||
|
"busProId": 74,
|
||||||
|
"code": "MBZET",
|
||||||
|
"label": "Bett im Mehrbettzimmer Etagendusche/-WC",
|
||||||
|
"category": "GR",
|
||||||
|
"minPax": 1,
|
||||||
|
"maxPax": 1,
|
||||||
|
"nights": 2,
|
||||||
|
"price": 229,
|
||||||
|
"available": 24,
|
||||||
|
"status": "Frei",
|
||||||
|
"bookable": true,
|
||||||
|
"boardCode": "Lt. Auss.",
|
||||||
|
"boardBusProId": 2
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"pickups": [
|
||||||
|
{
|
||||||
|
"busProId": 4,
|
||||||
|
"code": "FRA-Route",
|
||||||
|
"city": "Frankfurt",
|
||||||
|
"street": "Flughafen (P36 zwischen Terminal 1 und 2)",
|
||||||
|
"price": 5.9,
|
||||||
|
"returnLeg": true,
|
||||||
|
"returnPrice": 5.9,
|
||||||
|
"datetime": "2026-12-03T23:30:00"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"guide": null
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"meta": {
|
||||||
|
"page": 1,
|
||||||
|
"perPage": 500,
|
||||||
|
"total": 419,
|
||||||
|
"totalPages": 1,
|
||||||
|
"skipped": 0,
|
||||||
|
"pickupsWithoutMasterData": 0,
|
||||||
|
"sourceGeneratedAt": "2026-09-30T11:11:01+02:00",
|
||||||
|
"generatedAt": "2026-09-30T14:05:00+02:00"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Row identity.** `(date.busProId, hotel.busProId)` is unique across the whole export — upsert on that pair.
|
||||||
|
`product.code` and `hotel.code` are verbatim and suitable for matching against your own records. No row depends on
|
||||||
|
hotel master data, so `skipped` counts only travel dates whose dates could not be parsed.
|
||||||
|
|
||||||
|
**Types.**
|
||||||
|
|
||||||
|
- Every price is a JSON **number** in euros, never a formatted string: `229`, `5.4`, `-50`. A price the source does
|
||||||
|
not state is `null`, and `0` means a stated zero ("included"). Do not treat the two alike.
|
||||||
|
- `selectionGroups`, `selections`, `transportServices`, `dateServices`, `hotelServices`, `rooms` and `pickups` are
|
||||||
|
always arrays, possibly empty, never null. `pseudoPrice` and `guide` are nullable.
|
||||||
|
- All arrays are in **source order**. Sort for display yourself; do not depend on the order.
|
||||||
|
|
||||||
|
**Rooms.** One entry per room offered on the date at that hotel.
|
||||||
|
|
||||||
|
- `code` is trimmed. `available` is a count of **rooms**, not persons — person capacity is `available × maxPax`.
|
||||||
|
- `status` is passed through verbatim: `Frei`, `Anfrage` or `Buchungsstop`.
|
||||||
|
- `available`, `price`, `minPax`, `maxPax`, `nights` and `boardBusProId` are `null` where the source leaves them
|
||||||
|
empty.
|
||||||
|
|
||||||
|
**`pseudoPrice`.** A struck-through comparison price for the date, carried upstream by a pseudo room with code
|
||||||
|
`PDGS`. It is lifted onto the row and never appears in `rooms`. It is `null` in most rows.
|
||||||
|
|
||||||
|
**Services.** Three lists, deliberately kept apart:
|
||||||
|
|
||||||
|
- `transportServices` — the date's transport services (bus, own arrival, train …). Both directions.
|
||||||
|
- `dateServices` — the date's general services.
|
||||||
|
- `hotelServices` — the services listed on this hotel for this date. Upstream repeats most date-level services
|
||||||
|
here, possibly with hotel-specific prices, so expect overlap with `dateServices`. If you merge the two, key by
|
||||||
|
`busProId`: it identifies a service across both lists.
|
||||||
|
|
||||||
|
`subType` is the upstream service subtype (`BUS`, `PKW`, `BAH`, `SON`, `SPA`, `VER`, `EIN`, …), passed through.
|
||||||
|
`direction` is `HIN` or `RUECK` on transport services and `null` on general ones. A negative `price` is a discount,
|
||||||
|
such as for arriving by car.
|
||||||
|
|
||||||
|
**Selection groups.** Every group on the date, not only the `Leistungen *` ones. Match groups by `busProId`, not by
|
||||||
|
`label`: labels are editorial and can be renamed upstream. The ids of the included-services groups are stable:
|
||||||
|
|
||||||
|
| `busProId` | Label |
|
||||||
|
|---|---|
|
||||||
|
| 7 | Leistungen Skipass |
|
||||||
|
| 8 | Leistungen Sonstige |
|
||||||
|
| 71 | Leistungen Verpflegung |
|
||||||
|
| 85 | Leistungen Übernachtung |
|
||||||
|
| 86 | Leistungen Programm |
|
||||||
|
| 87 | Leistungen Kurse |
|
||||||
|
| 89 | Leistungen Events |
|
||||||
|
| 90 | Leistungen Transport |
|
||||||
|
|
||||||
|
**Pickups.** Outbound boarding points only, in source order. `datetime` is resolved and formatted exactly as in
|
||||||
|
`GET /api/exports/travels` — a clock reading without an offset, `null` where upstream states no time — including
|
||||||
|
rolling a bare time past midnight onto the next day. There is no separate `time` field; format `datetime` for
|
||||||
|
display. `price` is the outbound boarding surcharge exactly as upstream states it: `null` where upstream states
|
||||||
|
none. The surcharge is charged **per leg**: `returnLeg` says whether the point is also served on the way back, and
|
||||||
|
`returnPrice` is its return surcharge, again verbatim and `null` where upstream states none. Neither price is levelled
|
||||||
|
against the other. A point served on the return leg only is not emitted. An id absent from
|
||||||
|
`GET /api/pickups` is emitted with `code`, `city` and `street` null and counted in `pickupsWithoutMasterData`. An id
|
||||||
|
of `0` is emitted as-is but not counted.
|
||||||
|
|
||||||
|
**`guide`.** `{ "name": …, "phone": … }` for the first outbound bus service that has a guide assigned, else `null`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Travels
|
||||||
|
|
||||||
|
#### `GET /api/travels` — scope `api`
|
||||||
|
|
||||||
|
Index/mapping of all known travel dates. Object keyed by numeric travel id, each value `{id, code, label, dateFrom, dateTo, hotels: [...]}`.
|
||||||
|
|
||||||
|
#### `GET /api/travels/{dateId}/{hotelId}` — scope `api`
|
||||||
|
|
||||||
|
Single travel by **numeric** ids (`hotelId` optional). Route matches only when both segments are digits.
|
||||||
|
|
||||||
|
#### `GET /api/travels/{dateCode}/{hotelCode}` — scope `api`
|
||||||
|
|
||||||
|
Same, addressed by **string** codes (`hotelCode` optional). The date code is sanitized (separators stripped) before lookup. `404 {"message":"Not found"}` if the date code is unknown, `404 {"message":"Travel not found"}` if no data exists.
|
||||||
|
|
||||||
|
Both variants accept optional query parameters:
|
||||||
|
|
||||||
|
- `source=local` — force the local XML/snapshot data.
|
||||||
|
- `source=remote` — force a live upstream call.
|
||||||
|
- `prefer_remote=1` — used only when `source` is absent; prefers upstream with local fallback.
|
||||||
|
|
||||||
|
Response fields: `id`, `code`, `productCode`, `productId`, `label`, `hotelId`, `hotel` (hotel object), `dateFrom`, `dateTo`, `type`, `status`, `allowedBookingStatus[]`, `priceFrom`, `selectionGroups[]`, `additionalServices[]`, `transportationServices[]`, `pickups[]`, `dropOffs[]`, `rooms[]`, `guide`, `insurances[]`.
|
||||||
|
|
||||||
|
#### `GET /api/travels/{dateId}/{hotelId}/{dateTo}/availability` — scope `api`
|
||||||
|
|
||||||
|
Live hotel availability from the upstream system. `dateTo` must be `Y-m-d`. On upstream failure returns `{"error":"...","type":"api_error"}` **with status 200**.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Contingents & accommodation prices
|
||||||
|
|
||||||
|
#### `GET /api/contingents/prices?hotelCode=…&year=…` — scope `api`
|
||||||
|
|
||||||
|
Price timeline for one accommodation and calendar year, collapsed into contiguous segments (adjacent days with the same effective price are merged into one row). The timeline never starts before today; if the requested year is entirely in the past the response is `[]`.
|
||||||
|
|
||||||
|
- `hotelCode`: required, max 16 chars, `[A-Za-z0-9_-]+` (matches the accommodation's calendar code).
|
||||||
|
- `year`: required int, 1000–9999.
|
||||||
|
|
||||||
|
Each row:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"dateFrom": "2026-06-01",
|
||||||
|
"dateTo": "2026-06-14",
|
||||||
|
"season": "high|low|...|null",
|
||||||
|
"includedPax": 2,
|
||||||
|
"pricePerNight": 89.5,
|
||||||
|
"priceAdditionalPerson": 25.0,
|
||||||
|
"defaultPricePerNight": 99.0,
|
||||||
|
"defaultPriceAdditionalPerson": 30.0,
|
||||||
|
"currency": "EUR",
|
||||||
|
"type": "discount|null"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Prices are **decimal major units** (converted from integer minor units server-side). `default*` fields are non-null only when the winning price is a discount, and then carry the undiscounted price. `400 {"error":"Hotel not found for hotelCode."}` for an unknown code; `400` with violations for invalid parameters.
|
||||||
|
|
||||||
|
#### `GET /api/contingents/calendar?hotelCode=…&dateFrom=…&dateTo=…` — scope `api`
|
||||||
|
|
||||||
|
Per-day availability enriched with prices.
|
||||||
|
|
||||||
|
`dateFrom` and `dateTo` are **optional, and must be supplied together** — one without the other is a `400`. Both are `Y-m-d` and **inclusive** (`dateTo` is the last night, not the checkout day); when supplied, the range may not exceed 366 days and `dateTo` must not precede `dateFrom`.
|
||||||
|
|
||||||
|
**Omit both to get the full priced span.** The range is then derived from the accommodation's persisted prices, `MIN(dateFrom)` to `MAX(dateTo)`, and never starts before today. This is the way to fetch everything a hotel sells in one call, and it is not subject to the 366-day cap — a hotel priced over two seasons returns well over a year of entries.
|
||||||
|
|
||||||
|
Full-span responses are contiguous, exactly like ranged ones: every day between the derived bounds gets an entry, including days no price covers. Those come back `BLOCKED` with `null` price fields — a hotel closed over winter reports the whole closure day by day rather than skipping it, so a consumer keying off `status` always finds one.
|
||||||
|
|
||||||
|
The response is `[]` — a `200`, not a `502` — when the hotel has no prices at all, or when every priced period has already ended.
|
||||||
|
|
||||||
|
Availability is served from a **local snapshot** refreshed over a 24-month horizon — every 15 minutes during the day, hourly overnight — not fetched from the upstream contingent service per request. The endpoint therefore responds in single-digit milliseconds and stays available during an upstream outage, at the cost of being at most one sync interval stale.
|
||||||
|
|
||||||
|
The response format is unchanged from the previous upstream-backed implementation: same fields, same order, same types, same `status` values. One behavioural note — the endpoint returns **one entry per day of the range**, whether that range came from `dateFrom`/`dateTo` or was derived from the prices. Previously days the upstream service did not mention were simply absent, so a response may contain days it would not have contained before. It is a superset, never a different shape.
|
||||||
|
|
||||||
|
Two kinds of day resolve to `BLOCKED` regardless of the underlying contingent:
|
||||||
|
|
||||||
|
- **days in the past** — the snapshot is maintained from today forward only (`prices` likewise refuses past ranges)
|
||||||
|
- **days beyond the synced horizon** — currently 24 months out. Prices are often maintained further ahead than the contingent is synced, so a full-span response can end in a run of `BLOCKED` days that simply have no availability data yet.
|
||||||
|
|
||||||
|
Each entry:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"date": "2026-06-01",
|
||||||
|
"status": "Free|Blocked|...",
|
||||||
|
"type": "discount|null",
|
||||||
|
"pricePerNight": 89.5,
|
||||||
|
"defaultPricePerNight": 99.0,
|
||||||
|
"priceAdditionalPerson": 25.0,
|
||||||
|
"defaultPriceAdditionalPerson": 30.0,
|
||||||
|
"currency": "EUR",
|
||||||
|
"includedPax": 2,
|
||||||
|
"minNights": 2
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Important rule: **a day with no maintained price is forced to `Blocked`** regardless of what the upstream contingent says. Price fields may be `null` in that case. This applies to both modes.
|
||||||
|
|
||||||
|
Errors: `400 {"error":"Hotel not found for hotelCode."}`, `400` with violations for invalid parameters.
|
||||||
|
|
||||||
|
`502 {"error":"Failed to fetch contingent data."}` is still returned — with the same body as before — but it now means **"no usable local snapshot for this hotel"** rather than "the upstream call failed": either the hotel has never synced successfully, or its last successful sync is more than 6 hours old. Treat it as before: the data is unavailable, not empty. This matters because the alternative would be a `200` reporting every day as `BLOCKED`, which is indistinguishable from a genuinely fully-booked hotel.
|
||||||
|
|
||||||
|
#### `GET /api/contingents/availability?hotelCode=…&dateFrom=…&dateTo=…` — scope `api`
|
||||||
|
|
||||||
|
The raw contingent snapshot per day, without prices. Built for the iCal feed that external booking portals import, which blocks only what the contingent itself reports as unavailable.
|
||||||
|
|
||||||
|
Parameters are the same as for `calendar`: `hotelCode` is required, `dateFrom` and `dateTo` are optional, `Y-m-d`, inclusive, and must be supplied together (at most 366 days). **Omit both to get every snapshot day from today to the end of the snapshot** (the 24-month sync horizon). Prices play no part in that span.
|
||||||
|
|
||||||
|
Each entry, ordered by date:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{"date": "2027-01-30", "status": "BLOCKED"}
|
||||||
|
```
|
||||||
|
|
||||||
|
`status` is `OK`, `BLOCKED` or `ON_REQUEST`.
|
||||||
|
|
||||||
|
Two differences from `calendar`:
|
||||||
|
|
||||||
|
- **No price rule.** A day without a maintained price keeps the status the contingent reports; it is not forced to `BLOCKED`.
|
||||||
|
- **Days the snapshot lacks are left out**, not returned as `BLOCKED`. The response is not contiguous: a day without an entry has no availability data, and the feed shows it as free, as it did when it read the upstream service directly.
|
||||||
|
|
||||||
|
- **Not limited to accommodations.** `hotelCode` may be any synced hotel code: an accommodation's calendar code, or the calendar hotel of a visible TYPO3 product (TYPO3's `/api/calendar-hotels`). Winter-only hotels without an accommodation are therefore served here, while `calendar` and `prices` still need an accommodation, since they need its prices.
|
||||||
|
|
||||||
|
Errors are the same as for `calendar`: `400 {"error":"Hotel not found for hotelCode."}` when the code is not synced, `400` with violations for invalid parameters, and `502 {"error":"Failed to fetch contingent data."}` when there is no usable snapshot. For this endpoint the `502` is the important one: an empty list would show every day as free, so a consumer should answer with an error and let the portals keep their last import.
|
||||||
|
|
||||||
|
#### `GET /api/contingents/status` — scope `api`
|
||||||
|
|
||||||
|
One row per synced hotel code, sorted by code, for an overview of which hotel supports which calendar:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"hotelCode": "DGS",
|
||||||
|
"name": "Sportclub Spinabad",
|
||||||
|
"sources": ["accommodation", "typo3"],
|
||||||
|
"accommodation": {"name": "Davos Glaris - Gruppenhaus Spinabad", "cmsCode": "DGSGRP"},
|
||||||
|
"pricedFrom": "2027-06-01",
|
||||||
|
"pricedTo": "2027-09-30",
|
||||||
|
"syncedAt": "2026-10-29T10:15:00+01:00",
|
||||||
|
"lastError": null,
|
||||||
|
"failureCount": 0,
|
||||||
|
"available": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `sources`: where the code comes from, `accommodation` and/or `typo3`.
|
||||||
|
- `name`: the hotel's name in TYPO3's calendar hotel list, `null` for a code TYPO3 does not list.
|
||||||
|
- `accommodation`: `null` without one; `cmsCode` is the code the accommodation is known by in TYPO3, which may differ from `hotelCode`.
|
||||||
|
- `pricedFrom`/`pricedTo`: the span of the accommodation's prices, `null` without prices. `calendar` and `prices` work only for hotels that have them.
|
||||||
|
- `syncedAt`, `lastError`, `failureCount`: the last successful sync (`null` if none) and the failures since.
|
||||||
|
- `available`: whether `availability` currently serves the hotel, i.e. it has synced within the last 6 hours. `false` means that endpoint answers `502`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Operating the snapshot (deployment)
|
||||||
|
|
||||||
|
The snapshot is filled only by the scheduler, so on an empty database (a new environment, or after the snapshot tables were truncated) every hotel returns `502` until the first successful sync — deliberately, so no consumer caches a fully-blocked calendar as if it were real availability.
|
||||||
|
|
||||||
|
Bringing up an environment:
|
||||||
|
|
||||||
|
1. **Confirm `BPN_CONNECT_API_KEY` is valid for the environment.** If it is rejected the sync cannot populate anything and the endpoints stay at `502`.
|
||||||
|
2. Deploy; `database:migrate` creates the tables.
|
||||||
|
3. Run `bin/console app:bpn:sync-contingents -v` on the host promptly, ideally off-peak — a consumer that page-caches whatever it renders from a `502` may hold that for the length of its own cache period.
|
||||||
|
4. Verify with `GET /api/contingents/status`: every row `available: true`, `failureCount` 0.
|
||||||
|
|
||||||
|
Thereafter the scheduler keeps it current; a sync failing for one hotel puts only that hotel into `502` and leaves the rest serving normally.
|
||||||
|
|
||||||
|
**Which hotels are synced.** Every accommodation's calendar code plus every code in TYPO3's `/api/calendar-hotels` (same `APP_CMS_API_KEY` as the other CMS calls). Each run fetches TYPO3's list first and stores it in `calendar_hotel`; when TYPO3 errors or answers with an empty list, the run logs a warning and uses the stored list, so TYPO3 being down never drops its hotels. `--hotel=<code>` accepts any code from either source. A full run deletes the snapshot of codes that are in neither source any more; they answer `400` from then on, and come back with the next run if they reappear.
|
||||||
|
|
||||||
|
**TYPO3's codes must be BusPro calendar codes.** The sync sends every code to bpn-connect as is. A TYPO3 hotel whose code is a CMS code rather than the BusPro hotel code (group houses often have both, e.g. calendar code `DKS`, CMS code `DKSGRP`) is answered with a `404` by bpn-connect: that code fails on every run, logs two errors each time, and shows up in `contingents/status` with `lastError` set and `available: false`. The task itself keeps succeeding, since only a total failure fails it. The fix belongs in TYPO3, by pointing the product at a hotel whose code is the BusPro code; MyE&P does not translate CMS codes. `contingents/status` is the place to spot such codes, and `accommodation.cmsCode` there shows both codes side by side for group houses.
|
||||||
|
|
||||||
|
### Freshness and propagation
|
||||||
|
|
||||||
|
There is deliberately **no change-notification endpoint**. Availability changes slowly, and the measured cost of simply refetching on a TTL is low enough that a polling/revision mechanism was not worth the extra moving parts on either side.
|
||||||
|
|
||||||
|
That leaves two levers, and consumers should know both:
|
||||||
|
|
||||||
|
- **Their own cache TTL** bounds how stale a rendered calendar can be. A one-hour TTL is the current agreed budget.
|
||||||
|
- **Direct cache invalidation** is the only fast path when something must propagate sooner — a hotel closing, or bad availability that got cached. Consumers should keep this targeted rather than flushing everything; the TYPO3 site, for example, tags its cached calendar and price entries per hotel, so a single hotel can be flushed and re-warmed on its own.
|
||||||
|
|
||||||
|
On this side, staleness is bounded by the sync cadence and hard-capped by the 6-hour guard: past that, the endpoint returns `502` rather than presenting stale availability as current.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Accommodation bookings (group bookings)
|
||||||
|
|
||||||
|
#### `GET /api/accommodation-bookings/{uuid}` — scope `api`
|
||||||
|
|
||||||
|
Single booking by UUID. `404 {"message":"Not found"}` if unknown.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"uuid": "...",
|
||||||
|
"status": "...",
|
||||||
|
"type": "...",
|
||||||
|
"dateFrom": "2026-06-01",
|
||||||
|
"dateTo": "2026-06-08",
|
||||||
|
"nights": 7,
|
||||||
|
"paxCount": 40,
|
||||||
|
"minorsCount": 12,
|
||||||
|
"childrenCount": 3,
|
||||||
|
"groupName": "...",
|
||||||
|
"acceptedAt": "2026-05-01T10:00:00+00:00",
|
||||||
|
"personalData": {},
|
||||||
|
"accommodation": {},
|
||||||
|
"boardService": {},
|
||||||
|
"additionalServices": [],
|
||||||
|
"accommodationDiscount": null,
|
||||||
|
"boardServiceDiscount": null,
|
||||||
|
"additionalServicesDiscount": null,
|
||||||
|
"totalDiscountAmount": null,
|
||||||
|
"totalDiscountLabel": null,
|
||||||
|
"totalPrice": 123456,
|
||||||
|
"pricingCurrency": "EUR",
|
||||||
|
"pricingVersion": 2,
|
||||||
|
"priceBreakdown": {}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
`totalPrice` and `totalDiscountAmount` are integer **minor units** (cents) — unlike the contingent endpoints. The three `*Discount` fields are whole **percentages** (1–100) or `null`, not amounts. `dateFrom`/`dateTo` are `Y-m-d`; `acceptedAt` is a full ISO-8601 datetime and is `null` until accepted. `priceBreakdown` is a computed nested structure.
|
||||||
|
|
||||||
|
The first three discounts each apply to one section of the breakdown: `accommodationDiscount` to `basePrice + additionalPersonsPrice`, `boardServiceDiscount` to `boardPrice`, `additionalServicesDiscount` to `servicesPrice`. Surcharges, running costs and the lines of split-off periods sit in `total` but in no section, so the section discounts never reach them; only `totalDiscountAmount` does.
|
||||||
|
|
||||||
|
`dateFrom`/`dateTo`/`nights` span the whole stay. The office can split nights off its start or end, for example for an advance team arriving before the group. Such a split-off period has no headcount, board or services of its own; it is priced as free-form lines instead. `paxCount`, `minorsCount`, `childrenCount`, `boardService` and `additionalServices` describe the **group**, which stays for what remains between the split-off periods. The split-off periods are listed in `priceBreakdown.periods`, below. A booking nobody split has an empty list there, and its group stays for the whole stay.
|
||||||
|
|
||||||
|
`totalDiscountAmount` is a freely named discount on the whole price, labelled by `totalDiscountLabel`. It is a fixed sum, not a percentage, and is subtracted **after** the three section discounts have reduced `total`. It is capped at what is left of that subtotal, so `discountedTotal` is never negative and the amount shown in the breakdown may be smaller than `totalDiscountAmount` itself. The section discounts are each rounded to the nearest cent as they are applied.
|
||||||
|
|
||||||
|
`priceBreakdown` carries the resulting rows, all in minor units:
|
||||||
|
|
||||||
|
| field | meaning |
|
||||||
|
| --- | --- |
|
||||||
|
| `nights` | the group's nights, which are fewer than the booking's `nights` when periods were split off |
|
||||||
|
| `periods` | list of `{position, label, dateFrom, dateTo, nights, lines, total}`, at most one per side, in date order; `position` is `leading` (before the group) or `trailing` (after it), `label` is the office's name for the period or `null`, `lines` is a list of `{label, amount}`, and `total` is their sum |
|
||||||
|
| `periodsTotal` | the sum of all `periods[].total` |
|
||||||
|
| `total` | the price before discounts, the group's rows plus `periodsTotal` |
|
||||||
|
| `discounts` | list of `{label, percent, amount}` for the section discounts; entries rounding to `0` are omitted, and `label` already includes its `Rabatt ` prefix |
|
||||||
|
| `discountSubtotal` | `total` minus the section discounts — present only when `totalDiscountAmount` applies *and* at least one section discount did, otherwise `null` |
|
||||||
|
| `totalDiscountDetails` | `{label, amount}` for the total discount, or `null`; `amount` is the capped figure actually subtracted |
|
||||||
|
| `discountedTotal` | the final price, equal to the booking's `totalPrice` |
|
||||||
|
|
||||||
|
#### `POST /api/accommodation-bookings/{uuid}/accept` — scope `api`
|
||||||
|
|
||||||
|
Marks the booking as accepted (server-side side effects: status change, `acceptedAt`, notifications). No request body. Returns the same booking representation as the GET. `404` if unknown. Not idempotent in terms of side effects — call once.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Contact form
|
||||||
|
|
||||||
|
#### `POST /api/contactform` — scope `api`
|
||||||
|
|
||||||
|
Creates or matches an address record in the upstream CRM.
|
||||||
|
|
||||||
|
Request body (all fields optional strings; the upstream system decides what is required):
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"lastName": "...", "firstName": "...", "gender": "...",
|
||||||
|
"street": "...", "zipCode": "...", "city": "...",
|
||||||
|
"email": "...", "phone": "..."
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `201` — `{"success": true, "addressId": 123, "personId": 456, "isNewRecord": true}`
|
||||||
|
- `409` — `{"success": false, "message": "<upstream notification>"}` (upstream rejected/conflicted)
|
||||||
|
- `400` — `{"success": false, "message": "<error>"}` (upstream call failed)
|
||||||
|
- `422` — malformed payload
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Newsletter
|
||||||
|
|
||||||
|
#### `GET /api/newsletters` — scope `api`
|
||||||
|
|
||||||
|
The configured newsletter lists as an array of `{id, name, ...}` mapping objects. Use the returned `id` values as `listIds` below.
|
||||||
|
|
||||||
|
#### `POST /api/newsletter-subscriptions` — scope `api`
|
||||||
|
|
||||||
|
Request:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"email": "[email protected]",
|
||||||
|
"firstName": "Ada",
|
||||||
|
"lastName": "Lovelace",
|
||||||
|
"listIds": [1, 2]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `email`: required, strict email validation.
|
||||||
|
- `firstName` / `lastName`: optional, max 255 chars.
|
||||||
|
- `listIds`: required, at least one positive integer; every id must be one of the configured lists.
|
||||||
|
|
||||||
|
Responses:
|
||||||
|
|
||||||
|
- `200` — subscription completed, `state: "subscribed"`.
|
||||||
|
- `202` — a double-opt-in confirmation mail was requested, `state: "confirmation_requested"`.
|
||||||
|
- Body in both cases:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"success": true,
|
||||||
|
"email": "[email protected]",
|
||||||
|
"lists": [{"id": 1, "name": "...", "state": "success|pending|already_registered"}],
|
||||||
|
"state": "subscribed|pending_confirmation|confirmation_requested",
|
||||||
|
"confirmationRequested": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
- `400` — unknown or disallowed list ids: `{"success": false, "message": "...", "listIds": [...], "unknownListIds": [...]}`, or validation violations.
|
||||||
|
- `503` — `{"success": false, "email": "...", "listIds": [...], "message": "Newsletter subscription request could not be processed."}` when the newsletter provider is unavailable. Safe to retry.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### End-user endpoints (require a user-bound token)
|
||||||
|
|
||||||
|
#### `GET /api/userinfo` — scope `email` (+ optional `id`, `profile`, `roles`)
|
||||||
|
|
||||||
|
OIDC-style claims for the authenticated user. The response contains only the claims covered by the granted scopes:
|
||||||
|
|
||||||
|
- always: `sub` (UUID string, see below), `email`
|
||||||
|
- scope `id`: `person_id`, `address_id`
|
||||||
|
- scope `roles`: `roles` (array; only the roles that actually grant something are exported — the implicit baseline role is stripped, and so are the `*_PENDING` markers of roles the BusPro CRM claims but nobody has approved yet, see `docs/buspronet-schema/crm-selection-queries.md#from-claim-to-role`)
|
||||||
|
- scope `profile`: `profile` object:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"first_name": "...", "last_name": "...", "title": "...", "salutation": "...",
|
||||||
|
"gender": "...", "date_of_birth": "1990-01-01", "nationality": "...",
|
||||||
|
"address": {"street": "...", "postcode": "...", "city": "...", "district": "...", "country": "..."},
|
||||||
|
"communication": {"email": "...", "mobile": "...", "phone": "...", "newsletter": true},
|
||||||
|
"hotel_codes": ["..."], "height": null, "weight": null, "shoe_size": null, "remarks": "..."
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Identifying the account: match on `sub`
|
||||||
|
|
||||||
|
A BusPro address record holds several email addresses (private and business, say), and BusPro
|
||||||
|
accepts **any** of them as a login. Each one is a **separate MyE&P account with its own roles** —
|
||||||
|
that is intended, not a duplicate: administrative roles are reserved for the company address, so
|
||||||
|
the same person signing in privately is a Teamer:in or Kund:in and signing in with their
|
||||||
|
`@ep-reisen.de` address is an administrator.
|
||||||
|
|
||||||
|
All of those accounts report the **same** `person_id` and `address_id`, and the same
|
||||||
|
`profile.communication.email` — that value is the first contact address on the BusPro record and
|
||||||
|
is **not necessarily** the one signed in with. So:
|
||||||
|
|
||||||
|
- **`sub`** — a **UUID (v4, RFC 4122, 36 characters)**, stable for the life of the account and
|
||||||
|
unique across accounts. The only claim that identifies an account. Match your local user on it
|
||||||
|
and store it. Size the column at 36 characters and treat the value as opaque: it is random, it
|
||||||
|
carries no timestamp and no ordering, and nothing about it should be parsed or derived from.
|
||||||
|
- **`email`** — the address this session actually authenticated with. Distinct per account, but
|
||||||
|
treat it as a display and contact value; it is not the account key.
|
||||||
|
- **`person_id` / `address_id`** — the BusPro person behind the account. Shared between that
|
||||||
|
person's accounts, so they identify a *human*, never an account. Do not match on them.
|
||||||
|
|
||||||
|
Do not derive staff status from an email domain. MyE&P decides who is a member of staff and
|
||||||
|
exports the result as `ROLE_EMPLOYEE` in the `roles` claim; re-deriving it from `email` or from
|
||||||
|
`profile.communication.email` will disagree with MyE&P in both directions.
|
||||||
|
|
||||||
|
`400 {"message": "...", "code": "..."}` when the upstream lookup fails or rejects the credentials.
|
||||||
|
|
||||||
|
#### `GET /api/crm-attributes` — scope `profile`
|
||||||
|
|
||||||
|
CRM selection attributes/segments for the authenticated user. `400 {"message": "...", "code": "..."}` on upstream failure.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Client implementation notes
|
||||||
|
|
||||||
|
1. **Token lifetime comes from `expires_in`** (currently 1 hour for client_credentials, 10 minutes for authorization_code) — cache the token for that long, refresh with a safety margin, and retry once on 401.
|
||||||
|
2. **Check for an `error` key even on 200 responses** for `/api/products` and the travel availability endpoint.
|
||||||
|
3. **Money units are inconsistent across endpoints**: contingent endpoints return decimal major units; accommodation-booking fields return integer cents. Normalize at the client boundary.
|
||||||
|
4. **Dates**: `Y-m-d` everywhere except `acceptedAt` (ISO-8601 datetime) and pickup planning (`Y-m-d H:i`). Contingent `dateFrom`/`dateTo` are inclusive night boundaries.
|
||||||
|
5. **Server-side caching** (1 h on products) means upstream changes may not be visible immediately. The contingent calendar is snapshot-backed instead: it is at most one sync interval behind upstream. There is no change-notification endpoint — clients are expected to cache on their own TTL and, when something must propagate sooner, invalidate their cache directly.
|
||||||
|
6. **Route ambiguity**: `/api/travels/{a}/{b}` resolves to the id-based route when both segments are numeric, otherwise to the code-based route. Non-numeric codes are safe; purely numeric *codes* will hit the id route.
|
||||||
@@ -1,122 +0,0 @@
|
|||||||
# Body Dimensions Transition Plan (Stakeholder Draft)
|
|
||||||
|
|
||||||
> **STATUS (verified 2026-07-15): NOT IMPLEMENTED.** `src/Form/BodyDimensionsType.php` still declares `height`, `shoeSize`, and `weight` as `IntegerType` fields, and `src/Validator/Constraints/ParticipantValidator.php` has no regex/legacy-format handling — only numeric range checks. This plan has not been acted on.
|
|
||||||
|
|
||||||
## Goal
|
|
||||||
|
|
||||||
Prevent edit-form failures for existing bookings while we transition from legacy body-dimension values to a better long-term field model.
|
|
||||||
|
|
||||||
This plan introduces a temporary compatibility phase and keeps sunsetting manual and straightforward.
|
|
||||||
|
|
||||||
## Current Problem
|
|
||||||
|
|
||||||
- Existing bookings may contain legacy values such as `-148`, `149-157`, or `195+`.
|
|
||||||
- Integer-only form fields can fail when these legacy strings are loaded.
|
|
||||||
- Result: participant edit forms can crash before submit.
|
|
||||||
|
|
||||||
## Proposed Transition Strategy
|
|
||||||
|
|
||||||
Use **text input fields** for body dimensions during transition, with explicit server-side format validation.
|
|
||||||
|
|
||||||
### Key Decisions
|
|
||||||
|
|
||||||
- No gating by booking create date.
|
|
||||||
- One unified behavior for all bookings.
|
|
||||||
- Accept both legacy and numeric formats during transition.
|
|
||||||
- Keep manual sunsetting later (no automated migration switch).
|
|
||||||
|
|
||||||
## Functional Scope
|
|
||||||
|
|
||||||
Affected fields:
|
|
||||||
|
|
||||||
- `height`
|
|
||||||
- `weight`
|
|
||||||
- `shoeSize`
|
|
||||||
|
|
||||||
Affected components:
|
|
||||||
|
|
||||||
- `src/Form/BodyDimensionsType.php`
|
|
||||||
- `src/Validator/Constraints/ParticipantValidator.php`
|
|
||||||
- `src/Form/BookingParticipantType.php` (option passthrough already in place)
|
|
||||||
- `config/services.yaml` (ranges remain as validation/config source)
|
|
||||||
|
|
||||||
## Validation Rules During Transition
|
|
||||||
|
|
||||||
### Accepted formats
|
|
||||||
|
|
||||||
- Numeric value: `^\d+$` (e.g. `176`)
|
|
||||||
- Legacy lower/open/range tokens:
|
|
||||||
- `^-\d+$` (e.g. `-148`)
|
|
||||||
- `^\d+\+$` (e.g. `195+`)
|
|
||||||
- `^\d+\s*-\s*\d+$` (e.g. `149-157`)
|
|
||||||
|
|
||||||
### Requiredness
|
|
||||||
|
|
||||||
- Keep existing rule: body dimensions required when rentals are selected.
|
|
||||||
|
|
||||||
### Range checks
|
|
||||||
|
|
||||||
- Keep current numeric range checks based on `body_dimension_ranges`.
|
|
||||||
- Apply range checks only to plain numeric values in transition phase.
|
|
||||||
|
|
||||||
## UX/Behavior Expectations
|
|
||||||
|
|
||||||
- Existing legacy values render without form initialization errors.
|
|
||||||
- New numeric entries are accepted and validated.
|
|
||||||
- Invalid free text (e.g. `abc`, `17x`) shows clear validation errors.
|
|
||||||
- HTMX refresh behavior remains unchanged.
|
|
||||||
|
|
||||||
## Implementation Steps
|
|
||||||
|
|
||||||
1. **Form type change**
|
|
||||||
- In `BodyDimensionsType`, replace integer fields with text fields for all three body dimensions.
|
|
||||||
- Keep labels/help text; keep placeholders based on configured ranges.
|
|
||||||
|
|
||||||
2. **Validator extension**
|
|
||||||
- Add format validation for all three fields in `ParticipantValidator`.
|
|
||||||
- Keep existing required-when-rentals logic.
|
|
||||||
- Keep existing range validation for numeric values.
|
|
||||||
|
|
||||||
3. **Message tuning**
|
|
||||||
- Add one clear message for invalid format.
|
|
||||||
- Retain existing range message for numeric out-of-range values.
|
|
||||||
|
|
||||||
4. **Testing and QA**
|
|
||||||
- Validate old bookings with legacy values open/edit successfully.
|
|
||||||
- Validate numeric path (valid and invalid range).
|
|
||||||
- Validate invalid format handling.
|
|
||||||
- Validate rental-required behavior.
|
|
||||||
|
|
||||||
## Acceptance Criteria
|
|
||||||
|
|
||||||
- No 500 error when editing participants with legacy body-dimension values.
|
|
||||||
- Legacy values can be loaded and submitted in transition phase.
|
|
||||||
- Numeric values are accepted and range-validated.
|
|
||||||
- Invalid text is rejected with a user-facing validation message.
|
|
||||||
- Existing participant edit/refresh flows continue to work.
|
|
||||||
|
|
||||||
## Risks and Mitigations
|
|
||||||
|
|
||||||
- **Risk:** Free-text field semantics are less strict than integer fields.
|
|
||||||
- **Mitigation:** strict server-side regex + range checks.
|
|
||||||
|
|
||||||
- **Risk:** Inconsistent data representations during transition.
|
|
||||||
- **Mitigation:** explicit acceptance policy and manual sunset plan.
|
|
||||||
|
|
||||||
## Effort Estimate
|
|
||||||
|
|
||||||
- Implementation: 0.5 day
|
|
||||||
- Validation/message tuning: 0.25 day
|
|
||||||
- QA/manual testing: 0.5 day
|
|
||||||
- **Total:** ~1 to 1.5 days
|
|
||||||
|
|
||||||
## Manual Sunset Plan (Later)
|
|
||||||
|
|
||||||
When stakeholders approve end of transition:
|
|
||||||
|
|
||||||
1. Replace text fields with final semantic field type(s).
|
|
||||||
2. Remove legacy format acceptance from validator.
|
|
||||||
3. Keep only final numeric/range validation behavior.
|
|
||||||
4. Remove transition-specific tests and copy.
|
|
||||||
|
|
||||||
Expected cleanup effort: ~0.25 to 0.5 day.
|
|
||||||
@@ -1,196 +0,0 @@
|
|||||||
# Booking Flow Reference
|
|
||||||
|
|
||||||
Last updated: 2026-07-15
|
|
||||||
|
|
||||||
This document traces the booking create and edit flows from controller entry point through to session/DTO state. It is intended as orientation for developers unfamiliar with the flow, not as a substitute for reading the code.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Shared Concepts
|
|
||||||
|
|
||||||
### `BookingDto`
|
|
||||||
|
|
||||||
The central data object for both flows. Holds room selections, participants, payment method, and travel reference. Lives in the HTTP session between requests. Has two modes: `MODE_CREATE` and `MODE_EDIT`.
|
|
||||||
|
|
||||||
### `BookingSessionManager`
|
|
||||||
|
|
||||||
Owns all reads and writes to session-stored `BookingDto` instances. Also manages the baseline room snapshot used for change detection in the create flow.
|
|
||||||
|
|
||||||
### `BookingCreateContextFactory`
|
|
||||||
|
|
||||||
Assembles the view model (`BookingCreateContext`) passed to create-flow templates. Handles room grouping (by-pax vs. by-room) and wires summary sidebar data.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Create Flow
|
|
||||||
|
|
||||||
```
|
|
||||||
Step 1 (room selection)
|
|
||||||
→ Step 2 (participants)
|
|
||||||
→ Step 2 sub-form (per-participant, HTMX)
|
|
||||||
→ Step 3 (payment + API pre-validation)
|
|
||||||
→ Step 4 (confirmation + final submission)
|
|
||||||
→ Success
|
|
||||||
```
|
|
||||||
|
|
||||||
### Entry / Bootstrap
|
|
||||||
|
|
||||||
`AbstractBookingCreateController::loadBookingCreateDto()` is called by every step controller and delegates to `BookingSessionManager::getOrCreateBookingCreateDto()`. If no DTO exists in session, `BookingConfigurator::startFreshBooking()` loads travel data and initialises a fresh `BookingDto`.
|
|
||||||
|
|
||||||
### Step 1 — Room Selection
|
|
||||||
|
|
||||||
**Controller:** `Create/Step1Controller`
|
|
||||||
**Route:** `GET|POST /bookings/create/rooms`
|
|
||||||
|
|
||||||
1. Load or create DTO via `getOrCreateBookingCreateDto()`
|
|
||||||
2. `BookingSessionManager::getOrCreateBaselineSnapshot()` — saves the current room selection as a comparison point for change detection
|
|
||||||
3. Render `BookingCreateStep1Type` form
|
|
||||||
4. On submit:
|
|
||||||
- If room selection changed from baseline: `BookingDto::resetParticipantAssignments()` — clears stale assignments
|
|
||||||
- `BookingConfigurator::updateBookingStatusFromRoomSelection()` — may switch booking to inquiry mode if capacity constraints require it
|
|
||||||
- `BookingSessionManager::saveBookingDto()`, advance `currentStep` to 2
|
|
||||||
- `BookingSessionManager::clearBaselineSnapshot()`
|
|
||||||
- Redirect to Step 2
|
|
||||||
|
|
||||||
HTMX refresh (`/bookings/create/refresh`): processes the form without validation and returns updated room selection + summary sidebar blocks.
|
|
||||||
|
|
||||||
### Step 2 — Participants (Card Overview)
|
|
||||||
|
|
||||||
**Controller:** `Create/Step2Controller`
|
|
||||||
**Route:** `GET|POST /bookings/create/participants`
|
|
||||||
|
|
||||||
1. Load DTO from session (or redirect to Step 1 if missing)
|
|
||||||
2. `TravelDataProvider::enrichWithFreshAvailabilities()` — refreshes room availability
|
|
||||||
3. `ensureCorrectNumberOfParticipants()` — syncs the `BookingDto::participants` array length with the room selections (e.g., 2× double room → 4 participants). Preserves existing participant data for slots that still exist.
|
|
||||||
4. `ParticipantDataPrefiller::shouldPrefillApplicant()` + `prefillApplicantFromUser()` — prefills participant[0] from user profile on first visit
|
|
||||||
5. `RoomAssigner::validateAndResetInvalidAssignments()` — clears any room assignments that no longer match the current room selection (handles back-navigation from Step 2 → Step 1 → Step 2)
|
|
||||||
6. `RoomAssigner::assignRoomsIfNeeded()` — auto-assigns participants to rooms
|
|
||||||
7. `BookingConfigurator::preselectDefaultServices()` — selects mandatory and auto-book services for all participants
|
|
||||||
8. `BookingConfigurator::applyCreateBookingStatusRules()` — re-evaluates booking status (book / inquiry / not-bookable)
|
|
||||||
9. `BookingSessionManager::saveBookingDto()`
|
|
||||||
10. On form submit (all participants valid): advance to Step 3, redirect
|
|
||||||
|
|
||||||
### Step 2 — Individual Participant Form (HTMX)
|
|
||||||
|
|
||||||
**Controller:** `Create/Step2ParticipantController`
|
|
||||||
**Routes:** `GET|POST /bookings/create/participants/{index}` and `/participants/{index}/refresh`
|
|
||||||
|
|
||||||
Each participant card lazy-loads its form via HTMX. The controller:
|
|
||||||
|
|
||||||
1. Verifies the participant slot exists
|
|
||||||
2. Refreshes availability
|
|
||||||
3. Handles dummy data fill (`ParticipantDataPrefiller::isDummyDataFillRequested()` / `fillDummyParticipant()`)
|
|
||||||
4. On submit: re-applies status rules, saves to session, redirects to card overview
|
|
||||||
5. `ParticipantFormSupport` is used for form creation options and notification draining
|
|
||||||
|
|
||||||
### Step 3 — Payment + API Pre-Validation
|
|
||||||
|
|
||||||
**Controller:** `Create/Step3Controller`
|
|
||||||
**Route:** `GET|POST /bookings/create/payment`
|
|
||||||
|
|
||||||
1. Load DTO from session
|
|
||||||
2. `BookingConfigurator::applyCreateBookingStatusRules()`
|
|
||||||
3. On submit:
|
|
||||||
- `ApiClient::createBookingInquiry()` — submits booking to API for validation without committing it
|
|
||||||
- If inquiry fails with "nicht möglich" + "Anfrage" in message: auto-switch to inquiry mode, advance to Step 4
|
|
||||||
- If inquiry fails otherwise: show error, stay on step
|
|
||||||
- Price verification: `BookingPriceCalculator::calculateGrandTotal()` is compared against the API response total (accounting for promotional/goodwill voucher discounts and API-applied group discounts). Mismatch triggers `BookingPriceMismatchAnalyzer` for detailed logging.
|
|
||||||
- On success: advance `currentStep` to 4, redirect
|
|
||||||
|
|
||||||
### Step 4 — Confirmation + Final Submission
|
|
||||||
|
|
||||||
**Controller:** `Create/Step4Controller`
|
|
||||||
**Route:** `GET|POST /bookings/create/confirmation`
|
|
||||||
|
|
||||||
1. Load DTO from session
|
|
||||||
2. Newsletter subscription check for opt-in display
|
|
||||||
3. On submit:
|
|
||||||
- `BookingConfigurator::applyCreateBookingStatusRules()`
|
|
||||||
- `ApiClient::createBooking()` — final booking submission (already validated in Step 3)
|
|
||||||
- Newsletter double-opt-in if selected
|
|
||||||
- On success: store booking number + total in flash (for analytics), clear travel data cache, `BookingSessionManager::clearBookingDto()`, redirect to success page
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Edit Flow
|
|
||||||
|
|
||||||
```
|
|
||||||
Entry (start)
|
|
||||||
→ Load (session or API + draft restore)
|
|
||||||
→ Participant sub-forms (HTMX, per-participant)
|
|
||||||
→ Submission
|
|
||||||
```
|
|
||||||
|
|
||||||
### Entry
|
|
||||||
|
|
||||||
**Controller:** `Edit/IndexController::start()`
|
|
||||||
**Route:** `GET /bookings/{id}/edit/start`
|
|
||||||
|
|
||||||
Clears any existing session DTO for edit mode and invalidates the API booking cache, then redirects to the edit page. This ensures a clean load from API on every intentional re-entry.
|
|
||||||
|
|
||||||
### Load
|
|
||||||
|
|
||||||
**Controller:** `Edit/IndexController::index()`
|
|
||||||
**Route:** `GET|POST /bookings/{id}/edit`
|
|
||||||
|
|
||||||
Loading is delegated entirely to `BookingEditDataLoader::loadFormData()`:
|
|
||||||
|
|
||||||
**If session DTO exists and matches the requested booking ID:**
|
|
||||||
- `TravelDataProvider::enrichWithFreshAvailabilities()` — refreshes room availability
|
|
||||||
- `TravelDataProvider::getMutabilityData()` + `patchMutability()` — applies cached mutability state to DTO
|
|
||||||
|
|
||||||
**If no session DTO (first load or after `start`):**
|
|
||||||
|
|
||||||
`initializeFromApi()`:
|
|
||||||
1. `fetchBookingData()` — `ApiClient::getBooking()` with 5-minute cache (tagged by user ID for bulk invalidation)
|
|
||||||
2. `TravelDataProvider::getTravelData()` — loads travel data (XML or snapshot)
|
|
||||||
3. `TravelDataProvider::getAvailabilityData(forceRefresh: true)` + `patchAvailabilities()` — force-refreshes availability at edit start, populates cache for subsequent loads within the session
|
|
||||||
4. `TravelDataProvider::getMutabilityData(cached: true)` + `patchMutability()` — applies which service categories are currently editable
|
|
||||||
5. `BookingDataProcessor::createBookingDtoFromBooking()` — hydrates `BookingDto` from API booking entity
|
|
||||||
6. Agency code resolved via `AgencyLoader` (used by field state conditions)
|
|
||||||
7. `BookingChangeTracker::generateFingerprint()` — sets `originalFingerprint` on DTO **before** draft is applied, so dirty detection compares against original API data
|
|
||||||
8. `BookingEditDraftManager::findDraft()` + `applyDraftToDto()` — if draft exists, merges user edits on top of fresh API data. Sets `draftWasRestored = true` if successful.
|
|
||||||
9. `BookingSessionManager::saveBookingDto()`
|
|
||||||
|
|
||||||
Back in the controller: shows "draft restored" flash if applicable, fetches booking data for surcharge/status display, renders the card overview with `BookingEditContextFactory::createOverviewContext()`.
|
|
||||||
|
|
||||||
### Individual Participant Form (HTMX)
|
|
||||||
|
|
||||||
**Controller:** `Edit/ParticipantController`
|
|
||||||
**Routes:** `GET|POST /bookings/{id}/edit/participants/{index}` and `/{index}/refresh`
|
|
||||||
|
|
||||||
Per-participant forms are lazy-loaded, matching the create flow pattern.
|
|
||||||
|
|
||||||
1. `BookingEditContextFactory::prepareBookingDto()` — refreshes availabilities on the DTO travel object
|
|
||||||
2. `ParticipantFormSupport` — form creation, notification draining
|
|
||||||
3. On submit: `BookingSessionManager::saveBookingDto()` + `BookingEditDraftManager::saveDraft()` — persists participant edits to both session and draft
|
|
||||||
|
|
||||||
### Submission
|
|
||||||
|
|
||||||
**Service:** `BookingEditSubmitter::handleSubmission()`
|
|
||||||
Called from `Edit/IndexController` on valid form submit.
|
|
||||||
|
|
||||||
1. Invalidate API cache, fetch fresh booking data
|
|
||||||
2. Force-refresh mutability data (`TravelDataProvider::getMutabilityData(forceRefresh: true)`) and patch DTO travel
|
|
||||||
3. `BookingEditSubmitGuard::reconcileImmutableCategories()` — reverts any DTO fields that have become immutable since the session was loaded. Shows flash if anything was reverted.
|
|
||||||
4. `ApiClient::updateBooking()` — submit
|
|
||||||
5. On success: invalidate cache again, `BookingSessionManager::clearBookingDto()`, `BookingEditDraftManager::deleteDraft()`
|
|
||||||
|
|
||||||
### Other Edit Routes
|
|
||||||
|
|
||||||
| Route | Action |
|
|
||||||
|-------|--------|
|
|
||||||
| `GET /bookings/{id}/edit/reload` | Shows confirmation modal |
|
|
||||||
| `POST /bookings/{id}/edit/reload` | Clears session + **deletes draft**, reloads from API |
|
|
||||||
| `GET /bookings/{id}/edit/cancel` | Clears session, **preserves draft**, redirects to booking list |
|
|
||||||
|
|
||||||
The distinction between reload and cancel is intentional: cancel keeps the draft so the user can return to their changes later; reload discards everything.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Key Invariants
|
|
||||||
|
|
||||||
- `currentStep` on the DTO gates forward navigation in create mode; controllers redirect to the current step if a higher step is requested directly.
|
|
||||||
- The original fingerprint is set before draft application in edit mode. Dirty detection (`BookingChangeTracker::isDirty()`) always compares the live session DTO against the original API state, not against the draft.
|
|
||||||
- Mutability is always patched from fresh or cached data before rendering. The DTO travel object is the authoritative source of which fields are editable at render time.
|
|
||||||
- Drafts survive cancel but not reload, and are deleted on successful submission.
|
|
||||||
@@ -0,0 +1,902 @@
|
|||||||
|
# bpn-connect Query Reference
|
||||||
|
|
||||||
|
> **Scope: endpoint design and the XML→SQL migration plan for the `bpn-connect` Go proxy.**
|
||||||
|
> For schema semantics, conventions and confidence marks see
|
||||||
|
> [`docs/buspro-database-reference.md`](buspro-database-reference.md), which is authoritative
|
||||||
|
> and wins on any conflict. The table descriptions below are kept for endpoint context.
|
||||||
|
|
||||||
|
This document summarizes the BusProNet schema exports in
|
||||||
|
`docs/buspronet-schema` for future `bpn-connect` endpoint/query development.
|
||||||
|
|
||||||
|
Generated from:
|
||||||
|
|
||||||
|
- `docs/buspronet-schema/BusPronet_20260601-1517.csv`: table columns
|
||||||
|
- `docs/buspronet-schema/BusPronet_20260601-1518.csv`: foreign keys
|
||||||
|
|
||||||
|
Current limitation: the visible exports do not include primary-key or index
|
||||||
|
catalog data, even though those were expected. Identity flags are not a reliable
|
||||||
|
primary-key substitute in this database because many `ID...` columns are not
|
||||||
|
marked as identity. Add PK/index exports before finalizing performance-sensitive
|
||||||
|
queries.
|
||||||
|
|
||||||
|
## Naming Conventions
|
||||||
|
|
||||||
|
- Primary identifiers usually follow `ID<TableName>`, for example
|
||||||
|
`Buchung.IDBuchung`, `Adresse.IDAdresse`, `AdressePerson.IDAdressePerson`.
|
||||||
|
- Foreign key columns usually include `_FS`, for example
|
||||||
|
`BuchungTN.IDBuchung_FS`.
|
||||||
|
- Address data is split into:
|
||||||
|
- `Adresse`: address/customer account root.
|
||||||
|
- `AdressePerson`: person attached to an address.
|
||||||
|
- `AdresseAnschrift`: postal address.
|
||||||
|
- `AdresseKommunikation`: communication values such as email/phone.
|
||||||
|
- Booking data is split into:
|
||||||
|
- `Buchung`: booking header.
|
||||||
|
- `BuchungTN`: booking participants.
|
||||||
|
- `BuchungTNFerienziel`, `BuchungTNLeistung`: participant travel/service rows.
|
||||||
|
- Public booking number appears to be `Buchung.Vorgang`.
|
||||||
|
- Internal booking id is `Buchung.IDBuchung`.
|
||||||
|
- Many tables have `Status` fields. Based on observed data, `Status = 'L'`
|
||||||
|
appears to be a soft-delete marker and should be excluded from portal lookup
|
||||||
|
queries. Other status values still need table-specific business validation.
|
||||||
|
|
||||||
|
## Core Tables
|
||||||
|
|
||||||
|
### `Buchung`
|
||||||
|
|
||||||
|
Booking header. Important columns:
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDBuchung` | `bigint` | no | Internal booking id. |
|
||||||
|
| `Vorgang` | `nvarchar(100)` | no | Public booking number/reference. |
|
||||||
|
| `IDReise_FS` | `bigint` | yes | Links to `Reise.IDReise`; no FK was present in the export. |
|
||||||
|
| `IDAdresse_FS_Anmelder` | `bigint` | yes | Applicant address id; no FK was present in the export. |
|
||||||
|
| `IDAdresseAnschrift_FS_Anmelder` | `bigint` | yes | Applicant postal address id; no FK was present in the export. |
|
||||||
|
| `IdAdressePerson_FS_Anmelder` | `bigint` | yes | Applicant person id; FK exists. |
|
||||||
|
| `IDAdresse_FS_Agentur` | `bigint` | no | Agency address; FK exists. |
|
||||||
|
| `IDAdresse_FS_Mandant` | `bigint` | no | Tenant/client address; FK exists. |
|
||||||
|
| `LoginWert1` | `nvarchar(100)` | no | Possible login-related value; semantics unknown. |
|
||||||
|
| `LoginWert2` | `nvarchar(100)` | no | Possible login-related value; semantics unknown. |
|
||||||
|
| `LoginWert3` | `nvarchar(100)` | no | Possible login-related value; semantics unknown. |
|
||||||
|
|
||||||
|
Known exported foreign keys:
|
||||||
|
|
||||||
|
- `Buchung.IdAdressePerson_FS_Anmelder -> AdressePerson.IDAdressePerson`
|
||||||
|
- `Buchung.IDAdresse_FS_Agentur -> Adresse.IDAdresse`
|
||||||
|
- `Buchung.IDAdresse_FS_ErsterSachb -> Adresse.IDAdresse`
|
||||||
|
- `Buchung.IDAdresse_FS_LetzterSachb -> Adresse.IDAdresse`
|
||||||
|
- `Buchung.IDAdresse_FS_Mandant -> Adresse.IDAdresse`
|
||||||
|
|
||||||
|
Notable missing FKs in the export:
|
||||||
|
|
||||||
|
- `Buchung.IDAdresse_FS_Anmelder`
|
||||||
|
- `Buchung.IDAdresseAnschrift_FS_Anmelder`
|
||||||
|
- `Buchung.IDReise_FS`
|
||||||
|
|
||||||
|
Treat those as likely relationships but verify against real data.
|
||||||
|
|
||||||
|
### `BuchungTN`
|
||||||
|
|
||||||
|
Booking participant.
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDBuchungTN` | `bigint` | no | Participant row id. |
|
||||||
|
| `IDBuchung_FS` | `bigint` | no | Booking header id. |
|
||||||
|
| `IDAdressePerson_FS` | `bigint` | no | Participant person id. |
|
||||||
|
| `IDAdresseAnschrift_FS` | `bigint` | yes | Participant postal address id. |
|
||||||
|
| `Status` | `nvarchar(2)` | no | Participant status; values need business validation. |
|
||||||
|
| `BuchungsDatum` | `datetime` | no | Booking date. |
|
||||||
|
| `StornoStatusKV` | `nvarchar(2)` | yes | Cancellation-related status. |
|
||||||
|
| `StornoDatum` | `datetime` | yes | Cancellation date. |
|
||||||
|
| `Position` | `smallint` | no | Participant position within booking. |
|
||||||
|
|
||||||
|
Known exported foreign keys:
|
||||||
|
|
||||||
|
- `BuchungTN.IDBuchung_FS -> Buchung.IDBuchung`
|
||||||
|
- `BuchungTN.IDAdressePerson_FS -> AdressePerson.IDAdressePerson`
|
||||||
|
|
||||||
|
### `Adresse`
|
||||||
|
|
||||||
|
Customer/address root.
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDAdresse` | `bigint` | no | Address/customer id needed by the local user record. |
|
||||||
|
| `SuchName` | `nvarchar(402)` | no | Search/display name. |
|
||||||
|
| `Status` | `nvarchar(2)` | no | Address status; active values need validation. |
|
||||||
|
| `Art` | `tinyint` | no | Address type; values need validation. |
|
||||||
|
| `IDAdresseAnschrift_FS_Versandanschrift` | `bigint` | no | Default shipping/postal address. |
|
||||||
|
| `IDAdressePerson_FS_ReferenzM` | `bigint` | no | Reference person. |
|
||||||
|
| `DatumLöschungDSGVO` | `datetime` | yes | GDPR deletion marker. Exclude rows where this is not null for portal access. |
|
||||||
|
|
||||||
|
### `AdressePerson`
|
||||||
|
|
||||||
|
Person attached to an address.
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDAdressePerson` | `bigint` | no | Person id needed by the local user record. |
|
||||||
|
| `IDAdresse_FS` | `bigint` | no | Parent address id. |
|
||||||
|
| `Name` | `nvarchar(200)` | no | Last name. |
|
||||||
|
| `Vorname` | `nvarchar(200)` | yes | First name. |
|
||||||
|
| `Geschlecht` | `nvarchar(2)` | no | Gender/salutation code. |
|
||||||
|
| `Status` | `nvarchar(2)` | no | Person status; active values need validation. |
|
||||||
|
| `Passwort` | `nvarchar(200)` | no | Legacy BusProNet password field. Do not use from `bpn-connect`; password migration remains on the BusProNet XML API until the algorithm is known. |
|
||||||
|
| `Registrierung` | `bit` | no | Registration flag; semantics need validation. |
|
||||||
|
| `IDFremd` | `nvarchar(100)` | no | External id field. |
|
||||||
|
|
||||||
|
Known exported foreign key:
|
||||||
|
|
||||||
|
- `AdressePerson.IDAdresse_FS -> Adresse.IDAdresse`
|
||||||
|
|
||||||
|
### `AdresseKommunikation`
|
||||||
|
|
||||||
|
Communication values for an address/person.
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDAdresseKommunikation` | `bigint` | no | Communication row id. |
|
||||||
|
| `IDAdresse_FS` | `bigint` | no | Address id. |
|
||||||
|
| `IDAdressePerson_FS` | `bigint` | no | Person id. No FK was present in the export, but the name strongly implies `AdressePerson.IDAdressePerson`. |
|
||||||
|
| `Wert` | `nvarchar(512)` | no | Communication value, likely email/phone depending on type. |
|
||||||
|
| `WertTelefonie` | `nvarchar(100)` | yes | Phone-specific normalized value. |
|
||||||
|
| `IDArtKommunikation_FS` | `bigint` | no | Communication type. |
|
||||||
|
| `Status` | `nvarchar(2)` | no | Communication status; active values need validation. |
|
||||||
|
| `Newsletter` | `bit` | no | Newsletter flag. |
|
||||||
|
| `DoubleOptIn` | `bit` | no | Double opt-in flag. |
|
||||||
|
|
||||||
|
Known exported foreign keys:
|
||||||
|
|
||||||
|
- `AdresseKommunikation.IDAdresse_FS -> Adresse.IDAdresse`
|
||||||
|
- `AdresseKommunikation.IDArtKommunikation_FS -> ArtKommunikation.IDArtKommunikation`
|
||||||
|
|
||||||
|
Important missing FK:
|
||||||
|
|
||||||
|
- `AdresseKommunikation.IDAdressePerson_FS` is not exported as a FK. Join it to
|
||||||
|
`AdressePerson.IDAdressePerson` only after validating with real data.
|
||||||
|
|
||||||
|
### `ArtKommunikation`
|
||||||
|
|
||||||
|
Communication type lookup.
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDArtKommunikation` | `bigint` | no | Type id. |
|
||||||
|
| `Langtext` | `nvarchar(200)` | yes | Long label. |
|
||||||
|
| `Kurztext` | `nvarchar(40)` | yes | Short label. |
|
||||||
|
| `Code` | `nvarchar(20)` | yes | Type code. Find the email code/id here. |
|
||||||
|
| `Status` | `nvarchar(2)` | yes | Type status. |
|
||||||
|
|
||||||
|
Before relying on email lookup queries, run:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT IDArtKommunikation, Langtext, Kurztext, Code, Status
|
||||||
|
FROM dbo.ArtKommunikation
|
||||||
|
ORDER BY IDArtKommunikation;
|
||||||
|
```
|
||||||
|
|
||||||
|
Then hard-code or configure the email type ids/codes in `bpn-connect`.
|
||||||
|
|
||||||
|
### `AdresseAnschrift`
|
||||||
|
|
||||||
|
Postal address.
|
||||||
|
|
||||||
|
| Column | Type | Nullable | Notes |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| `IDAdresseAnschrift` | `bigint` | no | Postal address id. |
|
||||||
|
| `IDAdresse_FS` | `bigint` | no | Address id. |
|
||||||
|
| `IDAdressePerson_FS` | `bigint` | yes | Person id. |
|
||||||
|
| `Anrede` | `nvarchar(100)` | yes | Salutation. |
|
||||||
|
| `Name` | `nvarchar(400)` | yes | Postal name. |
|
||||||
|
| `Strasse` | `nvarchar(200)` | no | Street. |
|
||||||
|
| `PLZ` | `nvarchar(20)` | no | Postal code. |
|
||||||
|
| `Ort` | `nvarchar(200)` | no | City. |
|
||||||
|
| `Status` | `nvarchar(2)` | no | Postal address status. |
|
||||||
|
|
||||||
|
No direct FK from `AdresseAnschrift` to `Adresse` or `AdressePerson` was present
|
||||||
|
in the export subset shown by the current FK file. Treat these as likely
|
||||||
|
relationships and validate them with data.
|
||||||
|
|
||||||
|
### `Reise` and `Produkt`
|
||||||
|
|
||||||
|
Travel/product metadata.
|
||||||
|
|
||||||
|
`Reise` important columns:
|
||||||
|
|
||||||
|
- `IDReise`
|
||||||
|
- `IDProdukt_FS`
|
||||||
|
- `Bezeichnung`
|
||||||
|
- `Code`
|
||||||
|
- `TerminVon`
|
||||||
|
- `TerminBis`
|
||||||
|
- `Status`
|
||||||
|
- `StornoDatum`
|
||||||
|
|
||||||
|
`Produkt` important columns:
|
||||||
|
|
||||||
|
- `IDProdukt`
|
||||||
|
- `Bezeichnung`
|
||||||
|
- `Code`
|
||||||
|
- `Suchfeld`
|
||||||
|
- `Status`
|
||||||
|
|
||||||
|
Known exported foreign key:
|
||||||
|
|
||||||
|
- `Reise.IDProdukt_FS -> Produkt.IDProdukt`
|
||||||
|
|
||||||
|
## Relationship Map
|
||||||
|
|
||||||
|
Most relevant joins for portal access:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Buchung.IDBuchung
|
||||||
|
-> BuchungTN.IDBuchung_FS
|
||||||
|
-> BuchungTN.IDAdressePerson_FS
|
||||||
|
-> AdressePerson.IDAdressePerson
|
||||||
|
-> AdressePerson.IDAdresse_FS
|
||||||
|
-> Adresse.IDAdresse
|
||||||
|
```
|
||||||
|
|
||||||
|
Applicant joins:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Buchung.IdAdressePerson_FS_Anmelder
|
||||||
|
-> AdressePerson.IDAdressePerson
|
||||||
|
-> AdressePerson.IDAdresse_FS
|
||||||
|
-> Adresse.IDAdresse
|
||||||
|
```
|
||||||
|
|
||||||
|
Email joins to validate:
|
||||||
|
|
||||||
|
```text
|
||||||
|
AdresseKommunikation.IDAdressePerson_FS
|
||||||
|
-> AdressePerson.IDAdressePerson
|
||||||
|
|
||||||
|
AdresseKommunikation.IDAdresse_FS
|
||||||
|
-> Adresse.IDAdresse
|
||||||
|
|
||||||
|
AdresseKommunikation.IDArtKommunikation_FS
|
||||||
|
-> ArtKommunikation.IDArtKommunikation
|
||||||
|
```
|
||||||
|
|
||||||
|
## Required bpn-connect Endpoints
|
||||||
|
|
||||||
|
All endpoints are private and authenticated by API key:
|
||||||
|
|
||||||
|
```http
|
||||||
|
X-API-Key: {apiKey}
|
||||||
|
Accept: application/json
|
||||||
|
```
|
||||||
|
|
||||||
|
Keep responses narrow. `bpn-connect` should return only fields needed by the
|
||||||
|
Symfony portal and should never return BusProNet passwords, bank data, credit
|
||||||
|
card data, or broad customer records by default.
|
||||||
|
|
||||||
|
Authentication rule: Symfony owns portal passwords after a user has been
|
||||||
|
bootstrapped locally. The BusProNet legacy password algorithm is currently
|
||||||
|
unknown, so `bpn-connect` must not verify passwords from the database. Keep the
|
||||||
|
existing BusProNet XML password check only for first-time legacy migration. Once
|
||||||
|
the local Symfony password hash exists, all subsequent login/profile refresh
|
||||||
|
logic should use local authentication plus `bpn-connect` read endpoints.
|
||||||
|
|
||||||
|
### `GET /api/bookings/applicant-lookup`
|
||||||
|
|
||||||
|
Purpose: resolve an applicant by email and public booking number. This is the
|
||||||
|
core endpoint for local user creation after a booking and for the portal access
|
||||||
|
request flow.
|
||||||
|
|
||||||
|
Request:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/bookings/applicant-lookup?email={email}&bookingNumber={vorgang}
|
||||||
|
```
|
||||||
|
|
||||||
|
Response `200`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"bookingNumber": "111386",
|
||||||
|
"bookingId": 123456,
|
||||||
|
"addressId": 98765,
|
||||||
|
"personId": 54321,
|
||||||
|
"email": "[email protected]",
|
||||||
|
"firstName": "Example",
|
||||||
|
"lastName": "Customer"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Response rules:
|
||||||
|
|
||||||
|
- Return `200` when `email` belongs to `Buchung.IdAdressePerson_FS_Anmelder`
|
||||||
|
for the given `Buchung.Vorgang`.
|
||||||
|
- Return `404` when there is no matching non-deleted applicant.
|
||||||
|
- Return `409` if the query returns more than one applicant row after
|
||||||
|
deduplication. This should be rare and indicates inconsistent BusProNet data.
|
||||||
|
- Normalize input email by trimming and lowercasing before querying.
|
||||||
|
|
||||||
|
SQL:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
DECLARE @Email nvarchar(512) = LOWER(LTRIM(RTRIM(@email)));
|
||||||
|
DECLARE @Vorgang nvarchar(100) = LTRIM(RTRIM(@bookingNumber));
|
||||||
|
|
||||||
|
SELECT TOP (2)
|
||||||
|
b.Vorgang AS bookingNumber,
|
||||||
|
b.IDBuchung AS bookingId,
|
||||||
|
a.IDAdresse AS addressId,
|
||||||
|
ap.IDAdressePerson AS personId,
|
||||||
|
@Email AS email,
|
||||||
|
ap.Vorname AS firstName,
|
||||||
|
ap.Name AS lastName
|
||||||
|
FROM dbo.Buchung b
|
||||||
|
INNER JOIN dbo.AdressePerson ap
|
||||||
|
ON ap.IDAdressePerson = b.IdAdressePerson_FS_Anmelder
|
||||||
|
INNER JOIN dbo.Adresse a
|
||||||
|
ON a.IDAdresse = ap.IDAdresse_FS
|
||||||
|
WHERE b.Vorgang = @Vorgang
|
||||||
|
AND a.DatumLöschungDSGVO IS NULL
|
||||||
|
AND a.Status <> 'L'
|
||||||
|
AND ap.Status <> 'L'
|
||||||
|
AND EXISTS (
|
||||||
|
SELECT 1
|
||||||
|
FROM dbo.AdresseKommunikation ak
|
||||||
|
WHERE ak.IDAdresse_FS = ap.IDAdresse_FS
|
||||||
|
AND ak.IDAdressePerson_FS = ap.IDAdressePerson
|
||||||
|
AND LOWER(LTRIM(RTRIM(ak.Wert))) = @Email
|
||||||
|
AND ak.Status <> 'L'
|
||||||
|
-- TODO: restrict to validated email communication type.
|
||||||
|
-- AND ak.IDArtKommunikation_FS IN (...)
|
||||||
|
)
|
||||||
|
ORDER BY ap.IDAdressePerson;
|
||||||
|
```
|
||||||
|
|
||||||
|
### `GET /api/customers/{addressId}/persons/{personId}`
|
||||||
|
|
||||||
|
Purpose: fetch the personal data for a known BusProNet person. Use this after a
|
||||||
|
local user exists and already stores `addressId` and `personId`. Do not use email
|
||||||
|
as the identifier because multiple `Adresse` rows can share an email address.
|
||||||
|
|
||||||
|
Request:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/{addressId}/persons/{personId}
|
||||||
|
```
|
||||||
|
|
||||||
|
Response `200`:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"addressId": 98765,
|
||||||
|
"personId": 54321,
|
||||||
|
"firstName": "Example",
|
||||||
|
"lastName": "Customer",
|
||||||
|
"email": "[email protected]",
|
||||||
|
"genderCode": "F",
|
||||||
|
"title": null,
|
||||||
|
"birthDate": "1980-01-01T00:00:00Z",
|
||||||
|
"nationality": "deutsch",
|
||||||
|
"nationalityCountryName": "Deutschland",
|
||||||
|
"street": "Example Street 1",
|
||||||
|
"postalCode": "12345",
|
||||||
|
"city": "Example City",
|
||||||
|
"addressCountryName": "Deutschland"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Response rules:
|
||||||
|
|
||||||
|
- Return `200` for a non-deleted address/person pair.
|
||||||
|
- Return `404` if the address/person pair does not exist or has `Status = 'L'`.
|
||||||
|
- Return only portal-editable or portal-visible fields.
|
||||||
|
|
||||||
|
SQL:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
DECLARE @AddressId bigint = @addressId;
|
||||||
|
DECLARE @PersonId bigint = @personId;
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
a.IDAdresse AS addressId,
|
||||||
|
ap.IDAdressePerson AS personId,
|
||||||
|
ap.Name AS lastName,
|
||||||
|
ap.Vorname AS firstName,
|
||||||
|
ap.Geschlecht AS genderCode,
|
||||||
|
ap.Titel AS title,
|
||||||
|
ap.Geburtsdatum AS birthDate,
|
||||||
|
ap.Briefanrede AS letterSalutation,
|
||||||
|
ap.Anrede AS salutation,
|
||||||
|
ap.Newsletter AS newsletter,
|
||||||
|
email.Wert AS email,
|
||||||
|
|
||||||
|
manifest.IDArtNationalitaet_FS AS nationalityId,
|
||||||
|
person_nat.Langtext AS nationalityCountryName,
|
||||||
|
person_nat.Kurztext AS nationality,
|
||||||
|
person_nat.Code AS nationalityCode,
|
||||||
|
|
||||||
|
aa.IDAdresseAnschrift AS postalAddressId,
|
||||||
|
aa.Anrede AS postalSalutation,
|
||||||
|
aa.Name AS postalName,
|
||||||
|
aa.Strasse AS street,
|
||||||
|
aa.PLZ AS postalCode,
|
||||||
|
aa.Ort AS city,
|
||||||
|
aa.Ortsteil AS district,
|
||||||
|
aa.IDArtNationalitaet_FS_Land AS addressCountryId,
|
||||||
|
address_country.Langtext AS addressCountryName,
|
||||||
|
address_country.Kurztext AS addressCountryNationality,
|
||||||
|
address_country.Code AS addressCountryCode,
|
||||||
|
|
||||||
|
ad.TelefonOK AS phoneAllowed,
|
||||||
|
ad.MailOK AS mailAllowed,
|
||||||
|
ad.PostOK AS postAllowed
|
||||||
|
FROM dbo.AdressePerson ap
|
||||||
|
INNER JOIN dbo.Adresse a
|
||||||
|
ON a.IDAdresse = ap.IDAdresse_FS
|
||||||
|
OUTER APPLY (
|
||||||
|
SELECT TOP (1)
|
||||||
|
ak.Wert
|
||||||
|
FROM dbo.AdresseKommunikation ak
|
||||||
|
WHERE ak.IDAdresse_FS = ap.IDAdresse_FS
|
||||||
|
AND ak.IDAdressePerson_FS = ap.IDAdressePerson
|
||||||
|
AND ak.Status <> 'L'
|
||||||
|
-- TODO: restrict to validated email communication type.
|
||||||
|
-- AND ak.IDArtKommunikation_FS IN (...)
|
||||||
|
ORDER BY ak.IDAdresseKommunikation DESC
|
||||||
|
) email
|
||||||
|
LEFT JOIN dbo.AdresseAnschrift aa
|
||||||
|
ON aa.IDAdresseAnschrift = ap.IDAdresseAnschrift_FS_Versandanschrift
|
||||||
|
AND aa.Status <> 'L'
|
||||||
|
LEFT JOIN dbo.ArtNationalitaet address_country
|
||||||
|
ON address_country.IDArtNationalitaet = aa.IDArtNationalitaet_FS_Land
|
||||||
|
AND COALESCE(address_country.Status, '') <> 'L'
|
||||||
|
OUTER APPLY (
|
||||||
|
SELECT TOP (1)
|
||||||
|
m.IDArtNationalitaet_FS
|
||||||
|
FROM dbo.AdressePersonManifest m
|
||||||
|
WHERE m.IDAdressePerson_FS = ap.IDAdressePerson
|
||||||
|
AND m.IDAdresse_FS = ap.IDAdresse_FS
|
||||||
|
AND COALESCE(m.Status, '') <> 'L'
|
||||||
|
ORDER BY m.IDAdressePersonManifest DESC
|
||||||
|
) manifest
|
||||||
|
LEFT JOIN dbo.ArtNationalitaet person_nat
|
||||||
|
ON person_nat.IDArtNationalitaet = manifest.IDArtNationalitaet_FS
|
||||||
|
AND COALESCE(person_nat.Status, '') <> 'L'
|
||||||
|
LEFT JOIN dbo.AdresseDatenschutz ad
|
||||||
|
ON ad.IdAdresse_FS = a.IDAdresse
|
||||||
|
WHERE a.IDAdresse = @AddressId
|
||||||
|
AND ap.IDAdressePerson = @PersonId
|
||||||
|
AND a.DatumLöschungDSGVO IS NULL
|
||||||
|
AND a.Status <> 'L'
|
||||||
|
AND ap.Status <> 'L';
|
||||||
|
```
|
||||||
|
|
||||||
|
### Optional Debug Endpoint: `GET /api/customers/by-email`
|
||||||
|
|
||||||
|
Purpose: manual investigation only. Email is not unique across `Adresse`, so this
|
||||||
|
endpoint should return a list and should not be used as a local user identifier.
|
||||||
|
|
||||||
|
Request:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/by-email?email={email}
|
||||||
|
```
|
||||||
|
|
||||||
|
Use the same joins as `GET /api/customers/{addressId}/persons/{personId}`, but
|
||||||
|
start from `AdresseKommunikation` and return all non-deleted matching persons.
|
||||||
|
Do not use this for account creation unless the user also provides a booking
|
||||||
|
number or another disambiguating key.
|
||||||
|
|
||||||
|
## Symfony Login And Bootstrap Replacement Plan
|
||||||
|
|
||||||
|
Current Symfony login behavior:
|
||||||
|
|
||||||
|
- Existing local users authenticate against the local Symfony password hash.
|
||||||
|
- Existing legacy local users may still have an encrypted legacy password in the
|
||||||
|
local `User.password` column. Symfony validates it locally once, then replaces
|
||||||
|
it with a Symfony password hash.
|
||||||
|
- If no local user exists, `BpnAuthenticator::bootstrapUser()` currently calls
|
||||||
|
the BusProNet XML API with email and password:
|
||||||
|
- `getPersonalDataWithPassword(email, password)`
|
||||||
|
- `getCrmAttributesWithPassword(email, password)`
|
||||||
|
- After any successful local login, `BpnAuthenticator::refreshBpnSnapshot()`
|
||||||
|
calls the BusProNet XML API by local `addressId` and `personId`:
|
||||||
|
- `getPersonalData(email, addressId, personId)`
|
||||||
|
- `getCrmAttributes(email, addressId, personId)`
|
||||||
|
|
||||||
|
Replacement rule:
|
||||||
|
|
||||||
|
- Keep login password validation local to Symfony.
|
||||||
|
- Keep the current XML password-based bootstrap for users that exist in
|
||||||
|
BusProNet but do not yet have a local Symfony user.
|
||||||
|
- On successful XML legacy verification, Symfony creates a local user with a
|
||||||
|
Symfony password hash from the submitted password.
|
||||||
|
- Future logins use only the local hash and must not call XML for password
|
||||||
|
verification.
|
||||||
|
- Replace post-login snapshot refresh with `bpn-connect` id-based read endpoints.
|
||||||
|
|
||||||
|
### Login Endpoint Usage
|
||||||
|
|
||||||
|
No `bpn-connect` endpoint is needed to authenticate a password.
|
||||||
|
|
||||||
|
Existing local user login should do:
|
||||||
|
|
||||||
|
1. Find local `User` by normalized email.
|
||||||
|
2. Validate local Symfony password hash.
|
||||||
|
3. If the local row still has a legacy encrypted local password, migrate it to a
|
||||||
|
Symfony hash without contacting BusProNet.
|
||||||
|
4. Call `GET /api/customers/{addressId}/persons/{personId}` to refresh profile
|
||||||
|
completeness.
|
||||||
|
5. Call `GET /api/customers/{addressId}/crm-attributes` to refresh roles and
|
||||||
|
hotel codes.
|
||||||
|
|
||||||
|
Missing local user login should do:
|
||||||
|
|
||||||
|
1. Call the existing BusProNet XML password-based bootstrap.
|
||||||
|
2. If valid, create a local `User` with a Symfony hash of the submitted password.
|
||||||
|
3. Store returned `addressId`, `personId`, `roles`, `hotelCodes`, and
|
||||||
|
`profileComplete`.
|
||||||
|
4. Persist and continue login.
|
||||||
|
5. If invalid, fail with the generic invalid-login message.
|
||||||
|
|
||||||
|
Do not add a `bpn-connect` password verification endpoint until the BusProNet
|
||||||
|
password algorithm is known and validated against real examples. The observed
|
||||||
|
database values do not currently match simple MD5/SHA/Base64 derivations.
|
||||||
|
|
||||||
|
### `GET /api/customers/{addressId}/crm-attributes`
|
||||||
|
|
||||||
|
Purpose: replace XML `SelektionCRM` reads used during login refresh and by the
|
||||||
|
OAuth CRM attributes endpoint.
|
||||||
|
|
||||||
|
Request:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/{addressId}/crm-attributes
|
||||||
|
```
|
||||||
|
|
||||||
|
Minimal response:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"roles": ["ROLE_CUSTOMER"],
|
||||||
|
"hotelCodes": []
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Detailed response may also include selection groups and CRM actions if the
|
||||||
|
current `/api/crm-attributes` response must remain compatible.
|
||||||
|
|
||||||
|
Known role mapping from the XML parser:
|
||||||
|
|
||||||
|
- `Selektionsstamm.IDSelektionsstamm = 1292` selected: `ROLE_ADMIN` and
|
||||||
|
`ROLE_HOUSE_MANAGER`
|
||||||
|
- `Selektionsstamm.IDSelektionsstamm = 1293` selected: `ROLE_MANAGER`
|
||||||
|
- `Selektionsstamm.IDSelektionsstamm = 1070` selected: `ROLE_TEAMER`
|
||||||
|
- selected `Selektionsstamm.Selektion` matching `Hausleitung {CODE}`:
|
||||||
|
`ROLE_HOUSE_MANAGER` and hotel code `{CODE}`
|
||||||
|
- admin users also receive default hotel code `SSL`
|
||||||
|
- no matched role means `ROLE_CUSTOMER`
|
||||||
|
|
||||||
|
These are the CRM's claims. The portal filters them before storing anything (staff-only
|
||||||
|
roles, approval markers), so a proxy must return the claims unfiltered — see
|
||||||
|
`docs/buspronet-schema/crm-selection-queries.md#from-claim-to-role`.
|
||||||
|
|
||||||
|
Candidate SQL for selected customer selections:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
DECLARE @AddressId bigint = @addressId;
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
sg.IDSelektionsgruppenstamm AS groupId,
|
||||||
|
sg.Selektionsgruppe AS groupLabel,
|
||||||
|
s.IDSelektionsstamm AS selectionId,
|
||||||
|
s.Selektion AS selectionLabel,
|
||||||
|
CAST(1 AS bit) AS selected
|
||||||
|
FROM dbo.Selektionen sel
|
||||||
|
INNER JOIN dbo.Selektionsstamm s
|
||||||
|
ON s.IDSelektionsstamm = sel.IDSelektionsstamm_FS
|
||||||
|
LEFT JOIN dbo.Selektionsgruppe sg_map
|
||||||
|
ON sg_map.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
LEFT JOIN dbo.Selektionsgruppenstamm sg
|
||||||
|
ON sg.IDSelektionsgruppenstamm = sg_map.IDSelektionsgruppenstamm_FS
|
||||||
|
WHERE sel.IDAdresse_FS = @AddressId
|
||||||
|
AND COALESCE(s.Status, '') <> 'L'
|
||||||
|
AND COALESCE(sg.Status, '') <> 'L'
|
||||||
|
ORDER BY sg.Position, sg.Selektionsgruppe, sg_map.Position, s.Selektion;
|
||||||
|
```
|
||||||
|
|
||||||
|
The Go service can derive `roles` and `hotelCodes` from this result with the
|
||||||
|
mapping above. Before shipping, verify whether XML `SelektionCRM` includes
|
||||||
|
unselected mutable options; if the portal only needs roles/hotel codes, selected
|
||||||
|
rows are enough.
|
||||||
|
|
||||||
|
Candidate SQL for CRM actions if compatibility is required:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
DECLARE @AddressId bigint = @addressId;
|
||||||
|
|
||||||
|
SELECT
|
||||||
|
ca.IDCRMAktion AS id,
|
||||||
|
ca.Code AS code,
|
||||||
|
ca.Bezeichnung AS label,
|
||||||
|
ca.Aktiv AS selected
|
||||||
|
FROM dbo.CRMZuweisung cz
|
||||||
|
INNER JOIN dbo.CRMAktion ca
|
||||||
|
ON ca.IDCRMAktion = cz.IDCRMAktion_FS
|
||||||
|
WHERE cz.IDAdresse_FS = @AddressId
|
||||||
|
AND ca.Status <> 'L'
|
||||||
|
ORDER BY ca.Bezeichnung;
|
||||||
|
```
|
||||||
|
|
||||||
|
This needs data validation against the XML response before compatibility is
|
||||||
|
guaranteed.
|
||||||
|
|
||||||
|
## XML Calls To Replace For Local User Processes
|
||||||
|
|
||||||
|
| Current Symfony call | Current XML purpose | Replacement |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `getPersonalData(email, addressId, personId)` | Load profile by known user ids. | `GET /api/customers/{addressId}/persons/{personId}` |
|
||||||
|
| `updatePersonalData(email, personalData)` | Persist profile edits. | Future `PATCH /api/customers/{addressId}/persons/{personId}` with transaction-safe updates. |
|
||||||
|
| `getCrmAttributes(email, addressId, personId)` | Refresh roles/hotel codes and expose CRM attributes. | `GET /api/customers/{addressId}/crm-attributes` |
|
||||||
|
| `getPersonalDataWithPassword(email, password)` | Missing-local-user bootstrap by BPN password. | Keep XML until the local user has been created/migrated. |
|
||||||
|
| `getCrmAttributesWithPassword(email, password)` | Roles for missing-local-user bootstrap by BPN password. | Keep XML until the local user has been created/migrated. |
|
||||||
|
| `register(registrationData)` | Create BusProNet address/person and local user. | Future `POST /api/customers` if direct DB writes are allowed; otherwise keep XML until write rules are known. |
|
||||||
|
| `createAddress(personalData)` | Create BusProNet address/person without mail. | Future `POST /api/customers` if direct DB writes are allowed; otherwise keep XML until write rules are known. |
|
||||||
|
|
||||||
|
Recommended migration sequence:
|
||||||
|
|
||||||
|
1. Keep XML for legacy password bootstrap only.
|
||||||
|
2. Replace booking applicant lookup for guest provisioning and portal access.
|
||||||
|
3. Replace post-login profile/CRM refresh reads.
|
||||||
|
4. Replace personal-data page reads.
|
||||||
|
5. Replace OAuth/userinfo and CRM API reads.
|
||||||
|
6. Replace booking form prefill reads.
|
||||||
|
7. Defer personal-data writes until update rules are validated.
|
||||||
|
8. Defer registration/create-address until the insert graph is known.
|
||||||
|
|
||||||
|
### Phase 1: Keep XML For Legacy Password Bootstrap
|
||||||
|
|
||||||
|
Keep these XML calls temporarily:
|
||||||
|
|
||||||
|
- `getPersonalDataWithPassword(email, password)`
|
||||||
|
- `getCrmAttributesWithPassword(email, password)`
|
||||||
|
|
||||||
|
Scope:
|
||||||
|
|
||||||
|
- Only used when no local Symfony user exists yet.
|
||||||
|
- On success, create the local user with a Symfony password hash from the
|
||||||
|
submitted password.
|
||||||
|
- Store `addressId`, `personId`, `roles`, `hotelCodes`, and `profileComplete`.
|
||||||
|
- Future logins for that user use only the local Symfony password hash.
|
||||||
|
|
||||||
|
Do not implement a `bpn-connect` password verification endpoint until the
|
||||||
|
BusProNet password algorithm is known and verified.
|
||||||
|
|
||||||
|
### Phase 2: Booking Applicant Lookup
|
||||||
|
|
||||||
|
Replace XML/fragile booking lookup plumbing with:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/bookings/applicant-lookup?email={email}&bookingNumber={vorgang}
|
||||||
|
```
|
||||||
|
|
||||||
|
Symfony integration points:
|
||||||
|
|
||||||
|
- `BookingGuestAccountManager::provisionGuestAccountForBooking()`
|
||||||
|
- `BookingGuestAccountManager::requestPortalAccess()`
|
||||||
|
- booking-created welcome account provisioning
|
||||||
|
|
||||||
|
This endpoint returns only the fields needed for local user creation:
|
||||||
|
|
||||||
|
- `bookingNumber`
|
||||||
|
- `bookingId`
|
||||||
|
- `addressId`
|
||||||
|
- `personId`
|
||||||
|
- `email`
|
||||||
|
- `firstName`
|
||||||
|
- `lastName`
|
||||||
|
|
||||||
|
### Phase 3: Post-login Snapshot Refresh
|
||||||
|
|
||||||
|
Replace XML reads in `BpnAuthenticator::refreshBpnSnapshot()` with:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/{addressId}/persons/{personId}
|
||||||
|
GET /api/customers/{addressId}/crm-attributes
|
||||||
|
```
|
||||||
|
|
||||||
|
Symfony keeps local password validation. `bpn-connect` only refreshes ids,
|
||||||
|
profile completeness, roles, and hotel codes after the password has already been
|
||||||
|
validated locally.
|
||||||
|
|
||||||
|
### Phase 4: Personal-data Page Reads
|
||||||
|
|
||||||
|
Replace XML read in `PersonalDataController::loadPersonalData()` with:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/{addressId}/persons/{personId}
|
||||||
|
```
|
||||||
|
|
||||||
|
Keep `updatePersonalData()` on XML for now. Reads are low-risk; writes require
|
||||||
|
validated BusProNet update semantics.
|
||||||
|
|
||||||
|
### Phase 5: OAuth/Userinfo And CRM Reads
|
||||||
|
|
||||||
|
Replace XML reads in:
|
||||||
|
|
||||||
|
- `UserinfoController`
|
||||||
|
- `CrmAttributeController`
|
||||||
|
|
||||||
|
with:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/{addressId}/persons/{personId}
|
||||||
|
GET /api/customers/{addressId}/crm-attributes
|
||||||
|
```
|
||||||
|
|
||||||
|
### Phase 6: Booking Form Prefill Reads
|
||||||
|
|
||||||
|
Replace XML read in `ParticipantDataPrefiller::prefillApplicantFromUser()` with:
|
||||||
|
|
||||||
|
```http
|
||||||
|
GET /api/customers/{addressId}/persons/{personId}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Phase 7: Defer Personal-data Writes
|
||||||
|
|
||||||
|
Keep XML call:
|
||||||
|
|
||||||
|
- `updatePersonalData(email, personalData)`
|
||||||
|
|
||||||
|
Future replacement:
|
||||||
|
|
||||||
|
```http
|
||||||
|
PATCH /api/customers/{addressId}/persons/{personId}
|
||||||
|
```
|
||||||
|
|
||||||
|
Do this only after write rules are validated for:
|
||||||
|
|
||||||
|
- `AdressePerson`
|
||||||
|
- `AdresseAnschrift`
|
||||||
|
- `AdresseKommunikation`
|
||||||
|
- `AdressePersonManifest`
|
||||||
|
- `AdresseZusatzfeld` or other tables holding height, weight, shoe size, and
|
||||||
|
remarks if those are not in the core person/address tables.
|
||||||
|
|
||||||
|
### Phase 8: Defer Registration And Create-address
|
||||||
|
|
||||||
|
Keep XML calls:
|
||||||
|
|
||||||
|
- `register(registrationData)`
|
||||||
|
- `createAddress(personalData)`
|
||||||
|
|
||||||
|
Future replacement:
|
||||||
|
|
||||||
|
```http
|
||||||
|
POST /api/customers
|
||||||
|
```
|
||||||
|
|
||||||
|
This is higher risk than read replacement because it requires the full BusProNet
|
||||||
|
insert graph, required defaults, and side effects.
|
||||||
|
|
||||||
|
## Candidate SQL: Find Email Communication Type
|
||||||
|
|
||||||
|
Run once during `bpn-connect` development:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT
|
||||||
|
IDArtKommunikation,
|
||||||
|
Langtext,
|
||||||
|
Kurztext,
|
||||||
|
Code,
|
||||||
|
Status
|
||||||
|
FROM dbo.ArtKommunikation
|
||||||
|
WHERE
|
||||||
|
LOWER(COALESCE(Langtext, '')) LIKE '%mail%'
|
||||||
|
OR LOWER(COALESCE(Kurztext, '')) LIKE '%mail%'
|
||||||
|
OR LOWER(COALESCE(Code, '')) LIKE '%mail%'
|
||||||
|
ORDER BY IDArtKommunikation;
|
||||||
|
```
|
||||||
|
|
||||||
|
If the data uses German labels, also inspect all rows manually. The schema alone
|
||||||
|
cannot prove the canonical email type.
|
||||||
|
|
||||||
|
## Candidate SQL: Validate Missing Relationships
|
||||||
|
|
||||||
|
Use these checks before shipping lookup logic:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
-- Check whether AdresseKommunikation.IDAdressePerson_FS is a real person link.
|
||||||
|
SELECT TOP (20)
|
||||||
|
ak.IDAdresseKommunikation,
|
||||||
|
ak.IDAdresse_FS,
|
||||||
|
ak.IDAdressePerson_FS,
|
||||||
|
ap.IDAdressePerson,
|
||||||
|
ap.IDAdresse_FS AS PersonAddressId,
|
||||||
|
ak.Wert
|
||||||
|
FROM dbo.AdresseKommunikation ak
|
||||||
|
LEFT JOIN dbo.AdressePerson ap
|
||||||
|
ON ap.IDAdressePerson = ak.IDAdressePerson_FS
|
||||||
|
WHERE ak.IDAdressePerson_FS <> 0
|
||||||
|
AND ap.IDAdressePerson IS NULL;
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
|
-- Check whether Buchung.IDAdresse_FS_Anmelder matches the applicant person's address.
|
||||||
|
SELECT TOP (100)
|
||||||
|
b.IDBuchung,
|
||||||
|
b.Vorgang,
|
||||||
|
b.IDAdresse_FS_Anmelder,
|
||||||
|
b.IdAdressePerson_FS_Anmelder,
|
||||||
|
ap.IDAdresse_FS AS ApplicantPersonAddressId
|
||||||
|
FROM dbo.Buchung b
|
||||||
|
LEFT JOIN dbo.AdressePerson ap
|
||||||
|
ON ap.IDAdressePerson = b.IdAdressePerson_FS_Anmelder
|
||||||
|
WHERE b.IDAdresse_FS_Anmelder IS NOT NULL
|
||||||
|
AND ap.IDAdresse_FS <> b.IDAdresse_FS_Anmelder;
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
|
-- Inspect status values before adding active-only predicates.
|
||||||
|
SELECT 'Adresse' AS table_name, Status, COUNT(*) AS rows
|
||||||
|
FROM dbo.Adresse
|
||||||
|
GROUP BY Status
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'AdressePerson', Status, COUNT(*)
|
||||||
|
FROM dbo.AdressePerson
|
||||||
|
GROUP BY Status
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'AdresseKommunikation', Status, COUNT(*)
|
||||||
|
FROM dbo.AdresseKommunikation
|
||||||
|
GROUP BY Status
|
||||||
|
UNION ALL
|
||||||
|
SELECT 'BuchungTN', Status, COUNT(*)
|
||||||
|
FROM dbo.BuchungTN
|
||||||
|
GROUP BY Status
|
||||||
|
ORDER BY table_name, Status;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Indexes To Confirm Or Add
|
||||||
|
|
||||||
|
The current CSV files do not include index definitions. For the lookup endpoint,
|
||||||
|
confirm whether these access paths already exist:
|
||||||
|
|
||||||
|
- `Buchung(Vorgang)` including `IDBuchung`, `IdAdressePerson_FS_Anmelder`
|
||||||
|
- `BuchungTN(IDBuchung_FS)` including `IDAdressePerson_FS`, `Status`
|
||||||
|
- `AdressePerson(IDAdressePerson)` including `IDAdresse_FS`, `Vorname`, `Name`,
|
||||||
|
`Status`
|
||||||
|
- `AdresseKommunikation(IDAdressePerson_FS, Wert)` including `IDAdresse_FS`,
|
||||||
|
`IDArtKommunikation_FS`, `Status`
|
||||||
|
- `AdresseKommunikation(IDAdresse_FS, Wert)` including `IDAdressePerson_FS`,
|
||||||
|
`IDArtKommunikation_FS`, `Status`
|
||||||
|
|
||||||
|
If the database collation is case-sensitive and email lookup must be
|
||||||
|
case-insensitive, avoid `LOWER(Wert)` on large tables unless a computed
|
||||||
|
normalized-email column or suitable index exists.
|
||||||
|
|
||||||
|
## Future Endpoint Candidates
|
||||||
|
|
||||||
|
The XML plumbing can be replaced incrementally by small read endpoints backed by
|
||||||
|
targeted SQL:
|
||||||
|
|
||||||
|
| Endpoint | Purpose | Core tables |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `GET /api/bookings/lookup` | Resolve email + public booking number to booking/person/address ids. | `Buchung`, `BuchungTN`, `AdressePerson`, `AdresseKommunikation`, `Adresse` |
|
||||||
|
| `GET /api/bookings/{bookingId}` | Fetch booking header/detail by internal id. | `Buchung`, `Reise`, `Produkt`, `BuchungTN` |
|
||||||
|
| `GET /api/bookings/{bookingId}/participants` | Fetch participants for a booking. | `BuchungTN`, `AdressePerson`, `AdresseAnschrift` |
|
||||||
|
| `GET /api/customers/{addressId}/persons/{personId}` | Fetch a minimal customer/person profile. | `Adresse`, `AdressePerson`, `AdresseKommunikation`, `AdresseAnschrift` |
|
||||||
|
|
||||||
|
Keep endpoint responses narrow. Return only ids and fields needed by the Symfony
|
||||||
|
portal so the Go service does not become a broad BusProNet data mirror.
|
||||||
|
|
||||||
|
## Regeneration Notes
|
||||||
|
|
||||||
|
When new catalog exports are added, regenerate this document with:
|
||||||
|
|
||||||
|
1. Columns export from `sys.tables`, `sys.schemas`, `sys.columns`, `sys.types`.
|
||||||
|
2. Foreign key export from `sys.foreign_keys` and related FK columns.
|
||||||
|
3. Primary-key export from `sys.key_constraints`.
|
||||||
|
4. Index export from `sys.indexes`, `sys.index_columns`, and `sys.columns`.
|
||||||
|
|
||||||
|
Primary keys and indexes should be added to the table sections and the lookup
|
||||||
|
query should be revisited once the real access paths are known.
|
||||||
@@ -0,0 +1,477 @@
|
|||||||
|
# BusProNet XML API — working reference
|
||||||
|
|
||||||
|
Condensed from the vendor PDF `docs/bpn_docs.pdf` (41 pages, German), keeping what this project
|
||||||
|
uses or plausibly could. The PDF stays authoritative; a few of its sentences are mangled by a
|
||||||
|
broken font encoding, so anything unclear there is flagged rather than guessed at.
|
||||||
|
|
||||||
|
> **The PDF lags the live API.** The vendor has shipped elements since it was written —
|
||||||
|
> `<ausstiege>` (return boarding points) is one confirmed example. So *absent from the PDF* means
|
||||||
|
> "not in this snapshot", never "unsupported". Treat the document as a floor on what the API
|
||||||
|
> accepts, not a ceiling, and prefer a live `buchungsart=Anfrage` probe over an argument from
|
||||||
|
> silence.
|
||||||
|
|
||||||
|
Read this alongside `buspro-database-reference.md` (what BusPro actually stores) — the two answer
|
||||||
|
different questions, and where they disagree the schema is the record of what happened.
|
||||||
|
|
||||||
|
**Use it for:** what an element is called and what it may contain; which codes a failure can
|
||||||
|
return; which documented capabilities we are not using; and which elements we send that the
|
||||||
|
vendor never documented — those are the ones that can break without warning.
|
||||||
|
|
||||||
|
## Envelope
|
||||||
|
|
||||||
|
Every request is `<anfrage>` with `<user>`, `<key>` and `<satz typ="…"/>`.
|
||||||
|
|
||||||
|
```
|
||||||
|
key = md5( user + password + date("YYYYMMDD") + satz-typ )
|
||||||
|
```
|
||||||
|
|
||||||
|
Per satz type and per day. `XmlChannel::createKey()` implements it, and `XmlChannel::replay()` regenerates
|
||||||
|
the key before sending, so a hand-built payload can carry a placeholder.
|
||||||
|
|
||||||
|
## Satz types
|
||||||
|
|
||||||
|
**Documented:** `ADRESSFELDER`, `ADRESSFELDERGUTSCHEIN`, `ADRESSFELDERKATALOGANFRAGE`,
|
||||||
|
`AGENTUREN`, `AGENTURKONTO`, `AKTIONSGUTSCHEIN`, `BUCHUNG`, `BUCHUNGAENDERUNG`, `CRM`,
|
||||||
|
`CRMKATALOGANFRAGE`, `GUTSCHEINBUCHUNG`, `GUTSCHEINDRUCK`, `GUTSCHEINPRUEFUNGEINLOESUNG`,
|
||||||
|
`GUTSCHEINVORLAGEN`, `GUTSCHEINVORSCHAU`, `GUTSCHEINZAHLUNGSARTEN`, `KATALOGANFRAGE`,
|
||||||
|
`KUNDENKONTO`, `KUNDENLISTE`, `MOEGLICHEAENDERUNGEN`, `PRODUKTDATEN`, `PRODUKTE`, `SITZPLATZ`,
|
||||||
|
`STAMMHOTELS`, `STAMMLAENDER`, `STAMMVERSICHERUNGEN`, `STAMMZUSTIEGE`, `VERFUEGBARKEIT`,
|
||||||
|
`VERFUEGBARKEITHOTEL`, `ZAHLUNG`, `ZAHLUNG2`, `ZAHLUNGSARTEN`, `ZAHLUNGSARTEN2`.
|
||||||
|
`SITZPLATZAUSWAHL` and `ZAHLUNG4` are named in prose without their own section.
|
||||||
|
|
||||||
|
**Used here but undocumented:** `VERFUEGBARKEIT2` (`MessageType::AvailabilityExtended`) — the
|
||||||
|
extended availability call returning `buchungstatusmoeglich` and per-service `pflicht`/`frei`.
|
||||||
|
Its contract is observed, not specified.
|
||||||
|
|
||||||
|
**Documented but unused here:** `SITZPLATZ`/`SITZPLATZAUSWAHL`, `KUNDENLISTE`, `ZAHLUNG2`,
|
||||||
|
`ADRESSFELDER`, `STAMMHOTELS`, `STAMMVERSICHERUNGEN`, `STAMMZUSTIEGE`, `KATALOGANFRAGE`.
|
||||||
|
|
||||||
|
## BUCHUNG — the create contract
|
||||||
|
|
||||||
|
`<buchungsart>` decides what the call does:
|
||||||
|
|
||||||
|
| Value | Effect |
|
||||||
|
|---|---|
|
||||||
|
| `Anfrage` | Enquiry. Validates and **returns the full price breakdown**. Nothing is stored. |
|
||||||
|
| `Buchung` | Stores the booking. |
|
||||||
|
|
||||||
|
`<status>` at the root: `F` Festbuchung · `O` Optionsbuchung · `A` Anfragebuchung. Gated by
|
||||||
|
error `962` ("Buchungsstatus #1# kann nicht verarbeitet werden, nur Status #2# möglich"), and by
|
||||||
|
`982`/`983` when the travel forbids options or enquiries outright.
|
||||||
|
|
||||||
|
### Two accommodation models
|
||||||
|
|
||||||
|
The base payload books accommodation as an ordinary service:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<unterbringungen>
|
||||||
|
<unterbringung idleistung="22341" anzahl="1" zuordnung="1,2"/>
|
||||||
|
</unterbringungen>
|
||||||
|
```
|
||||||
|
|
||||||
|
For the **Ferienziel** domain — what this app books — `unterbringungen` is *replaced* by
|
||||||
|
`ferienzielunterbringungen`, **and** a root `<idpartner>` added:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<ferienzielunterbringungen>
|
||||||
|
<ferienzielunterbringung idzimmer="2" kategorie="Ik" idverpflegung="2"
|
||||||
|
anreise="30.01.2018" abreise="06.02.2018"
|
||||||
|
anzahl="1" zuordnung="1,2"/>
|
||||||
|
</ferienzielunterbringungen>
|
||||||
|
…
|
||||||
|
<idpartner>78687</idpartner>
|
||||||
|
```
|
||||||
|
|
||||||
|
> `<idpartner>` is introduced as the element you add when switching to the Ferienziel model, and
|
||||||
|
> `914 Partner-ID fehlt` guards it. Note it is **not** confined to bookings that have a room: a
|
||||||
|
> teamer booking with zero `BuchungTNFerienziel` rows still returns `<idpartner>222925</idpartner>`
|
||||||
|
> from `Vorgang_Details`. Where that comes from is **unresolved** — `Buchung` has no partner FK, so
|
||||||
|
> either it is stored on `Buchung.IDAdresse_FS_ExtraFerienzielPartner`, or it is derived from the
|
||||||
|
> travel. That booking's product has exactly one hotel, so the response cannot distinguish the two;
|
||||||
|
> one read-only query settles it.
|
||||||
|
|
||||||
|
Accommodation is **mandatory** — `913 Unterbringungen fehlen` / `916 Ferienziel-Unterbringungen
|
||||||
|
fehlen`. Confirmed empirically on the test system 2026-09-02, not just documented: see
|
||||||
|
"Validation gate order" below. Room dates are cross-checked against the transport legs (`921`,
|
||||||
|
`923`).
|
||||||
|
|
||||||
|
### Full documented request shape
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<anfrage>
|
||||||
|
<user/><key/><satz typ="BUCHUNG"/>
|
||||||
|
<buchungsart>Anfrage|Buchung</buchungsart>
|
||||||
|
<status>F|O|A</status>
|
||||||
|
<idagentur/> <idcrm/> <idreise/> <idpartner/>
|
||||||
|
<fremdvorgang/> <!-- your own reference, stored as Buchung.FremdVorgang -->
|
||||||
|
<datenschutztfmp/> <!-- ad consent, combinable: T Telefon, F Telefax, M EMail, P Post -->
|
||||||
|
<anmelder>
|
||||||
|
name, vorname, anrede, titel, geschlecht, nationalitaet, geburtsdatum,
|
||||||
|
<anschrift>strasse, plz, ort, ortsteil, land</anschrift>
|
||||||
|
<kommunikation>telefonmobil, email, telefonprivat</kommunikation>
|
||||||
|
<bemerkung/>
|
||||||
|
</anmelder>
|
||||||
|
<teilnehmerliste>
|
||||||
|
<teilnehmer id="1">
|
||||||
|
…same personal fields…
|
||||||
|
<wünsche><unterbringungswunsch/><beförderungswunsch/></wünsche>
|
||||||
|
<aktionscode/>
|
||||||
|
</teilnehmer>
|
||||||
|
</teilnehmerliste>
|
||||||
|
<beförderungen><beförderung idleistung anzahl zuordnung/></beförderungen>
|
||||||
|
<ferienzielunterbringungen>…</ferienzielunterbringungen>
|
||||||
|
<zusatzleistungen><zusatzleistung idleistung anzahl zuordnung/></zusatzleistungen>
|
||||||
|
<zustiege><zustieg idzustieg anzahl zuordnung/></zustiege>
|
||||||
|
<sitzpläne><sitzplan idleistung idsitzplan sitzplätze="1B;1A"/></sitzpläne>
|
||||||
|
<versicherungen><versicherung idversicherung anzahl zuordnung/></versicherungen>
|
||||||
|
<gutscheine><gutschein gutscheinnr einloesecode/></gutscheine>
|
||||||
|
<zuschlaege>
|
||||||
|
<zuschlag text betrag anzahl zuordnung
|
||||||
|
provision altersrabatt gruppenrabatt frühbucherrabatt bzberechnung/>
|
||||||
|
</zuschlaege>
|
||||||
|
<zahlung idzahlungsart bezeichnung art>
|
||||||
|
<bankverbindung kreditinstitut bic iban kontoinhaber/>
|
||||||
|
</zahlung>
|
||||||
|
</anfrage>
|
||||||
|
```
|
||||||
|
|
||||||
|
`zuordnung` is a comma-joined list of 1-based `teilnehmer/@id` values throughout.
|
||||||
|
|
||||||
|
### Responses
|
||||||
|
|
||||||
|
`buchungsart=Anfrage` → `<buchung>möglich</buchung>` plus `<preise>`: one `<preis>` per line with
|
||||||
|
`position`, `art`, `unterart`, `bezeichnung`, `terminvon`/`terminbis`, `anzahl`, `zuordnung`,
|
||||||
|
`preis`, `gesamtpreis`, `id`; then `<gesamtpreis>` and `<zahlungsbedingungen>` with `<anzahlung>`
|
||||||
|
and `<restzahlung>` (each `betrag` + `termin`). `art` values seen: `BEF` transport, `UNT`
|
||||||
|
accommodation, `SON` other, `ERM` discount, `VER` insurance.
|
||||||
|
|
||||||
|
`buchungsart=Buchung` → `<buchung>erfolgt</buchung>`, `<vorgang>`, `<rechnung>`, `<idbuchung>`,
|
||||||
|
`<email>`, `<pdfpasswort>`.
|
||||||
|
|
||||||
|
### Validation gate order (measured)
|
||||||
|
|
||||||
|
Established with `buchungsart=Anfrage` against the test system on 2026-09-02, by mirroring a real
|
||||||
|
room-less teamer booking (Vorgang 110628) element for element:
|
||||||
|
|
||||||
|
1. **Accommodation.** No `ferienzielunterbringungen` → `916`, regardless of everything else being
|
||||||
|
valid. Nothing further is evaluated.
|
||||||
|
2. **Personal data**, once a room is present → `650` with the field list *"Fehlende
|
||||||
|
Anmelder/Teilnehmer Daten … Nachname, Vorname, Strasse, Plz, Ort, Telefon-Mobil, Mail-Adresse,
|
||||||
|
Geburtsdatum, Nationalität"*, for the Anmelder **and every participant**.
|
||||||
|
|
||||||
|
So **sending `idadresse`/`idadresseperson` alone is not enough on create** — BusPro validates the
|
||||||
|
personal fields whether or not it could resolve them from the ids. Echoing the record back
|
||||||
|
(`idadresse` + `idadresseperson` + full data) narrows the complaint to whatever that record is
|
||||||
|
genuinely missing, which is a useful way to audit an address: the placeholder account 19465:41003
|
||||||
|
fails on `Telefon-Mobil` and `Nationalität` because its `Vorgang_Details` record has only
|
||||||
|
`telefonprivat` and no `nationalitaet`.
|
||||||
|
|
||||||
|
**Participants are held to less than the Anmelder** (measured 2026-09-16 on 2036, travel 12500, from a
|
||||||
|
real step-3 `Anfrage`). `telefonmobil` and an empty `anschrift` pass for participants. The field list
|
||||||
|
above (Strasse, Plz, Ort, Telefon-Mobil for every participant) was measured on the placeholder records and
|
||||||
|
is stricter than what BusPro applies to ordinary participants.
|
||||||
|
|
||||||
|
**The participant `Mail-Adresse` is BusPro configuration, not a fixed rule.** Until 2026-10-13 every
|
||||||
|
`teilnehmer` needed one once a room was present, children included: without it the answer was
|
||||||
|
`650 … 1.Teilnehmer-Mail-Adresse, 2.Teilnehmer-Mail-Adresse`, while an email identical to the Anmelder's
|
||||||
|
was accepted. On 2026-10-15 the requirement was switched off on the test system, and the same requests
|
||||||
|
(no `email`, no `kommunikation`, an empty `<email/>`, adults and children, with and without a travelling
|
||||||
|
Anmelder) all pass with an unchanged price. A committed `Buchung` (status `A`) with an email-less child
|
||||||
|
goes through as well, both with a travelling Anmelder and with one who does not travel. BusPro now accepts a participant without an email at any age,
|
||||||
|
so the rule MyE&P applies (required from 16, and for the applicant at any age) is enforced only by
|
||||||
|
`ParticipantDto` and `BookingDto` validation. Production needs the same configuration before under-16s
|
||||||
|
without an email can be booked there.
|
||||||
|
|
||||||
|
**The Anmelder does not have to travel.** An `<anmelder>` that matches no `teilnehmer` (a parent booking
|
||||||
|
for their children) returns `möglich` with the same price as the control where the Anmelder is
|
||||||
|
`teilnehmer 1`. Whether the committed booking binds to the Anmelder's existing customer record has not
|
||||||
|
been measured yet.
|
||||||
|
|
||||||
|
Note `650` again: both of those are hard rejections delivered under the code
|
||||||
|
`Notification::isError()` treats as success.
|
||||||
|
|
||||||
|
## BUCHUNGAENDERUNG — the edit contract
|
||||||
|
|
||||||
|
Structurally identical to `BUCHUNG` plus `<idbuchung>`, and the responses follow `buchungsart`
|
||||||
|
the same way. Ask `MOEGLICHEAENDERUNGEN` first (`<idreise>`), which answers:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<änderungen>
|
||||||
|
<änderung art="anzahl_teilnehmer" möglich="False"/>
|
||||||
|
<änderung art="beförderung" möglich="False"/>
|
||||||
|
<änderung art="zustieg" möglich="False"/>
|
||||||
|
<änderung art="sitztplatz" möglich="False"/> <!-- vendor's typo -->
|
||||||
|
<änderung art="unterbringung" möglich="False"/>
|
||||||
|
<änderung art="zusatzleistung" möglich="True" möglichbiszum="23.02.2020"/>
|
||||||
|
<änderung art="teilnehmerdaten" möglich="False"/>
|
||||||
|
</änderungen>
|
||||||
|
```
|
||||||
|
|
||||||
|
## How this app maps onto the contract
|
||||||
|
|
||||||
|
`BookingPayloadBuilder::buildCreatePayload()` builds create; `buildBasePayload()` + the
|
||||||
|
`addTo…Payload()` helpers build edit; `BookingClient::createBooking()`/`updateBooking()` wrap them.
|
||||||
|
|
||||||
|
| Documented element | Sent on create | Sent on edit | Notes |
|
||||||
|
|---|---|---|---|
|
||||||
|
| `buchungsart` | yes | yes | Edit **hardcodes `Buchung`** (`BookingClient::updateBooking()`) |
|
||||||
|
| `status` | yes | yes | Edit replays the value read back from BusPro — see the caveat below |
|
||||||
|
| `idreise`, `idpartner`, `idagentur` | yes | yes | `idpartner` sent unconditionally, even with no room |
|
||||||
|
| `anmelder` | yes | yes | Create builds it from participant[0], or from `BookingDto::$applicant` when the applicant does not travel; edit uses `PersonalData::toPayload()`. BusPro accepts an Anmelder who is not a participant |
|
||||||
|
| `anmelder/bemerkung` | — | yes | Via `PersonalData::toPayload()` |
|
||||||
|
| `teilnehmerliste` | yes | yes | |
|
||||||
|
| `wünsche` (`unterbringungswunsch`, `beförderungswunsch`) | yes | yes | |
|
||||||
|
| `aktionscode` | yes | yes | Promo code, paired with `AKTIONSGUTSCHEIN` |
|
||||||
|
| `beförderungen`, `zusatzleistungen`, `zustiege` | yes | yes | Built by `ServiceMappingCollector` |
|
||||||
|
| `ferienzielunterbringungen` | yes | yes | Create omits the node entirely when no room maps; edit always emits the empty skeleton |
|
||||||
|
| `versicherungen` | yes | yes | |
|
||||||
|
| `gutscheine` | yes | yes | Paired with `GUTSCHEINPRUEFUNGEINLOESUNG` |
|
||||||
|
| `zahlung` + `bankverbindung` | yes | yes | |
|
||||||
|
| `idcrm` | no | no | |
|
||||||
|
| `fremdvorgang` | no | no | Would give our own bookings a stable external reference |
|
||||||
|
| `datenschutztfmp` | no | no | Advertising consent — we track newsletter consent locally instead |
|
||||||
|
| `sitzpläne` | no | no | See Seats |
|
||||||
|
| `zuschlaege` | no | no | Free-text manual surcharge or discount with its own amount |
|
||||||
|
|
||||||
|
### Newer than the PDF
|
||||||
|
|
||||||
|
These are absent from the document but work against the live API — vendor additions that
|
||||||
|
post-date it. Listed so nobody mistakes the PDF's silence for a contract violation, and so the
|
||||||
|
gaps in this reference are known.
|
||||||
|
|
||||||
|
| Element | Where | Note |
|
||||||
|
|---|---|---|
|
||||||
|
| `<ausstiege><ausstieg idzustieg …/></ausstiege>` | create and edit | Return boarding points. Confirmed as a recent vendor addition; the PDF documents only `<zustiege>`. |
|
||||||
|
| `<status>` inside `<teilnehmer>` | create (hardcoded `F`) and edit | Not in the PDF in either direction, though `Vorgang_Details` returns `status_teilnehmer`. |
|
||||||
|
| `<login>J</login>` on `KUNDENKONTO` | probe command | Passwordless read escape hatch; see `bpn-login-j-passwordless-reads`. |
|
||||||
|
| `VERFUEGBARKEIT2` | availability path | Whole satz type post-dates the PDF. Returns `buchungstatusmoeglich` and per-service `pflicht`. |
|
||||||
|
|
||||||
|
When one of these needs pinning down, the authoritative move is a live `Anfrage` call, not a
|
||||||
|
reading of this file.
|
||||||
|
|
||||||
|
### Caveat: the edit flow replays a derived status
|
||||||
|
|
||||||
|
`buildBasePayload()` sends `'status' => $bookingData->status`, and `Booking::$status` is parsed
|
||||||
|
from the response's root `<status>` (`BookingParser.php:38`). But `Buchung` has **no status
|
||||||
|
column** — the root value is an aggregate over `BuchungTN.Status`, the only real store
|
||||||
|
(`<status>F</status>` beside `<status_teilnehmer>F/F/…/F</status_teilnehmer>` in
|
||||||
|
`tests/Resources/booking_data.xml`). So on a booking whose participants do *not* all share one
|
||||||
|
status, the edit flow sends an aggregate back as a directive. Worth confirming against a mixed
|
||||||
|
booking before relying on it.
|
||||||
|
|
||||||
|
### Gap: edit never dry-runs
|
||||||
|
|
||||||
|
Create is two-phase — `Anfrage` to validate and price, then `Buchung`. Edit sends
|
||||||
|
`buchungsart=Buchung` directly (`BookingClient::updateBooking()`), even though `BUCHUNGAENDERUNG` supports
|
||||||
|
`Anfrage` identically. An enquiry pass would surface `913`/`924`/`962` and return the recalculated
|
||||||
|
price *before* mutating a live booking.
|
||||||
|
|
||||||
|
## Seats
|
||||||
|
|
||||||
|
`SITZPLATZ` asks BusPro to pick seats:
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<satz typ="SITZPLATZ"/>
|
||||||
|
<idreise/><idleistung_hin/><idleistung_rueck/><anzahl_personen/>
|
||||||
|
<wunsch_vornemittehinten>V|M|H</wunsch_vornemittehinten>
|
||||||
|
<wunsch_linksrechts>L|R</wunsch_linksrechts>
|
||||||
|
<wunsch_fenstergang>F|G</wunsch_fenstergang>
|
||||||
|
```
|
||||||
|
|
||||||
|
Response: one `<sitzplan>` per direction with `sitzplaetze="0D;1D;1C"`, `idsitzplan`,
|
||||||
|
`richtung="H|R"`, `bezeichnung`, `idleistung`, and `grafik` (base64 PNG of the seat map). Where
|
||||||
|
seats carry surcharges the response adds `<zuschläge>` (`id`, `bezeichnung`, `preis`, colours) and
|
||||||
|
the request must then carry `idzuschlag`. `SITZPLATZAUSWAHL` returns the raw plan structure
|
||||||
|
instead of a picture.
|
||||||
|
|
||||||
|
Chosen seats go back into a booking via `<sitzpläne>`, landing in
|
||||||
|
`BuchungTNLeistungZusatz.Sitzplatz` / `IDSitzplan_FS`. Guarded by `933 Sitzplan mit ID #1# bei
|
||||||
|
Leistung #2# nicht freigegeben` and `304 Es konnte nicht für alle Teilnehmer ein Sitzplatz
|
||||||
|
ermittelt werden`.
|
||||||
|
|
||||||
|
## KUNDENKONTO
|
||||||
|
|
||||||
|
`<art>`: `Adressdaten`, `Adressdaten_Ändern`, `Adresse_Neu`, `SelektionCRM`,
|
||||||
|
`SelektionCRM_Ändern`, `Vorgänge`, `Vorgangdruck`, `Voucherdruck`, `Dokumentdruck`,
|
||||||
|
`Passwort_Anfrage`, `Newsletter`, `Adressdokument`, `Vorgang_Details`, `Prüfung`, `PrüfungEmail`,
|
||||||
|
`Ausweisdaten_Ändern`, `Stornoanfrage`, `Storno`, `Versicherungspolice`.
|
||||||
|
|
||||||
|
`Stornoanfrage` answers `stornierung_moeglich` + `stornopreis`; `Storno` answers `storniert` —
|
||||||
|
the documented way to cancel, including cleaning up a test booking. `Ausweisdaten_Ändern` takes a
|
||||||
|
`<personen>` list with `<ausweis>` data and answers `änderung`. `Versicherungspolice` returns
|
||||||
|
per-policy document URLs.
|
||||||
|
|
||||||
|
## AGENTURKONTO
|
||||||
|
|
||||||
|
`<art>`: `Vorgänge`, `Vorgangdruck`, `Rechnungdruck`, `Hotelgutscheine`, `Hotelgutscheindruck`,
|
||||||
|
`OptionInFest` — the last converts a held option into a firm booking, answering
|
||||||
|
`<optioninfestumgewandelt>true</optioninfestumgewandelt>`. `Vorgangdruck` takes `idbuchung`,
|
||||||
|
`Rechnungdruck` takes `idrechnung`, `Hotelgutscheindruck` takes `idgutschein`; print arts return
|
||||||
|
base64 PDFs.
|
||||||
|
|
||||||
|
## Availability and payment
|
||||||
|
|
||||||
|
`VERFUEGBARKEIT` takes `<idreise>` plus a `<leistungen><leistung id="…"/></leistungen>` filter and
|
||||||
|
answers `<reise id status>` plus per-service `status` ("buchbar"), `frei`, `preis`,
|
||||||
|
`preisfaellig`. `VERFUEGBARKEIT2`, which we actually use, additionally reports
|
||||||
|
`buchungstatusmoeglich` and `pflicht` but is undocumented.
|
||||||
|
|
||||||
|
`ZAHLUNGSARTEN2` lists payment methods; `ZAHLUNG2` records a payment against a booking
|
||||||
|
(`vorgang`, `idbuchung`, `datum`, `betrag`, `idzahlungsart`, `zahlungstext` — all mandatory).
|
||||||
|
`ZAHLUNG` reports a credit-card authorisation after booking; the amount must equal the confirmed
|
||||||
|
`anzahlung` or errors `1011`-`1018` follow.
|
||||||
|
|
||||||
|
## Selling vouchers (Kaufgutschein)
|
||||||
|
|
||||||
|
Used by the `/gutschein` flow, which replaces the BusProNet-hosted shop
|
||||||
|
(`maske_gutschein.php`). `VoucherClient`, `MessageType::Voucher*`; not to be confused with
|
||||||
|
`MessageType::PurchaseVoucher` (`GUTSCHEINPRUEFUNGEINLOESUNG`), which redeems a voucher in a booking.
|
||||||
|
|
||||||
|
| Satz | Request | Response |
|
||||||
|
|---|---|---|
|
||||||
|
| `GUTSCHEINVORLAGEN` | — | `gutscheinminbetrag`, `gutscheinmaxbetrag` (**undocumented**, measured), then `<gutscheine><gutschein idgutscheinvorlage="3"><gutscheinart>K</gutscheinart><bezeichnung>Allgemein</bezeichnung><hinweis/>` |
|
||||||
|
| `GUTSCHEINZAHLUNGSARTEN` | — | `<zahlungsarten><zahlungsart id="2" bezeichnung="Überweisung" art="UEBERW"/>` (measured; the attributes are echoed as `<zahlung>` below) |
|
||||||
|
| `GUTSCHEINVORSCHAU` | `idgutscheinvorlage`, `kaeufer`, `empfaenger`, `kaufpreis`, `text` | `<gutscheinpdf>data:application/pdf;base64,…` (measured, about 430 KB) |
|
||||||
|
| `ADRESSFELDERGUTSCHEIN` | — | which address fields to show and which are mandatory; not used, the flow fixes the live shop's fields |
|
||||||
|
| `GUTSCHEINBUCHUNG` | see below | `buchung=erfolgt`, `idgutschein`, `gutscheinnummer`, `einloesecode`, `preis`, `rechnungsnummer`, `email` |
|
||||||
|
| `GUTSCHEINDRUCK` | `idgutschein`, `einloesecode` | the voucher PDF; not used, BusPro mails the voucher itself once the payment has arrived |
|
||||||
|
|
||||||
|
```xml
|
||||||
|
<satz typ="GUTSCHEINBUCHUNG"/>
|
||||||
|
<buchungsart>Anfrage|Buchung</buchungsart>
|
||||||
|
<gutscheinart>K</gutscheinart>
|
||||||
|
<idgutscheinvorlage>3</idgutscheinvorlage>
|
||||||
|
<kaeufer>…</kaeufer> <!-- "von", printed on the voucher -->
|
||||||
|
<empfaenger>…</empfaenger> <!-- "für", printed on the voucher -->
|
||||||
|
<kaufpreis>25</kaufpreis>
|
||||||
|
<text/> <!-- Zusatztext; the live shop sends it empty -->
|
||||||
|
<rechnungsempfänger>
|
||||||
|
<name/><vorname/><anrede/><titel/><geschlecht/><geburtsdatum/>
|
||||||
|
<anschrift><strasse/><plz/><ort/><ortsteil/><land>D</land></anschrift>
|
||||||
|
<kommunikation><telefonprivat/><email/><telefonmobil/></kommunikation>
|
||||||
|
</rechnungsempfänger>
|
||||||
|
<zahlung idzahlungsart="2" bezeichnung="Überweisung" art="UEBERW"/>
|
||||||
|
```
|
||||||
|
|
||||||
|
`<preiszusaetze>` is documented but not sent; the total is the voucher value. `telefonmobil` is not
|
||||||
|
in the vendor's example, its name is the one `BUCHUNG` uses, and the test system accepts it. The
|
||||||
|
live shop also collects a business phone, whose element name is not documented anywhere, so the
|
||||||
|
flow does not collect it.
|
||||||
|
|
||||||
|
### Measured on the test system (2026-10-01)
|
||||||
|
|
||||||
|
`buchungsart=Anfrage` is a full dry run: a valid request answers `<buchung>möglich</buchung>` and
|
||||||
|
nothing else (no `idgutschein`, `gutscheinnummer`, `einloesecode`, `rechnungsnummer`), so nothing is
|
||||||
|
issued. `idagentur` is not required (619/620 never fired).
|
||||||
|
|
||||||
|
| Variant | Answer |
|
||||||
|
|---|---|
|
||||||
|
| Valid (control), 25 € | `möglich` |
|
||||||
|
| `kaufpreis` 6000 | `608 Gutscheinbetrag darf nicht größer als 5.000,00 Euro sein` |
|
||||||
|
| `kaufpreis` 5 | `607 Gutscheinbetrag darf nicht kleiner als 10,00 Euro sein` |
|
||||||
|
| `kaufpreis` 5000 | `möglich` (bounds inclusive) |
|
||||||
|
| `kaufpreis` 25,50 | `möglich` (cents accepted; the flow offers whole euros only) |
|
||||||
|
| `empfaenger` missing | `605 Empfängername fehlt` |
|
||||||
|
| `idgutscheinvorlage` 999 | `602 Gutscheine mit ID 999 nicht gefunden` (not 615 as documented) |
|
||||||
|
| `email` empty | `650 Fehlende Adress Daten. Bitte folgende Eingabefelder prüfen: Mail-Adresse` |
|
||||||
|
| `strasse` empty | `650 … Strasse` |
|
||||||
|
| `anrede` Herr, `telefonmobil` set | `möglich` |
|
||||||
|
|
||||||
|
Missing address data is a `650` and a hard rejection, as on `BUCHUNG`. The flow therefore treats
|
||||||
|
every `HINWEIS` on this path as a rejection and sends it back to the step that owns it
|
||||||
|
(`VoucherSaleRejectionMapper`). The design ids (3, 4, 5) match the thumbnail file names of the old
|
||||||
|
shop, which suggests they are shared with production; confirm on the first production read.
|
||||||
|
|
||||||
|
## Error codes
|
||||||
|
|
||||||
|
Returned as `<satz typ="HINWEIS"><nr>…</nr><text>…</text></satz>`. `#1#`/`#2#` are substituted at
|
||||||
|
runtime.
|
||||||
|
|
||||||
|
> **`650` is not a success code.** Its documented text is a bare `#1#` — a generic message
|
||||||
|
> carrier whose entire content is substituted. `Notification::isError()`
|
||||||
|
> (`src/BusProNet/Model/Notification.php:33-36`) treats it as success, which happens to hold on
|
||||||
|
> the `KUNDENKONTO` paths but not on `BUCHUNG`/`BUCHUNGAENDERUNG`/`GUTSCHEINBUCHUNG`, where the same code delivers
|
||||||
|
> real rejections such as *"Es wurde nicht jedem Teilnehmer eine Pflichtleistung zugeordnet"*.
|
||||||
|
> `BookingEditSubmitter.php:81` therefore reports some genuine failures as INFO.
|
||||||
|
|
||||||
|
**Envelope / auth** — 100 Anfrageknoten fehlt · 101 Satzknoten fehlt · 102 Ungültiger Satztyp ·
|
||||||
|
103/104 User fehlt/fehlerhaft · 105/106 Key fehlt/fehlerhaft · 999 Systemfehler
|
||||||
|
|
||||||
|
**Lookup** — 200 Keine Einträge · 201/202 Partner · 203 Ungültiger Termin · 300 IDReise fehlt ·
|
||||||
|
301 Reise nicht gefunden · 302 IDLeistung (Hin & Rück) fehlt · 303 IDLeistung passt nicht zu
|
||||||
|
IDReise · 304 Kein Sitzplatz für alle Teilnehmer ermittelbar · 305 Anzahl Personen fehlt ·
|
||||||
|
306/307 Leistungen · 308 Keine Zahlungsarten · 400 IDPartner fehlt · 401 Partner nicht gefunden ·
|
||||||
|
402 Bis-Termin fehlt · 403 Keine Unterbringungsleistungen gefunden
|
||||||
|
|
||||||
|
**Customer / address** — 500 Art fehlt · 502 Keine Kunden · 840-842 Personen · 850 IDAdresse und
|
||||||
|
EMail fehlen · 851 Passwort fehlt · 852 Art fehlt · 853 ID, EMail oder Passwort falsch · 855 Keine
|
||||||
|
Daten für Adresse · 860 Adressdaten fehlen · 862-867 Selektionsmerkmale / CRM-Aktionen ·
|
||||||
|
870-875 Newsletter · 880-882 Dokumente · 885-891 Pflichtfelder (Name, Vorname, Geschlecht, EMail,
|
||||||
|
PLZ, Straße) · 889 Kunde bereits angelegt (ID #1#)
|
||||||
|
|
||||||
|
**Booking (create and edit)** — 900 Buchungsart fehlt · 901 Buchungsart falsch · 902 Status
|
||||||
|
fehlt · 903 Status falsch · 904/905 Agentur · 906 Reise-ID fehlt · 907 Reise nicht gefunden ·
|
||||||
|
908 Reise ist storniert · **909 Beförderungen fehlen** · 910 Leistung gehört nicht zur Reise ·
|
||||||
|
911 Leistung gehört nicht zum Produkt · 912 Beförderungsleistung fehlt · **913 Unterbringungen
|
||||||
|
fehlen** · **914 Partner-ID fehlt** · 915 Partner nicht gefunden · **916 Ferienziel-Unterbringungen
|
||||||
|
fehlen** · 917 Zimmer-IDZ fehlt · 918 Kategorie fehlt · 919 Verpflegungs-ID fehlt · 920 Anreise
|
||||||
|
fehlt · **921 Anreise passt nicht zur Beförderungsleistung (Hinfahrt)** · 922 Abreise fehlt ·
|
||||||
|
**923 Abreise passt nicht zur Beförderungsleistung (Rückfahrt)** · **924 Ferienziel: Keine Preise
|
||||||
|
zu den Daten gefunden** · 925 Preis zu den Daten nicht gefunden · 930 Zustiege fehlen ·
|
||||||
|
931 Zustieg nicht gefunden · 932 Zustieg bei Leistung nicht freigegeben · 933 Sitzplan bei
|
||||||
|
Leistung nicht freigegeben · 935-938 Versicherungen · 940-942 Zahlungsart · 950 Anmelder fehlt ·
|
||||||
|
951 Teilnehmerliste fehlt · 952 Teilnehmer-ID fehlt · 953 Keine Teilnehmer übergeben ·
|
||||||
|
960 Preisfehler · 961 Buchung konnte nicht gespeichert werden · **962 Buchungsstatus #1# kann
|
||||||
|
nicht verarbeitet werden, nur Status #2# möglich** · 970 CRM-Merkmal nicht gültig · 980 Reise ist
|
||||||
|
fürs Internet gesperrt · 981 Reise ist nicht mehr buchbar (#1#) · **982 Optionsbuchungen nicht
|
||||||
|
zugelassen** · 983 Anfragebuchung nicht zugelassen · 984 Leistung nicht fürs Internet buchbar ·
|
||||||
|
985 Zustieg nicht fürs Internet buchbar · 986/987 Rechnung · 990-994 Agenturkonto ·
|
||||||
|
995/996 Gutschein · 997/998 Buchung-ID · 1001 Reisedatum fehlerhaft · 1002 Buchungsdatum
|
||||||
|
fehlerhaft · 1003 Status im Vorgang nicht korrekt · 1011-1018 Zahlungsabgleich
|
||||||
|
|
||||||
|
**Vouchers** — 600-608 Gutscheine (602 Vorlage nicht gefunden, measured; 604 Käufername ·
|
||||||
|
605 Empfängername · 606 Betrag fehlt · 607/608 Betrag kleiner/größer als #1# Euro) ·
|
||||||
|
610/611 Buchungsart · 612/613 Gutscheinart · 614/615 Gutscheinstamm · 616 Kapazität nicht
|
||||||
|
ausreichend · 617 Rechnungsempfänger fehlt · 618 Zahlungsart fehlt · 619/620 Agentur-ID ·
|
||||||
|
621 Gutscheindaten fehlen · 622 Einlösecode fehlt · 630 Aktionsgutschein fehlt ·
|
||||||
|
631 Aktionsgutschein mit Code #1# nicht gefunden · 632 Aktionsgutschein für geprüfte Reise ungültig ·
|
||||||
|
**633 Aktionsgutschein vom Buchungszeitraum ungültig** · **634 Aktionsgutschein vom Reisezeitraum
|
||||||
|
ungültig**
|
||||||
|
|
||||||
|
633 and 634 are not in the PDF; both were measured on `AKTIONSGUTSCHEIN` on 2026-10-06. 633 means
|
||||||
|
the request falls outside the promo's booking period (`GutscheinAktion.BuchungDtVon`/`BuchungDtBis`):
|
||||||
|
a test promo whose booking period was being edited answered 633 and was accepted once the period
|
||||||
|
covered the request date. 634 refers to the travel period (`ReiseDtVon`/`ReiseDtBis`). It was
|
||||||
|
returned on prod for a promo whose stored travel period did contain the travel's `TerminVon`/
|
||||||
|
`TerminBis`. What it actually compares has not been established.
|
||||||
|
|
||||||
|
## Applying this: the teamer placeholder booking
|
||||||
|
|
||||||
|
**Answered 2026-09-02: `BUCHUNG` cannot create it.** A payload mirroring the real teamer booking
|
||||||
|
(travel 12429, hotel 222925, agency 77876, both bus legs, ski pass, Ortstaxe, Keycard-Pfand,
|
||||||
|
pickup and drop-off, root and participant status `O`, ids-only identity, no room) returns
|
||||||
|
`916 Ferienziel-Unterbringungen fehlen`. Adding a room to the identical payload clears that gate
|
||||||
|
and moves on to `650`, which proves accommodation was the only structural objection.
|
||||||
|
|
||||||
|
Two blockers that were *not* the problem:
|
||||||
|
|
||||||
|
- **Status `O` is fine here.** Travel 12429 reports `buchungstatusmoeglich="F, O, A"`. The `982`
|
||||||
|
refusal seen earlier is per travel, not a global setting.
|
||||||
|
- **`NurFahrt` never came up** — the request never got far enough for it to matter.
|
||||||
|
|
||||||
|
What the real booking shows about how the office builds one, worth reproducing if the work moves
|
||||||
|
to a direct write:
|
||||||
|
|
||||||
|
- `<idpartner>` **is** present despite there being no accommodation — 222925 is the ordinary
|
||||||
|
hotel of the travel (`Adresse.IDAdresse`, "NEU Sportclub Weissfluh Midweeks und Wochenreisen",
|
||||||
|
the sole hotel of product 1429, with real bookable rooms), not a special no-accommodation
|
||||||
|
partner. Whether the booking stores it or the response derives it is still open.
|
||||||
|
- Each teamer seat is its **own `AdressePerson`** (407725, 407726) under the shared address 41003,
|
||||||
|
with an empty `<anschrift/>`.
|
||||||
|
- `<wünsche><beförderungswunsch>` carries the role label — "Reiseleitung + Busbegleitung".
|
||||||
|
- Per participant, `<optionsdatum>` sets the option expiry.
|
||||||
|
- The total is driven to zero with a **manual `<zuschlag>`**: Ortstaxe 44,00 + Keycard-Pfand 10,80
|
||||||
|
+ Abfahrtsortzuschlag 25,80 = 80,60, offset by an unnamed −80,60 line. `<zuschlaege>` is part of
|
||||||
|
the documented `BUCHUNG` payload, so this part *is* expressible over XML.
|
||||||
|
|
||||||
|
See `.ddev/plans/teamer-placeholder-booking-plan.md`.
|
||||||
@@ -0,0 +1,971 @@
|
|||||||
|
"foreign_key_name";"child_schema";"child_table";"child_column";"parent_schema";"parent_table";"parent_column"
|
||||||
|
"FK_Tarif_Schulamt";"dbo";"ABOSummeFahrscheine";"IDAdresse_FS_Schulamt";"dbo";"Schulamt";"IDSchulamt"
|
||||||
|
"FK_Tarif_Schule";"dbo";"ABOSummeFahrscheine";"IDAdresse_FS_Schule";"dbo";"Schule";"IDSchule"
|
||||||
|
"FK_Tarif_Schuljahr";"dbo";"ABOSummeFahrscheine";"IDABOSchuljahr_FS";"dbo";"ABOSchuljahr";"IDABOSchuljahr"
|
||||||
|
"FK_AdressAuswertungProtokoll_Adresse";"dbo";"AdressAuswertungProtokoll";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseAgenturKatalog_Adresse";"dbo";"AdresseAgenturKatalog";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseAgenturKatalog_ArtKatalog";"dbo";"AdresseAgenturKatalog";"IDArtKatalog_FS";"dbo";"ArtKatalog";"IDArtKatalog"
|
||||||
|
"FK_AdresseAgenturOrganisation_Adresse";"dbo";"AdresseAgenturOrganisation";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseAgenturOrganisation_ArtAgenturOrganisation";"dbo";"AdresseAgenturOrganisation";"IDArtAgenturOrganisation_FS";"dbo";"ArtAgenturOrganisation";"IDArtAgenturOrganisation"
|
||||||
|
"FK_AdresseAgenturProvision_Adresse";"dbo";"AdresseAgenturProvision";"IDArtProvisionsstaffel_FS";"dbo";"ArtProvisionsstaffel";"IDArtProvisionsstaffel"
|
||||||
|
"FK_AdresseAgenturProvision_Adresse1";"dbo";"AdresseAgenturProvision";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseAgenturZusatz_Adresse";"dbo";"AdresseAgenturZusatz";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseAgenturZusatz_ArtAgenturPreisgruppe";"dbo";"AdresseAgenturZusatz";"IDArtAgenturPreisgruppe_FS";"dbo";"ArtAgenturPreisgruppe";"IDArtAgenturPreisgruppe"
|
||||||
|
"FK_AdresseAgenturZusatz_ArtPreisschema";"dbo";"AdresseAgenturZusatz";"IDArtPreisschema_FS";"dbo";"ArtPreisschema";"IDArtPreisschema"
|
||||||
|
"FK_AdresseAnruf_Adresse";"dbo";"AdresseAnruf";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseAnschriftKoordinate_AdresseAnschrift";"dbo";"AdresseAnschriftKoordinate";"IDAdresseAnschrift_FS";"dbo";"AdresseAnschrift";"IDAdresseAnschrift"
|
||||||
|
"FK_AdresseAnschriftKoordinate_ArtZustiegKoordinaten";"dbo";"AdresseAnschriftKoordinate";"IDArtZustiegKoordinaten_FS";"dbo";"ArtZustiegKoordinaten";"IDArtZustiegKoordinaten"
|
||||||
|
"FK_Adresse_Bankverbindung";"dbo";"AdresseBankverbindung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Adresse_Bearbeitung";"dbo";"AdresseBearbeitung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Adresse_Bearbeitung_ErsterSachbearbeiter";"dbo";"AdresseBearbeitung";"IDAdresse_FS_ErsterSachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Adresse_Bearbeitung_LetzterSachbearbeiter";"dbo";"AdresseBearbeitung";"IDAdresse_FS_LetzterSachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseCRS_Adresse";"dbo";"AdresseCRS";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseCRS_ArtCRS";"dbo";"AdresseCRS";"IDArtCRS_FS";"dbo";"ArtCRS";"IDArtCRS"
|
||||||
|
"FK_AdresseDatenschutz_Adresse";"dbo";"AdresseDatenschutz";"IdAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseEmpfehlerKonto_Adresse";"dbo";"AdresseEmpfehlerKonto";"IDAdresse_FS_Empfehler";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseEmpfehlerKonto_Adresse1";"dbo";"AdresseEmpfehlerKonto";"IDAdresse_FS_Empfohlener";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseHinweis_Adresse";"dbo";"AdresseHinweis";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseHistorie_Adresse";"dbo";"AdresseHistorie";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseHistorieBuchungTN_Adresse";"dbo";"AdresseHistorieBuchungTN";"IDAdresseHistorie_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseHistorieMietbus_Adresse";"dbo";"AdresseHistorieMietbus";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Adresse_Kommunikation";"dbo";"AdresseKommunikation";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseKommunikation_ArtKommunikation";"dbo";"AdresseKommunikation";"IDArtKommunikation_FS";"dbo";"ArtKommunikation";"IDArtKommunikation"
|
||||||
|
"FK_Adresse_Kreditkarte";"dbo";"AdresseKreditkarte";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseLandSteuer_Adresse";"dbo";"AdresseLandSteuer";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseLandSteuer_Land";"dbo";"AdresseLandSteuer";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_AdresseLinieAuftraggeber_Adresse";"dbo";"AdresseLinieAuftraggeber";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseLinieAuftraggeber_ArtStatistikGruppe";"dbo";"AdresseLinieAuftraggeber";"IDArtStatistikGruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_AdresseLinieAuftraggeberBlock_Adresse";"dbo";"AdresseLinieAuftraggeberBlock";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseLinieAuftraggeberBlock_AdresseLinieAuftraggeber";"dbo";"AdresseLinieAuftraggeberBlock";"IDAdresseLinieAuftraggeber_FS";"dbo";"AdresseLinieAuftraggeber";"IDAdresseLinieAuftraggeber"
|
||||||
|
"FK_AdresseLinieAuftraggeberLinie_Adresse";"dbo";"AdresseLinieAuftraggeberLinie";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseLinieAuftraggeberLinie_AdresseLinieAuftraggeber";"dbo";"AdresseLinieAuftraggeberLinie";"IDAdresseLinieAuftraggeber_FS";"dbo";"AdresseLinieAuftraggeber";"IDAdresseLinieAuftraggeber"
|
||||||
|
"FK_AdresseLinieAuftraggeberTour_Adresse";"dbo";"AdresseLinieAuftraggeberTour";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseLinieAuftraggeberTour_AdresseLinieAuftraggeber";"dbo";"AdresseLinieAuftraggeberTour";"IDAdresseLinieAuftraggeber_FS";"dbo";"AdresseLinieAuftraggeber";"IDAdresseLinieAuftraggeber"
|
||||||
|
"FK_AdressMandant_Adresse";"dbo";"AdresseMandant";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseMandantDokumentAusgabe_Adresse";"dbo";"AdresseMandantDokumentAusgabe";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseMandantDokumentAusgabe_ArtDokumentAusgabe";"dbo";"AdresseMandantDokumentAusgabe";"IDArtDokumentAusgabe_FS";"dbo";"ArtDokumentAusgabe";"IDArtDokumentAusgabe"
|
||||||
|
"FK_AdresseMandantERechnung_Adresse";"dbo";"AdresseMandantERechnung";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseMandantERechnungBV_AdresseBankverbindung";"dbo";"AdresseMandantERechnungBV";"IDAdresseBankverbindung_FS";"dbo";"AdresseBankverbindung";"IDAdresseBankverbindung"
|
||||||
|
"FK_AdresseMandantERechnungBV_AdresseMandantERechnung";"dbo";"AdresseMandantERechnungBV";"IDAdresseMandantERechnung_FS";"dbo";"AdresseMandantERechnung";"IDAdresseMandantERechnung"
|
||||||
|
"FK_AdresseMandantNummernkreis_Adresse";"dbo";"AdresseMandantNummernkreis";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseMandantNummernkreis_Nummernkreis";"dbo";"AdresseMandantNummernkreis";"IDNummernkreis_FS";"dbo";"Nummernkreis";"IDNummernkreis"
|
||||||
|
"FK_Adresse_Person";"dbo";"AdressePerson";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonal_Adresse";"dbo";"AdressePersonal";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonal_ArtBetriebshof";"dbo";"AdressePersonal";"IDArtBetriebshof_FS";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_AdressePersonal_ArtLohnMandant";"dbo";"AdressePersonal";"IDArtLohnMandant_FS";"dbo";"ArtLohnMandant";"IDArtLohnMandant"
|
||||||
|
"FK_AdressePersonal_ArtPersonalEinsatz";"dbo";"AdressePersonal";"IDArtPersonalEinsatz_FS";"dbo";"ArtPersonalEinsatz";"IDArtPersonalEinsatz"
|
||||||
|
"FK_AdressePersonal_ArtPersonalGruppeKompetenz";"dbo";"AdressePersonal";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_AdressePersonalArt_Adresse";"dbo";"AdressePersonalArt";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalGruppeProdukt_Adresse";"dbo";"AdressePersonalGruppeProdukt";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalGruppeProdukt_ArtPersonalGruppeProdukt";"dbo";"AdressePersonalGruppeProdukt";"IDArtPersonalGruppeProdukt_FS";"dbo";"ArtPersonalGruppeProdukt";"IDArtPersonalGruppeProdukt"
|
||||||
|
"FK_AdressePersonalKleidung_Adresse";"dbo";"AdressePersonalKleidung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalKleidung_ArtPersonalKleidung";"dbo";"AdressePersonalKleidung";"IDArtPersonalKleidung_FS";"dbo";"ArtPersonalKleidung";"IDArtPersonalKleidung"
|
||||||
|
"FK_AdressePersonalNummer_Adresse";"dbo";"AdressePersonalNummer";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalNummer_ArtPersonalNummer";"dbo";"AdressePersonalNummer";"IDArtPersonalNummer_FS";"dbo";"ArtPersonalNummer";"IDArtPersonalNummer"
|
||||||
|
"FK_AdressePersonalPunkte_Adresse";"dbo";"AdressePersonalPunkte";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalSonstGegenstaende_Adresse";"dbo";"AdressePersonalSonstGegenstaende";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalSonstGegenstaende_ArtPersonalSonstGegenstaende";"dbo";"AdressePersonalSonstGegenstaende";"IDArtPersonalSonstGegenstaende_FS";"dbo";"ArtPersonalSonstGegenstaende";"IDArtPersonalSonstGegenstaende"
|
||||||
|
"FK_AdressePersonalSperrKasse_Adresse";"dbo";"AdressePersonalSperrKasse";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalSperrKasse_ZahlungStamm";"dbo";"AdressePersonalSperrKasse";"IDZahlungStamm_FS";"dbo";"ZahlungStamm";"IDZahlungStamm"
|
||||||
|
"FK_AdressePersonalUnfall_Adresse";"dbo";"AdressePersonalUnfall";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalVerwendung_Adresse";"dbo";"AdressePersonalVerwendung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalZusatz_Adresse";"dbo";"AdressePersonalZusatz";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePersonalZusatz_SpracheMaske";"dbo";"AdressePersonalZusatz";"IDSpracheMaske_FS";"dbo";"SpracheMaske";"IDSpracheMaske"
|
||||||
|
"FK_AdressePunkte_Adresse";"dbo";"AdressePunkte";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdressePunkte_Adresse1";"dbo";"AdressePunkte";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseSteueraufteilungDetail_Adresse";"dbo";"AdresseSteueraufteilungDetail";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseSteueraufteilungDetail_Steueraufteilung";"dbo";"AdresseSteueraufteilungDetail";"IDSteueraufteilungDetail_FS";"dbo";"SteueraufteilungDetail";"IDSteueraufteilungDetail"
|
||||||
|
"FK_AdresseZusatz_Adresse";"dbo";"AdresseZusatz";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseZusatzfeld_Adresse";"dbo";"AdresseZusatzfeld";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AdresseZusatzfeld_AdressePerson";"dbo";"AdresseZusatzfeld";"IDAdressePerson_FS";"dbo";"AdressePerson";"IDAdressePerson"
|
||||||
|
"FK_AdresseZusatzfeld_ArtAdresseZusatzfeld";"dbo";"AdresseZusatzfeld";"IDArtAdresseZusatzfeld_FS";"dbo";"ArtAdresseZusatzfeld";"IDArtAdresseZusatzfeld"
|
||||||
|
"FK_AdresseMietbusZusatz_Adresse";"dbo";"AdresseZusatzMietbus";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Adresse_AgenturSelektion";"dbo";"AgenturSelektionenKunde";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Selektionsstamm_AgenturSelektion";"dbo";"AgenturSelektionenKunde";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_ArbeitswertMaterial_Arbeitswert";"dbo";"ArbeitswertMaterial";"IDArbeitswert_FS";"dbo";"Arbeitswert";"IDArbeitswert"
|
||||||
|
"FK_ArbeitswertMaterial_Artikel";"dbo";"ArbeitswertMaterial";"IDArtikel_FS";"dbo";"Artikel";"IDArtikel"
|
||||||
|
"FK_ArbeitswertPersonal_Arbeitswert";"dbo";"ArbeitswertPersonal";"IDArbeitswert_FS";"dbo";"Arbeitswert";"IDArbeitswert"
|
||||||
|
"FK_ArbeitswertPersonal_Arbeitszeitwert";"dbo";"ArbeitswertPersonal";"IDArbeitszeitwert_FS";"dbo";"Arbeitszeitwert";"IDArbeitszeitwert"
|
||||||
|
"FK_ArtArbeitszeitZusatzEinst_ArtArbeitszeitZusatz";"dbo";"ArtArbeitszeitZusatzEinst";"IDArtArbeitszeitZusatz_FS";"dbo";"ArtArbeitszeitzusatz";"IDArtArbeitszeitzusatz"
|
||||||
|
"FK_ArtikelBewegung_Artikel";"dbo";"ArtikelBewegung";"IDArtikel_FS";"dbo";"Artikel";"IDArtikel"
|
||||||
|
"FK_ArtikelImport_ArtArtikelImport";"dbo";"ArtikelImport";"IDArtArtikelImport_FS";"dbo";"ArtArtikelImport";"IDArtArtikelImport"
|
||||||
|
"FK_Artikelzusatz_ArtEinheit";"dbo";"Artikelzusatz";"IDArtEinheit_FS";"dbo";"ArtEinheit";"IDArtEinheit"
|
||||||
|
"FK_ArtikelZuweisungWarengruppe_Artikel";"dbo";"ArtikelZuweisungWarengruppe";"IDArtikel_FS";"dbo";"Artikel";"IDArtikel"
|
||||||
|
"FK_ArtikelZuweisungWarengruppe_Warengruppe";"dbo";"ArtikelZuweisungWarengruppe";"IDArtWarengruppe_FS";"dbo";"ArtWarengruppe";"IDArtWarengruppe"
|
||||||
|
"FK_Auftrag_Adresse3";"dbo";"Auftrag";"IDAdresse_FS_Kunde";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Auftrag_Auftragsart";"dbo";"Auftrag";"IDAuftragsart_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_AuftragBlock_Auftrag";"dbo";"AuftragBlock";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragFahrer_Auftrag";"dbo";"AuftragFahrer";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragFahrer_AuftragFahrzeug";"dbo";"AuftragFahrer";"IDAuftragFahrzeug_FS";"dbo";"AuftragFahrzeug";"IDAuftragFahrzeug"
|
||||||
|
"FK_AuftragFahrer_AuftragTeilauftrag";"dbo";"AuftragFahrer";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragFahrerArbeitszeit_ArtArbeitszeitzusatz";"dbo";"AuftragFahrerArbeitszeit";"IDArtArbeitszeitzusatz_FS";"dbo";"ArtArbeitszeitzusatz";"IDArtArbeitszeitzusatz"
|
||||||
|
"FK_AuftragFahrerArbeitszeit_AuftragFahrer";"dbo";"AuftragFahrerArbeitszeit";"IDAuftragFahrer_FS";"dbo";"AuftragFahrer";"IDAuftragFahrer"
|
||||||
|
"FK_AuftragFahrerArbeitszeitSpesen_AuftragFahrer";"dbo";"AuftragFahrerArbeitszeitSpesen";"IDAuftragFahrer_FS";"dbo";"AuftragFahrer";"IDAuftragFahrer"
|
||||||
|
"FK_AuftragFahrerTagesStunden_AuftragFahrer";"dbo";"AuftragFahrerTagesStunden";"IDAuftragFahrer_FS";"dbo";"AuftragFahrer";"IDAuftragFahrer"
|
||||||
|
"FK_AuftragFahrzeug_Auftrag";"dbo";"AuftragFahrzeug";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragFahrzeug_AuftragTeilauftrag";"dbo";"AuftragFahrzeug";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragFahrzeugNavi_AuftragFahrzeug";"dbo";"AuftragFahrzeugNavi";"IDAuftragFahrzeug_FS";"dbo";"AuftragFahrzeug";"IDAuftragFahrzeug"
|
||||||
|
"FK_AuftragFahrzeugNavi_Fahrzeug";"dbo";"AuftragFahrzeugNavi";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_AuftragFahrzeugNaviGrenzuebertritt_AuftragFahrzeug";"dbo";"AuftragFahrzeugNaviGrenzuebertritt";"IDAuftragFahrzeug_FS";"dbo";"AuftragFahrzeug";"IDAuftragFahrzeug"
|
||||||
|
"FK_AuftragFahrzeugTagesKM_AuftragFahrzeug";"dbo";"AuftragFahrzeugTagesKM";"IDAuftragFahrzeug_FS";"dbo";"AuftragFahrzeug";"IDAuftragFahrzeug"
|
||||||
|
"FK_AuftragInkludierteLeistung_Auftrag";"dbo";"AuftragInkludierteLeistung";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragInkludierteLeistung_AuftragTeilauftrag";"dbo";"AuftragInkludierteLeistung";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragNebenleistung_Auftrag";"dbo";"AuftragInkludierteLeistung";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragNebenleistung_AuftragTeilauftrag";"dbo";"AuftragInkludierteLeistung";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragKalkulationswert_Auftrag";"dbo";"AuftragKalkulationswert";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragKalkulationswert_AuftragTeilauftrag";"dbo";"AuftragKalkulationswert";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragKilometer_Auftrag";"dbo";"AuftragKilometer";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragKilometer_AuftragFahrzeug";"dbo";"AuftragKilometer";"IDAuftragFahrzeug_FS";"dbo";"AuftragFahrzeug";"IDAuftragFahrzeug"
|
||||||
|
"FK_AuftragKilometer_AuftragTeilauftrag";"dbo";"AuftragKilometer";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragKilometerLand_Auftrag";"dbo";"AuftragKilometerLand";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragKilometerLand_AuftragFahrzeug";"dbo";"AuftragKilometerLand";"IDAuftragFahrzeug_FS";"dbo";"AuftragFahrzeug";"IDAuftragFahrzeug"
|
||||||
|
"FK_AuftragKilometerLand_AuftragKilometer";"dbo";"AuftragKilometerLand";"IDAuftragKilometer_FS";"dbo";"AuftragKilometer";"IDAuftragKilometer"
|
||||||
|
"FK_AuftragKilometerLand_AuftragTeilauftrag";"dbo";"AuftragKilometerLand";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragKilometerLand_Land";"dbo";"AuftragKilometerLand";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_AuftragsartMwst_Auftragsart";"dbo";"AuftragsartMwst";"IDAuftragsart_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_AuftragSuche_Adresse1";"dbo";"AuftragSuche";"IDAdresse_FS_Kunde";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AuftragSuche_Auftrag";"dbo";"AuftragSuche";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragSuche_Auftragsart";"dbo";"AuftragSuche";"IDAuftragsArt_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_AuftragTAAbholstelle_AuftragTeilauftrag";"dbo";"AuftragTAAbholstelle";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragTARoute_Auftrag";"dbo";"AuftragTARoute";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragTARoute_AuftragTeilauftrag";"dbo";"AuftragTARoute";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragTARoute_Land";"dbo";"AuftragTARoute";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_AuftragTeilauftrag_Auftrag";"dbo";"AuftragTeilauftrag";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragTeilauftragPreis_Auftrag";"dbo";"AuftragTeilauftragPreis";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragTeilauftragPreis_AuftragTeilauftrag";"dbo";"AuftragTeilauftragPreis";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragTeilauftragPreisErweitert_AuftragTeilauftrag";"dbo";"AuftragTeilauftragPreisErweitert";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AuftragTeilauftragPreisErweitert_Ausstattung";"dbo";"AuftragTeilauftragPreisErweitert";"IDAusstattung_FS";"dbo";"Ausstattung";"IDAusstattung"
|
||||||
|
"FK_AuftragText_ArtAuftragstext";"dbo";"AuftragText";"IDArtAuftragstext_FS";"dbo";"ArtAuftragstext";"IDArtAuftragstext"
|
||||||
|
"FK_AuftragText_Auftrag";"dbo";"AuftragText";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragZusatz_ArtStornogrund";"dbo";"AuftragZusatz";"IDArtStornogrund_FS";"dbo";"ArtStornogrund";"IDArtStornogrund"
|
||||||
|
"FK_AuftragZusatz_Auftrag";"dbo";"AuftragZusatz";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragZusatzleistung_Auftrag";"dbo";"AuftragZusatzleistung";"IDAuftrag_FS";"dbo";"Auftrag";"IDAuftrag"
|
||||||
|
"FK_AuftragZusatzleistung_AuftragTeilauftrag";"dbo";"AuftragZusatzleistung";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_AusstattungFahrzeugAusstattung_ArtFahrzeugAusstattungMerkmal";"dbo";"AusstattungFahrzeugAusstattung";"IDArtFahrzeugAusstattungMerkmal_FS";"dbo";"ArtFahrzeugAusstattungMerkmal";"IDArtFahrzeugAusstattungMerkmal"
|
||||||
|
"FK_AusstattungFahrzeugAusstattung_Ausstattung";"dbo";"AusstattungFahrzeugAusstattung";"IDAusstattung_FS";"dbo";"Ausstattung";"IDAusstattung"
|
||||||
|
"FK_AusstattungKalkulationsWert_Ausstattung";"dbo";"AusstattungKalkulationsWert";"IDAusstattung_FS";"dbo";"Ausstattung";"IDAusstattung"
|
||||||
|
"FK_AusstattungKalkulationsWert_KalkulationswertBezeichnung";"dbo";"AusstattungKalkulationsWert";"IDKalkulationsWertBezeichnung_FS";"dbo";"KalkulationswertBezeichnung";"IDKalkulationswertBezeichnung"
|
||||||
|
"FK_AusstattungKalkulationswertPersonen_AusstattungKalkulationsWert";"dbo";"AusstattungKalkulationswertPersonen";"IDAusstattungKalkulationswert_FS";"dbo";"AusstattungKalkulationsWert";"IDAusstattungKalkulationsWert"
|
||||||
|
"FK_AZKImport_Adresse";"dbo";"AZKImport";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_AZKImport_AZKImportEinstellung";"dbo";"AZKImport";"IDAZKImportEinstellung_FS";"dbo";"AZKImportEinstellung";"IDAZKImportEinstellung"
|
||||||
|
"FK_Befoerderungsvertrag_Adresse";"dbo";"Befoerderungsvertrag";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Befoerderungsvertrag_AdresseAnschrift";"dbo";"Befoerderungsvertrag";"IDAdresseAnschrift_FS_Partner";"dbo";"AdresseAnschrift";"IDAdresseAnschrift"
|
||||||
|
"FK_BefoerderungsvertragTeilauftrag_AuftragTeilauftrag";"dbo";"BefoerderungsvertragTeilauftrag";"IDAuftragTeilauftrag_FS";"dbo";"AuftragTeilauftrag";"IDAuftragTeilauftrag"
|
||||||
|
"FK_BefoerderungsvertragTeilauftrag_Befoerderungsvertrag";"dbo";"BefoerderungsvertragTeilauftrag";"IDBefoerderungsvertrag_FS";"dbo";"Befoerderungsvertrag";"IDBefoerderungsvertrag"
|
||||||
|
"FK_Block_Adresse";"dbo";"Block";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Block_ArtBetriebshof";"dbo";"Block";"IDArtBetriebshof_FS_Anfang";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_Block_ArtBetriebshof1";"dbo";"Block";"IDArtBetriebshof_FS_Ende";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_Block_ArtBlockArt";"dbo";"Block";"IDArtBlockart_FS";"dbo";"ArtBlockArt";"IDArtBlockArt"
|
||||||
|
"FK_Block_ArtFahrplanVersion";"dbo";"Block";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_Block_ArtFremdunternehmen";"dbo";"Block";"IDArtFremdunternehmen_FS";"dbo";"ArtFremdunternehmen";"IDArtFremdunternehmen"
|
||||||
|
"FK_Block_ArtReichweitentyp";"dbo";"Block";"IDArtReichweitentyp_FS";"dbo";"ArtReichweitentyp";"IDArtReichweitentyp"
|
||||||
|
"FK_Block_Fahrzeug";"dbo";"Block";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_Block_Ort_AbstellAnfang";"dbo";"Block";"IDOrt_FS_AbstellAnfang";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_Block_Ort_AbstellEnde";"dbo";"Block";"IDOrt_FS_AbstellEnde";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_BlockFahrzeugtyp_ArtFahrzeugTypen";"dbo";"BlockFahrzeugtyp";"IDArtFahrzeugTypen_FS";"dbo";"ArtFahrzeugTypen";"IDArtFahrzeugTypen"
|
||||||
|
"FK_BlockFahrzeugtyp_Block";"dbo";"BlockFahrzeugtyp";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_BlockGruppeVerkehrstag_ArtGruppeVerkehrstag";"dbo";"BlockGruppeVerkehrstag";"IDArtGruppeVerkehrstag_FS";"dbo";"ArtGruppeVerkehrstag";"IDArtGruppeVerkehrstag"
|
||||||
|
"FK_BlockGruppeVerkehrstag_Block";"dbo";"BlockGruppeVerkehrstag";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_Blockkombination_ArtFahrplanVersion";"dbo";"Blockkombination";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_BlockkombinationBlock_Block";"dbo";"BlockkombinationBlock";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_BlockkombinationBlock_Blockkombination";"dbo";"BlockkombinationBlock";"IDBlockkombination_FS";"dbo";"Blockkombination";"IDBlockkombination"
|
||||||
|
"FK_BlockkombinationGruppeVerkehrstag_ArtGruppeVerkehrstag";"dbo";"BlockkombinationGruppeVerkehrstag";"IDArtGruppeVerkehrstag_FS";"dbo";"ArtGruppeVerkehrstag";"IDArtGruppeVerkehrstag"
|
||||||
|
"FK_BlockkombinationGruppeVerkehrstag_Blockkombination";"dbo";"BlockkombinationGruppeVerkehrstag";"IDBlockkombination_FS";"dbo";"Blockkombination";"IDBlockkombination"
|
||||||
|
"FK_BlockPause_Block";"dbo";"BlockPause";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_BlockPause_Ort";"dbo";"BlockPause";"IDOrt_FS";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_BlockPlanung_Adresse";"dbo";"BlockPlanung";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BlockPlanung_Adresse2";"dbo";"BlockPlanung";"LoeschenManuellIDAdresse_FS_SB";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BlockPlanung_ArtBetriebshof";"dbo";"BlockPlanung";"IDArtBetriebshof_FS_Anfang";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_BlockPlanung_ArtBetriebshof1";"dbo";"BlockPlanung";"IDArtBetriebshof_FS_Ende";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_BlockPlanung_ArtBlockArt";"dbo";"BlockPlanung";"IDArtBlockart_FS";"dbo";"ArtBlockArt";"IDArtBlockArt"
|
||||||
|
"FK_BlockPlanung_ArtFahrplanVersion";"dbo";"BlockPlanung";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_BlockPlanung_ArtFremdunternehmen";"dbo";"BlockPlanung";"IDArtFremdunternehmen_FS";"dbo";"ArtFremdunternehmen";"IDArtFremdunternehmen"
|
||||||
|
"FK_BlockPlanung_ArtReichweitentyp";"dbo";"BlockPlanung";"IDArtReichweitentyp_FS";"dbo";"ArtReichweitentyp";"IDArtReichweitentyp"
|
||||||
|
"FK_BlockPlanung_Block";"dbo";"BlockPlanung";"IDBlock_FS_Basis";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_BlockPlanung_Fahrzeug";"dbo";"BlockPlanung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_BlockPlanung_Ort_AbstellAnfang";"dbo";"BlockPlanung";"IDOrt_FS_AbstellAnfang";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_BlockPlanung_Ort_AbstellEnde";"dbo";"BlockPlanung";"IDOrt_FS_AbstellEnde";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_BlockPlanungFahrzeugtyp_ArtFahrzeugTypen";"dbo";"BlockPlanungFahrzeugtyp";"IDArtFahrzeugTypen_FS";"dbo";"ArtFahrzeugTypen";"IDArtFahrzeugTypen"
|
||||||
|
"FK_BlockPlanungFahrzeugtyp_BlockPlanung";"dbo";"BlockPlanungFahrzeugtyp";"IDBlockPlanung_FS";"dbo";"BlockPlanung";"IDBlockPlanung"
|
||||||
|
"FK_BlockPlanungPause_BlockPlanung";"dbo";"BlockPlanungPause";"IDBlockPlanung_FS";"dbo";"BlockPlanung";"IDBlockPlanung"
|
||||||
|
"FK_BlockPlanungPause_Ort";"dbo";"BlockPlanungPause";"IDOrt_FS";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_BlockPlanungPreisMehrMinder_TourPlanung";"dbo";"BlockPlanungPreisMehrMinder";"IDTourPlanung_FS";"dbo";"TourPlanung";"IDTourPlanung"
|
||||||
|
"FK_BlockPlanungZusatz_BlockPlanung";"dbo";"BlockPlanungZusatz";"IDBlockPlanung_FS";"dbo";"BlockPlanung";"IDBlockPlanung"
|
||||||
|
"FK_BlockSitzenbleiber_Block";"dbo";"BlockSitzenbleiber";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_BlockSitzenbleiber_TourNach";"dbo";"BlockSitzenbleiber";"IdTour_FS_Nach";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_BlockSitzenbleiber_TourVon";"dbo";"BlockSitzenbleiber";"IdTour_FS_Von";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_BlockTour_Block";"dbo";"BlockTour";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_BlockTour_Tour";"dbo";"BlockTour";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_BlockZusatz_Block";"dbo";"BlockZusatz";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_Buchung_Adresse";"dbo";"Buchung";"IDAdresse_FS_Agentur";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Buchung_Adresse1";"dbo";"Buchung";"IDAdresse_FS_ErsterSachb";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Buchung_Adresse2";"dbo";"Buchung";"IDAdresse_FS_LetzterSachb";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Buchung_Adresse3";"dbo";"Buchung";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Buchung_IdAdressePerson";"dbo";"Buchung";"IdAdressePerson_FS_Anmelder";"dbo";"AdressePerson";"IDAdressePerson"
|
||||||
|
"FK_BuchungBemerkung_Buchung";"dbo";"BuchungBemerkung";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungDokument_Adresse";"dbo";"BuchungDokument";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BuchungDokument_ArtDokument";"dbo";"BuchungDokument";"IDArtDokument_FS";"dbo";"ArtDokument";"IDArtDokument"
|
||||||
|
"FK_BuchungDokument_Buchung";"dbo";"BuchungDokument";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungDruck_Buchung";"dbo";"BuchungDruck";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungMeldung_Adresse";"dbo";"BuchungMeldung";"IDAdresse_FS_Mitarbeiter_Eingabe";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BuchungMeldung_Adresse1";"dbo";"BuchungMeldung";"IDAdresse_FS_Mitarbeiter_Meldung";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BuchungMeldung_ArtMeldungArt";"dbo";"BuchungMeldung";"IDArtMeldungart_FS";"dbo";"ArtMeldungArt";"IDArtMeldungArt"
|
||||||
|
"FK_BuchungMeldung_Buchung";"dbo";"BuchungMeldung";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungMeldung_BuchungTNFerienziel";"dbo";"BuchungMeldung";"IDBuchungTNFerienziel_FS";"dbo";"BuchungTNFerienziel";"IDBuchungTNFerienziel"
|
||||||
|
"FK_BuchungMeldung_BuchungTNLeistung";"dbo";"BuchungMeldung";"IDBuchungTNLeistung_FS";"dbo";"BuchungTNLeistung";"IDBuchungTNLeistung"
|
||||||
|
"FK_BuchungReisebüro_Buchung";"dbo";"BuchungReisebüro";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungReisebüroVersicherungsGruppe_ArtVersicherungsGruppe";"dbo";"BuchungReisebüroVersicherungsGruppe";"IDArtVersicherungsGruppe_FS";"dbo";"ArtVersicherungsGruppe";"IDArtVersicherungsGruppe"
|
||||||
|
"FK_BuchungReisebüroVersicherungsGruppe_BuchungReisebüro";"dbo";"BuchungReisebüroVersicherungsGruppe";"IDBuchungReisebüro_FS";"dbo";"BuchungReisebüro";"IDBuchungReisebüro"
|
||||||
|
"FK_BuchungReisebüroVisum_BuchungReisebüro";"dbo";"BuchungReisebüroVisum";"IDBuchungReisebüro_FS";"dbo";"BuchungReisebüro";"IDBuchungReisebüro"
|
||||||
|
"FK_BuchungTextbaustein_Buchung";"dbo";"BuchungTextbaustein";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungTextbaustein_Textbaustein";"dbo";"BuchungTextbaustein";"IDTextbaustein_FS";"dbo";"Textbaustein";"IDTextbaustein"
|
||||||
|
"FK_BuchungTN_AdressePerson";"dbo";"BuchungTN";"IDAdressePerson_FS";"dbo";"AdressePerson";"IDAdressePerson"
|
||||||
|
"FK_BuchungTN_ArtTeilnahmeStornoGrund";"dbo";"BuchungTN";"IDArtTeilnahmeStornoGrund_FS";"dbo";"ArtTeilnahmeStornoGrund";"IDArtTeilnahmeStornoGrund"
|
||||||
|
"FK_BuchungTN_Buchung";"dbo";"BuchungTN";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungTNFerienziel_Adresse";"dbo";"BuchungTNFerienziel";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BuchungTNFerienziel_ArtVerpflegung";"dbo";"BuchungTNFerienziel";"IDArtVerpflegung_FS";"dbo";"ArtVerpflegung";"IDArtVerpflegung"
|
||||||
|
"FK_BuchungTNFerienziel_BuchungTN";"dbo";"BuchungTNFerienziel";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNFerienziel_Zimmerart";"dbo";"BuchungTNFerienziel";"IDZimmerart_FS";"dbo";"Zimmerart";"IDZimmerart"
|
||||||
|
"FK_BuchungTNFerienzielPreis_BuchungTNFerienziel";"dbo";"BuchungTNFerienzielPreis";"IDBuchungTNFerienziel_FS";"dbo";"BuchungTNFerienziel";"IDBuchungTNFerienziel"
|
||||||
|
"FK_BuchungTNFerienzielPreis_BuchungTNPreis";"dbo";"BuchungTNFerienzielPreis";"IDBuchungTNPreis_FS";"dbo";"BuchungTNPreis";"IDBuchungTNPreis"
|
||||||
|
"FK_BuchungTNLeistung_BuchungTN";"dbo";"BuchungTNLeistung";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNLeistung_Leistung";"dbo";"BuchungTNLeistung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_BuchungTNLeistungPreis_BuchungTNLeistung";"dbo";"BuchungTNLeistungPreis";"IDBuchungTNLeistung_FS";"dbo";"BuchungTNLeistung";"IDBuchungTNLeistung"
|
||||||
|
"FK_BuchungTNLeistungPreis_BuchungTNPreis";"dbo";"BuchungTNLeistungPreis";"IDBuchungTNPreis_FS";"dbo";"BuchungTNPreis";"IDBuchungTNPreis"
|
||||||
|
"FK_BuchungTNLeistungZusatz_BuchungTNLeistung";"dbo";"BuchungTNLeistungZusatz";"IDBuchungTNLeistung_FS";"dbo";"BuchungTNLeistung";"IDBuchungTNLeistung"
|
||||||
|
"FK_BuchungTNPreis_Adresse";"dbo";"BuchungTNPreis";"IDAdresse_FS_Sachb";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BuchungTNPreis_ArtPreisschema";"dbo";"BuchungTNPreis";"IDArtPreisschema_FS";"dbo";"ArtPreisschema";"IDArtPreisschema"
|
||||||
|
"FK_BuchungTNPreis_BuchungTN";"dbo";"BuchungTNPreis";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNPreisErm_BuchungTNPreis";"dbo";"BuchungTNPreisErm";"IDBuchungTNPreis_FS";"dbo";"BuchungTNPreis";"IDBuchungTNPreis"
|
||||||
|
"FK_BuchungTNVersicherung_BuchungTN";"dbo";"BuchungTNVersicherung";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNVersicherung_Leistung";"dbo";"BuchungTNVersicherung";"IDLeistung_FS_Versicherung";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_BuchungTNVersicherungPreis_BuchungTNPreis";"dbo";"BuchungTNVersicherungPreis";"IDBuchungTNPreis_FS";"dbo";"BuchungTNPreis";"IDBuchungTNPreis"
|
||||||
|
"FK_BuchungTNVersicherungPreis_BuchungTNVersicherung";"dbo";"BuchungTNVersicherungPreis";"IDBuchungTNVersicherung_FS";"dbo";"BuchungTNVersicherung";"IDBuchungTNVersicherung"
|
||||||
|
"FK_BuchungTNWunsch_BuchungTN";"dbo";"BuchungTNWunsch";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNZahlung_BuchungTN";"dbo";"BuchungTNZahlung";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNZahlung_Zahlung";"dbo";"BuchungTNZahlung";"IDZahlung_FS";"dbo";"Zahlung";"IDZahlung"
|
||||||
|
"FK_BuchungTNZuschlag_BuchungTN";"dbo";"BuchungTNZuschlag";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_BuchungTNZuschlagPreis_BuchungTNPreis";"dbo";"BuchungTNZuschlagPreis";"IDBuchungTNPreis_FS";"dbo";"BuchungTNPreis";"IDBuchungTNPreis"
|
||||||
|
"FK_BuchungTNZuschlagPreis_BuchungTNZuschlag";"dbo";"BuchungTNZuschlagPreis";"IDBuchungTNZuschlag_FS";"dbo";"BuchungTNZuschlag";"IDBuchungTNZuschlag"
|
||||||
|
"FK_BuchungTNZuschlagZusatz_BuchungTNZuschlag";"dbo";"BuchungTNZuschlagZusatz";"IDBuchungTNZuschlag_FS";"dbo";"BuchungTNZuschlag";"IDBuchungTNZuschlag"
|
||||||
|
"FK_BuchungUnterlagenStatus_Adresse";"dbo";"BuchungUnterlagenStatus";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_BuchungUnterlagenStatus_ArtUnterlagenStatus";"dbo";"BuchungUnterlagenStatus";"IDArtUnterlagenStatus_FS";"dbo";"ArtUnterlagenStatus";"IDArtUnterlagenStatus"
|
||||||
|
"FK_BuchungUnterlagenStatus_Buchung";"dbo";"BuchungUnterlagenStatus";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungVersicherungAngebot_Buchung";"dbo";"BuchungVersicherungAngebot";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BuchungVersicherungAngebot_Leistung";"dbo";"BuchungVersicherungAngebot";"IDLeistung_FS_Versicherung";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_BuchungZahlung_ArtZahlungsart";"dbo";"BuchungZahlung";"IDArtZahlungsart_FS";"dbo";"ArtZahlungsart";"IDArtZahlungsart"
|
||||||
|
"FK_BuchungZahlung_Buchung";"dbo";"BuchungZahlung";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_BundeslandPLZOrt_ArtBundesland";"dbo";"BundeslandPLZOrt";"IDArtBundesland_FS";"dbo";"ArtBundesland";"IDArtBundesland"
|
||||||
|
"FK_ConnectChat_ArtConnectChatKategorie";"dbo";"ConnectChat";"IDArtConnectChatKategorie_FS";"dbo";"ArtConnectChatKategorie";"IDArtConnectChatKategorie"
|
||||||
|
"FK_ConnectChatKategorieKompetenz_ArtPersonalGruppeKompetenz";"dbo";"ConnectChatKategorieKompetenz";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_ChatNachricht_ChatRaum";"dbo";"ConnectChatNachricht";"IDChat_FS";"dbo";"ConnectChat";"IDChat"
|
||||||
|
"FK_ChatTeilnehmer_ChatRaum";"dbo";"ConnectChatTeilnehmer";"IDChat_FS";"dbo";"ConnectChat";"IDChat"
|
||||||
|
"FK_ConnectDokumentReferenzen_ConnectDokument";"dbo";"ConnectDokumentReferenzen";"IDConnectDokument_FS";"dbo";"ConnectDokument";"IDConnectDokument"
|
||||||
|
"FK_ConnectKompetenz_ArtPersonalGruppeKompetenz";"dbo";"ConnectKompetenz";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_ConnectNotificationsReceiver_ConnectNotifications";"dbo";"ConnectNotificationsReceiver";"IDConnectNotification";"dbo";"ConnectNotifications";"Id"
|
||||||
|
"FK_ConnectOrdner_ConnectOrdner";"dbo";"ConnectOrdner";"IDConnectOrdner_FS_Parent";"dbo";"ConnectOrdner";"IDConnectOrdner"
|
||||||
|
"FK_Connect_Planungsabruf_Adresse_Aenderung";"dbo";"ConnectPlanungsabruf";"IDAdresse_FS_Aenderung";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Connect_Planungsabruf_Adresse_Fahrer";"dbo";"ConnectPlanungsabruf";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ConnectPlanungsabrufHistorie_Adresse";"dbo";"ConnectPlanungsabrufHistorie";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ConnectRueckmeldungMB_AuftragFahrer";"dbo";"ConnectRueckmeldungMB";"IDAuftragFahrer_FS";"dbo";"AuftragFahrer";"IDAuftragFahrer"
|
||||||
|
"FK_ConnectRueckmeldungMBFoto_ConnectRueckmeldungMB";"dbo";"ConnectRueckmeldungMBFoto";"IDConnectRueckmeldungMB_FS";"dbo";"ConnectRueckmeldungMB";"IDConnectRueckmeldungMB"
|
||||||
|
"FK_ConnectRueckmeldungMBKilometer_ConnectRueckmeldungMB";"dbo";"ConnectRueckmeldungMBKilometer";"IDConnectRueckmeldungMB_FS";"dbo";"ConnectRueckmeldungMB";"IDConnectRueckmeldungMB"
|
||||||
|
"FK_ArtConnectRueckmeldungMBText_ConnectRueckmeldungMBText";"dbo";"ConnectRueckmeldungMBText";"IDArtConnectRueckmeldungMBText_FS";"dbo";"ArtConnectRueckmeldungMBText";"IDArtConnectRueckmeldungMBText"
|
||||||
|
"FK_ConnectRueckmeldungMBText_ConnectRueckmeldungMB";"dbo";"ConnectRueckmeldungMBText";"IDConnectRueckmeldungMB_FS";"dbo";"ConnectRueckmeldungMB";"IDConnectRueckmeldungMB"
|
||||||
|
"FK_CRMAktionDesignSeite_CRMAktion";"dbo";"CRMAktionDesignSeite";"IDCRMAktion_FS";"dbo";"CRMAktion";"IDCRMAktion"
|
||||||
|
"FK_CRMAktionDesignSeiteZuweisung_CRMAktionDesignSeite";"dbo";"CRMAktionDesignSeiteZuweisung";"IDCRMAktionDesignSeite_FS";"dbo";"CRMAktionDesignSeite";"IDCRMAktionDesignSeite"
|
||||||
|
"FK_CRMAktionPLZ_CRMAktion";"dbo";"CRMAktionPLZ";"IDCRMAktion_FS";"dbo";"CRMAktion";"IDCRMAktion"
|
||||||
|
"FK_CRMAktionZuGruppe_CRMAktion";"dbo";"CRMAktionZuGruppe";"IDCRMAktion_FS";"dbo";"CRMAktion";"IDCRMAktion"
|
||||||
|
"FK_CRMAktionZuGruppe_CRMAktionZuGruppe";"dbo";"CRMAktionZuGruppe";"IDArtCRMGruppe_FS";"dbo";"ArtCRMGruppe";"IDArtCRMGruppe"
|
||||||
|
"FK_CRMAktionZuProdukt_CRMAktion";"dbo";"CRMAktionZuProdukt";"IDCRMAktion_FS";"dbo";"CRMAktion";"IDCRMAktion"
|
||||||
|
"FK_CRMAktionZuProdukt_Produkt";"dbo";"CRMAktionZuProdukt";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_CRMAktionZuReise_CRMAktion";"dbo";"CRMAktionZuReise";"IDCRMAktion_FS";"dbo";"CRMAktion";"IDCRMAktion"
|
||||||
|
"FK_CRMAktionZuReise_Reise";"dbo";"CRMAktionZuReise";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_CRMDesignSegment_CRMDesign";"dbo";"CRMDesignSegment";"IDCRMDesign_FS";"dbo";"CRMDesign";"IDCRMDesign"
|
||||||
|
"FK_CRMInternetZuweisung_ArtCRMInternet";"dbo";"CRMInternetZuweisung";"IDArtCRMInternet_FS";"dbo";"ArtCRMInternet";"IDArtCRMInternet"
|
||||||
|
"FK_CRMInternetZuweisung_Buchung";"dbo";"CRMInternetZuweisung";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_CRMWerbepartner_Adresse";"dbo";"CRMWerbepartner";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_CRMWerbepartnerDesign_CRMDesign";"dbo";"CRMWerbepartnerDesign";"IDCRMDesign_FS";"dbo";"CRMDesign";"IDCRMDesign"
|
||||||
|
"FK_CRMWerbepartnerDesign_CRMWerbepartner";"dbo";"CRMWerbepartnerDesign";"IDCRMWerbepartner_FS";"dbo";"CRMWerbepartner";"IDCRMWerbepartner"
|
||||||
|
"FK_CRMWerbepartnerPLZ_CRMWerbepartner";"dbo";"CRMWerbepartnerPLZ";"IDCRMWerbepartner_FS";"dbo";"CRMWerbepartner";"IDCRMWerbepartner"
|
||||||
|
"FK_CRMZuweisung_Adresse";"dbo";"CRMZuweisung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_CRMZuweisung_Adresse1";"dbo";"CRMZuweisung";"IDAdresse_FS_VonPersonal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_DienstplandruckExport_ArtDienstplandruckExport";"dbo";"DienstplandruckExport";"IDArtDienstplandruckExport_FS";"dbo";"ArtDienstplandruckExport";"IDArtDienstplandruckExport"
|
||||||
|
"FK_DispoAenderung_Adresse";"dbo";"DispoAenderung";"IDAdresse_FS_Disponent";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_DispoAenderungDisponent_DispoAenderung";"dbo";"DispoAenderungDisponent";"IDDispoAenderung_FS";"dbo";"DispoAenderung";"IDDispoAenderung"
|
||||||
|
"FK_DispoAenderungDisponent_DispoAnmeldungDisponent";"dbo";"DispoAenderungDisponent";"IDDispoAnmeldungDisponent_FS";"dbo";"DispoAnmeldungDisponent";"IDDispoAnmeldungDisponent"
|
||||||
|
"FK_DispoAnmeldungDisponent_Adresse";"dbo";"DispoAnmeldungDisponent";"IDAdresse_FS_Disponent";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_DispoEinstellungKompetenzen_ArtPersonalGruppeKompetenz";"dbo";"DispoEinstellungKompetenz";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_DispoEinstellungKompetenzBetriebshofAnzeige_ArtBetriebshof";"dbo";"DispoEinstellungKompetenzBetriebshofAnzeige";"IDArtBetriebshof_FS";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_DispoEinstellungKompetenzBetriebshofAnzeige_DispoEinstellungKompetenz";"dbo";"DispoEinstellungKompetenzBetriebshofAnzeige";"IDDispoEinstellungKompetenz_FS";"dbo";"DispoEinstellungKompetenz";"IDDispoEinstellungKompetenz"
|
||||||
|
"FK_DispoEinstellungKompetenzMandantAnzeige_Adresse";"dbo";"DispoEinstellungKompetenzMandantAnzeige";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_DispoEinstellungKompetenzMandantAnzeige_DispoEinstellungKompetenzen";"dbo";"DispoEinstellungKompetenzMandantAnzeige";"IDDispoEinstellungKompetenz_FS";"dbo";"DispoEinstellungKompetenz";"IDDispoEinstellungKompetenz"
|
||||||
|
"FK_Dokument_Adresse";"dbo";"Dokument";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Dokument_ArtDokument";"dbo";"Dokument";"IDArtDokument_FS";"dbo";"ArtDokument";"IDArtDokument"
|
||||||
|
"FK_DruckArchiv_Adresse";"dbo";"DruckArchiv";"IDAdresse_FS_SB";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_DruckArchivZIP_Adresse";"dbo";"DruckArchivZIP";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_DTAMeldung_RechnungHaupt";"dbo";"DTAMeldung";"IDRechnungHaupt_FS";"dbo";"RechnungHaupt";"IDRechnungHaupt"
|
||||||
|
"FK_EinreisebestimmungText_Einreisebestimmung";"dbo";"EinreisebestimmungText";"IDEinreisebestimmung_FS";"dbo";"Einreisebestimmung";"IDEinreisebestimmung"
|
||||||
|
"FK_ExportInternetSpalte_ExportInternet";"dbo";"ExportInternetSpalte";"IDExportInternetZeile_FS";"dbo";"ExportInternetZeile";"IDExportInternetZeile"
|
||||||
|
"FK_ExportInternetZeile_ExportInternetZeile";"dbo";"ExportInternetZeile";"IDExportInternet_FS";"dbo";"ExportInternet";"IDExportInternet"
|
||||||
|
"FK_FahrtArt_ArtFahrtArt";"dbo";"FahrtArtKonten";"IdArtFahrtArt_FS";"dbo";"ArtFahrtArt";"IDArtFahrtArt"
|
||||||
|
"FK_Fahrzeug_ArtFahrzeugBriefOrt";"dbo";"Fahrzeug";"IDArtFahrzeugBriefOrt_FS";"dbo";"ArtFahrzeugBriefOrt";"IDArtFahrzeugBriefOrt"
|
||||||
|
"FK_Fahrzeug_ArtReichweitentyp";"dbo";"Fahrzeug";"IDArtReichweitentyp_FS";"dbo";"ArtReichweitentyp";"IDArtReichweitentyp"
|
||||||
|
"FK_Fahrzeug_FahrzeugBetriebshof";"dbo";"Fahrzeug";"IDArtBetriebshof_FS";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_Fahrzeug_FahrzeugEinsatz";"dbo";"Fahrzeug";"IDArtFahrzeugEinsatz_FS";"dbo";"ArtFahrzeugEinsatz";"IDArtFahrzeugEinsatz"
|
||||||
|
"FK_Fahrzeug_FahrzeugTypen";"dbo";"Fahrzeug";"IDArtFahrzeugTypen_FS";"dbo";"ArtFahrzeugTypen";"IDArtFahrzeugTypen"
|
||||||
|
"FK_FahrzeugAusstattung_AusstattungsMerkmale";"dbo";"FahrzeugAusstattung";"IDArtFahrzeugAusstattungMerkmal_FS";"dbo";"ArtFahrzeugAusstattungMerkmal";"IDArtFahrzeugAusstattungMerkmal"
|
||||||
|
"FK_FahrzeugAusstattung_Fahrzeug";"dbo";"FahrzeugAusstattung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugEinbauten_Fahrzeug";"dbo";"FahrzeugEinbauten";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugGerät_ArtFahrzeugGerätTyp";"dbo";"FahrzeugGerät";"IDArtFahrzeugGerätTyp_FS";"dbo";"ArtFahrzeugGerätTyp";"IDArtFahrzeugGerätTyp"
|
||||||
|
"FK_FahrzeugGerätHistorie_ArtFahrzeugGerätOrt";"dbo";"FahrzeugGerätHistorie";"IDArtFahrzeugGerätOrt_FS";"dbo";"ArtFahrzeugGerätOrt";"IDArtFahrzeugGerätOrt"
|
||||||
|
"FK_FahrzeugGerätHistorie_Fahrzeug";"dbo";"FahrzeugGerätHistorie";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugGerätHistorie_FahrzeugGerät";"dbo";"FahrzeugGerätHistorie";"IDFahrzeugGerät_FS";"dbo";"FahrzeugGerät";"IDFahrzeugGerät"
|
||||||
|
"FK_FahrzeugLeasing_Fahrzeug";"dbo";"FahrzeugLeasing";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugNummer_ArtFahrzeugNummer";"dbo";"FahrzeugNummer";"IDArtFahrzeugNummer_FS";"dbo";"ArtFahrzeugNummer";"IDArtFahrzeugNummer"
|
||||||
|
"FK_FahrzeugNummer_Fahrzeug";"dbo";"FahrzeugNummer";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugStatistikAnmelder_Fahrzeug";"dbo";"FahrzeugStatistikAnmelder";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugTerminKettenAufbau_FahrzeugTermin";"dbo";"FahrzeugTerminKettenAufbau";"IDFahrzeugTermin_FS";"dbo";"FahrzeugTermin";"IDFahrzeugTermin"
|
||||||
|
"FK_FahrzeugTerminKettenAufbau_FahrzeugTerminHaeufigkeit";"dbo";"FahrzeugTerminKettenAufbau";"IDFahrzeugTerminHaeufigkeit_FS";"dbo";"FahrzeugTerminHaeufigkeit";"IDFahrzeugTerminHaeufigkeit"
|
||||||
|
"FK_FahrzeugTerminKettenAufbau_FahrzeugTerminkette";"dbo";"FahrzeugTerminKettenAufbau";"IDFahrzeugTerminkette_FS";"dbo";"FahrzeugTerminkette";"IDFahrzeugTerminkette"
|
||||||
|
"FK_FahrzeugTerminZuweisung_Fahrzeug";"dbo";"FahrzeugTerminZuweisung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugTerminZuweisung_FahrzeugTerminKettenAufbau";"dbo";"FahrzeugTerminZuweisung";"IDFahrzeugTerminKettenAufbau_FS";"dbo";"FahrzeugTerminKettenAufbau";"IDFahrzeugTerminKettenAufbau"
|
||||||
|
"FK_FahrzeugVermietung_Fahrzeug";"dbo";"FahrzeugVermietung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugVersicherung_Fahrzeug";"dbo";"FahrzeugVersicherung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugVerwendung_Fahrzeug";"dbo";"FahrzeugVerwendung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FahrzeugWerbung_Fahrzeug";"dbo";"FahrzeugWerbung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_FehlerProtokoll_Adresse";"dbo";"FehlerProtokoll";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_FehlerProtokoll_FehlerProtokollTyp";"dbo";"FehlerProtokoll";"IDFehlerProtokollTyp_FS";"dbo";"FehlerProtokollTyp";"IDFehlerProtokollTyp"
|
||||||
|
"FK_FehlerProtokollTypEinstellung_FehlerProtokollTyp_FS";"dbo";"FehlerProtokollTypEinstellung";"IDFehlerProtokollTyp_FS";"dbo";"FehlerProtokollTyp";"IDFehlerProtokollTyp"
|
||||||
|
"FK_FehlerProtokollTypEinstellung_Kommunikation_FS";"dbo";"FehlerProtokollTypEinstellung";"IDKommunikation_FS";"dbo";"Kommunikation";"IDKommunikation"
|
||||||
|
"FK_FerienzielZwischenPartner_Adresse";"dbo";"FerienzielZwischenPartner";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_FerienzielZwischenPartner_FerienzielZwischenZeitraum";"dbo";"FerienzielZwischenPartner";"IDFerienzielZwischenZeitraum_FS";"dbo";"FerienzielZwischenZeitraum";"IDFerienzielZwischenZeitraum"
|
||||||
|
"FK_FerienzielZwischenZeitraum_Produkt";"dbo";"FerienzielZwischenZeitraum";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_Fibuaufteilung_ArtFibuaufteilung";"dbo";"Fibuaufteilung";"IdArtFibuaufteilung_FS";"dbo";"ArtFibuaufteilung";"IDArtFibuaufteilung"
|
||||||
|
"FK_Fibuaufteilung_Kontenplan";"dbo";"Fibuaufteilung";"IdKontenplan_FS";"dbo";"Kontenplan";"IDKontenplan"
|
||||||
|
"FK_FibuAufteilungWerte_Buchung";"dbo";"FibuAufteilungWerte";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_FibuAufteilungWerte_Fibuaufteilung";"dbo";"FibuAufteilungWerte";"IDFibuAufteilung_FS";"dbo";"Fibuaufteilung";"IdFibuaufteilung"
|
||||||
|
"FK_FPAllgemein_ArtFahrplanVersion";"dbo";"FPAllgemein";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_FPLinie_ArtFahrplanVersion";"dbo";"FPLinie";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_FPLinie_ArtFPLinienTyp";"dbo";"FPLinie";"IDArtFPLinienTyp_FS";"dbo";"ArtFPLinienTyp";"IDArtFPLinienTyp"
|
||||||
|
"FK_FPLinie_ArtLinieVerbund";"dbo";"FPLinie";"IDArtLinieVerbund_FS";"dbo";"ArtLinieVerbund";"IDArtLinieVerbund"
|
||||||
|
"FK_FPLinie_ArtLinieVUBereich";"dbo";"FPLinie";"IDArtLinieVUBereich_FS";"dbo";"ArtLinieVUBereich";"IDArtLinieVUBereich"
|
||||||
|
"FK_FPLinie_ArtStatistikGruppe";"dbo";"FPLinie";"IDArtStatistikgruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_FPLinieAnschluss_FPLinie";"dbo";"FPLinieAnschluss";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieAnschluss_FPLinie_Bringer";"dbo";"FPLinieAnschluss";"IDFPLinie_FS_Bringer";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieAnschluss_FPLinieHaltestelle";"dbo";"FPLinieAnschluss";"IDFPLinieHaltestelle_FS_Position";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieAnschluss_FPLinieHaltestelleZubringer";"dbo";"FPLinieAnschluss";"IDFPLinieHaltestelle_FS_Position_Zubringer";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieAnschluss_FPLinieSymbol";"dbo";"FPLinieAnschluss";"IDFPLinieSymbol_FS";"dbo";"FPLinieSymbol";"IDFPLinieSymbol"
|
||||||
|
"FK_FPLinieAnschlussDefinition_ArtFahrplanVersion";"dbo";"FPLinieAnschlussDefinition";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_FPLinieAnschlussDefinition_FPLinie_Abbringer";"dbo";"FPLinieAnschlussDefinition";"IDFPLinie_FS_Abbringer";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieAnschlussDefinition_FPLinie_Zubringer";"dbo";"FPLinieAnschlussDefinition";"IDFPLinie_FS_Zubringer";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieAnschlussDefinition_Haltepunkt_Abbringer";"dbo";"FPLinieAnschlussDefinition";"IDHaltepunkt_FS_Abbringer";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_FPLinieAnschlussDefinition_Haltepunkt_Zubringer";"dbo";"FPLinieAnschlussDefinition";"IDHaltepunkt_FS_Zubringer";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_FPLinieAnschlussDefinition_Haltestelle_Abbringer";"dbo";"FPLinieAnschlussDefinition";"IDHaltestelle_FS_Abbringer";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_FPLinieAnschlussDefinition_Haltestelle_Zubringer";"dbo";"FPLinieAnschlussDefinition";"IDHaltestelle_FS_Zubringer";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_FPLinieAnschlussDefinitionUmstieg_FPLinieAnschlussDefinition";"dbo";"FPLinieAnschlussDefinitionUmstieg";"IDFPLinieAnschlussDefinition_FS";"dbo";"FPLinieAnschlussDefinition";"IDFPLinieAnschlussDefinition"
|
||||||
|
"FK_FPLinieAnschlussDefinitionUmstiegGruppeVT_FPLinieAnschlussDefinitionUmstieg";"dbo";"FPLinieAnschlussDefinitionUmstiegGruppeVT";"IDFPLinieAnschlussDefinitionUmstieg_FS";"dbo";"FPLinieAnschlussDefinitionUmstieg";"IDFPLinieAnschlussDefinitionUmstieg"
|
||||||
|
"FK_FPLinieBeschraenkung_ArtLaufzeitschema";"dbo";"FPLinieBeschraenkung";"IDArtLaufzeitschema_FS";"dbo";"ArtLaufzeitschema";"IDArtLaufzeitschema"
|
||||||
|
"FK_FPLinieBeschraenkung_FPSondererklaerung";"dbo";"FPLinieBeschraenkung";"IDFPSondererklaerung_FS";"dbo";"FPSondererklaerung";"IDFPSondererklaerung"
|
||||||
|
"FK_FPLinieBeschraenkungFerienFeier_FPLinieBeschraenkung";"dbo";"FPLinieBeschraenkungFerienFeier";"IDFPLinieBeschraenkung_FS";"dbo";"FPLinieBeschraenkung";"IDFPLinieBeschraenkung"
|
||||||
|
"FK_FPLinieBeschraenkungLaufzeit_FPLinieBeschraenkung";"dbo";"FPLinieBeschraenkungLaufzeit";"IDFPLinieBeschraenkung_FS";"dbo";"FPLinieBeschraenkung";"IDFPLinieBeschraenkung"
|
||||||
|
"FK_FPLinieBeschraenkungWochentyp_ArtWochentyp";"dbo";"FPLinieBeschraenkungWochentyp";"IDArtWochentyp_FS";"dbo";"ArtWochentyp";"IDArtWochentyp"
|
||||||
|
"FK_FPLinieBeschraenkungWochentyp_FPLinieBeschraenkung";"dbo";"FPLinieBeschraenkungWochentyp";"IDFPLinieBeschraenkung_FS";"dbo";"FPLinieBeschraenkung";"IDFPLinieBeschraenkung"
|
||||||
|
"FK_FPLinieDruck_FPLinie";"dbo";"FPLinieDruck";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieFahrplanAdresse_FahrplanAdresse";"dbo";"FPLinieFahrplanAdresse";"IDFahrplanAdresse_FS";"dbo";"FahrplanAdresse";"IDFahrplanAdresse"
|
||||||
|
"FK_FPLinieFahrplanAdresse_FPLinie";"dbo";"FPLinieFahrplanAdresse";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieFahrt_ArtFremdunternehmen";"dbo";"FPLinieFahrt";"IDArtFremdunternehmen_FS";"dbo";"ArtFremdunternehmen";"IDArtFremdunternehmen"
|
||||||
|
"FK_FPLinieFahrt_FPLinie";"dbo";"FPLinieFahrt";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieFahrt_FPLinieFahrt";"dbo";"FPLinieFahrt";"IDFPLinieFahrt_FS_VerstaerkerVon";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_FPLinieFahrt_FPLinieFahrt_TeilenOriginal";"dbo";"FPLinieFahrt";"IDFPLinieFahrt_FS_TeilenOriginal";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_FPLinieFahrt_FPLinieZeitart";"dbo";"FPLinieFahrt";"IDFPLinieZeitart_FS";"dbo";"FPLinieZeitart";"IDFPLinieZeitart"
|
||||||
|
"FK_FPLinieFahrtAnschluss_FPLinieAnschluss";"dbo";"FPLinieFahrtAnschluss";"IDFPLinieAnschluss_FS";"dbo";"FPLinieAnschluss";"IDFPLinieAnschluss"
|
||||||
|
"FK_FPLinieFahrtAnschluss_FPLinieFahrt";"dbo";"FPLinieFahrtAnschluss";"IDFPLinieFahrt_FS";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_FPLinieFahrtAnschluss_FPLinieFahrt_Bringer";"dbo";"FPLinieFahrtAnschluss";"IDFPLinieFahrt_FS_Bringer";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_FPLinieFahrtAnschluss_FPLinieHaltestelle_Bringer";"dbo";"FPLinieFahrtAnschluss";"IDFPLinieHaltestelle_FS_Bringer";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieFahrtAnschlussBeschraenkung_FPLinieBeschraenkung";"dbo";"FPLinieFahrtAnschlussBeschraenkung";"IDFPLinieBeschraenkung_FS";"dbo";"FPLinieBeschraenkung";"IDFPLinieBeschraenkung"
|
||||||
|
"FK_FPLinieFahrtAnschlussBeschraenkung_FPLinieFahrtAnschluss";"dbo";"FPLinieFahrtAnschlussBeschraenkung";"IDFPLinieFahrtAnschluss_FS";"dbo";"FPLinieFahrtAnschluss";"IDFPLinieFahrtAnschluss"
|
||||||
|
"FK_FPLinieFahrtBeschraenkung_FPLinieBeschraenkung";"dbo";"FPLinieFahrtBeschraenkung";"IDFPLinieBeschraenkung_FS";"dbo";"FPLinieBeschraenkung";"IDFPLinieBeschraenkung"
|
||||||
|
"FK_FPLinieFahrtBeschraenkung_FPLinieFahrt";"dbo";"FPLinieFahrtBeschraenkung";"IDFPLinieFahrt_FS";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_FPLinieHaltestelle_ArtKreisGebiet";"dbo";"FPLinieHaltestelle";"IDArtKreisGebiet_FS";"dbo";"ArtKreisGebiet";"IDArtKreisGebiet"
|
||||||
|
"FK_FPLinieHaltestelle_FPLinie";"dbo";"FPLinieHaltestelle";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieHaltestelle_FPLinieHaltestelle";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle_FS_VerschiebenAuf";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieHaltestelle_Haltepunkt";"dbo";"FPLinieHaltestelle";"IDHaltepunkt_FS";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_FPLinieHaltestelle_Haltestelle";"dbo";"FPLinieHaltestelle";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_FPLinieHaltestelleBemerkung_FPLinieHaltestelle";"dbo";"FPLinieHaltestelleBemerkung";"IDFPLinieHaltestelle_FS";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieHaltestelleBemerkung_HaltestelleBemerkung";"dbo";"FPLinieHaltestelleBemerkung";"IDHaltestelleBemerkung_FS";"dbo";"HaltestelleBemerkung";"IDHaltestelleBemerkung"
|
||||||
|
"FK_FPLinieHaltestelleZeitart_ArtKreisGebiet";"dbo";"FPLinieHaltestelleZeitart";"IDArtKreisGebiet_FS";"dbo";"ArtKreisGebiet";"IDArtKreisGebiet"
|
||||||
|
"FK_FPLinieHaltestelleZeitart_FPLinieHaltestelle";"dbo";"FPLinieHaltestelleZeitart";"IDFPLinieHaltestelle_FS";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieHaltestelleZeitart_FPLinieZeitart";"dbo";"FPLinieHaltestelleZeitart";"IDFPLinieZeitart_FS";"dbo";"FPLinieZeitart";"IDFPLinieZeitart"
|
||||||
|
"FK_FPLinieHaltestelleZeitart_HaltestelleBemerkung";"dbo";"FPLinieHaltestelleZeitart";"IDHaltestelleBemerkung_FS";"dbo";"HaltestelleBemerkung";"IDHaltestelleBemerkung"
|
||||||
|
"FK_FPLinieHaltestelleZeitart_LinieZiel";"dbo";"FPLinieHaltestelleZeitart";"IDLinieZiel_FS";"dbo";"LinieZiel";"IDLinieZiel"
|
||||||
|
"FK_FPLinieZeitart_ArtStatistikGruppe";"dbo";"FPLinieZeitart";"IDArtStatistikgruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_FPLinieZeitart_FPLinie";"dbo";"FPLinieZeitart";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_FPLinieZeitart_FPLinieHaltestelle_TeilenAbschnittBis";"dbo";"FPLinieZeitart";"IDFPLinieHaltestelle_FS_TeilenAbschnittBis";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieZeitart_FPLinieHaltestelle_TeilenAbschnittVon";"dbo";"FPLinieZeitart";"IDFPLinieHaltestelle_FS_TeilenAbschnittVon";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPLinieZeitart_FPLinieZeitart";"dbo";"FPLinieZeitart";"IDFPLinieZeitart_FS_TeilenOriginal";"dbo";"FPLinieZeitart";"IDFPLinieZeitart"
|
||||||
|
"FK_FPSchuelerAbsage_Adresse";"dbo";"FPSchuelerAbsage";"IdAdresse_FS_Bearbeitet";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_FPSchuelerAbsage_FPSchueler";"dbo";"FPSchuelerAbsage";"IDFPSchueler_FS";"dbo";"FPSchueler";"IDFPSchueler"
|
||||||
|
"FK_FPSchuelerBefoerderung_FPSchueler";"dbo";"FPSchuelerBefoerderung";"IDFPSchueler_FS";"dbo";"FPSchueler";"IDFPSchueler"
|
||||||
|
"FK_FPSchuelerBefoerderung_FPSchule";"dbo";"FPSchuelerBefoerderung";"IDFPSchule_FS";"dbo";"FPSchule";"IDFPSchule"
|
||||||
|
"FK_FPSchuelerBefoerderung_FPSchuljahr";"dbo";"FPSchuelerBefoerderung";"IDFPSchuljahr_FS";"dbo";"FPSchuljahr";"IDFPSchuljahr"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegung_Haltepunkt_Ausstieg";"dbo";"FPSchuelerBefoerderungBewegung";"IDHaltepunkt_FS_Ausstieg";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegung_Haltepunkt_Einstieg";"dbo";"FPSchuelerBefoerderungBewegung";"IDHaltepunkt_FS_Einstieg";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegung_Haltestelle_Ausstieg";"dbo";"FPSchuelerBefoerderungBewegung";"IDHaltestelle_FS_Ausstieg";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegung_Haltestelle_Einstieg";"dbo";"FPSchuelerBefoerderungBewegung";"IDHaltestelle_FS_Einstieg";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegung_IDFPSchuelerBefoerderung";"dbo";"FPSchuelerBefoerderungBewegung";"IDFPSchuelerBefoerderung_FS";"dbo";"FPSchuelerBefoerderung";"IDFPSchuelerBefoerderung"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegungAbsage_FPSchuelerAbsage";"dbo";"FPSchuelerBefoerderungBewegungAbsage";"IDFPSchuelerAbsage_FS";"dbo";"FPSchuelerAbsage";"IDFPSchuelerAbsage"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegungAbsage_FPSchuelerBefoerderungBewegung";"dbo";"FPSchuelerBefoerderungBewegungAbsage";"IDFPSchuelerBefoerderungBewegung_FS";"dbo";"FPSchuelerBefoerderungBewegung";"IDFPSchuelerBefoerderungBewegung"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegungZuordnung_FPLinieFahrt";"dbo";"FPSchuelerBefoerderungBewegungZuordnung";"IDFPLinieFahrt_FS";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegungZuordnung_FPLinieHaltestelle";"dbo";"FPSchuelerBefoerderungBewegungZuordnung";"IDFPLinieHaltestelle_FS";"dbo";"FPLinieHaltestelle";"IDFPLinieHaltestelle"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegungZuordnung_FPSchuelerBefoerderungBewegung";"dbo";"FPSchuelerBefoerderungBewegungZuordnung";"IDFPSchuelerBefoerderungBewegung_FS";"dbo";"FPSchuelerBefoerderungBewegung";"IDFPSchuelerBefoerderungBewegung"
|
||||||
|
"FK_FPSchuelerBefoerderungBewegungZuordnung_FPZeitart";"dbo";"FPSchuelerBefoerderungBewegungZuordnung";"IDFPLinieZeitart_FS";"dbo";"FPLinieZeitart";"IDFPLinieZeitart"
|
||||||
|
"FK_FPSchuleHaltestelleHaltepunkt_FPSchule";"dbo";"FPSchuleHaltestelleHaltepunkt";"IDFPSchule_FS";"dbo";"FPSchule";"IDFPSchule"
|
||||||
|
"FK_FPSchuleHaltestelleHaltepunkt_Haltepunkt";"dbo";"FPSchuleHaltestelleHaltepunkt";"IDHaltepunkt_FS";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_FPSchuleHaltestelleHaltepunkt_Haltestelle";"dbo";"FPSchuleHaltestelleHaltepunkt";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_FreibescheinigungManuelleEingabe_Adresse";"dbo";"FreibescheinigungManuelleEingabe";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_FreibescheinigungRuhetag_Adresse";"dbo";"FreibescheinigungRuhetag";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_GruppeVerkehrstag_ArtGruppeVerkehrstag";"dbo";"GruppeVerkehrstag";"IDArtGruppeVerkehrstag_FS";"dbo";"ArtGruppeVerkehrstag";"IDArtGruppeVerkehrstag"
|
||||||
|
"FK_GruppeVerkehrstagFerien_ArtGruppeVerkehrstag";"dbo";"GruppeVerkehrstagFerien";"IDArtGruppeVerkehrstag_FS";"dbo";"ArtGruppeVerkehrstag";"IDArtGruppeVerkehrstag"
|
||||||
|
"FK_Gutschein_ArtGutscheinversand";"dbo";"Gutschein";"IDArtGutscheinversand_FS";"dbo";"ArtGutscheinversand";"IDArtGutscheinversand"
|
||||||
|
"FK_GutscheinlayoutInternet_ArtGutscheinlayout";"dbo";"GutscheinlayoutInternet";"IDArtGutscheinlayout_FS";"dbo";"ArtGutscheinlayout";"IDArtGutscheinlayout"
|
||||||
|
"FK_Gutscheinzuschlag_Gutschein";"dbo";"GutscheinZuschlag";"IDGutschein_FS";"dbo";"Gutschein";"IDGutschein"
|
||||||
|
"FK_Gutscheinzuschlag_Kontenplan";"dbo";"GutscheinZuschlag";"IDKontenplan_FS";"dbo";"Kontenplan";"IDKontenplan"
|
||||||
|
"FK_Haltepunkt_ArtHaltepunktArt";"dbo";"Haltepunkt";"IDArtHaltepunktArt_FS";"dbo";"ArtHaltepunktArt";"IDArtHaltepunktArt"
|
||||||
|
"FK_Haltepunkt_Haltestelle";"dbo";"Haltepunkt";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_HaltepunktFahrplankasten_ArtHaltepunktFahrplankasten";"dbo";"HaltepunktFahrplankasten";"IDArtHaltepunktFahrplankasten_FS";"dbo";"ArtHaltepunktFahrplankasten";"IDArtHaltepunktFahrplankasten"
|
||||||
|
"FK_HaltepunktFahrplankasten_HaltestelleHaltepunkt";"dbo";"HaltepunktFahrplankasten";"IDHaltestelleHaltepunkt_FS";"dbo";"HaltestelleHaltepunkt";"IDHaltestelleHaltepunkt"
|
||||||
|
"FK_Haltestelle_ArtHaltestelleZwischenpunkttyp";"dbo";"Haltestelle";"IDArtHaltestelleZwischenpunkttyp_FS";"dbo";"ArtHaltestelleZwischenpunkttyp";"IDArtHaltestelleZwischenpunkttyp"
|
||||||
|
"FK_Haltestelle_HaltestelleNach";"dbo";"Haltestelle";"IDHaltestelle_FS_ZwNach";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_Haltestelle_HaltestelleVon";"dbo";"Haltestelle";"IDHaltestelle_FS_ZwVon";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_HaltestelleDruck_Haltestelle";"dbo";"HaltestelleDruck";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_HaltestelleFahrplanAdresse_FahrplanAdresse";"dbo";"HaltestelleFahrplanAdresse";"IDFahrplanAdresse_FS";"dbo";"FahrplanAdresse";"IDFahrplanAdresse"
|
||||||
|
"FK_HaltestelleFahrplanAdresse_Haltestelle";"dbo";"HaltestelleFahrplanAdresse";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_HaltestelleHaltepunkt_ArtBetriebshof";"dbo";"HaltestelleHaltepunkt";"IDArtBetriebshof_FS";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_HaltestelleHaltepunkt_ArtHaltepunktAbfallbehaelter";"dbo";"HaltestelleHaltepunkt";"IDArtHaltepunktAbfallbehaelter_FS";"dbo";"ArtHaltepunktAbfallbehaelter";"IDArtHaltepunktAbfallbehaelter"
|
||||||
|
"FK_HaltestelleHaltepunkt_ArtHaltepunktBlindenleitsystem";"dbo";"HaltestelleHaltepunkt";"IDArtHaltepunktBlindenleitsystem_FS";"dbo";"ArtHaltepunktBlindenleitsystem";"IDArtHaltepunktBlindenleitsystem"
|
||||||
|
"FK_HaltestelleHaltepunkt_ArtHaltepunktBlinkaufforderung";"dbo";"HaltestelleHaltepunkt";"IDArtHaltepunktBlinkaufforderung_FS";"dbo";"ArtHaltepunktBlinkaufforderung";"IDArtHaltepunktBlinkaufforderung"
|
||||||
|
"FK_HaltestelleHaltepunkt_ArtHaltepunktBusbordstein";"dbo";"HaltestelleHaltepunkt";"IDArtHaltepunktBusbordstein_FS";"dbo";"ArtHaltepunktBusbordstein";"IDArtHaltepunktBusbordstein"
|
||||||
|
"FK_HaltestelleHaltepunkt_Haltepunkt";"dbo";"HaltestelleHaltepunkt";"IDHaltepunkt_FS";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_HaltestelleHaltepunkt_Haltestelle";"dbo";"HaltestelleHaltepunkt";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_HaltestelleHaltepunkt_Ort";"dbo";"HaltestelleHaltepunkt";"IDOrt_FS";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_ImportAdressen_ArtImportAdressen";"dbo";"ImportAdressen";"IDArtImportAdressen_FS";"dbo";"ArtImportAdressen";"IDArtImportAdressen"
|
||||||
|
"FK_ImportMatrix_ArtBuchungsImport";"dbo";"ImportMatrix";"IDArtBuchungsImport_FS";"dbo";"ArtBuchungsImport";"IDArtBuchungsImport"
|
||||||
|
"FK_InternetCRMZuweisung_ArtCRMGruppe";"dbo";"InternetCRMZuweisung";"IDArtCRMGruppe_FS";"dbo";"ArtCRMGruppe";"IDArtCRMGruppe"
|
||||||
|
"FK_InternetCRMZuweisung_ArtCRMInternet";"dbo";"InternetCRMZuweisung";"IDArtCRMInternet_FS";"dbo";"ArtCRMInternet";"IDArtCRMInternet"
|
||||||
|
"FK_KalenderFahrplanversion_ArtFahrplanVersion";"dbo";"KalenderFahrplanversion";"IDArtFahrplanversion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_KalenderLaufzeitschema_ArtLaufzeitschema";"dbo";"KalenderLaufzeitschema";"IDArtLaufzeitschema_FS";"dbo";"ArtLaufzeitschema";"IDArtLaufzeitschema"
|
||||||
|
"FK_KalenderSondergruppen_ArtGruppeVerkehrstag";"dbo";"KalenderSondergruppen";"IDArtSondergruppen_FS";"dbo";"ArtGruppeVerkehrstag";"IDArtGruppeVerkehrstag"
|
||||||
|
"FK_KalenderWochentypen_ArtWochentyp";"dbo";"KalenderWochentypen";"IDArtWochentyp_FS";"dbo";"ArtWochentyp";"IDArtWochentyp"
|
||||||
|
"FK_KalkulationBeförderung_Kalkulation";"dbo";"KalkulationBeförderung";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationBeförderungLand_KalkulationBeförderung";"dbo";"KalkulationBeförderungLand";"IDKalkulationBeförderung_FS";"dbo";"KalkulationBeförderung";"IDKalkulationBeförderung"
|
||||||
|
"FK_KalkulationBusleistung_Kalkulation";"dbo";"KalkulationBusleistung";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationBusleistungPreis_KalkulationBusleistung";"dbo";"KalkulationBusleistungPreis";"IDKalkulationBusleistung_FS";"dbo";"KalkulationBusleistung";"IDKalkulationBusleistung"
|
||||||
|
"FK_KalkulationBusleistungPreis_Kalkulationswertbezeichnung";"dbo";"KalkulationBusleistungPreis";"IDKalkulationswertbezeichnung_FS";"dbo";"KalkulationswertBezeichnung";"IDKalkulationswertBezeichnung"
|
||||||
|
"FK_KalkulationErgebnis_Kalkulation";"dbo";"KalkulationErgebnis";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationErgebnisM_Kalkulation";"dbo";"KalkulationErgebnisM";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationErgebnisZimmerPreis_KalkulationErgebnis";"dbo";"KalkulationErgebnisZimmerPreis";"IDKalkulationErgebnis_FS";"dbo";"KalkulationErgebnis";"IDKalkulationErgebnis"
|
||||||
|
"FK_KalkulationErgebnisZimmerPreis_Zimmerart";"dbo";"KalkulationErgebnisZimmerPreis";"IDZimmerart_FS";"dbo";"Zimmerart";"IDZimmerart"
|
||||||
|
"FK_KalkulationFZAusgrenzung_KalkulationFZ";"dbo";"KalkulationFZAusgrenzung";"IDKalkulationFZ_FS";"dbo";"KalkulationFZ";"IDKalkulationFZ"
|
||||||
|
"FK_KalkulationFZBeförderung_KalkulationFZ";"dbo";"KalkulationFZBeförderung";"IDKalkulationFZ_FS";"dbo";"KalkulationFZ";"IDKalkulationFZ"
|
||||||
|
"FK_KalkulationFZErgebnis_ArtPartnerPreisCode";"dbo";"KalkulationFZErgebnis";"IdArtPartnerPreisCode_FS";"dbo";"ArtPartnerPreisCode";"IDArtPartnerPreisCode"
|
||||||
|
"FK_KalkulationFZErgebnis_ArtVerpflegung";"dbo";"KalkulationFZErgebnis";"IDArtVerpflegung_FS";"dbo";"ArtVerpflegung";"IDArtVerpflegung"
|
||||||
|
"FK_KalkulationFZErgebnis_KalkulationFZ";"dbo";"KalkulationFZErgebnis";"IDKalkulationFZ_FS";"dbo";"KalkulationFZ";"IDKalkulationFZ"
|
||||||
|
"FK_KalkulationFZTag_KalkulationFZ";"dbo";"KalkulationFZTag";"IDKalkulationFZ_FS";"dbo";"KalkulationFZ";"IDKalkulationFZ"
|
||||||
|
"FK_KalkulationPax_Kalkulation";"dbo";"KalkulationPax";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationReise_Kalkulation";"dbo";"KalkulationReise";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationReise_Reise";"dbo";"KalkulationReise";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_KalkulationSonstiges_Kalkulation";"dbo";"KalkulationSonstiges";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationSonstigesPreis_KalkulationSonstiges";"dbo";"KalkulationSonstigesPreis";"IDKalkulationSonstiges_FS";"dbo";"KalkulationSonstiges";"IDKalkulationSonstiges"
|
||||||
|
"FK_KalkulationUnterbringung_Kalkulation";"dbo";"KalkulationUnterbringung";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationUnterbringungM_Kalkulation";"dbo";"KalkulationUnterbringungM";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationUnterbringungMPreis_KalkulationUnterbringungM";"dbo";"KalkulationUnterbringungMPreis";"IDKalkulationUnterbringungM_FS";"dbo";"KalkulationUnterbringungM";"IDKalkulationUnterbringungM"
|
||||||
|
"FK_KalkulationUnterbringungPartner_Adresse";"dbo";"KalkulationUnterbringungPartner";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_KalkulationUnterbringungPartner_KalkulationUnterbringung";"dbo";"KalkulationUnterbringungPartner";"IDKalkulationUnterbringung_FS";"dbo";"KalkulationUnterbringung";"IDKalkulationUnterbringung"
|
||||||
|
"FK_KalkulationUnterbringungPreis_KalkulationUnterbringung";"dbo";"KalkulationUnterbringungPreis";"IDKalkulationUnterbringung_FS";"dbo";"KalkulationUnterbringung";"IDKalkulationUnterbringung"
|
||||||
|
"FK_KalkulationUnterbringungPreis_KalkulationUnterbringungPartner";"dbo";"KalkulationUnterbringungPreis";"IDKalkulationUnterbringungPartner_FS";"dbo";"KalkulationUnterbringungPartner";"IDKalkulationUnterbringungPartner"
|
||||||
|
"FK_KalkulationUnterbringungPreis_KalkulationUnterbringungZimmer";"dbo";"KalkulationUnterbringungPreis";"IDKalkulationUnterbringungZimmer_FS";"dbo";"KalkulationUnterbringungZimmer";"IDKalkulationUnterbringungZimmer"
|
||||||
|
"FK_KalkulationUnterbringungZimmer_KalkulationUnterbringung";"dbo";"KalkulationUnterbringungZimmer";"IDKalkulationUnterbringung_FS";"dbo";"KalkulationUnterbringung";"IDKalkulationUnterbringung"
|
||||||
|
"FK_KalkulationUnterbringungZimmer_Zimmerart";"dbo";"KalkulationUnterbringungZimmer";"IDZimmerart_FS";"dbo";"Zimmerart";"IDZimmerart"
|
||||||
|
"FK_KalkulationUnterbringungZimmerPreis_KalkulationUnterbringung";"dbo";"KalkulationUnterbringungZimmerPreis";"IDKalkulationUnterbringung_FS";"dbo";"KalkulationUnterbringung";"IDKalkulationUnterbringung"
|
||||||
|
"FK_KalkulationUnterbringungZimmerPreis_KalkulationUnterbringungZimmer";"dbo";"KalkulationUnterbringungZimmerPreis";"IDKalkulationUnterbringungZimmerPreis";"dbo";"KalkulationUnterbringungZimmer";"IDKalkulationUnterbringungZimmer"
|
||||||
|
"FK_KalkulationZuschlag_Kalkulation";"dbo";"KalkulationZuschlag";"IDKalkulation_FS";"dbo";"Kalkulation";"IDKalkulation"
|
||||||
|
"FK_KalkulationZuschlagPosten_KalkulationZuschlag";"dbo";"KalkulationZuschlagPosten";"IDKalkulationZuschlag_FS";"dbo";"KalkulationZuschlag";"IDKalkulationZuschlag"
|
||||||
|
"FK_KommunikationEinstellung_Kommunikation";"dbo";"KommunikationEinstellung";"IDKommunikation_FS";"dbo";"Kommunikation";"IDKommunikation"
|
||||||
|
"FK_KonstantenErmäßigungProdukt_KonstantenErmäßigung";"dbo";"KonstantenErmäßigungProdukt";"IDKonstantenErmäßigungStaffel_FS";"dbo";"KonstantenErmäßigungStaffel";"IDKonstantenErmäßigungStaffel"
|
||||||
|
"FK_KonstantenErmäßigungProdukt_Produkt";"dbo";"KonstantenErmäßigungProdukt";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_KonstantenErmäßigungStaffel_KonstantenErmäßigung";"dbo";"KonstantenErmäßigungStaffel";"IDKonstantenErmäßigung_FS";"dbo";"KonstantenErmäßigung";"IDKonstantenErmäßigung"
|
||||||
|
"FK_KonstantenErmäßigungZimmer_KonstantenErmäßigung";"dbo";"KonstantenErmäßigungZimmer";"IDKonstantenErmäßigungStaffel_FS";"dbo";"KonstantenErmäßigungStaffel";"IDKonstantenErmäßigungStaffel"
|
||||||
|
"FK_KonstantenErmäßigungZimmer_Zimmerart";"dbo";"KonstantenErmäßigungZimmer";"IDZimmerart_FS";"dbo";"Zimmerart";"IDZimmerart"
|
||||||
|
"FK_KonstantenErmäßigungZustieg_KonstantenErmäßigung";"dbo";"KonstantenErmäßigungZustieg";"IDKonstantenErmäßigungStaffel_FS";"dbo";"KonstantenErmäßigungStaffel";"IDKonstantenErmäßigungStaffel"
|
||||||
|
"FK_KonstantenErmäßigungZustieg_Zustieg";"dbo";"KonstantenErmäßigungZustieg";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_KonstantenFlexTarifStaffel_KonstantenFlexTarif";"dbo";"KonstantenFlexTarifStaffel";"IDKonstantenFlexTarif_FS";"dbo";"KonstantenFlexTarif";"IDKonstantenFlexTarif"
|
||||||
|
"FK_KonstantenFlexTarifStaffel_Leistung";"dbo";"KonstantenFlexTarifStaffel";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_KonstantenGruppenermStaffel_KonstantenGruppenerm";"dbo";"KonstantenGruppenermStaffel";"IDKonstantenGruppenerm_FS";"dbo";"KonstantenGruppenerm";"IDKonstantenGruppenerm"
|
||||||
|
"FK_KonstantenRabattStaffelEingabe_KonstantenRabattStaffel";"dbo";"KonstantenRabattStaffelEingabe";"IDKonstantenRabattStaffel_FS";"dbo";"KonstantenRabattStaffel";"IDKonstantenRabattStaffel"
|
||||||
|
"FK_KonstantenStAuftZuschlag_Land";"dbo";"KonstantenStAuftZuschlag";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_KonstantenSteueraufteilung_SteueraufteilungArt";"dbo";"KonstantenSteueraufteilung";"IDSteueraufteilungArt_FS";"dbo";"SteueraufteilungArt";"IDSteueraufteilungArt"
|
||||||
|
"FK_KonstantenSteueraufteilungDetail_KonstantenSteueraufteilung";"dbo";"KonstantenSteueraufteilungDetail";"IDKonstantenSteueraufteilung_FS";"dbo";"KonstantenSteueraufteilung";"IDKonstantenSteueraufteilung"
|
||||||
|
"FK_KonstantenSteueraufteilungDetail_Steueraufteilung";"dbo";"KonstantenSteueraufteilungDetail";"IDSteueraufteilungDetail_FS";"dbo";"SteueraufteilungDetail";"IDSteueraufteilungDetail"
|
||||||
|
"FK_KonstantenStornoStaffelTage_KonstantenStornoStaffel";"dbo";"KonstantenStornoStaffelTage";"IDKonstantenStornoStaffel_FS";"dbo";"KonstantenStornoStaffel";"IDKonstantenStornoStaffel"
|
||||||
|
"FK_ArtikelLagerort_Artikel";"dbo";"LagerRegal";"IDLager_FS";"dbo";"Lager";"IDLager"
|
||||||
|
"FK_LandFiskal_Land";"dbo";"LandFiskal";"IDLand_Fs";"dbo";"Land";"IDLand"
|
||||||
|
"FK_LandHinweis_Land";"dbo";"LandHinweis";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_LandKonto_Land";"dbo";"LandKonto";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_LandMwst_Land";"dbo";"LandMwst";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_LandVerpflegungSpesen_ArtSpesenLand";"dbo";"LandVerpflegungSpesen";"IDArtSpesenLand_FS";"dbo";"ArtSpesenLand";"IDArtSpesenLand"
|
||||||
|
"FK_LandVerpflegungSpesen_ArtSpesenVerpflegung";"dbo";"LandVerpflegungSpesen";"IDArtSpesenVerpflegung_FS";"dbo";"ArtSpesenVerpflegung";"IDArtSpesenVerpflegung"
|
||||||
|
"FK_Leistung_ArtLeistungSonstigesUnterart";"dbo";"Leistung";"IDArtLeistungSonstigesUnterart_FS";"dbo";"ArtLeistungSonstigesUnterart";"IDArtLeistungSonstigesUnterart"
|
||||||
|
"FK_Leistung_LeistungBefoerderung";"dbo";"LeistungBefoerderung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_Leistung_LeistungExternSystem";"dbo";"LeistungExternSystem";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungHotelMoeglich_Adresse";"dbo";"LeistungHotelGesperrt";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LeistungHotelMoeglich_LeistungBefoerderung";"dbo";"LeistungHotelGesperrt";"IDLeistungBefoerderung_FS";"dbo";"LeistungBefoerderung";"IDLeistungBefoerderung"
|
||||||
|
"FK_Adresse_LeistungMandantMoeglich";"dbo";"LeistungMandantMoeglich";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Leistung_LeistungMandantMoeglich";"dbo";"LeistungMandantMoeglich";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_Adresse_LeistungPartnerMoeglich";"dbo";"LeistungPartnerMoeglich";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Leistung_LeistungPartnerMoeglich";"dbo";"LeistungPartnerMoeglich";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungPreis_ArtPreisschema";"dbo";"LeistungPreis";"IDArtPreisSchema_FS";"dbo";"ArtPreisschema";"IDArtPreisschema"
|
||||||
|
"FK_LeistungPreis_Leistung";"dbo";"LeistungPreis";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungProdukt_Leistung";"dbo";"LeistungProdukt";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungProdukt_Produkt";"dbo";"LeistungProdukt";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_Leistung_LeistungSelektion";"dbo";"LeistungSelektionenKunde";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_Selektionsstamm_LeistungSelektion";"dbo";"LeistungSelektionenKunde";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_LeistungSitzplan_Leistung";"dbo";"LeistungSitzplan";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungSitzplan_Sitzplan";"dbo";"LeistungSitzplan";"IDSitzplan_FS";"dbo";"Sitzplan";"IDSitzplan"
|
||||||
|
"FK_Leistung_LeistungText";"dbo";"LeistungText";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_Leistung_LeistungTicket";"dbo";"LeistungTicket";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungTicketZusatz_LeistungTicket";"dbo";"LeistungTicketZusatz";"IDLeistungTicket_FS";"dbo";"LeistungTicket";"IDLeistungTicket"
|
||||||
|
"FK_LeistungVersicherung_Leistung";"dbo";"LeistungVersicherung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungVersicherung_Versicherungsbedingung_Leistung";"dbo";"LeistungVersicherung_Versicherungsbedingung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungVersicherung_Versicherungsbedingung_Versicherungsbedingung";"dbo";"LeistungVersicherung_Versicherungsbedingung";"IDVersicherungsbedingung_FS";"dbo";"Versicherungsbedingung";"IDVersicherungsbedingung"
|
||||||
|
"FK_LeistungVersicherungsGruppe_ArtVersicherungsGruppe";"dbo";"LeistungVersicherungsGruppe";"IDArtVersicherungsGruppe_FS";"dbo";"ArtVersicherungsGruppe";"IDArtVersicherungsGruppe"
|
||||||
|
"FK_LeistungVersicherungsGruppe_LeistungVersicherung";"dbo";"LeistungVersicherungsGruppe";"IDLeistungVersicherung_FS";"dbo";"LeistungVersicherung";"IDLeistungVersicherung"
|
||||||
|
"FK_Leistung_LeistungVoucher";"dbo";"LeistungVoucher";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungZusatz_ArtAgenturPreisgruppe";"dbo";"LeistungZusatz";"IDArtAgenturPreisgruppe_FS";"dbo";"ArtAgenturPreisgruppe";"IDArtAgenturPreisgruppe"
|
||||||
|
"FK_LeistungZusatz_KonstantenSteueraufteilung";"dbo";"LeistungZusatz";"IDKonstantenSteueraufteilung_FS";"dbo";"KonstantenSteueraufteilung";"IDKonstantenSteueraufteilung"
|
||||||
|
"FK_LeistungZusatz_Leistung";"dbo";"LeistungZusatz";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_LeistungZustiegMoeglich_LeistungBefoerderung";"dbo";"LeistungZustiegMoeglichGesperrt";"IDLeistungBefoerderung_FS";"dbo";"LeistungBefoerderung";"IDLeistungBefoerderung"
|
||||||
|
"FK_Zustieg_LeistungZustiegMoeglich";"dbo";"LeistungZustiegMoeglichGesperrt";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_LiniePlanungEinstellung_Adresse";"dbo";"LiniePlanungEinstellung";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LiniePlanungEinstellung_ArtPersonalGruppeKompetenz";"dbo";"LiniePlanungEinstellung";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_LinieStatistikAufteilungSpalteZuordnung_ArtStatistikGruppe";"dbo";"LinieStatistikAufteilungSpalteZuordnung";"IDArtStatistikGruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_LinieStatistikAufteilungSpalteZuordnung_Auftragsart";"dbo";"LinieStatistikAufteilungSpalteZuordnung";"IDAuftragsart_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_LinieStatistikAufteilungSpalteZuordnung_LinieStatistikAufteilungSpalte";"dbo";"LinieStatistikAufteilungSpalteZuordnung";"IDLinieStatistikAufteilungSpalte_FS";"dbo";"LinieStatistikAufteilungSpalte";"IDLinieStatistikAufteilungSpalte"
|
||||||
|
"FK_LinieStatistikSummeSpalte_ArtLinieStatistikSumme";"dbo";"LinieStatistikSummeSpalte";"IDArtLinieStatistikSumme_FS";"dbo";"ArtLinieStatistikSumme";"IDArtLinieStatistikSumme"
|
||||||
|
"FK_LinieStatistikSummeSpalteZuordnung_ArtStatistikGruppe";"dbo";"LinieStatistikSummeSpalteZuordnung";"IDArtStatistikGruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_LinieStatistikSummeSpalteZuordnung_Auftragsart";"dbo";"LinieStatistikSummeSpalteZuordnung";"IDAuftragsart_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_LinieStatistikSummeSpalteZuordnung_LinieStatistikSummeSpalte";"dbo";"LinieStatistikSummeSpalteZuordnung";"IDLinieStatistikSummeSpalte_FS";"dbo";"LinieStatistikSummeSpalte";"IDLinieStatistikSummeSpalte"
|
||||||
|
"FK_LinieWegPunkteGM_Haltestelle";"dbo";"LinieWegPunkteGM";"IDHaltestelle_FS_von";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_LinieWegPunkteGM_Haltestelle1";"dbo";"LinieWegPunkteGM";"IDHaltestelle_FS_nach";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_LinieZiel_ArtLinieZielSonderzeichen";"dbo";"LinieZiel";"IDArtLinieZielSonderzeichen_FS";"dbo";"ArtLinieZielSonderzeichen";"IDArtLinieZielSonderzeichen"
|
||||||
|
"FK_LinieZusatzKilometer_ArtStatistikGruppe";"dbo";"LinieZusatzKilometer";"IDArtStatistikgruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_LinieZusatzKilometer_Auftragsart";"dbo";"LinieZusatzKilometer";"IDAuftragsart_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_LinieZusatzKilometer_Fahrzeug";"dbo";"LinieZusatzKilometer";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_ListenterminalEinstellung_Adresse";"dbo";"ListenterminalEinstellung";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ListenterminalEinstellung_ArtPersonalGruppeKompetenz";"dbo";"ListenterminalEinstellung";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_Lohnart_ArtLohnsystem";"dbo";"Lohnart";"IDArtLohnsystem_FS";"dbo";"ArtLohnsystem";"IDArtLohnsystem"
|
||||||
|
"FK_LohnartPersonalSperrung_Adresse";"dbo";"LohnartPersonalSperrung";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnartPersonalSperrung_Lohnart";"dbo";"LohnartPersonalSperrung";"IDLohnart_FS";"dbo";"Lohnart";"IDLohnart"
|
||||||
|
"FK_LohnartTag_Lohnart";"dbo";"LohnartTag";"IDLohnart_FS";"dbo";"Lohnart";"IDLohnart"
|
||||||
|
"FK_LohnDruckLobuPersonalSperrung_Adresse";"dbo";"LohnDruckLobuPersonalSperrung";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnDruckLobuPersonalSperrung_ArtLohnDruckLobu";"dbo";"LohnDruckLobuPersonalSperrung";"IDArtLohnDruckLobu_FS";"dbo";"ArtLohnDruckLobu";"IDArtLohnDruckLobu"
|
||||||
|
"FK_Lohnextra_Adresse";"dbo";"Lohnextra";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Lohnextra_ArtLohnextra";"dbo";"Lohnextra";"IDArtLohnextra_FS";"dbo";"ArtLohnextra";"IDArtLohnextra"
|
||||||
|
"FK_LohnParameter_Adresse";"dbo";"LohnParameter";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnParameter_ArtLohnsystem";"dbo";"LohnParameter";"IDArtLohnsystem_FS";"dbo";"ArtLohnsystem";"IDArtLohnsystem"
|
||||||
|
"FK_LohnStundenkonto_Adresse";"dbo";"LohnStundenkonto";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnStundenkonto_ArtLohnStundenkonto";"dbo";"LohnStundenkonto";"IDArtLohnStundenkonto_FS";"dbo";"ArtLohnStundenkonto";"IDArtLohnStundenkonto"
|
||||||
|
"FK_LohnsystemPersonalSperrung_Adresse";"dbo";"LohnsystemPersonalSperrung";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnsystemPersonalSperrung_ArtLohnsystem";"dbo";"LohnsystemPersonalSperrung";"IDArtLohnsystem_FS";"dbo";"ArtLohnsystem";"IDArtLohnsystem"
|
||||||
|
"FK_LohnTagesdaten_Adresse";"dbo";"LohnTagesdaten";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnUebergabe_Adresse";"dbo";"LohnUebergabe";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_LohnUebergabe_ArtLohnsystem";"dbo";"LohnUebergabe";"IDArtLohnsystem_FS";"dbo";"ArtLohnsystem";"IDArtLohnsystem"
|
||||||
|
"FK_MandantZuordnungZahlung_Adresse";"dbo";"MandantZuordnungKontenplan";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_MandantZuordnungZahlung_ZahlungCode";"dbo";"MandantZuordnungKontenplan";"IDMandantZuordnung_FS";"dbo";"Kontenplan";"IDKontenplan"
|
||||||
|
"FK_MandantZuordnungReise_Adresse";"dbo";"MandantZuordnungReise";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_MandantZuordnungReise_Reise";"dbo";"MandantZuordnungReise";"IDMandantZuordnung_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_MandantZuordnungZustieg_Adresse";"dbo";"MandantZuordnungZustieg";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_MandantZuordnungZustieg_Zustieg";"dbo";"MandantZuordnungZustieg";"IDMandantZuordnung_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_MitgliedAdresse_ArtMitgliedsstufen";"dbo";"MitgliedsstufeAdresse";"IDArtMitgliedsstufe_FS";"dbo";"ArtMitgliedsstufe";"IDArtMitgliedsstufe"
|
||||||
|
"FK_MitgliedAdresse_ArtZahlungsart";"dbo";"MitgliedsstufeAdresse";"IDArtZahlungsart_FS";"dbo";"ArtZahlungsart";"IDArtZahlungsart"
|
||||||
|
"FK_MitgliedsstufeAdresse_Adresse";"dbo";"MitgliedsstufeAdresse";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_MitgliedsEinstellungBetrag_ArtMitgliedsstufen";"dbo";"MitgliedsstufeBetrag";"IDArtMitgliedsstufe_FS";"dbo";"ArtMitgliedsstufe";"IDArtMitgliedsstufe"
|
||||||
|
"FK_MitgliedVorteilBezeichnungArtMitgliedsstufe_ArtMitgliedsstufe";"dbo";"MitgliedsVorteilBezeichnungArtMitgliedsstufe";"IDArtMitgliedsstufe_FS";"dbo";"ArtMitgliedsstufe";"IDArtMitgliedsstufe"
|
||||||
|
"FK_Newsletter_Adresse";"dbo";"Newsletter";"IDAdresse_FS_ErsterSB";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Newsletter_Adresse1";"dbo";"Newsletter";"IDAdresse_FS_LetzterSB";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_NewsletterAdressat_Adresse";"dbo";"NewsletterAdressat";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_NewsletterAdressat_Newsletter";"dbo";"NewsletterAdressat";"IDNewsletter_FS";"dbo";"Newsletter";"IDNewsletter"
|
||||||
|
"FK_NewsletterAdressat_NewsletterVersand";"dbo";"NewsletterAdressat";"IDNewsletterVersand_FS";"dbo";"NewsletterVersand";"IDNewsletterVersand"
|
||||||
|
"FK_NewsletterBlock_Newsletter";"dbo";"NewsletterBlock";"IDNewsletter_FS";"dbo";"Newsletter";"IDNewsletter"
|
||||||
|
"FK_NewsletterVersand_Adresse";"dbo";"NewsletterVersand";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_NewsletterVersand_Newsletter";"dbo";"NewsletterVersand";"IDNewsletter_FS";"dbo";"Newsletter";"IDNewsletter"
|
||||||
|
"FK_NotizFahrerFahrzeug_ArtNotizart";"dbo";"NotizFahrerFahrzeug";"IDArtNotizart_FS";"dbo";"ArtNotizart";"IDArtNotizart"
|
||||||
|
"FK_NummernVerwaltung_Nummernkreis";"dbo";"NummernVerwaltung";"IDNummernkreis_FS";"dbo";"Nummernkreis";"IDNummernkreis"
|
||||||
|
"FK_OrtBeziehung_Ort";"dbo";"OrtBeziehung";"IDOrt_FS_Ort1";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_OrtBeziehung_Ort1";"dbo";"OrtBeziehung";"IDOrt_FS_Ort2";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_PartnerBefoederungsvertragspreis_Adresse";"dbo";"PartnerBefoederungsvertragspreis";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerDokument_Adresse";"dbo";"PartnerDokument";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerGebiet_Land";"dbo";"PartnerGebiet";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_PartnerGebietPreis_PartnerGebiet";"dbo";"PartnerGebietPreis";"IDPartnergebiet_FS";"dbo";"PartnerGebiet";"IDPartnergebiet"
|
||||||
|
"FK_PartnerKontingent_Adresse";"dbo";"PartnerKontingent";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerLeistung_Adresse";"dbo";"PartnerLeistung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerLeistungPreis_PartnerLeistung";"dbo";"PartnerLeistungPreis";"IDPartnerLeistung_FS";"dbo";"PartnerLeistung";"IDPartnerLeistung"
|
||||||
|
"FK_PartnerLeistungPreis_PartnerSaisontafel";"dbo";"PartnerLeistungPreis";"IDPartnerSaisontafel_FS";"dbo";"PartnerSaisontafel";"IDPartnerSaisontafel"
|
||||||
|
"FK_PartnerPreis_ArtPreisschema";"dbo";"PartnerPreis";"IDPartnerSaisonTafel_FS";"dbo";"PartnerSaisontafel";"IDPartnerSaisontafel"
|
||||||
|
"FK_PartnerPreis_PartnerPreisKategorie";"dbo";"PartnerPreis";"IDPartnerPreisKategorie_FS";"dbo";"PartnerPreisKategorie";"IDPartnerPreisKategorie"
|
||||||
|
"FK_PartnerPreisKategorie_Adresse";"dbo";"PartnerPreisKategorie";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerPreisKategorie_ArtPartnerPreisCode";"dbo";"PartnerPreisKategorie";"IDArtPartnerPreisCode_FS";"dbo";"ArtPartnerPreisCode";"IDArtPartnerPreisCode"
|
||||||
|
"FK_PartnerPreisKategorie_ArtVerpflegung";"dbo";"PartnerPreisKategorie";"IDArtVerpflegung_FS";"dbo";"ArtVerpflegung";"IDArtVerpflegung"
|
||||||
|
"FK_PartnerProdukt_Adresse";"dbo";"PartnerProdukt";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerProdukt_Produkt";"dbo";"PartnerProdukt";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_PartnerSaisontafel_Adresse";"dbo";"PartnerSaisontafel";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerSaisonzeit_Adresse";"dbo";"PartnerSaisonzeit";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerSaisonzeit_PartnerSaisontafel";"dbo";"PartnerSaisonzeit";"IDPartnerSaisonTafel_FS";"dbo";"PartnerSaisontafel";"IDPartnerSaisontafel"
|
||||||
|
"FK_Adresse_PartnerSelektion";"dbo";"PartnerSelektionenKunde";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Selektionsstamm_PartnerSelektion";"dbo";"PartnerSelektionenKunde";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_PartnerZimmer_Adresse";"dbo";"PartnerZimmer";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerZimmer_ArtPartnerPreisCode";"dbo";"PartnerZimmer";"IDArtPartnerPreisCode_FS";"dbo";"ArtPartnerPreisCode";"IDArtPartnerPreisCode"
|
||||||
|
"FK_PartnerZimmer_Zimmerart";"dbo";"PartnerZimmer";"IDZimmerart_FS";"dbo";"Zimmerart";"IDZimmerart"
|
||||||
|
"FK_PartnerZusatz_Adresse";"dbo";"PartnerZusatz";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PartnerZusatz_ArtAgenturPreisgruppe";"dbo";"PartnerZusatz";"IDArtAgenturPreisgruppe_FS";"dbo";"ArtAgenturPreisgruppe";"IDArtAgenturPreisgruppe"
|
||||||
|
"FK_PartnerZusatz_KonstantenSteueraufteilung";"dbo";"PartnerZusatz";"IDKonstantenSteueraufteilung_FS";"dbo";"KonstantenSteueraufteilung";"IDKonstantenSteueraufteilung"
|
||||||
|
"FK_PersonalGruppeDatenschutz_ArtPersonalGruppeKompetenz";"dbo";"PersonalGruppeDatenschutz";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_PersonalGruppeDatenschutzDarstellung_ArtPersonalGruppeKompetenz";"dbo";"PersonalGruppeDatenschutzDarstellung";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_PersonalGruppeDatenschutzLöschung_ArtPersonalGruppeKompetenz";"dbo";"PersonalGruppeDatenschutzLöschung";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_PersonalGruppeKompetenz_ArtPersonalGruppeKompetenz";"dbo";"PersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz_FS";"dbo";"ArtPersonalGruppeKompetenz";"IDArtPersonalGruppeKompetenz"
|
||||||
|
"FK_Personalkapazitaet_Adresse";"dbo";"Personalkapazitaet";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Personalkapazitaet_ArtPersonalkapazitaet";"dbo";"Personalkapazitaet";"IDArtPersonalkapazitaet_FS";"dbo";"ArtPersonalkapazitaet";"IDArtPersonalkapazitaet"
|
||||||
|
"FK_PersonalkapazitaetArbeitszeit_ArtPersonalkapazitaet";"dbo";"PersonalkapazitaetArbeitszeit";"IDArtPersonalkapazitaet_FS";"dbo";"ArtPersonalkapazitaet";"IDArtPersonalkapazitaet"
|
||||||
|
"FK_PersonalkapazitaetEingabe_Adresse";"dbo";"PersonalkapazitaetEingabe";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PersonalkapazitaetMindestbesetzung_ArtBetriebshof";"dbo";"PersonalkapazitaetMindestbesetzung";"IDArtBetriebshof_FS";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_PersonalkapazitaetMindestbesetzung_ArtMindestbesetzungZeitraum";"dbo";"PersonalkapazitaetMindestbesetzung";"IDArtMindestbesetzungZeitraum_FS";"dbo";"ArtMindestbesetzungZeitraum";"IDArtMindestbesetzungZeitraum"
|
||||||
|
"FK_PersonalkapazitaetMindestbesetzungZeitraum_ArtMindestbesetzungZeitraum";"dbo";"PersonalkapazitaetMindestbesetzungZeitraum";"IDArtMindestbesetzungZeitraum_FS";"dbo";"ArtMindestbesetzungZeitraum";"IDArtMindestbesetzungZeitraum"
|
||||||
|
"FK_PlanungSoll_Adresse";"dbo";"PlanungSoll";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_PlanungSoll_ArtPersonalkapazitaet";"dbo";"PlanungSoll";"IDArtPersonalkapazitaet_FS_Schema";"dbo";"ArtPersonalkapazitaet";"IDArtPersonalkapazitaet"
|
||||||
|
"FK_PlanungSollBlock_BlockPlanung";"dbo";"PlanungSollBlock";"IDBlockPlanung_FS";"dbo";"BlockPlanung";"IDBlockPlanung"
|
||||||
|
"FK_PlanungSollBlock_PlanungSoll";"dbo";"PlanungSollBlock";"IDPlanungSoll_FS";"dbo";"PlanungSoll";"IDPlanungSoll"
|
||||||
|
"FK_PlanungSollLohnarten_Lohnart";"dbo";"PlanungSollLohnart";"IDLohnart_FS";"dbo";"Lohnart";"IDLohnart"
|
||||||
|
"FK_PlanungSollLohnarten_PlanungSoll";"dbo";"PlanungSollLohnart";"IDPlanungSoll_FS";"dbo";"PlanungSoll";"IDPlanungSoll"
|
||||||
|
"FK_PortalBemerkung_PortalBuchung";"dbo";"PortalBemerkung";"IDPortalBuchung_FS";"dbo";"PortalBuchung";"IDPortalBuchung"
|
||||||
|
"FK_PortalLeistung_PortalBuchung";"dbo";"PortalLeistung";"IDPortalBuchung_FS";"dbo";"PortalBuchung";"IDPortalBuchung"
|
||||||
|
"FK_PortalLeistungTN_PortalLeistung";"dbo";"PortalLeistungTN";"IDPortalLeistung_FS";"dbo";"PortalLeistung";"IDPortalLeistung"
|
||||||
|
"FK_PortalLeistungTN_PortalTN";"dbo";"PortalLeistungTN";"IDPortalTN_FS";"dbo";"PortalTN";"IDPortalTN"
|
||||||
|
"FK_PortalLeistungZusatz_PortalBuchung";"dbo";"PortalLeistungZusatz";"IDPortalBuchung_FS";"dbo";"PortalBuchung";"IDPortalBuchung"
|
||||||
|
"FK_PortalTN_PortalBuchung";"dbo";"PortalTN";"IDPortalBuchung_FS";"dbo";"PortalBuchung";"IDPortalBuchung"
|
||||||
|
"FK_Produkt_KonstantenSteueraufteilung";"dbo";"Produkt";"IDKonstantenSteueraufteilung_FS";"dbo";"KonstantenSteueraufteilung";"IDKonstantenSteueraufteilung"
|
||||||
|
"FK_ProduktArtPersonalGruppe_ArtPersonalGruppeProdukt";"dbo";"ProduktArtPersonalGruppe";"IDArtPersonalGruppeProdukt_FS";"dbo";"ArtPersonalGruppeProdukt";"IDArtPersonalGruppeProdukt"
|
||||||
|
"FK_ProduktArtPersonalGruppe_Produkt";"dbo";"ProduktArtPersonalGruppe";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_ProduktBeschreibungInhalt_ProduktBeschreibung";"dbo";"ProduktBeschreibungInhalt";"IDProduktBeschreibung_FS";"dbo";"ProduktBeschreibung";"IDProduktBeschreibung"
|
||||||
|
"FK_ProduktbeschreibungKategorie_ProduktBeschreibung";"dbo";"ProduktbeschreibungKategorie";"IDProduktbeschreibung_FS";"dbo";"ProduktBeschreibung";"IDProduktBeschreibung"
|
||||||
|
"FK_ProduktbeschreibungKategorie_WWSuchKategorie";"dbo";"ProduktbeschreibungKategorie";"IDWWSuchKategorie_FS";"dbo";"WWSuchKategorie";"IDWWSuchKategorie"
|
||||||
|
"FK_ProduktbeschreibungKategorie_WWSuchKategorieEintrag";"dbo";"ProduktbeschreibungKategorie";"IDWWSuchKategorieEintrag_FS";"dbo";"WWSuchKategorieEintrag";"IDWWSuchKategorieEintrag"
|
||||||
|
"FK_ProduktBeschreibungZusatz_ProduktBeschreibung";"dbo";"ProduktBeschreibungZusatz";"IDProduktBeschreibung_FS";"dbo";"ProduktBeschreibung";"IDProduktBeschreibung"
|
||||||
|
"FK_ProduktDokument_Produkt";"dbo";"ProduktDokument";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_ProduktSachbearbeiter_Adresse";"dbo";"ProduktSachbearbeiter";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ProduktSachbearbeiter_Produkt";"dbo";"ProduktSachbearbeiter";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_Produkt_ProduktText";"dbo";"ProduktText";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_Qualitaet_ArtFahrplanVersion";"dbo";"Qualitaet";"IDArtFahrplanversion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_QualitaetDefinition_ArtBlockArt";"dbo";"QualitaetDefinition";"IDArtBlockArt_FS";"dbo";"ArtBlockArt";"IDArtBlockArt"
|
||||||
|
"FK_QualitaetDefinition_ArtGruppeVerkehrstag";"dbo";"QualitaetDefinition";"IDArtGruppeVerkehrstag_FS";"dbo";"ArtGruppeVerkehrstag";"IDArtGruppeVerkehrstag"
|
||||||
|
"FK_QualitaetDefinition_Qualitaet";"dbo";"QualitaetDefinition";"IDQualitaet_FS";"dbo";"Qualitaet";"IDQualitaet"
|
||||||
|
"FK_QualitaetDefinitionAuftragsart_Auftragsart";"dbo";"QualitaetDefinitionAuftragsart";"IDAuftragsart_FS";"dbo";"Auftragsart";"IDAuftragsart"
|
||||||
|
"FK_QualitaetDefinitionAuftragsart_Qualitaet";"dbo";"QualitaetDefinitionAuftragsart";"IDQualitaet_FS";"dbo";"Qualitaet";"IDQualitaet"
|
||||||
|
"FK_QualitaetDefinitionFahrzeug_Fahrzeug";"dbo";"QualitaetDefinitionFahrzeug";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_QualitaetDefinitionFahrzeug_Qualitaet";"dbo";"QualitaetDefinitionFahrzeug";"IDQualitaet_FS";"dbo";"Qualitaet";"IDQualitaet"
|
||||||
|
"FK_QualitaetDefinitionLinie_Qualitaet";"dbo";"QualitaetDefinitionLinie";"IDQualitaet_FS";"dbo";"Qualitaet";"IDQualitaet"
|
||||||
|
"FK_QualitaetZuordnung_Qualitaet";"dbo";"QualitaetZuordnung";"IDQualitaet_FS";"dbo";"Qualitaet";"IDQualitaet"
|
||||||
|
"FK_QuittierungAusfahrt_AuftragFahrer";"dbo";"QuittierungAusfahrt";"IDAuftragFahrer_FS";"dbo";"AuftragFahrer";"IDAuftragFahrer"
|
||||||
|
"FK_QuittierungAusfahrt_BlockPlanung";"dbo";"QuittierungAusfahrt";"IDBlockPlanung_FS";"dbo";"BlockPlanung";"IDBlockPlanung"
|
||||||
|
"FK_Rechnung_AdresseAnschrift";"dbo";"Rechnung";"IDAdresseAnschrift_FS";"dbo";"AdresseAnschrift";"IDAdresseAnschrift"
|
||||||
|
"FK_Rechnung_ArtZahlungsart";"dbo";"Rechnung";"IDArtZahlungsart_FS";"dbo";"ArtZahlungsart";"IDArtZahlungsart"
|
||||||
|
"FK_Rechnung_RechnungHaupt";"dbo";"Rechnung";"IDRechnungHaupt_FS";"dbo";"RechnungHaupt";"IDRechnungHaupt"
|
||||||
|
"FK_RechnungBetrag_Rechnung";"dbo";"RechnungBetrag";"IDRechnung_FS";"dbo";"Rechnung";"IDRechnung"
|
||||||
|
"FK_RechnungBetragMahnung_RechnungBetrag";"dbo";"RechnungBetragMahnung";"IdRechnungBetrag_FS";"dbo";"RechnungBetrag";"IDRechnungBetrag"
|
||||||
|
"FK_RechnungBuchung_Buchung";"dbo";"RechnungBuchung";"IDBuchung_FS";"dbo";"Buchung";"IDBuchung"
|
||||||
|
"FK_RechnungBuchung_RechnungHaupt";"dbo";"RechnungBuchung";"IDRechnungHaupt_FS";"dbo";"RechnungHaupt";"IDRechnungHaupt"
|
||||||
|
"FK_RechnungHaupt_Adresse";"dbo";"RechnungHaupt";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_RechnungHaupt_Adresse1";"dbo";"RechnungHaupt";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_RechnungPosten_Rechnung";"dbo";"RechnungPosten";"IDRechnung_FS";"dbo";"Rechnung";"IDRechnung"
|
||||||
|
"FK_RechnungPosten_Teilnehmer_BuchungTNPreis";"dbo";"RechnungPosten_Teilnehmer";"IDBuchungTN_FS";"dbo";"BuchungTNPreis";"IDBuchungTNPreis"
|
||||||
|
"FK_RechnungPosten_Teilnehmer_RechnungPostenBetragTOU";"dbo";"RechnungPosten_Teilnehmer";"IDRechnungPostenBetragTOU_FS";"dbo";"RechnungPostenBetragTOU";"IDRechnungPostenBetragTOU"
|
||||||
|
"FK_RechnungPostenBetragALL_RechnungPosten";"dbo";"RechnungPostenBetragALL";"IDRechnungPosten_FS";"dbo";"RechnungPosten";"IDRechnungPosten"
|
||||||
|
"FK_RechnungPostenBetragTOU_RechnungPosten";"dbo";"RechnungPostenBetragTOU";"IDRechnungPosten_FS";"dbo";"RechnungPosten";"IDRechnungPosten"
|
||||||
|
"FK_RechnungPostenLinieAufteilungTour_RechnungPostenLinieAufteilung";"dbo";"RechnungPostenLinieAufteilungTour";"IDRechnungPostenLinieAufteilung_FS";"dbo";"RechnungPostenLinieAufteilung";"IDRechnungPostenLinieAufteilung"
|
||||||
|
"FK_RechnungPostenMietbusAufteilung_RechnungPostenBetragALL";"dbo";"RechnungPostenMietbusAufteilung";"IDRechnungPostenBetragAll_FS";"dbo";"RechnungPostenBetragALL";"IDRechnungPostenBetragALL"
|
||||||
|
"FK_RechnungSteueraufteilung_Rechnung";"dbo";"RechnungSteueraufteilung";"IDRechnung_FS";"dbo";"Rechnung";"IDRechnung"
|
||||||
|
"FK_ReisabBefoerderung_Reisab";"dbo";"ReisabBefoerderung";"IdReisab_FS";"dbo";"Reisab";"IdReisab"
|
||||||
|
"FK_ReisabLand_Land";"dbo";"ReisabLand";"IdLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_ReisabLand_Reisab";"dbo";"ReisabLand";"IDReisab_FS";"dbo";"Reisab";"IdReisab"
|
||||||
|
"FK_ReisabLeistung_ArtReiseKosten";"dbo";"ReisabLeistung";"IdArtReiseKosten_FS";"dbo";"ArtReiseKosten";"IDArtReiseKosten"
|
||||||
|
"FK_ReisabLeistung_Reisab";"dbo";"ReisabLeistung";"IdReisab_FS";"dbo";"Reisab";"IdReisab"
|
||||||
|
"FK_ReisabReise_Reisab";"dbo";"ReisabReise";"IDReisab_FS";"dbo";"Reisab";"IdReisab"
|
||||||
|
"FK_ReisabReise_Reise";"dbo";"ReisabReise";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReisabUmsatz_Reisab";"dbo";"ReisabUmsatz";"IdReisab_FS";"dbo";"Reisab";"IdReisab"
|
||||||
|
"FK_Reise_Produkt";"dbo";"Reise";"IDProdukt_FS";"dbo";"Produkt";"IDProdukt"
|
||||||
|
"FK_ReiseBeleg_Reise";"dbo";"ReiseBeleg";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseBelegDokument_ReiseBeleg";"dbo";"ReiseBelegDokument";"IDReiseBeleg_FS";"dbo";"ReiseBeleg";"IDReiseBeleg"
|
||||||
|
"FK_ReiseBelegPosten_ReiseBeleg";"dbo";"ReiseBelegPosten";"IDReiseBeleg_FS";"dbo";"ReiseBeleg";"IDReiseBeleg"
|
||||||
|
"FK_ReiseDevise_ArtWaehrung";"dbo";"ReiseDevise";"IDArtWaehrung_FS";"dbo";"ArtWaehrung";"IDArtWaehrung"
|
||||||
|
"FK_ReiseDevise_Reise";"dbo";"ReiseDevise";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseDokument_Reise";"dbo";"ReiseDokument";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseFlexTarif_KonstantenFlexTarif";"dbo";"ReiseFlexTarif";"IDKonstantenFlexTarif_FS";"dbo";"KonstantenFlexTarif";"IDKonstantenFlexTarif"
|
||||||
|
"FK_ReiseFlexTarif_Reise";"dbo";"ReiseFlexTarif";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseGuides_ArtReiseGuides";"dbo";"ReiseGuides";"IDArtReiseGuides_FS";"dbo";"ArtReiseGuides";"IDArtReiseGuides"
|
||||||
|
"FK_ReiseKosten_Reise";"dbo";"ReiseKosten";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseLand_Land";"dbo";"ReiseLand";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_ReiseLand_Reise";"dbo";"ReiseLand";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseLeistung_Leistung";"dbo";"ReiseLeistung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_ReiseLeistung_Reise";"dbo";"ReiseLeistung";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseLeistungGruppe_Reise";"dbo";"ReiseLeistungGruppe";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseLeistungGruppeZuweisung_Leistung";"dbo";"ReiseLeistungGruppeZuweisung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_ReiseLeistungGruppeZuweisung_ReiseLeistungGruppe";"dbo";"ReiseLeistungGruppeZuweisung";"IDReiseLeistungGruppe_FS";"dbo";"ReiseLeistungGruppe";"IDReiseLeistungGruppe"
|
||||||
|
"FK_ReiseleiterAbrechnung_Adresse";"dbo";"ReiseleiterAbrechnung";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseleiterAbrechnung_Reise";"dbo";"ReiseleiterAbrechnung";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseleiterAbrechnung_ReiseleiterZuordnungStamm";"dbo";"ReiseleiterAbrechnung";"IDReiseleiterZuordnungStamm_FS";"dbo";"ReiseleiterZuordnungStamm";"IDReiseleiterZuordnungStamm"
|
||||||
|
"FK_ReiseleiterAbrechnungPosten_ReiseleiterAbrechnung";"dbo";"ReiseleiterAbrechnungPosten";"IDReiseleiterAbrechnung_FS";"dbo";"ReiseleiterAbrechnung";"IDReiseleiterAbrechnung"
|
||||||
|
"FK_ReiseleiterAbrechnungPosten_ReiseleiterPosten";"dbo";"ReiseleiterAbrechnungPosten";"IDReiseleiterPosten_FS";"dbo";"ReiseleiterPosten";"IDReiseleiterPosten"
|
||||||
|
"FK_ReiseleiterAbrechnungSpesen_ArtSpesenVerpflegung";"dbo";"ReiseleiterAbrechnungSpesen";"IDArtSpesenVerpflegung_FS";"dbo";"ArtSpesenVerpflegung";"IDArtSpesenVerpflegung"
|
||||||
|
"FK_ReiseleiterAbrechnungSpesen_ReiseleiterAbrechnung";"dbo";"ReiseleiterAbrechnungSpesen";"IDReiseleiterAbrechnung_FS";"dbo";"ReiseleiterAbrechnung";"IDReiseleiterAbrechnung"
|
||||||
|
"FK_ReiseleiterAbrechnungZuAbschlag_ReiseleiterAbrechnung";"dbo";"ReiseleiterAbrechnungZuAbschlag";"IDReiseleiterAbrechnung_FS";"dbo";"ReiseleiterAbrechnung";"IDReiseleiterAbrechnung"
|
||||||
|
"FK_ReiseleiterAbrVergütungStaffel_ReiseleiterAbrVergütungStamm1";"dbo";"ReiseleiterAbrVergütungStaffel";"IDReiseleiterAbrVergütungStamm_FS";"dbo";"ReiseleiterAbrVergütungStamm";"IDReiseleiterAbrVergütungStamm"
|
||||||
|
"FK_ReiseleiterAbrVergütungStaffelAnAbreise_ReiseleiterAbrVergütungStamm";"dbo";"ReiseleiterAbrVergütungStaffelAnAbreise";"IDReiseleiterAbrVergütungStamm_FS";"dbo";"ReiseleiterAbrVergütungStamm";"IDReiseleiterAbrVergütungStamm"
|
||||||
|
"FK_ReiseleiterArbeitszeit_ReiseleiterZuordnungReiseleiter";"dbo";"ReiseleiterArbeitszeit";"IDReiseleiterZuordnungReiseleiter_FS";"dbo";"ReiseleiterZuordnungReiseleiter";"IDReiseleiterZuordnungReiseleiter"
|
||||||
|
"FK_ReiseleiterHonorarStaffel_Adresse";"dbo";"ReiseleiterHonorarStaffel";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseleiterHonorarStaffel_ArtReiseleiterHonorar";"dbo";"ReiseleiterHonorarStaffel";"IDArtReiseleiterHonorar_FS";"dbo";"ArtReiseleiterHonorar";"IDArtReiseleiterHonorar"
|
||||||
|
"FK_ReiseleiterSelektionen_Adresse";"dbo";"ReiseleiterSelektionen";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseleiterSelektionen_Selektionsstamm";"dbo";"ReiseleiterSelektionen";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_ReiseleiterSpesenBetrag_ArtSpesenLand";"dbo";"ReiseleiterSpesenBetrag";"IDArtSpesenLand_FS";"dbo";"ArtSpesenLand";"IDArtSpesenLand"
|
||||||
|
"FK_ReiseleiterSpesenBetrag_ReiseleiterSpesenStaffel";"dbo";"ReiseleiterSpesenBetrag";"IDReiseleiterSpesenStaffel_FS";"dbo";"ReiseleiterSpesenStaffel";"IDReiseleiterSpesenStaffel"
|
||||||
|
"FK_ReiseleiterStamm_Adresse";"dbo";"ReiseleiterStamm";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseleiterWunschReise_Adresse";"dbo";"ReiseleiterWunschReise";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseleiterWunschReise_Reise";"dbo";"ReiseleiterWunschReise";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseleiterZuordnungReiseleiter_Adresse1";"dbo";"ReiseleiterZuordnungReiseleiter";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseleiterZuordnungReiseleiter_ReiseleiterZuordnungStamm";"dbo";"ReiseleiterZuordnungReiseleiter";"IDReiseleiterZuordnungStamm_FS";"dbo";"ReiseleiterZuordnungStamm";"IDReiseleiterZuordnungStamm"
|
||||||
|
"FK_ReiseleiterZuordnungZusatzleistung_Leistung";"dbo";"ReiseleiterZuordnungZusatzleistung";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_ReiseleiterZuordnungZusatzleistung_ReiseleiterZuordnungReiseleiter";"dbo";"ReiseleiterZuordnungZusatzleistung";"IDReiseleiterZuordnungReiseleiter_FS";"dbo";"ReiseleiterZuordnungReiseleiter";"IDReiseleiterZuordnungReiseleiter"
|
||||||
|
"FK_ReiseListenVersand_ArtListenart";"dbo";"ReiseListenVersand";"IdArtListenart_FS";"dbo";"ArtListenart";"IDArtListenArt"
|
||||||
|
"FK_ReiseListenVersand_ArtListenart1";"dbo";"ReiseListenVersand";"IdArtListenart_FS";"dbo";"ArtListenart";"IDArtListenArt"
|
||||||
|
"FK_ReiseListenVersand_DruckEinstellungEMail";"dbo";"ReiseListenVersand";"IdDruckeinstellungEmail_FS";"dbo";"DruckEinstellungEMail";"IDDruckEinstellungEMail"
|
||||||
|
"FK_ReiseListenVersand_Reise";"dbo";"ReiseListenVersand";"IdReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReisePartner_Adresse";"dbo";"ReisePartner";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReisePartner_ArtVerpflegung";"dbo";"ReisePartner";"IDArtVerpflegung_FS";"dbo";"ArtVerpflegung";"IDArtVerpflegung"
|
||||||
|
"FK_ReisePartner_Reise";"dbo";"ReisePartner";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReisePersonalZimmer_Reise";"dbo";"ReisePersonalZimmer";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReisePersonalZimmer_Zimmerart";"dbo";"ReisePersonalZimmer";"IDZimmerart_FS";"dbo";"Zimmerart";"IDZimmerart"
|
||||||
|
"FK_ReiseSelektionen_Reise";"dbo";"ReiseSelektionen";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseSelektionen_Selektionsstamm";"dbo";"ReiseSelektionen";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_ReiseSitzplan_Reise";"dbo";"ReiseSitzplan";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseSitzplan_Sitzplan";"dbo";"ReiseSitzplan";"IDSitzplan_FS";"dbo";"Sitzplan";"IDSitzplan"
|
||||||
|
"FK_ReiseSitzplatzPreis_ArtSitzplatzKategorie";"dbo";"ReiseSitzplatzPreis";"IDArtSitzplatzKategorie_FS";"dbo";"ArtSitzplatzKategorie";"IDArtSitzplatzKategorie"
|
||||||
|
"FK_ReiseSitzplatzPreis_Reise";"dbo";"ReiseSitzplatzPreis";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseStatistik_Reise";"dbo";"ReiseStatistik";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseStatistikVertrieb_ReiseStatistik";"dbo";"ReiseStatistikVertrieb";"IDReiseStatistik_FS";"dbo";"ReiseStatistik";"IDReiseStatistik"
|
||||||
|
"FK_ReiseStatus_Reise";"dbo";"ReiseStatus";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseStatusBuchhaltung_ArtReiseStatusBuchhaltung";"dbo";"ReiseStatusBuchhaltung";"IDArtReiseStatusBuchhaltung_FS";"dbo";"ArtReiseStatusBuchhaltung";"IDArtReiseStatusBuchhaltung"
|
||||||
|
"FK_ReiseStatusBuchhaltung_Reise";"dbo";"ReiseStatusBuchhaltung";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_Reise_ReiseText";"dbo";"ReiseText";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseTextbaustein_Reise";"dbo";"ReiseTextbaustein";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseTextbaustein_Textbaustein";"dbo";"ReiseTextbaustein";"IDTextbaustein_FS";"dbo";"Textbaustein";"IDTextbaustein"
|
||||||
|
"FK_ReiseTextbausteinAbwJeMandant_Mandant";"dbo";"ReiseTextbausteinAbwJeMandant";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseTextbausteinAbwJeMandant_Reise";"dbo";"ReiseTextbausteinAbwJeMandant";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseTextbausteinAbwJeMandant_Textbaustein";"dbo";"ReiseTextbausteinAbwJeMandant";"IDTextbaustein_FS";"dbo";"Textbaustein";"IDTextbaustein"
|
||||||
|
"FK_Reiseunterlage_Reise";"dbo";"Reiseunterlage";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_Reiseunterlage_ReiseunterlagenBaustein";"dbo";"Reiseunterlage";"IDReiseunterlagenBaustein_FS";"dbo";"ReiseunterlagenBaustein";"IDReiseunterlagenBaustein"
|
||||||
|
"FK_ReiseunterlageInhalt_Reiseunterlage";"dbo";"ReiseunterlageInhalt";"IDReiseunterlage_FS";"dbo";"Reiseunterlage";"IDReiseunterlage"
|
||||||
|
"FK_ReiseunterlagenBaustein_ReiseunterlagenBausteinTyp";"dbo";"ReiseunterlagenBaustein";"IDReiseunterlagenBausteinTyp_FS";"dbo";"ReiseunterlagenBausteinTyp";"IDReiseunterlagenBausteinTyp"
|
||||||
|
"FK_ReiseunterlagenBausteinBedingung_ReiseunterlagenBaustein";"dbo";"ReiseunterlagenBausteinBedingung";"IDReiseunterlagenBaustein_FS";"dbo";"ReiseunterlagenBaustein";"IDReiseunterlagenBaustein"
|
||||||
|
"FK_ReiseunterlagenBausteinBedingung_ReiseunterlagenBedingung";"dbo";"ReiseunterlagenBausteinBedingung";"IDReiseunterlagenBedingung_FS";"dbo";"ReiseunterlagenBedingung";"IDReiseunterlagenBedingung"
|
||||||
|
"FK_ReiseunterlagenBausteinInhalt_ReiseunterlagenBaustein";"dbo";"ReiseunterlagenBausteinInhalt";"IDReiseunterlagenBaustein_FS";"dbo";"ReiseunterlagenBaustein";"IDReiseunterlagenBaustein"
|
||||||
|
"FK_ReiseunterlagenVorlageBaustein_ReiseunterlagenBaustein";"dbo";"ReiseunterlagenVorlageBaustein";"IDReiseUnterlagenBaustein_FS";"dbo";"ReiseunterlagenBaustein";"IDReiseunterlagenBaustein"
|
||||||
|
"FK_ReiseunterlagenVorlageBaustein_ReiseunterlagenVorlage";"dbo";"ReiseunterlagenVorlageBaustein";"IDReiseUnterlagenVorlage_FS";"dbo";"ReiseunterlagenVorlage";"IDReiseUnterlagenVorlage"
|
||||||
|
"FK_ReiseunterlagenVorlageInhalt_ReiseunterlagenVorlage";"dbo";"ReiseunterlagenVorlageInhalt";"IDReiseunterlagenVorlage_FS";"dbo";"ReiseunterlagenVorlage";"IDReiseUnterlagenVorlage"
|
||||||
|
"FK_ReiseVersicherungsGruppe_ArtVersicherungsGruppe";"dbo";"ReiseVersicherungsGruppe";"IDArtVersicherungsGruppe_FS";"dbo";"ArtVersicherungsGruppe";"IDArtVersicherungsGruppe"
|
||||||
|
"FK_ReiseVersicherungsGruppe_Reise";"dbo";"ReiseVersicherungsGruppe";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseVerwendung_Reise";"dbo";"ReiseVerwendung";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseVplDokument_Dokument";"dbo";"ReiseVplDokument";"IdDokument_FS";"dbo";"Dokument";"IDDokument"
|
||||||
|
"FK_ReiseVplDokument_ReiseVpl";"dbo";"ReiseVplDokument";"IdReiseVpl_FS";"dbo";"ReiseVpl";"IdReiseVpl"
|
||||||
|
"FK_ReiseVplKdVormerkung_ReiseVpl";"dbo";"ReiseVplKdVormerkung";"IdReiseVpl_FS";"dbo";"ReiseVpl";"IdReiseVpl"
|
||||||
|
"FK_ReiseVplPartner_ReiseVpl";"dbo";"ReiseVplPartner";"IdReiseVpl_FS";"dbo";"ReiseVpl";"IdReiseVpl"
|
||||||
|
"FK_ReiseVplPartnerDokument_Dokument";"dbo";"ReiseVplPartnerDokument";"IdDokument_FS";"dbo";"Dokument";"IDDokument"
|
||||||
|
"FK_ReiseVplPartnerDokument_ReiseVplPartner";"dbo";"ReiseVplPartnerDokument";"IdReiseVplPartner_FS";"dbo";"ReiseVplPartner";"IdReiseVplPartner"
|
||||||
|
"FK_ReiseVplPartnerStatus_ArtReiseVplPartnerStatus";"dbo";"ReiseVplPartnerStatus";"IDArtReiseVplPartnerStatus_FS";"dbo";"ArtReiseVplPartnerStatus";"IDArtReiseVplPartnerStatus"
|
||||||
|
"FK_ReiseVplPartnerStatus_ReiseVplPartner";"dbo";"ReiseVplPartnerStatus";"IDReiseVplPartner_FS";"dbo";"ReiseVplPartner";"IdReiseVplPartner"
|
||||||
|
"FK_ReiseVplStatus_ArtReiseVplStatus";"dbo";"ReiseVplStatus";"IDArtReiseVplStatus_FS";"dbo";"ArtReiseVplStatus";"IDArtReiseVplStatus"
|
||||||
|
"FK_ReiseVplStatus_ReiseVpl";"dbo";"ReiseVplStatus";"IDReiseVpl_FS";"dbo";"ReiseVpl";"IdReiseVpl"
|
||||||
|
"FK_ReiseVplVerwendung_ReiseVpl";"dbo";"ReiseVplVerwendung";"IDReiseVpl_FS";"dbo";"ReiseVpl";"IdReiseVpl"
|
||||||
|
"FK_ReiseWerbeplanung_Reise";"dbo";"ReiseWerbeplanung";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReisezielSelektionsstamm_Reiseziel";"dbo";"ReisezielSelektionsstamm";"IDReiseziel_FS";"dbo";"Reiseziel";"IDReiseziel"
|
||||||
|
"FK_ReisezielSelektionsstamm_Selektionsstamm";"dbo";"ReisezielSelektionsstamm";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_ReiseZusatz_ArtAgenturPreisgruppe";"dbo";"ReiseZusatz";"IDArtAgenturPreisgruppe_FS";"dbo";"ArtAgenturPreisgruppe";"IDArtAgenturPreisgruppe"
|
||||||
|
"FK_ReiseZusatz_Reise";"dbo";"ReiseZusatz";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReiseZusatzAbwJeMandant_Adresse";"dbo";"ReiseZusatzAbwJeMandant";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ReiseZusatzAbwJeMandant_Reise";"dbo";"ReiseZusatzAbwJeMandant";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ReparaturAuftragZusatz_ReparaturAuftrag";"dbo";"ReparaturAuftragZusatz";"IDReparaturAuftrag_FS";"dbo";"Reparaturauftrag";"IDReparaturauftrag"
|
||||||
|
"FK_Rollsystem_ArtFahrplanVersion";"dbo";"Rollsystem";"IDArtFahrplanversion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_RollsystemBlock_Block";"dbo";"RollsystemBlock";"IDBlock_FS";"dbo";"Block";"IDBlock"
|
||||||
|
"FK_RollsystemBlock_RollsystemFahrerFahrzeug";"dbo";"RollsystemBlock";"IDRollsystemFahrerFahrzeug_FS";"dbo";"RollsystemFahrerFahrzeug";"IDRollsystemFahrerFahrzeug"
|
||||||
|
"FK_RollsystemFahrerFahrzeug_Rollsystem";"dbo";"RollsystemFahrerFahrzeug";"IDRollsystem_FS";"dbo";"Rollsystem";"IDRollsystem"
|
||||||
|
"FK_RollsystemFerien_Rollsystem";"dbo";"RollsystemFerien";"IDRollsystem_FS";"dbo";"Rollsystem";"IDRollsystem"
|
||||||
|
"FK_RollsystemPerkap_ArtPersonalkapazitaet";"dbo";"RollsystemPerkap";"IDArtPersonalkapazitaet_FS";"dbo";"ArtPersonalkapazitaet";"IDArtPersonalkapazitaet"
|
||||||
|
"FK_RollsystemPerkap_RollsystemFahrerFahrzeug";"dbo";"RollsystemPerkap";"IDRollsystemFahrerFahrzeug_FS";"dbo";"RollsystemFahrerFahrzeug";"IDRollsystemFahrerFahrzeug"
|
||||||
|
"FK_RsbVeransAnzahlung_RsbVerans";"dbo";"RsbVeransAnzahlung";"IDRsbVerans_FS";"dbo";"RsbVerans";"IDRsbVeranstalter"
|
||||||
|
"FK_RsbVeransZusatz_RsbVerans";"dbo";"RsbVeransZusatz";"IDRsbVerans_FS";"dbo";"RsbVerans";"IDRsbVeranstalter"
|
||||||
|
"FK_Rufbus_FPLinieFahrt";"dbo";"Rufbus";"IDFPLinieFahrt_FS";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_Rufbus_FPLinieHaltestelleZeitartNach";"dbo";"Rufbus";"FPLinieHaltestelleZeitart_FS_Nach";"dbo";"FPLinieHaltestelleZeitart";"IDFPLinieHaltestelleZeitart"
|
||||||
|
"FK_Rufbus_FPLinieHaltestelleZeitartVon";"dbo";"Rufbus";"FPLinieHaltestelleZeitart_FS_Von";"dbo";"FPLinieHaltestelleZeitart";"IDFPLinieHaltestelleZeitart"
|
||||||
|
"FK_Rufbus_Haltepunkt_Nach";"dbo";"Rufbus";"IDHaltepunkt_FS_Nach";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_Rufbus_Haltepunkt_Von";"dbo";"Rufbus";"IDHaltepunkt_FS_Von";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_Rufbus_Haltestelle_Nach";"dbo";"Rufbus";"IDHaltestelle_FS_Nach";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_Rufbus_Haltestelle_Von";"dbo";"Rufbus";"IDHaltestelle_FS_Von";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_Rufbus_Linie";"dbo";"Rufbus";"IDFPLinie_FS";"dbo";"FPLinie";"IDFPLinie"
|
||||||
|
"FK_SaisonZeit_SaisonBezeichnung";"dbo";"SaisonZeit";"IDSaisonBezeichnung_FS";"dbo";"SaisonBezeichnung";"IDSaisonBezeichnung"
|
||||||
|
"FK_SchiffsDeck_Schiff";"dbo";"SchiffsDeck";"IDSchiff_FS";"dbo";"Schiff";"IDSchiff"
|
||||||
|
"FK_SchiffsKabine_SchiffsDeck";"dbo";"SchiffsKabine";"IDSchiffsDeck_FS";"dbo";"SchiffsDeck";"IDSchiffsDeck"
|
||||||
|
"FK_Schule_Schulamt";"dbo";"Schule";"IDSchulamt_FS";"dbo";"Schulamt";"IDSchulamt"
|
||||||
|
"FK_Adresse_Selektion";"dbo";"Selektionen";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Selektionsstamm_Selektion";"dbo";"Selektionen";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_Selektionsgruppenstamm_Selektionsgruppe";"dbo";"Selektionsgruppe";"IDSelektionsgruppenstamm_FS";"dbo";"Selektionsgruppenstamm";"IDSelektionsgruppenstamm"
|
||||||
|
"FK_Selektionsstamm_Selektionsgruppe";"dbo";"Selektionsgruppe";"IDSelektionsstamm_FS";"dbo";"Selektionsstamm";"IDSelektionsstamm"
|
||||||
|
"FK_Sitzplan_Sitzplanobjekt";"dbo";"Sitzplanobjekt";"IDSitzplan_FS";"dbo";"Sitzplan";"IDSitzplan"
|
||||||
|
"FK_Sperrung_Adresse";"dbo";"Sperrung";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Sperrung_ArtSperrartFahrer";"dbo";"Sperrung";"IDArtSperrartFahrer_FS";"dbo";"ArtSperrartFahrer";"IDArtSperrartFahrer"
|
||||||
|
"FK_Sperrung_ArtSperrartFahrzeug";"dbo";"Sperrung";"IDArtSperrartFahrzeug_FS";"dbo";"ArtSperrartFahrzeug";"IDArtSperrartFahrzeug"
|
||||||
|
"FK_Sperrung_ArtSperrKategorie";"dbo";"Sperrung";"IDArtSperrKategorie_FS";"dbo";"ArtSperrKategorie";"IDArtSperrKategorie"
|
||||||
|
"FK_Sperrung_Fahrzeug";"dbo";"Sperrung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_SperrungSperrStatus_ArtSperrStatus";"dbo";"SperrungSperrStatus";"IDArtSperrStatus_FS";"dbo";"ArtSperrStatus";"IDArtSperrStatus"
|
||||||
|
"FK_SperrungSperrStatus_Sperrung";"dbo";"SperrungSperrStatus";"IDSperrung_FS";"dbo";"Sperrung";"IDSperrung"
|
||||||
|
"FK_Spesen_Adresse";"dbo";"Spesen";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Spesen_ArtSpesen";"dbo";"Spesen";"IDArtSpesen_FS";"dbo";"ArtSpesen";"IDArtSpesen"
|
||||||
|
"FK_SpracheMaskeModul_Programmmodul";"dbo";"SpracheMaskeModul";"IDProgrammmodul_FS";"dbo";"Programmmodul";"IDProgrammmodul"
|
||||||
|
"FK_SpracheMaskeText_SpracheMaske";"dbo";"SpracheMaskeText";"IDSpracheMaske_FS";"dbo";"SpracheMaske";"IDSpracheMaske"
|
||||||
|
"FK_SteueraufteilungDetail_Land";"dbo";"SteueraufteilungDetail";"IDLand_FS";"dbo";"Land";"IDLand"
|
||||||
|
"FK_SteueraufteilungDetail_SteueraufteilungArt";"dbo";"SteueraufteilungDetail";"IDSteueraufteilungArt_FS";"dbo";"SteueraufteilungArt";"IDSteueraufteilungArt"
|
||||||
|
"FK_SteueraufteilungDetail_SteueraufteilungUnterart";"dbo";"SteueraufteilungDetail";"IDSteueraufteilungUnterart_FS";"dbo";"SteueraufteilungUnterart";"IDSteueraufteilungUnterart"
|
||||||
|
"FK_SteueraufteilungDetailArtVerpflegung_ArtVerpflegung";"dbo";"SteueraufteilungDetailArtVerpflegung";"IDArtVerpflegung_FS";"dbo";"ArtVerpflegung";"IDArtVerpflegung"
|
||||||
|
"FK_SteueraufteilungDetailArtVerpflegung_SteueraufteilungDetail";"dbo";"SteueraufteilungDetailArtVerpflegung";"IDSteueraufteilungDetail_FS";"dbo";"SteueraufteilungDetail";"IDSteueraufteilungDetail"
|
||||||
|
"FK_SteueraufteilungUnterart_SteueraufteilungArt";"dbo";"SteueraufteilungUnterart";"IDSteueraufteilungArt_FS";"dbo";"SteueraufteilungArt";"IDSteueraufteilungArt"
|
||||||
|
"FK_Tachostand_Fahrzeug";"dbo";"Tachostand";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_Tachostand_TachostandImportEinstellung";"dbo";"Tachostand";"IDTachostandImportEinstellung_FS";"dbo";"TachostandImportEinstellung";"IDTachostandImportEinstellung"
|
||||||
|
"FK_Tankerfassung_ArtBetankung";"dbo";"Tankerfassung";"IDArtBetankung_FS";"dbo";"ArtBetankung";"IDArtBetankung"
|
||||||
|
"FK_Tankerfassung_ArtKarftstoffart";"dbo";"Tankerfassung";"IDArtKraftstoffart_FS";"dbo";"ArtKraftstoffart";"IDArtKraftstoffart"
|
||||||
|
"FK_Tankerfassung_Fahrzeug";"dbo";"Tankerfassung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_Tankerfassung_TankimportEinstellung";"dbo";"Tankerfassung";"IDTankimportEinstellung_FS";"dbo";"TankimportEinstellung";"IDTankimportEinstellung"
|
||||||
|
"FK_TankimportEinstellung_ArtBetankung";"dbo";"TankimportEinstellung";"IDArtBetankung_FS";"dbo";"ArtBetankung";"IDArtBetankung"
|
||||||
|
"FK_TankimportEinstellungArtBetankung_ArtBetankung";"dbo";"TankimportEinstellungArtBetankung";"IDArtBetankung_FS";"dbo";"ArtBetankung";"IDArtBetankung"
|
||||||
|
"FK_TankimportEinstellungArtBetankung_TankimportEinstellung";"dbo";"TankimportEinstellungArtBetankung";"IDTankimportEinstellung_FS";"dbo";"TankimportEinstellung";"IDTankimportEinstellung"
|
||||||
|
"FK_TankimportEinstellungKraftstoff_ArtKraftstoffart";"dbo";"TankimportEinstellungKraftstoff";"IDArtKraftstoffart_FS";"dbo";"ArtKraftstoffart";"IDArtKraftstoffart"
|
||||||
|
"FK_TankimportEinstellungKraftstoff_TankimportEinstellung";"dbo";"TankimportEinstellungKraftstoff";"IDTankimportEinstellung_FS";"dbo";"TankimportEinstellung";"IDTankimportEinstellung"
|
||||||
|
"FK_TaxiPartner_Adresse";"dbo";"TaxiPartner";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_TaxiPartnerKosten_TaxiPartner";"dbo";"TaxiPartnerKosten";"IDTaxiPartner_FS";"dbo";"TaxiPartner";"IDTaxiPartner"
|
||||||
|
"FK_TaxiPartnerMapGuide_TaxiPartner";"dbo";"TaxiPartnerMapGuide";"IDTaxiPartner_FS";"dbo";"TaxiPartner";"IDTaxiPartner"
|
||||||
|
"FK_TaxiPartnerZustieg_Adresse";"dbo";"TaxiPartnerZustieg";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_TaxiPartnerZustieg_Zustieg";"dbo";"TaxiPartnerZustieg";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_TerminalFreigabe_ArtTerminalFreigabe";"dbo";"TerminalFreigabe";"IDArtTerminalFreigabe_FS";"dbo";"ArtTerminalFreigabe";"IDArtTerminalFreigabe"
|
||||||
|
"FK_TerminalFreigabeArtBetriebshof_ArtBetriebshof";"dbo";"TerminalFreigabeArtBetriebshof";"IDArtBetriebshof_FS";"dbo";"ArtBetriebshof";"IDArtBetriebshof"
|
||||||
|
"FK_TerminalProtokoll_Adresse";"dbo";"TerminalProtokoll";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_TerminArtSachbearbeiter_Adresse";"dbo";"TerminArtSachbearbeiter";"IDAdresse_FS_Personal";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_TerminArtSachbearbeiter_TerminArt";"dbo";"TerminArtSachbearbeiter";"IDTerminArt_FS";"dbo";"TerminArt";"IDTerminArt"
|
||||||
|
"FK_TerminKetteAbfolge_TerminKette";"dbo";"TerminKetteAbfolge";"IDTerminArt_FS";"dbo";"TerminArt";"IDTerminArt"
|
||||||
|
"FK_TerminKetteAbfolge_TerminKette1";"dbo";"TerminKetteAbfolge";"IDTerminKette_FS";"dbo";"TerminKette";"IDTerminKette"
|
||||||
|
"FK_TerminSachbearbeiter_Termin";"dbo";"TerminSachbearbeiter";"IDTermin_FS";"dbo";"Termin";"IDTermin"
|
||||||
|
"FK_Tour_ArtFahrplanVersion";"dbo";"Tour";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_Tour_ArtStatistikGruppe";"dbo";"Tour";"IDArtStatistikgruppe_FS_Haupt";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_Tour_FPLinieFahrt";"dbo";"Tour";"IDFPLinieFahrt_FS";"dbo";"FPLinieFahrt";"IDFPLinieFahrt"
|
||||||
|
"FK_Tour_Haltepunkt_Anfang";"dbo";"Tour";"IDHaltepunkt_FS_Anfang";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_Tour_Haltepunkt_Ende";"dbo";"Tour";"IDHaltepunkt_FS_Ende";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_Tour_Haltestelle_Anfang";"dbo";"Tour";"IDHaltestelle_FS_Anfang";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_Tour_Haltestelle_Ende";"dbo";"Tour";"IDHaltestelle_FS_Ende";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_Tour_Ort_Anfang";"dbo";"Tour";"IDOrt_FS_Anfang";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_Tour_Ort_Ende";"dbo";"Tour";"IDOrt_FS_Ende";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_TourFahrzeugtyp_ArtFahrzeugTypen";"dbo";"TourFahrzeugtyp";"IDArtFahrzeugTypen_FS";"dbo";"ArtFahrzeugTypen";"IDArtFahrzeugTypen"
|
||||||
|
"FK_TourFahrzeugtyp_Tour";"dbo";"TourFahrzeugtyp";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourFerienFeier_Tour";"dbo";"TourFerienFeier";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourHaltestelleHaltepunkt_Haltepunkt";"dbo";"TourHaltestelleHaltepunkt";"IDHaltepunkt_FS";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_TourHaltestelleHaltepunkt_Haltestelle";"dbo";"TourHaltestelleHaltepunkt";"IDHaltestelle_FS";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_TourHaltestelleHaltepunkt_Tour";"dbo";"TourHaltestelleHaltepunkt";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourKreisGebiet_ArtKreisGebiet";"dbo";"TourKreisGebiet";"IDArtKreisGebiet_FS";"dbo";"ArtKreisGebiet";"IDArtKreisGebiet"
|
||||||
|
"FK_TourKreisGebiet_Tour";"dbo";"TourKreisGebiet";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourLaufzeit_TourLaufzeit";"dbo";"TourLaufzeit";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourPlanung_Adresse";"dbo";"TourPlanung";"IDAdresse_FS_Fahrer";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_TourPlanung_Adresse2";"dbo";"TourPlanung";"LoeschenManuellIDAdresse_FS_SB";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_TourPlanung_ArtFahrplanVersion";"dbo";"TourPlanung";"IDArtFahrplanVersion_FS";"dbo";"ArtFahrplanVersion";"IDArtFahrplanVersion"
|
||||||
|
"FK_TourPlanung_ArtStatistikGruppe";"dbo";"TourPlanung";"IDArtStatistikgruppe_FS_Haupt";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_TourPlanung_BlockPlanung";"dbo";"TourPlanung";"IDBlockPlanung_FS";"dbo";"BlockPlanung";"IDBlockPlanung"
|
||||||
|
"FK_TourPlanung_Fahrzeug";"dbo";"TourPlanung";"IDFahrzeug_FS";"dbo";"Fahrzeug";"IDFahrzeug"
|
||||||
|
"FK_Tourplanung_Haltepunkt_Anfang";"dbo";"TourPlanung";"IDHaltepunkt_FS_Anfang";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_Tourplanung_Haltepunkt_Ende";"dbo";"TourPlanung";"IDHaltepunkt_FS_Ende";"dbo";"Haltepunkt";"IDHaltepunkt"
|
||||||
|
"FK_Tourplanung_Haltestelle_Anfang";"dbo";"TourPlanung";"IDHaltestelle_FS_Anfang";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_Tourplanung_Haltestelle_Ende";"dbo";"TourPlanung";"IDHaltestelle_FS_Ende";"dbo";"Haltestelle";"IDHaltestelle"
|
||||||
|
"FK_TourPlanung_Ort_Anfang";"dbo";"TourPlanung";"IDOrt_FS_Anfang";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_TourPlanung_Ort_Ende";"dbo";"TourPlanung";"IDOrt_FS_Ende";"dbo";"Ort";"IDOrt"
|
||||||
|
"FK_TourPlanung_Tour";"dbo";"TourPlanung";"IDTour_FS_Basis";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourPlanungFahrzeugtyp_ArtFahrzeugTypen";"dbo";"TourPlanungFahrzeugtyp";"IDArtFahrzeugTypen_FS";"dbo";"ArtFahrzeugTypen";"IDArtFahrzeugTypen"
|
||||||
|
"FK_TourPlanungFahrzeugtyp_TourPlanung";"dbo";"TourPlanungFahrzeugtyp";"IDTourPlanung_FS";"dbo";"TourPlanung";"IDTourPlanung"
|
||||||
|
"FK_TourPlanungKreisGebiet_ArtKreisGebiet";"dbo";"TourPlanungKreisGebiet";"IDArtKreisGebiet_FS";"dbo";"ArtKreisGebiet";"IDArtKreisGebiet"
|
||||||
|
"FK_TourPlanungKreisGebiet_TourPlanung";"dbo";"TourPlanungKreisGebiet";"IDTourPlanung_FS";"dbo";"TourPlanung";"IDTourPlanung"
|
||||||
|
"FK_TourPlanungStatistik_ArtStatistikGruppe";"dbo";"TourPlanungStatistik";"IDArtStatistikGruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_TourPlanungStatistik_TourPlanung";"dbo";"TourPlanungStatistik";"IDTourPlanung_FS";"dbo";"TourPlanung";"IDTourPlanung"
|
||||||
|
"FK_TourPlanungZusatz_TourPlanung";"dbo";"TourPlanungZusatz";"IDTourPlanung_FS";"dbo";"TourPlanung";"IDTourPlanung"
|
||||||
|
"FK_TourStatistik_ArtStatistikGruppe";"dbo";"TourStatistik";"IDArtStatistikGruppe_FS";"dbo";"ArtStatistikGruppe";"IDArtStatistikGruppe"
|
||||||
|
"FK_TourStatistik_Tour";"dbo";"TourStatistik";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourWochentyp_ArtWochentyp";"dbo";"TourWochentyp";"IDArtWochentyp_FS";"dbo";"ArtWochentyp";"IDArtWochentyp"
|
||||||
|
"FK_TourWochentyp_Tour";"dbo";"TourWochentyp";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourZeitraum_ArtLaufzeitschema";"dbo";"TourZeitraum";"IDArtLaufzeitschema_FS";"dbo";"ArtLaufzeitschema";"IDArtLaufzeitschema"
|
||||||
|
"FK_TourZeitraum_Tour";"dbo";"TourZeitraum";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_TourZusatz_Tour";"dbo";"TourZusatz";"IDTour_FS";"dbo";"Tour";"IDTour"
|
||||||
|
"FK_UserStartmenue_Adresse";"dbo";"UserStartmenue";"IDAdresse_FS";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_UserStartmenue_Programmmodul";"dbo";"UserStartmenue";"IDProgrammmodul_FS";"dbo";"Programmmodul";"IDProgrammmodul"
|
||||||
|
"FK_VorplanungRasterAblauf_VorplanungRaster";"dbo";"VorplanungRasterAblauf";"IDVorplanungRaster_FS";"dbo";"VorplanungRaster";"IDVorplanungRaster"
|
||||||
|
"FK_VorplanungRasterAblaufAbwPartner_Adresse";"dbo";"VorplanungRasterAblaufAbwPartner";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_VorplanungRasterAblaufAbwPartner_VorplanungRasterAblauf";"dbo";"VorplanungRasterAblaufAbwPartner";"IDVorplanungRasterAblauf_FS";"dbo";"VorplanungRasterAblauf";"IDVorplanungRasterAblauf"
|
||||||
|
"FK_VorplanungRasterAblaufAbwPartner_VorplanungRasterTermin";"dbo";"VorplanungRasterAblaufAbwPartner";"IDVorplanungRasterTermin_FS";"dbo";"VorplanungRasterTermin";"IDVorplanungRasterTermin"
|
||||||
|
"FK_VorplanungRasterAblaufStatus_Adresse";"dbo";"VorplanungRasterAblaufStatus";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_VorplanungRasterAblaufStatus_ArtReiseVplPartnerStatus";"dbo";"VorplanungRasterAblaufStatus";"IDArtReiseVplPartnerStatus_FS";"dbo";"ArtReiseVplPartnerStatus";"IDArtReiseVplPartnerStatus"
|
||||||
|
"FK_VorplanungRasterAblaufStatus_VorplanungRasterAblauf";"dbo";"VorplanungRasterAblaufStatus";"IDVorplanungRasterAblauf_FS";"dbo";"VorplanungRasterAblauf";"IDVorplanungRasterAblauf"
|
||||||
|
"FK_VorplanungRasterAblaufStatus_VorplanungRasterTermin";"dbo";"VorplanungRasterAblaufStatus";"IDVorplanungRasterTermin_FS";"dbo";"VorplanungRasterTermin";"IDVorplanungRasterTermin"
|
||||||
|
"FK_VorplanungRasterAblaufZusatz_VorplanungRasterAblauf";"dbo";"VorplanungRasterAblaufZusatz";"IDVorplanungRasterAblauf_FS";"dbo";"VorplanungRasterAblauf";"IDVorplanungRasterAblauf"
|
||||||
|
"FK_VorplanungRasterBemerkung_VorplanungRaster";"dbo";"VorplanungRasterBemerkung";"IDVorplanungRaster_FS";"dbo";"VorplanungRaster";"IDVorplanungRaster"
|
||||||
|
"FK_VorplanungRasterDokument_Adresse";"dbo";"VorplanungRasterDokument";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_VorplanungRasterDokument_ArtDokument";"dbo";"VorplanungRasterDokument";"IDArtDokument_FS";"dbo";"ArtDokument";"IDArtDokument"
|
||||||
|
"FK_VorplanungRasterDokument_VorplanungRaster";"dbo";"VorplanungRasterDokument";"IDVorplanungRaster_FS";"dbo";"VorplanungRaster";"IDVorplanungRaster"
|
||||||
|
"FK_VorplanungRasterKalkulationÜbernahme_VorplanungRasterKalkulation";"dbo";"VorplanungRasterKalkulationÜbernahme";"IDVorplanungRasterKalkulation_FS";"dbo";"VorplanungRasterKalkulation";"IDVorplanungRasterKalkulation"
|
||||||
|
"FK_VorplanungRasterTermin_VorplanungRaster";"dbo";"VorplanungRasterTermin";"IDVorplanungRaster_FS";"dbo";"VorplanungRaster";"IDVorplanungRaster"
|
||||||
|
"FK_WaehrungsKurse_ArtWaehrung";"dbo";"WaehrungsKurse";"IDArtWaehrung_FS";"dbo";"ArtWaehrung";"IDArtWaehrung"
|
||||||
|
"FK_WerbeplanungPunkte_ArtWerbeplanungReiseart";"dbo";"WerbeplanungPunkte";"IDArtWerbeplanungReiseart_FS";"dbo";"ArtWerbeplanungReiseart";"IDArtWerbeplanungReiseart"
|
||||||
|
"FK_WWKategorieEintrag_WWSuchKategorie";"dbo";"WWSuchKategorieEintrag";"IDWWSuchKategorie_FS";"dbo";"WWSuchKategorie";"IDWWSuchKategorie"
|
||||||
|
"FK_Zahlung_Adresse";"dbo";"Zahlung";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Zahlung_ArtWaehrung";"dbo";"Zahlung";"IDWaehrung_FS";"dbo";"ArtWaehrung";"IDArtWaehrung"
|
||||||
|
"FK_Zahlung_ArtZahlungsart";"dbo";"Zahlung";"IDArtZahlungart_FS";"dbo";"ArtZahlungsart";"IDArtZahlungsart"
|
||||||
|
"FK_Zahlung_ZahlungCode";"dbo";"Zahlung";"IDKontenplan_FS";"dbo";"Kontenplan";"IDKontenplan"
|
||||||
|
"FK_Zahlung_ZahlungStamm";"dbo";"Zahlung";"IDZahlungStamm_FS";"dbo";"ZahlungStamm";"IDZahlungStamm"
|
||||||
|
"FK_ZahlungDokument_Adresse";"dbo";"ZahlungDokument";"IDAdresse_FS_Sachbearbeiter";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ZahlungDokument_ArtDokument";"dbo";"ZahlungDokument";"IDArtDokument_FS";"dbo";"ArtDokument";"IDArtDokument"
|
||||||
|
"FK_ZahlungDokument_Zahlung";"dbo";"ZahlungDokument";"IDZahlung_FS";"dbo";"Zahlung";"IDZahlung"
|
||||||
|
"FK_ZahlungStamm_Adresse";"dbo";"ZahlungStamm";"IDAdresse_FS_Mandant";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_ZahlungStamm_ArtWaehrung";"dbo";"ZahlungStamm";"IDWaehrung_FS";"dbo";"ArtWaehrung";"IDArtWaehrung"
|
||||||
|
"FK_ZahlungStamm_Nummernkreis";"dbo";"ZahlungStamm";"IDNummernkreis_FS";"dbo";"Nummernkreis";"IDNummernkreis"
|
||||||
|
"FK_ZiellandRoute_Land";"dbo";"ZiellandRoute";"IDLand_FS_Route";"dbo";"Land";"IDLand"
|
||||||
|
"FK_ZiellandRoute_Land1";"dbo";"ZiellandRoute";"IDLand_FS_Zielland";"dbo";"Land";"IDLand"
|
||||||
|
"FK_Zusatzinformation_Adresse";"dbo";"Zusatzinformation";"IDAdresse_FS_Partner";"dbo";"Adresse";"IDAdresse"
|
||||||
|
"FK_Zusatzinformation_ArtZusatzinfoStamm";"dbo";"Zusatzinformation";"IDArtZusatzinfoStamm_FS";"dbo";"ArtZusatzinfoStamm";"IDArtZusatzinfoStamm"
|
||||||
|
"FK_Zusatzinformation_Reise";"dbo";"Zusatzinformation";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ZusatzZimmer_ArtBuchungsStatus";"dbo";"ZusatzZimmer";"IDArtBuchungsstatus_FS";"dbo";"ArtBuchungsStatus";"IDArtBuchungsStatus"
|
||||||
|
"FK_ZusatzZimmer_Reise";"dbo";"ZusatzZimmer";"IDReise_FS";"dbo";"Reise";"IDReise"
|
||||||
|
"FK_ZustiegHinweis_Zustieg";"dbo";"ZustiegHinweis";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_Zustiegkoordinate_Zustieg";"dbo";"Zustiegkoordinate";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_ZustiegKoordinate_ZustiegKoordinatenArt";"dbo";"Zustiegkoordinate";"IDArtKoordinaten_FS";"dbo";"ArtZustiegKoordinaten";"IDArtZustiegKoordinaten"
|
||||||
|
"FK_ZustiegPLZ_Zustieg1";"dbo";"ZustiegPLZ";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_ZustiegPreis_ArtZustiegPreis1";"dbo";"ZustiegPreis";"IDArtZustiegPreis_FS";"dbo";"ArtZustiegPreis";"IDArtZustiegPreis"
|
||||||
|
"FK_ZustiegPreis_Zustieg1";"dbo";"ZustiegPreis";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_ZustiegRoute_ArtZustiegRoutenbeschreibung";"dbo";"ZustiegRoute";"IDArtZustiegRoutenbeschreibung_FS";"dbo";"ArtZustiegRoutenbeschreibung";"IDArtZustiegRoutenbeschreibung"
|
||||||
|
"FK_ZustiegRoute_Zustieg";"dbo";"ZustiegRoute";"IDZustieg_FS";"dbo";"Zustieg";"IDZustieg"
|
||||||
|
"FK_ZustiegsPlanungBesonders_ZustiegsPlanungPerson";"dbo";"ZustiegsPlanungBesonders";"IDZustiegsPlanungPerson_FS";"dbo";"ZustiegsPlanungPerson";"IDZustiegsPlanungPerson"
|
||||||
|
"FK_ZustiegsPlanungBus_ZustiegsPlanung";"dbo";"ZustiegsPlanungBus";"IDZustiegsPlanung_FS";"dbo";"ZustiegsPlanung";"IDZustiegsPlanung"
|
||||||
|
"FK_ZustiegsPlanungBusStelle_ZustiegsPlanungBus";"dbo";"ZustiegsPlanungBusStelle";"IDZustiegsPlanungBus_FS";"dbo";"ZustiegsPlanungBus";"IDZustiegsPlanungBus"
|
||||||
|
"FK_ZustiegsPlanungLeistung_ZustiegsPlanung";"dbo";"ZustiegsPlanungLeistung";"IDZustiegsPlanung_FS";"dbo";"ZustiegsPlanung";"IDZustiegsPlanung"
|
||||||
|
"FK_ZustiegsPlanungPerson_BuchungTN";"dbo";"ZustiegsPlanungPerson";"IDBuchungTN_FS";"dbo";"BuchungTN";"IDBuchungTN"
|
||||||
|
"FK_ZustiegsPlanungPerson_Leistung";"dbo";"ZustiegsPlanungPerson";"IDLeistung_FS";"dbo";"Leistung";"IDLeistung"
|
||||||
|
"FK_ZustiegsPlanungPerson_ZustiegsPlanung";"dbo";"ZustiegsPlanungPerson";"IDZustiegsPlanung_FS";"dbo";"ZustiegsPlanung";"IDZustiegsPlanung"
|
||||||
|
"FK_ZustiegsPlanungPersonStelle_ZustiegsPlanungBusStelle";"dbo";"ZustiegsPlanungPersonStelle";"IDZustiegsPlanungBusStelle_FS";"dbo";"ZustiegsPlanungBusStelle";"IDZustiegsPlanungBusStelle"
|
||||||
|
"FK_ZustiegsPlanungPersonStelle_ZustiegsPlanungPerson";"dbo";"ZustiegsPlanungPersonStelle";"IDZustiegsPlanungPerson_FS";"dbo";"ZustiegsPlanungPerson";"IDZustiegsPlanungPerson"
|
||||||
|
"FK_ZustiegZeitplan_ArtZustiegZeitplan";"dbo";"ZustiegZeitplan";"IDArtZustiegZeitplan_FS";"dbo";"ArtZustiegZeitplan";"IDArtZustiegZeitplan"
|
||||||
|
@@ -0,0 +1,94 @@
|
|||||||
|
# Boarding Plan — Table Relations (BusPro schema)
|
||||||
|
|
||||||
|
> **Authority: [`docs/buspro-database-reference.md`](../buspro-database-reference.md) §8.4.**
|
||||||
|
> Retained for the detailed ER diagram of the `ZustiegsPlanung*` subsystem.
|
||||||
|
|
||||||
|
Read-only reference for building the boarding-plan API endpoint (look up a plan
|
||||||
|
by `IDZustiegsPlanung`, returning names, addresses, and times).
|
||||||
|
|
||||||
|
The query walks:
|
||||||
|
**`ZustiegsPlanung` → persons → (name via `BuchungTN`/`AdressePerson`) →
|
||||||
|
`PersonStelle` junction → `BusStelle` (time) → `Zustieg` (address) → `Bus`.**
|
||||||
|
`ZustiegsPlanungPersonStelle` is the pivot that ties a passenger to a timed stop.
|
||||||
|
|
||||||
|
## ER diagram
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
erDiagram
|
||||||
|
ZustiegsPlanung ||--o{ ZustiegsPlanungBus : "IDZustiegsPlanung_FS"
|
||||||
|
ZustiegsPlanung ||--o{ ZustiegsPlanungPerson : "IDZustiegsPlanung_FS"
|
||||||
|
ZustiegsPlanungBus ||--o{ ZustiegsPlanungBusStelle : "IDZustiegsPlanungBus_FS"
|
||||||
|
ZustiegsPlanungPerson ||--o{ ZustiegsPlanungPersonStelle : "IDZustiegsPlanungPerson_FS"
|
||||||
|
ZustiegsPlanungBusStelle ||--o{ ZustiegsPlanungPersonStelle : "IDZustiegsPlanungBusStelle_FS"
|
||||||
|
|
||||||
|
ZustiegsPlanungPerson }o..|| BuchungTN : "IDBuchungTN_FS"
|
||||||
|
BuchungTN }o..|| AdressePerson : "IDAdressePerson_FS (name)"
|
||||||
|
ZustiegsPlanungBusStelle }o..o| Zustieg : "IDZustieg_FS (soft, address)"
|
||||||
|
|
||||||
|
ZustiegsPlanung {
|
||||||
|
bigint IDZustiegsPlanung PK
|
||||||
|
datetime Datum
|
||||||
|
}
|
||||||
|
ZustiegsPlanungBus {
|
||||||
|
bigint IDZustiegsPlanungBus PK
|
||||||
|
string ReiseleiterName
|
||||||
|
}
|
||||||
|
ZustiegsPlanungBusStelle {
|
||||||
|
bigint IDZustiegsPlanungBusStelle PK
|
||||||
|
datetime Zeit "TIME"
|
||||||
|
smallint Sortierung
|
||||||
|
}
|
||||||
|
ZustiegsPlanungPerson {
|
||||||
|
bigint IDZustiegsPlanungPerson PK
|
||||||
|
}
|
||||||
|
ZustiegsPlanungPersonStelle {
|
||||||
|
bigint IDZustiegsPlanungPersonStelle PK
|
||||||
|
string Art "Einstieg/Ausstieg"
|
||||||
|
}
|
||||||
|
AdressePerson {
|
||||||
|
string Name
|
||||||
|
string Vorname
|
||||||
|
}
|
||||||
|
Zustieg {
|
||||||
|
string Strasse
|
||||||
|
string Plz
|
||||||
|
string Ort
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## ASCII fallback
|
||||||
|
|
||||||
|
```
|
||||||
|
ZustiegsPlanung (the planning id)
|
||||||
|
/ \
|
||||||
|
IDZustiegsPlanung_FS IDZustiegsPlanung_FS
|
||||||
|
/ \
|
||||||
|
ZustiegsPlanungBus ZustiegsPlanungPerson ──IDBuchungTN_FS──▶ BuchungTN
|
||||||
|
│ (Reiseleiter) │ │
|
||||||
|
IDZustiegsPlanungBus_FS IDZustiegsPlanungPerson_FS IDAdressePerson_FS
|
||||||
|
│ │ ▼
|
||||||
|
▼ ▼ AdressePerson
|
||||||
|
ZustiegsPlanungBusStelle ◀──┐ ZustiegsPlanungPersonStelle (NAME)
|
||||||
|
• Zeit (TIME) │ • Art (boarding/alighting)
|
||||||
|
• IDZustieg_FS ··soft··▶ Zustieg (ADDRESS)
|
||||||
|
└──IDZustiegsPlanungBusStelle_FS───┘ (junction: passenger ↔ stop)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Legend:** `||--o{` / solid = enforced FK constraint; `}o..` / `··soft··` =
|
||||||
|
convention-only `_FS` reference (no DB constraint — join defensively, expect
|
||||||
|
`NULL`/`0`/orphaned values).
|
||||||
|
|
||||||
|
## Notes for the query
|
||||||
|
|
||||||
|
- **Name** is not stored in the plan; join out live via
|
||||||
|
`ZustiegsPlanungPerson.IDBuchungTN_FS → BuchungTN.IDAdressePerson_FS → AdressePerson`.
|
||||||
|
- **Time** lives on `ZustiegsPlanungBusStelle.Zeit` (per stop), not on the plan
|
||||||
|
header (`ZustiegsPlanung.Datum` is the plan date).
|
||||||
|
- **Address** comes from `Zustieg` (the boarding point). Prefer reaching it via
|
||||||
|
`ZustiegsPlanungBusStelle.IDZustieg_FS` so it never depends on
|
||||||
|
`ZustiegsPlanungPerson.IDZustieg_FS` being populated.
|
||||||
|
- A passenger can have multiple `ZustiegsPlanungPersonStelle` rows (boarding +
|
||||||
|
alighting), distinguished by `Art`. Filter on `Art` for boarding-only.
|
||||||
|
- To verify against real data: the actual `Art` codes (`nvarchar(6)`), and
|
||||||
|
whether `BusStelle.IDZustieg_FS` always matches the passenger's
|
||||||
|
`Person.IDZustieg_FS` on the boarding leg.
|
||||||
@@ -0,0 +1,501 @@
|
|||||||
|
# `SelektionCRM` — how the XML is assembled, and how to debug a missing selection
|
||||||
|
|
||||||
|
> **Authority: [`docs/buspro-database-reference.md`](../buspro-database-reference.md).**
|
||||||
|
> Schema semantics and the falsified-theory record live there and win on any conflict.
|
||||||
|
> This file is retained as the **full investigation record** for the missing-selection /
|
||||||
|
> `aenderbar` problem, including the queries that closed each theory.
|
||||||
|
|
||||||
|
Companion to `travel-queries.md` (static catalog) and `live-api-queries.md` (live
|
||||||
|
socket endpoints). This one covers the `KUNDENKONTO` / `art=SelektionCRM` response —
|
||||||
|
the document that drives the portal's entire authorization model.
|
||||||
|
|
||||||
|
Request side: `AccountClient::getCrmAttributes()` (`src/BusProNet/Client/AccountClient.php`) sends
|
||||||
|
`satz typ="KUNDENKONTO"` + `art=SelektionCRM` + the customer's email/password.
|
||||||
|
Response side: `CrmAttributesResponseParser`
|
||||||
|
(`src/BusProNet/XmlParser/CrmAttributesResponseParser.php`) turns selection ids into
|
||||||
|
Symfony roles:
|
||||||
|
|
||||||
|
| `IDSelektionsstamm` | Role |
|
||||||
|
| --- | --- |
|
||||||
|
| `1070` | `ROLE_TEAMER` |
|
||||||
|
| `1292` | `ROLE_ADMIN` |
|
||||||
|
| `1293` | `ROLE_MANAGER` |
|
||||||
|
| `1477` | `ROLE_GROUPS_MANAGER` |
|
||||||
|
| `1478` | `ROLE_GROUPS_ADMIN` |
|
||||||
|
| `1483` | `ROLE_CUSTOMER_EXPERT` |
|
||||||
|
| `1484` | `ROLE_TEAM_ADMIN` (not consumed here — exported through `/api/userinfo` for myep-team) |
|
||||||
|
| `1487` | `ROLE_SUPERVISOR` (not consumed here — exported through `/api/userinfo` for ephub) |
|
||||||
|
| label `Hausleitung {CODE}` | `ROLE_HOUSE_MANAGER` + hotel code `{CODE}` |
|
||||||
|
| nothing matched | `ROLE_CUSTOMER` |
|
||||||
|
|
||||||
|
Only selections with `auswahl="True"` count. Every `Admin/*` controller is gated on
|
||||||
|
one of these roles.
|
||||||
|
|
||||||
|
These are *claims*, not grants. What an account ends up holding is decided by
|
||||||
|
`Role::sync()` (`src/Security/Role.php`) on every login — see
|
||||||
|
[From claim to role](#from-claim-to-role).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## From claim to role
|
||||||
|
|
||||||
|
BusPro backend users can edit their own CRM selections, so the claims above are
|
||||||
|
filtered before anything is stored:
|
||||||
|
|
||||||
|
| Role | Claimed without a staff address | Claimed with a staff address |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `ROLE_TEAMER` | granted | granted |
|
||||||
|
| `ROLE_HOUSE_MANAGER` | nominated | nominated |
|
||||||
|
| `ROLE_ADMIN`, `ROLE_TEAM_ADMIN`, `ROLE_MANAGER`, `ROLE_GROUPS_ADMIN`, `ROLE_GROUPS_MANAGER`, `ROLE_CUSTOMER_EXPERT`, `ROLE_SUPERVISOR` (`Role::EMPLOYEE_ONLY`) | **ignored** | nominated |
|
||||||
|
|
||||||
|
- **Staff address**: the login email's domain is listed in `employee_email_domains`
|
||||||
|
(`config/services.yaml`, exact match, never a suffix). Such an account also gets
|
||||||
|
`ROLE_EMPLOYEE`, which is derived from the address and not from the CRM.
|
||||||
|
- **Nominated**: stored as the marker `ROLE_X_PENDING`, which grants nothing until an
|
||||||
|
administrator approves it in `/admin/user`. Nominations are announced to
|
||||||
|
`role_nomination_notification_emails`.
|
||||||
|
- **Ignored**: treated exactly like a selection that is not set. No marker is stored,
|
||||||
|
and a role approved earlier is **revoked** on the next login. A leftover marker from
|
||||||
|
before the rule cannot be approved and disappears on that login too.
|
||||||
|
- Anything the CRM stops claiming is revoked, approved or not.
|
||||||
|
- An account left without any effective role gets `ROLE_CUSTOMER`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## The four tables
|
||||||
|
|
||||||
|
From `BusPronet_20260601-1517.csv` (columns) and `BusPronet_20260601-1518.csv` (FKs):
|
||||||
|
|
||||||
|
| Table | Columns | Role |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| `dbo.Selektionsstamm` | `IDSelektionsstamm`, `Selektion`, `Status` nvarchar(2) null, `System` tinyint | the selection master — that's *all four* columns |
|
||||||
|
| `dbo.Selektionsgruppenstamm` | `IDSelektionsgruppenstamm`, `Selektionsgruppe`, `Status`, `System`, `Ausgrenzung`, `Position` | the group master |
|
||||||
|
| `dbo.Selektionsgruppe` | `IDSelektionsgruppenstamm_FS`, `IDSelektionsstamm_FS`, `Position` | **membership** — which selection sits in which group, and in what order |
|
||||||
|
| `dbo.Selektionen` | `IDAdresse_FS`, `IDSelektionsstamm_FS` | **assignment** — which address holds which selection |
|
||||||
|
|
||||||
|
`<crmaktionen>` comes from a parallel pair: `dbo.CRMAktion` (master: `Code`,
|
||||||
|
`Bezeichnung`, `Aktiv`, `Status`, `AktivDatumVon/Bis`, …) and `dbo.CRMZuweisung`
|
||||||
|
(assignment via `IDAdresse_FS` + `IDCRMAktion_FS`).
|
||||||
|
|
||||||
|
### XML → column mapping
|
||||||
|
|
||||||
|
| XML | Source |
|
||||||
|
| --- | --- |
|
||||||
|
| `<idadresse>` | `Adresse.IDAdresse` (the authenticated account) |
|
||||||
|
| `<idperson>` | `AdressePerson.IDAdressePerson` |
|
||||||
|
| `<selektionsgruppe id>` / `bezeichnung` | `Selektionsgruppenstamm.IDSelektionsgruppenstamm` / `.Selektionsgruppe` |
|
||||||
|
| `<selektion id>` / `bezeichnung` | `Selektionsstamm.IDSelektionsstamm` / `.Selektion` |
|
||||||
|
| `selektion@auswahl` | `EXISTS (Selektionen WHERE IDAdresse_FS = <account> AND IDSelektionsstamm_FS = <id>)` — confirmed |
|
||||||
|
| `selektion@aenderbar` | **computed, not stored** — no such column exists anywhere (see below) |
|
||||||
|
| group order | `Selektionsgruppenstamm.Position`, `<ohne Gruppe>` first |
|
||||||
|
| selection order within a group | `Selektionsgruppe.Position` |
|
||||||
|
| `<crmaktion …>` | `CRMAktion` + `CRMZuweisung` (`auswahl` = assignment exists) |
|
||||||
|
|
||||||
|
### `aenderbar` is not a stored flag
|
||||||
|
|
||||||
|
A case-insensitive search for `aenderbar` / `auswahl` across **every column name in the
|
||||||
|
database** (1023 tables, `ABOBewegungsdaten` … `ZustiegsPlanungPersonStelle`, so the
|
||||||
|
export is complete and untruncated) returns no hit on any `Selektion*` table. The only
|
||||||
|
`*Aenderbar*` column in the entire schema is `AdresseAgenturZusatz.ZahlungsartAenderbar`,
|
||||||
|
which is unrelated. And the three core tables have no spare bit to hide it in:
|
||||||
|
`Selektionsstamm` has exactly four columns, `Selektionsgruppe` three, `Selektionen` two.
|
||||||
|
|
||||||
|
So `aenderbar` is **derived at response time**. Don't go looking for the column again —
|
||||||
|
this is what Query D and Query E are for.
|
||||||
|
|
||||||
|
The `<crmaktionen>` half of the document hints at the intended semantics: `CRMAktion`
|
||||||
|
*does* carry real flags (`Aktiv`, `Anzeige`, `AktivDatumVon`/`Bis`), and in the reference
|
||||||
|
sample the long-expired "Deal Der Woche KW40-2018" is `aenderbar="False"` while the
|
||||||
|
standing "NOMAIL" opt-out is `"True"`. `aenderbar` reads as *"the customer may still
|
||||||
|
toggle this"* — a validity/whitelist question, not a static per-row property.
|
||||||
|
|
||||||
|
Two orderings worth noting, because they rule out the obvious alternatives:
|
||||||
|
|
||||||
|
- Inside `TEAM` the ids run `… 1374, 1375, 1376, 1373, 1377 …` — neither id order nor
|
||||||
|
label order. That is `Selektionsgruppe.Position`.
|
||||||
|
- Within `Interessen` the labels *are* alphabetical, which is consistent with
|
||||||
|
`Position` having been maintained alphabetically there. Don't read it as a
|
||||||
|
different rule.
|
||||||
|
|
||||||
|
### The decisive observation: the catalog is group-driven
|
||||||
|
|
||||||
|
Every `Hausleitung *` row is emitted with `auswahl="False"` for an account that holds
|
||||||
|
none of them. So the endpoint does **not** list "the selections this address has" — it
|
||||||
|
lists **the whole published catalog** and then flags which entries the address holds.
|
||||||
|
|
||||||
|
`<selektionsgruppe id="0" bezeichnung="<ohne Gruppe>">` is the bucket for
|
||||||
|
selections with no (or a `0`) `Selektionsgruppe` membership row.
|
||||||
|
|
||||||
|
The practical consequence: **inserting a row into `dbo.Selektionen` can never make a
|
||||||
|
selection appear.** It can only flip `auswahl` from `False` to `True` on an entry that
|
||||||
|
the catalog already emits. A selection that is absent from the XML is absent from the
|
||||||
|
*catalog*, and the assignment is irrelevant until that is fixed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query A — reconstruct the response
|
||||||
|
|
||||||
|
Run this for the account in question and diff its rows against the actual XML. A clean
|
||||||
|
match proves the reconstruction above; any mismatch belongs in the caveats section.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
DECLARE @AddressId bigint = 141747;
|
||||||
|
|
||||||
|
SELECT COALESCE(sg.IDSelektionsgruppenstamm, 0) AS groupId,
|
||||||
|
COALESCE(sg.Selektionsgruppe, '<ohne Gruppe>') AS groupLabel,
|
||||||
|
s.IDSelektionsstamm AS selectionId,
|
||||||
|
s.Selektion AS selectionLabel,
|
||||||
|
CASE WHEN s.System = 0 THEN 'True' ELSE 'False' END AS aenderbar,
|
||||||
|
CASE WHEN sel.IDAdresse_FS IS NULL THEN 'False' ELSE 'True' END AS auswahl
|
||||||
|
FROM dbo.Selektionsstamm s
|
||||||
|
LEFT JOIN dbo.Selektionsgruppe sgm
|
||||||
|
ON sgm.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
LEFT JOIN dbo.Selektionsgruppenstamm sg
|
||||||
|
ON sg.IDSelektionsgruppenstamm = sgm.IDSelektionsgruppenstamm_FS
|
||||||
|
LEFT JOIN dbo.Selektionen sel
|
||||||
|
ON sel.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
AND sel.IDAdresse_FS = @AddressId
|
||||||
|
WHERE COALESCE(s.Status, '') <> 'L'
|
||||||
|
AND COALESCE(sg.Status, '') <> 'L'
|
||||||
|
ORDER BY COALESCE(sg.Position, -1), sgm.Position, s.Selektion;
|
||||||
|
```
|
||||||
|
|
||||||
|
(`Status = 'L'` is this database's soft-delete marker — see
|
||||||
|
`../bpn-connect-query-reference.md`.)
|
||||||
|
|
||||||
|
Note the join fans out: a selection can belong to **several** groups (confirmed —
|
||||||
|
`1292` is in both `10` and `91`), so this query emits one row per membership. The XML
|
||||||
|
shows a selection once per group it is published in.
|
||||||
|
|
||||||
|
`Selektionsgruppenstamm.Ausgrenzung` is *exclusion* semantics (mutually exclusive
|
||||||
|
group), not visibility — don't mistake it for a publish flag.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query B — diagnose a selection that never appears
|
||||||
|
|
||||||
|
Compares the suspect row against known-good neighbours: `1292`/`1293` (long-standing,
|
||||||
|
emitted, `aenderbar=False`) and `1462` (most recent one that *is* emitted,
|
||||||
|
`aenderbar=True`). Whatever column differs is the answer.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.IDSelektionsstamm,
|
||||||
|
s.Selektion,
|
||||||
|
s.Status,
|
||||||
|
s.System,
|
||||||
|
sgm.IDSelektionsgruppenstamm_FS AS groupId,
|
||||||
|
sgm.Position AS positionInGroup,
|
||||||
|
(SELECT COUNT(*) FROM dbo.Selektionen x
|
||||||
|
WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
AND x.IDAdresse_FS = 141747) AS assignedToAddress
|
||||||
|
FROM dbo.Selektionsstamm s
|
||||||
|
LEFT JOIN dbo.Selektionsgruppe sgm
|
||||||
|
ON sgm.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
WHERE s.IDSelektionsstamm IN (1477, 1478, 1292, 1293, 1462)
|
||||||
|
ORDER BY s.IDSelektionsstamm;
|
||||||
|
```
|
||||||
|
|
||||||
|
### What Query B ruled out (address `141747`, 2026-08-04)
|
||||||
|
|
||||||
|
| id | Selektion | Status | System | groupId | posInGroup | assigned |
|
||||||
|
| --- | --- | --- | --- | --- | --- | --- |
|
||||||
|
| 1292 | Admin | *(blank)* | 1 | 10 | 33 | 1 |
|
||||||
|
| 1292 | Admin | *(blank)* | 1 | **91** | 1 | 1 |
|
||||||
|
| 1293 | Manager | *(blank)* | 1 | **92** | 1 | 1 |
|
||||||
|
| 1293 | Manager | *(blank)* | 1 | 10 | 34 | 1 |
|
||||||
|
| 1462 | Hausleitung AGR | *(blank)* | 1 | 10 | 74 | 0 |
|
||||||
|
| 1477 | Preisrechner | *(blank)* | 1 | 10 | 75 | 0 |
|
||||||
|
| 1478 | Preisrechner Admin | *(blank)* | 1 | 10 | 76 | 1 |
|
||||||
|
|
||||||
|
Three conclusions:
|
||||||
|
|
||||||
|
1. **The missing-membership theory is dead.** `1477`/`1478` *are* in group `10` (TEAM),
|
||||||
|
at positions `75`/`76`, and `1478` *is* assigned to the address. On every column
|
||||||
|
available in these three tables, `1478` is indistinguishable from `1462` — which the
|
||||||
|
XML does emit. Whatever excludes them lives **outside**
|
||||||
|
`Selektionsstamm` / `Selektionsgruppe` / `Selektionen`.
|
||||||
|
2. **`aenderbar` is not derived from `System`.** `1292` (`aenderbar="False"`) and `1462`
|
||||||
|
(`aenderbar="True"`) both have `System = 1`. `Selektionsstamm` has no other column,
|
||||||
|
so `aenderbar` comes from somewhere else entirely.
|
||||||
|
3. **A selection can belong to several groups, and some groups are not published.**
|
||||||
|
`1292` is in `10` + `91`, `1293` is in `10` + `92`; groups `91`/`92` appear nowhere in
|
||||||
|
the XML, which only emits `0`, `10`, `83`. So there is a **group-level publish
|
||||||
|
filter** — and, suggestively, the two rows with a second (unpublished) group
|
||||||
|
membership are exactly the two that come back `aenderbar="False"`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query D — the agency whitelist (run this first)
|
||||||
|
|
||||||
|
`dbo.AgenturSelektionenKunde` is a bare two-column link table,
|
||||||
|
`(IDAdresse_FS, IDSelektionsstamm_FS)` — literally *"agency's customer selections"*. The
|
||||||
|
portal authenticates against BusPro as an **agency** account (`bpn_username` in
|
||||||
|
`XmlChannel`), so a per-agency whitelist of which customer selections that agency may see
|
||||||
|
and/or edit is exactly the right shape. It is the only candidate found so far that could
|
||||||
|
explain the `1478` omission **and** `aenderbar` through one mechanism.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT ask.IDAdresse_FS AS agencyAddressId,
|
||||||
|
a.SuchName AS agencyName,
|
||||||
|
ask.IDSelektionsstamm_FS AS selectionId,
|
||||||
|
s.Selektion AS selectionLabel
|
||||||
|
FROM dbo.AgenturSelektionenKunde ask
|
||||||
|
JOIN dbo.Selektionsstamm s ON s.IDSelektionsstamm = ask.IDSelektionsstamm_FS
|
||||||
|
LEFT JOIN dbo.Adresse a ON a.IDAdresse = ask.IDAdresse_FS
|
||||||
|
ORDER BY ask.IDAdresse_FS, s.Selektion;
|
||||||
|
|
||||||
|
-- same shape, same question:
|
||||||
|
SELECT * FROM dbo.PartnerSelektionenKunde;
|
||||||
|
```
|
||||||
|
|
||||||
|
Compare the row set for the portal's agency address against a freshly captured response:
|
||||||
|
|
||||||
|
| Result | Meaning |
|
||||||
|
| --- | --- |
|
||||||
|
| set == the 32 emitted entries | **this is the publish gate** — `1477`/`1478` just need rows here |
|
||||||
|
| set == the `aenderbar="True"` subset only | this is the `aenderbar` source |
|
||||||
|
| set is some third thing | note it in this doc and continue to C1 |
|
||||||
|
| table empty | both hypotheses dead — fall through to C1/C2/C3 |
|
||||||
|
|
||||||
|
**Result (2026-08-04): `dbo.AgenturSelektionenKunde` is empty.** The agency-whitelist
|
||||||
|
theory is dead. Do not re-run.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query E — group-count cross-check (the secondary `aenderbar` theory)
|
||||||
|
|
||||||
|
Query B hinted that the two `aenderbar="False"` rows were the two with a *second*,
|
||||||
|
unpublished group membership (`1292`→{10, 91}, `1293`→{10, 92}) while `aenderbar="True"`
|
||||||
|
`1462` sat in group `10` alone. Two data points is not a rule — this settles it in one run:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.IDSelektionsstamm,
|
||||||
|
s.Selektion,
|
||||||
|
COUNT(*) AS groupCount,
|
||||||
|
STRING_AGG(CAST(sgm.IDSelektionsgruppenstamm_FS AS varchar(10)), ',') AS groupIds
|
||||||
|
FROM dbo.Selektionsstamm s
|
||||||
|
JOIN dbo.Selektionsgruppe sgm ON sgm.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
WHERE s.IDSelektionsstamm IN (1064,1065,1066,1067,1068,1069,1070,1156,1292,1293,
|
||||||
|
1299,1304,1377,1459,1461,1462,1477,1478)
|
||||||
|
GROUP BY s.IDSelektionsstamm, s.Selektion
|
||||||
|
ORDER BY s.IDSelektionsstamm;
|
||||||
|
```
|
||||||
|
|
||||||
|
Read against the known `aenderbar` values from the reference response:
|
||||||
|
|
||||||
|
- `aenderbar="False"`: `1070`, `1156`, `1292`, `1293`, `1299`, `1304`, `1377`
|
||||||
|
- `aenderbar="True"`: `1064`–`1069`, `1459`, `1461`, `1462`
|
||||||
|
|
||||||
|
If every `False` row has `groupCount > 1` and every `True` row has `groupCount = 1`, the
|
||||||
|
theory holds. Note it still would not explain `1478` (group `10` only, yet omitted), so
|
||||||
|
Query D remains the priority.
|
||||||
|
|
||||||
|
**Result (2026-08-04): the theory is dead.** Group membership does not correlate with
|
||||||
|
`aenderbar` at all:
|
||||||
|
|
||||||
|
| id | Selektion | groupCount | groupIds | `aenderbar` |
|
||||||
|
| --- | --- | --- | --- | --- |
|
||||||
|
| 1064–1069 | *Interessen* | 1 | 83 | **True** |
|
||||||
|
| 1070 | E&P Teamer - allg. Merkmal | 1 | 10 | **False** |
|
||||||
|
| 1292 | Admin | 2 | 91, 10 | **False** |
|
||||||
|
| 1293 | Manager | 2 | 92, 10 | **False** |
|
||||||
|
| 1299 / 1304 / 1377 | Hausleitung SSL / DKS / KHH | 1 | 10 | **False** |
|
||||||
|
| 1459 / 1461 / 1462 | Hausleitung SVS / SHM / AGR | 1 | 10 | **True** |
|
||||||
|
| 1477 / 1478 | Preisrechner, Preisrechner Admin | 1 | 10 | *(not emitted)* |
|
||||||
|
|
||||||
|
`1299`/`1304`/`1377` and `1459`/`1461`/`1462` have **identical** group membership,
|
||||||
|
identical `Status`, identical `System` — and opposite `aenderbar`. The `1292`/`1293`
|
||||||
|
double membership was a coincidence.
|
||||||
|
|
||||||
|
Confirmed as a side effect: `1156` is absent from this result because the inner join
|
||||||
|
found no `Selektionsgruppe` row for it. `<ohne Gruppe>` really does mean "no membership
|
||||||
|
row", as modelled at the top of this document.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query F — exhaust every remaining link to `Selektionsstamm`
|
||||||
|
|
||||||
|
After D and E, the schema export lists exactly these tables with an FK into
|
||||||
|
`Selektionsstamm`. This counts all of them at once for the rows whose behaviour differs,
|
||||||
|
which is the last thing the database can tell us:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.IDSelektionsstamm, s.Selektion,
|
||||||
|
(SELECT COUNT(*) FROM dbo.Selektionen x WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm) AS addressAssignments,
|
||||||
|
(SELECT COUNT(*) FROM dbo.PartnerSelektionenKunde x WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm) AS partnerLinks,
|
||||||
|
(SELECT COUNT(*) FROM dbo.LeistungSelektionenKunde x WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm) AS serviceLinks,
|
||||||
|
(SELECT COUNT(*) FROM dbo.ReiseleiterSelektionen x WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm) AS guideLinks,
|
||||||
|
(SELECT COUNT(*) FROM dbo.ReiseSelektionen x WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm) AS travelLinks,
|
||||||
|
(SELECT COUNT(*) FROM dbo.ReisezielSelektionsstamm x WHERE x.IDSelektionsstamm_FS = s.IDSelektionsstamm) AS destinationLinks
|
||||||
|
FROM dbo.Selektionsstamm s
|
||||||
|
WHERE s.IDSelektionsstamm IN (1070,1156,1292,1293,1299,1304,1377,1459,1461,1462,1477,1478,1064)
|
||||||
|
ORDER BY s.IDSelektionsstamm;
|
||||||
|
```
|
||||||
|
|
||||||
|
The decisive comparison is `1377` (`aenderbar="False"`) vs `1462` (`"True"`) vs `1478`
|
||||||
|
(omitted). If all three rows are identical here too, then **no per-selection property in
|
||||||
|
this database distinguishes them**, and the rule is not in the schema at all — go to
|
||||||
|
"Where this leaves the investigation" below.
|
||||||
|
|
||||||
|
**Result (2026-08-04): all link counts are zero** for every row queried, except
|
||||||
|
`travelLinks` on `1070` (11) and `1156` (3) via `ReiseSelektionen` — neither of which
|
||||||
|
correlates with `aenderbar` or with being emitted. Assignment counts don't explain
|
||||||
|
anything either:
|
||||||
|
|
||||||
|
| id | assignments | emitted? | `aenderbar` |
|
||||||
|
| --- | --- | --- | --- |
|
||||||
|
| 1377 Hausleitung KHH | **0** | yes | False |
|
||||||
|
| 1462 Hausleitung AGR | 1 | yes | True |
|
||||||
|
| 1478 Preisrechner Admin | **3** | **no** | — |
|
||||||
|
|
||||||
|
`1377` is published with zero assignments; `1478` has three and is not published. This
|
||||||
|
exhausts every FK path into `Selektionsstamm` in the schema. **Stop querying the
|
||||||
|
database** — the answer is not in it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query C — locate the publish gate
|
||||||
|
|
||||||
|
Point (1) means some table or config outside the three core tables decides what gets
|
||||||
|
emitted. Run these in order; the first hit explains everything.
|
||||||
|
|
||||||
|
**C1 — what distinguishes a published group from an unpublished one.** Groups `0`, `10`,
|
||||||
|
`83` are emitted; `91`, `92` are not:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT IDSelektionsgruppenstamm, Selektionsgruppe, Status, System, Ausgrenzung, Position
|
||||||
|
FROM dbo.Selektionsgruppenstamm
|
||||||
|
ORDER BY Position;
|
||||||
|
```
|
||||||
|
|
||||||
|
If exactly the emitted groups share a `Status`/`System`/`Position` value that `91`/`92`
|
||||||
|
lack, that's the group gate. It still won't explain `1478` (same group as `1462`), but
|
||||||
|
it pins down half the rule — and tells you whether `aenderbar` tracks membership in one
|
||||||
|
of these system groups.
|
||||||
|
|
||||||
|
**C2 — hunt for a published-selection whitelist in the config stores.** This is the
|
||||||
|
leading theory for `1478`: a config value enumerating exposed selection ids that was
|
||||||
|
maintained up to `1462` and never extended. This database does store id lists in
|
||||||
|
delimited string columns (`CRMAktion.IDsAgenturEingrenzung`,
|
||||||
|
`ImportAdressen.ZuweisungSelektionIDs`, `AdresseHistorie.SelektionsIDs`), so the pattern
|
||||||
|
exists. Search for a known-published id:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT * FROM dbo.Einstellung
|
||||||
|
WHERE Wert LIKE '%1462%' OR Wert LIKE '%1292%'
|
||||||
|
OR Bezeichnung LIKE '%elektion%' OR Beschreibung LIKE '%elektion%';
|
||||||
|
|
||||||
|
SELECT * FROM dbo.ProgrammEinstellung
|
||||||
|
WHERE Wert LIKE '%1462%' OR Wert LIKE '%1292%' OR Variable LIKE '%elektion%';
|
||||||
|
|
||||||
|
SELECT * FROM dbo.ConnectEinstellung
|
||||||
|
WHERE WertString LIKE '%1462%' OR WertString LIKE '%1292%';
|
||||||
|
```
|
||||||
|
|
||||||
|
**C3 — brute-force the whole schema** if C1/C2 come up empty. Find every wide text
|
||||||
|
column that mentions a published selection id:
|
||||||
|
|
||||||
|
```sql
|
||||||
|
DECLARE @needle nvarchar(20) = '1462';
|
||||||
|
DECLARE @sql nvarchar(max) = '';
|
||||||
|
|
||||||
|
SELECT @sql = @sql + 'SELECT ''' + QUOTENAME(t.name) + ''' AS tbl, ''' + QUOTENAME(c.name)
|
||||||
|
+ ''' AS col, COUNT(*) AS hits FROM dbo.' + QUOTENAME(t.name)
|
||||||
|
+ ' WHERE CAST(' + QUOTENAME(c.name) + ' AS nvarchar(max)) LIKE ''%'
|
||||||
|
+ @needle + '%'' HAVING COUNT(*) > 0;' + CHAR(10)
|
||||||
|
FROM sys.tables t
|
||||||
|
JOIN sys.columns c ON c.object_id = t.object_id
|
||||||
|
JOIN sys.types ty ON ty.user_type_id = c.user_type_id
|
||||||
|
WHERE ty.name IN ('nvarchar', 'varchar', 'nchar', 'char')
|
||||||
|
AND (c.max_length = -1 OR c.max_length >= 100)
|
||||||
|
AND t.name NOT LIKE 'Selektion%';
|
||||||
|
|
||||||
|
EXEC sp_executesql @sql; -- read-only; slow, run off-peak
|
||||||
|
```
|
||||||
|
|
||||||
|
**C4 — rule out staleness/caching first, it's free.** `1478` is structurally identical
|
||||||
|
to an emitted row, which is also what a cached catalog looks like. Re-fetch the XML now
|
||||||
|
and confirm the sample postdates the insert:
|
||||||
|
|
||||||
|
```php
|
||||||
|
// bin/console or a scratch script
|
||||||
|
$client->getCrmAttributes($email, $password);
|
||||||
|
```
|
||||||
|
|
||||||
|
If BusPro caches the catalog in-process, an application-pool/service restart on the
|
||||||
|
BusProNet host is the fix, and no schema change is needed.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Portal side: a correct XML is not enough
|
||||||
|
|
||||||
|
`BpnAuthenticator::syncFromCrm()` writes the roles onto the local `User` entity at login,
|
||||||
|
through `Role::sync()` (see [From claim to role](#from-claim-to-role)), and the hotel codes
|
||||||
|
verbatim. Roles are **not** re-read per request. So after fixing BusPro the affected user
|
||||||
|
must **log out and log in again**, and even then `ROLE_GROUPS_ADMIN` only takes effect once
|
||||||
|
the account has a staff address and an administrator has approved the nomination.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Where this leaves the investigation
|
||||||
|
|
||||||
|
**Conclusion as of 2026-08-04, after Queries A–F: the schema search is exhausted.**
|
||||||
|
|
||||||
|
- `1478` and `1462` are identical on every column and every link the schema exposes —
|
||||||
|
same blank `Status`, same `System = 1`, same single membership in group `10`, adjacent
|
||||||
|
positions (76 vs 74), zero links in all five side tables. `1462` is emitted, `1478` is
|
||||||
|
not.
|
||||||
|
- `1377` (`aenderbar="False"`) and `1462` (`"True"`) are identical by the same measure.
|
||||||
|
Opposite flag.
|
||||||
|
- Assignment count is not it either: `1377` is published with zero assignments, `1478`
|
||||||
|
has three and is not published.
|
||||||
|
|
||||||
|
Rows that are indistinguishable in the database behave differently in the response. Every
|
||||||
|
column of the three core tables, every FK path into `Selektionsstamm`, and a
|
||||||
|
whole-schema column-name search have now been checked. So **the publish set and the
|
||||||
|
`aenderbar` flag are not derived from this database** — they live in the BusProNet
|
||||||
|
service layer: its own configuration, or an in-process cache of the catalog.
|
||||||
|
|
||||||
|
Only C2/C3 (a text search of the config stores, then of every wide text column) remain,
|
||||||
|
and they are long shots. Prefer the escalation path below.
|
||||||
|
|
||||||
|
Escalation path, cheapest first:
|
||||||
|
|
||||||
|
1. **Re-fetch and confirm staleness.** Our side does not cache this call — the
|
||||||
|
`xml-sync` cache tag covers the XML *export* sync, and `AccountClient::getCrmAttributes()`
|
||||||
|
has no cache layer — so a fresh login hits BusPro directly. If `1478` is still absent
|
||||||
|
from a response captured after the insert, the staleness is on the BusProNet host and
|
||||||
|
an application-pool/service restart there is the test.
|
||||||
|
2. **The UI experiment.** Create a throwaway selection in the TEAM group *through the
|
||||||
|
BusPro UI*, then diff its rows against `1478` across `Selektionsstamm` /
|
||||||
|
`Selektionsgruppe` / `Selektionen`. If it appears in the XML, the diff names exactly
|
||||||
|
what a manual `INSERT` misses. If it does not, the gate is provably config/cache and
|
||||||
|
not per-row data.
|
||||||
|
3. **Ask the vendor.** "What determines which `Selektionsstamm` entries `SelektionCRM`
|
||||||
|
publishes, given group membership is not sufficient — and what drives `aenderbar`?"
|
||||||
|
Both are one-sentence answers for them and may not be discoverable from the schema at
|
||||||
|
all. Worth bundling into the open BPN thread.
|
||||||
|
|
||||||
|
## Caveats
|
||||||
|
|
||||||
|
- **`aenderbar` has no known source.** No such column exists in any of the 1023 tables;
|
||||||
|
`Selektionsstamm.System` (Query B), the agency whitelist (Query D) and group membership
|
||||||
|
(Query E) are all falsified. Treat it as unmodellable in a `bpn-connect` endpoint until
|
||||||
|
the vendor explains it — if `bpn-connect` must serve this response, the safe move is to
|
||||||
|
keep `SelektionCRM` on the socket API rather than guess, exactly as
|
||||||
|
`live-api-queries.md` recommends for `getMutableData()`.
|
||||||
|
- Groups `91` and `92` are known to exist and are never emitted; what they are is still
|
||||||
|
unexplained (Query C1). Record the answer here when you have it.
|
||||||
|
- **The publish gate is not identified.** Group membership is necessary but not
|
||||||
|
sufficient: `1478` sits in the published TEAM group with an assignment and is still
|
||||||
|
omitted. Query C is the open investigation.
|
||||||
|
- Consequently Query A **over-reports**: it will return `1477`/`1478` (and anything in
|
||||||
|
groups `91`/`92`) that the real XML omits. It reconstructs the shape of the response,
|
||||||
|
not yet its exact membership.
|
||||||
|
- `dbo.Selektionen` has no status column and no exported primary key, so a duplicate
|
||||||
|
assignment row may well be insertable. Check before inserting.
|
||||||
|
- The schema exports carry no PK/index catalog (noted in
|
||||||
|
`../bpn-connect-query-reference.md`); none of the queries here are
|
||||||
|
performance-sensitive, but a `bpn-connect` endpoint built on them would want indexes
|
||||||
|
on `Selektionen.IDAdresse_FS` and `Selektionsgruppe.IDSelektionsstamm_FS` confirmed.
|
||||||
|
- `Adresse` vs. `AdressePerson`: assignments hang off `IDAdresse`, not `IDPerson`.
|
||||||
@@ -0,0 +1,165 @@
|
|||||||
|
# Live socket-API endpoints — direct-MSSQL feasibility & queries
|
||||||
|
|
||||||
|
> **Authority: [`docs/buspro-database-reference.md`](../buspro-database-reference.md).**
|
||||||
|
> Schema semantics live there and win on any conflict. This file is retained for the
|
||||||
|
> per-endpoint migration verdicts and the `frei` discovery SQL.
|
||||||
|
|
||||||
|
This complements `travel-queries.md`. That doc replaced the **XML export** (static
|
||||||
|
catalog). This one covers the **live socket API** methods of the clients in
|
||||||
|
`src/BusProNet/Client/` and classifies how replicable each is by direct MSSQL
|
||||||
|
query in the Go proxy.
|
||||||
|
|
||||||
|
**Verdict in one line:** the *structural* parts replicate cleanly; the *live "free"
|
||||||
|
counts* are computed by BusPro's allocation logic (not a flat column) and should either
|
||||||
|
stay on the socket API or be reproduced with an explicitly-approximated query;
|
||||||
|
`getMutableData()` is pure business-rule logic — keep it on the socket API.
|
||||||
|
|
||||||
|
| Endpoint (type) | Tier | Replicable in SQL? |
|
||||||
|
|---|---|---|
|
||||||
|
| `getProducts()` (`PRODUKTE`) | 1 | ✅ trivial |
|
||||||
|
| `getAgencies()` (`AGENTUREN`) | 1 | ✅ structural (confirm agency filter + address joins) |
|
||||||
|
| `getTravelData()` (`PRODUKTDATEN`) | 1 | ✅ = `travel-queries.md` Query B |
|
||||||
|
| `getAvailabilities()` (`VERFUEGBARKEIT`) | 2 | ⚠ structure yes; `frei` count is computed |
|
||||||
|
| `getAvailabilitiesExtended()` (`VERFUEGBARKEIT2`) | 2 | ⚠ structure yes (we have the extra fields); `frei` computed |
|
||||||
|
| `getHotelAvailability()` (`VERFUEGBARKEITHOTEL`) | 2 | ⚠ `frei` = contingent − active bookings |
|
||||||
|
| `getMutableData()` (`MOEGLICHEAENDERUNGEN`) | 3 | ✋ business rules — keep on socket API |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Tier 1 — structural, replicate as-is
|
||||||
|
|
||||||
|
### `getProducts()` → `Product{id, code, name}`
|
||||||
|
Parser keeps only rows with a non-empty `code` (`ProductsParser`).
|
||||||
|
```sql
|
||||||
|
SELECT IDProdukt AS id, Code AS code, Bezeichnung AS name
|
||||||
|
FROM dbo.Produkt
|
||||||
|
WHERE Code IS NOT NULL AND Code <> ''
|
||||||
|
ORDER BY Bezeichnung;
|
||||||
|
```
|
||||||
|
|
||||||
|
### `getTravelData(idprodukt[, hotelId])` → `Travel`
|
||||||
|
This is the same payload as `travel-queries.md` **Query B** (header + services +
|
||||||
|
pickups + hotels/rooms + tags). The *static* structure is fully covered there. Its
|
||||||
|
embedded live `preis`/`frei` values overlap Tier 2 — source those the same way you
|
||||||
|
decide to handle availability below. No new SQL needed; reuse Query B.
|
||||||
|
|
||||||
|
### `getAgencies()` → `Agency{id, name, code, street, postCode, city, phone}`
|
||||||
|
`name/code` map to `Adresse.SuchName` + a code column; `street/postCode/city` live in
|
||||||
|
`AdresseAnschrift`, `phone` in `AdresseKommunikation` (1-to-N → pick the primary row).
|
||||||
|
Two things to pin with the discovery queries below: (1) **which `Adresse` rows are
|
||||||
|
agencies**, and (2) the exact `AdresseAnschrift`/`AdresseKommunikation` column + primary-row flag.
|
||||||
|
```sql
|
||||||
|
-- skeleton (fill the agency filter + verified column names from discovery):
|
||||||
|
SELECT a.IDAdresse AS id,
|
||||||
|
a.SuchName AS name,
|
||||||
|
a.Code AS code, -- ⚠ confirm code column on Adresse
|
||||||
|
an.Strasse AS street, -- ⚠ from AdresseAnschrift
|
||||||
|
an.Plz AS postCode,
|
||||||
|
an.Ort AS city,
|
||||||
|
ak.Wert AS phone -- ⚠ from AdresseKommunikation (primary tel)
|
||||||
|
FROM dbo.Adresse a
|
||||||
|
LEFT JOIN dbo.AdresseAnschrift an ON an.IDAdresse_FS = a.IDAdresse /* AND an.IsPrimary */
|
||||||
|
LEFT JOIN dbo.AdresseKommunikation ak ON ak.IDAdresse_FS = a.IDAdresse /* AND ak.Art = 'TEL' */
|
||||||
|
WHERE /* a is an agency — see discovery */ 1 = 0;
|
||||||
|
```
|
||||||
|
Discovery:
|
||||||
|
```sql
|
||||||
|
-- (1) how agencies are flagged (inspect the org/role tables):
|
||||||
|
SELECT TOP 20 * FROM dbo.AdresseAgenturOrganisation;
|
||||||
|
SELECT IDArtAgenturOrganisation, * FROM dbo.ArtAgenturOrganisation; -- the agency "types"
|
||||||
|
-- (2) the address + comm column names / primary-row flags:
|
||||||
|
SELECT TOP 5 * FROM dbo.AdresseAnschrift;
|
||||||
|
SELECT TOP 5 * FROM dbo.AdresseKommunikation;
|
||||||
|
SELECT TOP 5 * FROM dbo.Adresse; -- find the 'code' column
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Tier 2 — availability: structure is flat, the **`frei` count is computed**
|
||||||
|
|
||||||
|
The response models (`Availability`, `ExtendedAvailability`, `Room`) carry per-item
|
||||||
|
`status`, `preis`, structural attrs (dates/ages/mandatory/board) **and** `frei`. The
|
||||||
|
first set is a flat read; **`frei` is not stored**.
|
||||||
|
|
||||||
|
**Why `frei` is computed (validated):** `Leistung.Kontingent` is a fixed planning
|
||||||
|
allotment, not the remaining free count — e.g. service `155234` has `Kontingent=2500`
|
||||||
|
but `2945` booking rows (bookings *exceed* the allotment). So:
|
||||||
|
```
|
||||||
|
frei = Kontingent − (active, non-cancelled, non-expired bookings) [± pooled contingent]
|
||||||
|
```
|
||||||
|
with three real complications:
|
||||||
|
- **Cancellations**: `BuchungTNLeistung` has no own status; join up via `IDBuchungTN_FS`
|
||||||
|
→ `BuchungTN` → `Buchung` and exclude Storno (the `BuchungStatus*` flags / Storno date).
|
||||||
|
- **Option expiry**: `BuchungTNLeistung.OptionsDatum` + `Leistung.KontingentVerfallTage`
|
||||||
|
— expired options free their slots back.
|
||||||
|
- **Pooled contingents**: `Leistung.IDLeistung_FS_KontingentAUS` / `KontingentAusPartner`
|
||||||
|
— a service may draw from another service's pool (or a `PartnerKontingent`), so its
|
||||||
|
`frei` depends on a sibling, not just its own bookings.
|
||||||
|
|
||||||
|
> **Recommendation:** keep the *authoritative* `frei` on the socket API
|
||||||
|
> (`getAvailabilities`/`getHotelAvailability`). If you want it in SQL, treat it as a
|
||||||
|
> documented **approximation** and validate row-by-row against the socket API before
|
||||||
|
> trusting it for booking decisions. The structural fields below are safe to serve from SQL.
|
||||||
|
|
||||||
|
### `getAvailabilities()` / `getAvailabilitiesExtended()` — structural part
|
||||||
|
```sql
|
||||||
|
SELECT
|
||||||
|
l.IDLeistung AS serviceId,
|
||||||
|
l.Status AS status,
|
||||||
|
lp.Preis AS price,
|
||||||
|
l.Kontingent AS allotment, -- NOT 'frei' (see calc above)
|
||||||
|
-- extended-only fields (VERFUEGBARKEIT2):
|
||||||
|
l.Termin_VON AS dateFrom, l.Termin_BIS AS dateTo,
|
||||||
|
l.Alter_VON AS ageFrom, l.Alter_BIS AS ageTo,
|
||||||
|
l.Pflichtmerkmal AS mandatory
|
||||||
|
FROM dbo.ReiseLeistung rl
|
||||||
|
JOIN dbo.Leistung l ON l.IDLeistung = rl.IDLeistung_FS
|
||||||
|
LEFT JOIN dbo.LeistungPreis lp ON lp.IDLeistung_FS = l.IDLeistung AND lp.IDArtPreisSchema_FS = 1
|
||||||
|
WHERE rl.IDReise_FS = @DateId
|
||||||
|
ORDER BY l.Art, l.Unterart;
|
||||||
|
-- travel-level 'buchungstatusmoeglich' / 'status' come from the Reise + the allowed
|
||||||
|
-- ArtBuchungsStatus set; the extended 'uhrzeit_von'/'hinweis' come from the pickup
|
||||||
|
-- time plan (ZustiegZeitplan) and a Leistung text — see travel-queries.md B2/B2b.
|
||||||
|
```
|
||||||
|
The live `frei` per `serviceId` = the calc above (see recommendation).
|
||||||
|
|
||||||
|
### `getHotelAvailability(idreise, idpartner, terminbis)` → `Room{frei, status, preis, …}`
|
||||||
|
Rooms/price/`status` are the `travel-queries.md` **B3** chain;
|
||||||
|
`status` = `PartnerKontingent.BuchungsStatus` (`''`/`S`/`A`). `frei` = `PartnerKontingent.Anzahl`
|
||||||
|
**minus active hotel bookings** for that `(IDAdresse, IDZimmer, date-span)` — same
|
||||||
|
cancellation/expiry caveats as above.
|
||||||
|
|
||||||
|
### Discovery — quantify the `frei` calc against the socket API
|
||||||
|
```sql
|
||||||
|
-- active (non-storno) booking rows for a service, with option dates:
|
||||||
|
SELECT btl.IDLeistung_FS, COUNT(*) AS rows_total,
|
||||||
|
SUM(CASE WHEN btl.OptionsDatum IS NULL OR btl.OptionsDatum >= GETDATE() THEN 1 ELSE 0 END) AS rows_live
|
||||||
|
FROM dbo.BuchungTNLeistung btl
|
||||||
|
JOIN dbo.BuchungTN bt ON bt.IDBuchungTN = btl.IDBuchungTN_FS
|
||||||
|
JOIN dbo.Buchung b ON b.IDBuchung = bt.IDBuchung_FS -- ⚠ confirm FK name
|
||||||
|
WHERE btl.IDLeistung_FS = @ServiceId
|
||||||
|
/* AND b.<storno flag> = 0 */ -- ⚠ confirm Storno column
|
||||||
|
GROUP BY btl.IDLeistung_FS;
|
||||||
|
-- then compare Leistung.Kontingent − rows_live vs the socket-API 'frei' for the same service.
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Tier 3 — `getMutableData()` — keep on the socket API
|
||||||
|
|
||||||
|
Returns per-aspect `möglich` (bool) + `möglichbiszum` (deadline) for: participant
|
||||||
|
count, transportation, pickup, accommodation, additional services, participant data.
|
||||||
|
These are **derived from booking rules / change-cutoff config / departure timing**
|
||||||
|
(not a flat table). Reproducing them in SQL would mean re-implementing BusPro's
|
||||||
|
change-deadline logic and risks silent divergence. Recommendation: leave this on the
|
||||||
|
socket API; don't migrate it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Summary for the Go proxy
|
||||||
|
- **Migrate now (SQL):** `getProducts`, `getAgencies` (after the agency-filter discovery),
|
||||||
|
`getTravelData` (reuse Query B), and the **structural** fields of the two availability
|
||||||
|
endpoints.
|
||||||
|
- **Keep computed:** the live `frei` counts — socket API, or an explicitly-validated
|
||||||
|
approximation.
|
||||||
|
- **Keep on socket:** `getMutableData`.
|
||||||
@@ -0,0 +1,247 @@
|
|||||||
|
# Schema refresh & Zustieg-pricing verification queries
|
||||||
|
|
||||||
|
> **Superseded by [`docs/buspro-database-reference.md`](../buspro-database-reference.md) §12**,
|
||||||
|
> which carries the refresh queries and the verification log. Retained only for the
|
||||||
|
> 2026-08-04 run detail; safe to delete once that is no longer of interest.
|
||||||
|
|
||||||
|
Read-only queries to (a) check whether the June schema dump still matches
|
||||||
|
production after a BusPro update, (b) regenerate it if not, and (c) resolve the
|
||||||
|
open `Abfahrtsortzuschlag (Rückfahrt)` question from the database side.
|
||||||
|
|
||||||
|
Current dump: `BusPronet_20260601-1517.csv` (columns),
|
||||||
|
`BusPronet_20260601-1518.csv` (foreign keys), exported 2026-06-01.
|
||||||
|
|
||||||
|
**All queries are `SELECT`-only.** Run in order — Query 1 decides whether 2–4 are
|
||||||
|
needed at all.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Drift check — run this first
|
||||||
|
|
||||||
|
Cheapest, highest signal. If it returns nothing, the June dump is still accurate
|
||||||
|
and the re-export can be skipped.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.name AS schema_name, o.name AS object_name, o.type_desc,
|
||||||
|
o.create_date, o.modify_date
|
||||||
|
FROM sys.objects o
|
||||||
|
JOIN sys.schemas s ON s.schema_id = o.schema_id
|
||||||
|
WHERE o.is_ms_shipped = 0
|
||||||
|
AND (o.create_date > '2026-06-01' OR o.modify_date > '2026-06-01')
|
||||||
|
ORDER BY o.modify_date DESC;
|
||||||
|
```
|
||||||
|
|
||||||
|
Note: `modify_date` moves on metadata changes, so a long list is expected after a
|
||||||
|
version upgrade. What matters is whether anything under `Zustieg*`, `Leistung*`,
|
||||||
|
`Buchung*` appears.
|
||||||
|
|
||||||
|
**Result 2026-08-04.** Every object reports `create_date` **2026-06-03** — the
|
||||||
|
database was restored/rebuilt that day, so `create_date` is a restore artifact and
|
||||||
|
the `> '2026-06-01'` filter matches everything. Use `modify_date` after the restore
|
||||||
|
instead. Only two genuine clusters exist:
|
||||||
|
|
||||||
|
- **2026-06-11** — six new tables, all absent from `…-1517.csv`: `Reichweite`,
|
||||||
|
`ReichweiteZeitraum`, `ReichweiteZeitraumVonBis`, `ReichweiteRestFarbe`,
|
||||||
|
`LadungTankungBetriebshof`, `ConnectViafintechSlip`.
|
||||||
|
- **2026-07-02** — modified: `Tachostand`, `GutscheinAktion`,
|
||||||
|
`AdressePersonalZusatz`, `BlockPlanung`, `Block`, `LeistungZusatz`,
|
||||||
|
`ConnectViafintechSlip`, `TourPlanung`.
|
||||||
|
|
||||||
|
**Nothing under `Zustieg*`, `ZustiegPreis`, `ArtZustiegPreis`,
|
||||||
|
`LeistungBefoerderung` or `BuchungTNZuschlag` changed after the restore.** The June
|
||||||
|
dump is accurate for the booking and boarding areas; the only staleness is the six
|
||||||
|
fleet/payment tables above. For future runs, filter on `o.modify_date > '2026-06-03'`
|
||||||
|
to skip the restore baseline.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Columns — regenerates `…-1517.csv`
|
||||||
|
|
||||||
|
Column order and names match the existing header exactly, so the output is a
|
||||||
|
drop-in replacement. Export semicolon-separated with quoted values, same settings
|
||||||
|
as the June file.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.name AS schema_name,
|
||||||
|
t.name AS table_name,
|
||||||
|
c.name AS column_name,
|
||||||
|
ty.name AS data_type,
|
||||||
|
c.max_length,
|
||||||
|
c.precision,
|
||||||
|
c.scale,
|
||||||
|
c.is_nullable,
|
||||||
|
c.is_identity,
|
||||||
|
dc.definition AS default_definition
|
||||||
|
FROM sys.tables t
|
||||||
|
JOIN sys.schemas s ON s.schema_id = t.schema_id
|
||||||
|
JOIN sys.columns c ON c.object_id = t.object_id
|
||||||
|
JOIN sys.types ty ON ty.user_type_id = c.user_type_id
|
||||||
|
LEFT JOIN sys.default_constraints dc ON dc.object_id = c.default_object_id
|
||||||
|
ORDER BY t.name, c.column_id;
|
||||||
|
```
|
||||||
|
|
||||||
|
## 3. Foreign keys — regenerates `…-1518.csv`
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT fk.name AS foreign_key_name,
|
||||||
|
cs.name AS child_schema, ct.name AS child_table, cc.name AS child_column,
|
||||||
|
ps.name AS parent_schema, pt.name AS parent_table, pc.name AS parent_column
|
||||||
|
FROM sys.foreign_keys fk
|
||||||
|
JOIN sys.foreign_key_columns fkc ON fkc.constraint_object_id = fk.object_id
|
||||||
|
JOIN sys.tables ct ON ct.object_id = fkc.parent_object_id
|
||||||
|
JOIN sys.schemas cs ON cs.schema_id = ct.schema_id
|
||||||
|
JOIN sys.columns cc ON cc.object_id = fkc.parent_object_id
|
||||||
|
AND cc.column_id = fkc.parent_column_id
|
||||||
|
JOIN sys.tables pt ON pt.object_id = fkc.referenced_object_id
|
||||||
|
JOIN sys.schemas ps ON ps.schema_id = pt.schema_id
|
||||||
|
JOIN sys.columns pc ON pc.object_id = fkc.referenced_object_id
|
||||||
|
AND pc.column_id = fkc.referenced_column_id
|
||||||
|
ORDER BY ct.name, fk.name, fkc.constraint_column_id;
|
||||||
|
```
|
||||||
|
|
||||||
|
## 4. Primary keys & indexes — the documented gap
|
||||||
|
|
||||||
|
`bpn-connect-query-reference.md` records that PK/index data was expected but
|
||||||
|
missing, and that identity flags are not a reliable PK substitute here. This closes
|
||||||
|
it. Suggested filename: `BusPronet_<date>-pk-index.csv`.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT s.name AS schema_name,
|
||||||
|
t.name AS table_name,
|
||||||
|
i.name AS index_name,
|
||||||
|
i.type_desc,
|
||||||
|
i.is_primary_key,
|
||||||
|
i.is_unique,
|
||||||
|
i.is_unique_constraint,
|
||||||
|
ic.key_ordinal,
|
||||||
|
c.name AS column_name,
|
||||||
|
ic.is_included_column,
|
||||||
|
ic.is_descending_key
|
||||||
|
FROM sys.indexes i
|
||||||
|
JOIN sys.tables t ON t.object_id = i.object_id
|
||||||
|
JOIN sys.schemas s ON s.schema_id = t.schema_id
|
||||||
|
JOIN sys.index_columns ic ON ic.object_id = i.object_id AND ic.index_id = i.index_id
|
||||||
|
JOIN sys.columns c ON c.object_id = ic.object_id AND c.column_id = ic.column_id
|
||||||
|
WHERE i.type > 0 -- exclude heaps
|
||||||
|
ORDER BY t.name, i.is_primary_key DESC, i.name, ic.key_ordinal;
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. Boarding-price types — `ArtZustiegPreis`
|
||||||
|
|
||||||
|
**Answered 2026-08-04:** this is a **tariff-scheme** lookup, *not* a direction
|
||||||
|
lookup. Active schemes are 36 `Woche26/27`, 37 `WE26/27`, 38 `Event26/27`,
|
||||||
|
39 `SER26/27` (plus legacy A–T at `Status = 'L'`). There is no Hinfahrt/Rückfahrt
|
||||||
|
concept in this table.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT IDArtZustiegPreis, Code, Kurztext, Langtext, Status, Hierarchie
|
||||||
|
FROM dbo.ArtZustiegPreis
|
||||||
|
ORDER BY Hierarchie, IDArtZustiegPreis;
|
||||||
|
```
|
||||||
|
|
||||||
|
## 6. Configured prices for boarding point 18
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT zp.IDZustiegPreis,
|
||||||
|
zp.IDZustieg_FS,
|
||||||
|
z.Zustiegcode, z.Ort, z.Plz,
|
||||||
|
zp.IDArtZustiegPreis_FS,
|
||||||
|
ap.Code AS PreisArtCode, ap.Kurztext AS PreisArt,
|
||||||
|
zp.Preis, zp.PreisProvisionPflichtig,
|
||||||
|
zp.Sockelbetrag, zp.SockelbetragProvisionPflichtig
|
||||||
|
FROM dbo.ZustiegPreis zp
|
||||||
|
JOIN dbo.Zustieg z ON z.IDZustieg = zp.IDZustieg_FS
|
||||||
|
LEFT JOIN dbo.ArtZustiegPreis ap ON ap.IDArtZustiegPreis = zp.IDArtZustiegPreis_FS
|
||||||
|
WHERE zp.IDZustieg_FS = 18
|
||||||
|
ORDER BY zp.IDArtZustiegPreis_FS;
|
||||||
|
```
|
||||||
|
|
||||||
|
**Answered 2026-08-04:** three rows for point 18 (`ESS-Route`, Essen), one per
|
||||||
|
active tariff scheme — 36 → **17,90**, 37 → 12,90, 38 → 19,90. Prices are keyed by
|
||||||
|
(point, tariff scheme), **not** by direction. The export's
|
||||||
|
`<zustiege_rueck preis="17,90">` is therefore the same row surfaced through the
|
||||||
|
return service, not a separately configured return price.
|
||||||
|
|
||||||
|
## 7. How the two bus services resolve their boarding price — the mechanism
|
||||||
|
|
||||||
|
`LeistungBefoerderung` carries **`IDArtZustiegPreis_FS`** and
|
||||||
|
**`Richtung_Hin_Rueck`**, so each transport service selects which price type
|
||||||
|
applies. This query shows what outbound service 194779 and return service 194776
|
||||||
|
are configured to use.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT l.IDLeistung, l.Bezeichnung, l.Art, l.Unterart,
|
||||||
|
lb.Richtung_Hin_Rueck,
|
||||||
|
lb.IDArtZustiegPreis_FS,
|
||||||
|
ap.Code AS PreisArtCode, ap.Kurztext AS PreisArt,
|
||||||
|
lb.IDArtZustiegZeitplan_FS,
|
||||||
|
lb.ZustiegeGesperrt,
|
||||||
|
lb.IDZustieg_FS_Basisstelle,
|
||||||
|
lb.ZustiegIDs
|
||||||
|
FROM dbo.LeistungBefoerderung lb
|
||||||
|
JOIN dbo.Leistung l ON l.IDLeistung = lb.IDLeistung_FS
|
||||||
|
LEFT JOIN dbo.ArtZustiegPreis ap ON ap.IDArtZustiegPreis = lb.IDArtZustiegPreis_FS
|
||||||
|
WHERE l.IDLeistung IN (194779, 194776);
|
||||||
|
```
|
||||||
|
|
||||||
|
**Answered 2026-08-04 — configuration is symmetric, config cause excluded:**
|
||||||
|
|
||||||
|
| Leistung | Richtung | `IDArtZustiegPreis_FS` | `ZustiegeGesperrt` | `ZustiegIDs` |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 194779 Bus-Hinfahrt | H | 36 (Woche26/27) | 0 | 3,4,18,86,320,470,473 |
|
||||||
|
| 194776 Bus-Rückfahrt | R | 36 (Woche26/27) | 0 | 3,4,18,86,320,470,473 |
|
||||||
|
|
||||||
|
Both legs resolve to the same 17,90 and both have point 18 enabled. The differing
|
||||||
|
BusPro behaviour is therefore not explained by product configuration.
|
||||||
|
|
||||||
|
## 8. Surcharge types — `ArtZuschlag`
|
||||||
|
|
||||||
|
**Answered 2026-08-04:** a discounts/fees lookup (Zwei-Wochen-Rabatt,
|
||||||
|
Kinderermäßigung, Bearbeitungsgebühr, Preiskorrektur, …). No direction concept and
|
||||||
|
**no `Abfahrtsortzuschlag` entry** — so the `SON`/`TRA` positions in the booking
|
||||||
|
response are computed transport surcharges, not `BuchungTNZuschlag` rows. Query 9
|
||||||
|
below is aimed at the wrong table and can be skipped.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT IDArtZuschlag, Code, Kurztext, Langtext, Status, Hierarchie
|
||||||
|
FROM dbo.ArtZuschlag
|
||||||
|
ORDER BY Hierarchie, IDArtZuschlag;
|
||||||
|
```
|
||||||
|
|
||||||
|
## 9. Booked surcharge rows for an affected booking
|
||||||
|
|
||||||
|
The decisive one *if* a completed booking exhibiting the fault is available: does
|
||||||
|
the working booking persist two `BuchungTNZuschlag` rows and the failing one only
|
||||||
|
one?
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT b.Vorgang,
|
||||||
|
tn.IDBuchungTN,
|
||||||
|
z.IDBuchungTNZuschlag,
|
||||||
|
z.BZText, z.Text,
|
||||||
|
z.Art,
|
||||||
|
z.IDZustieg_FS,
|
||||||
|
az.Code AS ZuschlagArtCode, az.Kurztext AS ZuschlagArt,
|
||||||
|
z.BZPreisMitProvision, z.BZPreisOhneProvision
|
||||||
|
FROM dbo.BuchungTNZuschlag z
|
||||||
|
JOIN dbo.BuchungTN tn ON tn.IDBuchungTN = z.IDBuchungTN_FS
|
||||||
|
JOIN dbo.Buchung b ON b.IDBuchung = tn.IDBuchung_FS
|
||||||
|
LEFT JOIN dbo.ArtZuschlag az ON az.IDArtZuschlag = z.IDArtZuschlag_FS
|
||||||
|
WHERE b.Vorgang IN ('<Vorgang-1>', '<Vorgang-2>')
|
||||||
|
ORDER BY b.Vorgang, tn.IDBuchungTN, z.IDBuchungTNZuschlag;
|
||||||
|
```
|
||||||
|
|
||||||
|
**Caveat:** both captured cases were `<buchungsart>Anfrage</buchungsart>` inquiries,
|
||||||
|
and our flow only commits at step 4 — so these rows may not exist for them. Use the
|
||||||
|
`Vorgang` of an actually completed booking that showed the short total. If none
|
||||||
|
exists, skip this query; queries 5–7 carry the argument on their own.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## What to send back
|
||||||
|
|
||||||
|
Query 1's result, plus 5, 6, 7 and 8 as plain result sets — those four are small and
|
||||||
|
answer the pricing question directly. Queries 2–4 only if query 1 shows drift, as
|
||||||
|
CSV files replacing the ones in this directory.
|
||||||
@@ -0,0 +1,309 @@
|
|||||||
|
# Travel catalog — direct MSSQL queries (to replace the XML export)
|
||||||
|
|
||||||
|
> **Authority: [`docs/buspro-database-reference.md`](../buspro-database-reference.md).**
|
||||||
|
> Schema semantics, conventions and confidence marks live there and win on any conflict.
|
||||||
|
> This file is retained as a **query cookbook** — it holds worked SQL (included-services
|
||||||
|
> A2a/A2b, the full room-pricing chain B3) not reproduced in the reference.
|
||||||
|
|
||||||
|
Purpose: reproduce, straight from the BusPro MSSQL tables, the data the Symfony app
|
||||||
|
currently parses from the `Ziel_*.xml` exports, so the Go proxy can serve it without
|
||||||
|
the SFTP/XML round-trip. Two read paths:
|
||||||
|
|
||||||
|
- **Query A — travel list:** every bookable departure + product + dates (+ hotels,
|
||||||
|
+ a minimal bookable-services list).
|
||||||
|
- **Query B — detail:** everything for one selected `(date, hotel)` combination.
|
||||||
|
|
||||||
|
Validated against the live DB using the sample `var/xmlexport/Ziel_1121.xml`
|
||||||
|
(Produkt `1121`, departure `Reise.IDReise=12665`, hotel `Adresse.IDAdresse=224923`,
|
||||||
|
room-type `Zimmerart 1413`, pickup `Zustieg 494`). Columns verified in
|
||||||
|
`docs/buspronet-schema/*.csv`. Header, services, pickups, hotels, room pricing,
|
||||||
|
availability and tags are all confirmed against live data; the "included services"
|
||||||
|
list for Query A (§A2) is defined as price-`0.00` services + the 10 hardcoded
|
||||||
|
"Leistungen" selection groups (ids baked in). Nothing left to resolve.
|
||||||
|
|
||||||
|
## The naming trap (read first)
|
||||||
|
|
||||||
|
The XML export **renames** the core entities — do not map by name:
|
||||||
|
|
||||||
|
| XML term | Real table | Notes |
|
||||||
|
|---|---|---|
|
||||||
|
| `<reise idbuspro=1121>` | **`Produkt`** | the travel *product*: `IDProdukt`, `Code`, `Bezeichnung` |
|
||||||
|
| `<termin idprodukt=1121 idbuspro=12665>` | **`Reise`** | the **dated departure**: `IDReise=12665`, `IDProdukt_FS=1121`, `Code`, `TerminVon/Bis`, `ReiseArt`, `Status`, `StornoDatum` |
|
||||||
|
| DB `Termin` table | — | **ignore**: generic appointments (odometer/repairs) |
|
||||||
|
| `<leistung>` (lei_befoerderung / lei_sonstiges) | `ReiseLeistung → Leistung` | `Leistung.Art` = `BEF` / `SON`; price via `LeistungPreis` |
|
||||||
|
| `<hotel idbuspro=224923>` + rooms | `ReisePartner` (+ `Partner*` subsystem) | **not** `ReiseLeistung`; keyed by the hotel `Adresse` |
|
||||||
|
| `<zustieg>` | `LeistungBefoerderung.ZustiegIDs` → `Zustieg` (+ `ZustiegZeitplan` for the time) | |
|
||||||
|
| `<selektion>` / `<selektiongruppe>` | `ReiseSelektionen → Selektionsstamm` (+ `Selektionsgruppe → Selektionsgruppenstamm`) | |
|
||||||
|
|
||||||
|
`Produkt 1—N Reise`. **`Reise.IDReise` is the "date id"** and the anchor for all
|
||||||
|
per-departure data.
|
||||||
|
|
||||||
|
**Two distinct status axes** — don't conflate them:
|
||||||
|
1. **Departure lifecycle** — `Reise.Status` (`nvarchar(2)`), observed `''` ≈ 9767,
|
||||||
|
`S` ≈ 945, `L` ≈ 845. Confirmed against the live DB:
|
||||||
|
- `''` = active/bookable.
|
||||||
|
- `S` = **Storno** (cancelled): every `S` row has `StornoDatum` set.
|
||||||
|
- `L` = **template / future master** (not a real sellable departure): every `L`
|
||||||
|
row has `StornoDatum NULL`, far-future `TerminVon` (2029–2035) and template-style
|
||||||
|
`Code`s (`MRAGRMP`, no date suffix). `Leistung.Status` mirrors this (`''` = 196 504,
|
||||||
|
`L` = 1 672 — the leistungen attached to those template departures).
|
||||||
|
2. **Availability / booking status** — booking-state codes, **not** `Leistung.Status`
|
||||||
|
(which only holds `''`/`L`). Canonical dictionary = **`dbo.ArtBuchungsStatus`**
|
||||||
|
(`Code`), confirmed values:
|
||||||
|
|
||||||
|
| Code | Kurztext | meaning |
|
||||||
|
|---|---|---|
|
||||||
|
| `F` | Fest | firm/final booking (available) |
|
||||||
|
| `O` | Option | held option |
|
||||||
|
| `A` | Anfrage | on request / inquiry-only (groups-inquiry path) |
|
||||||
|
| `W` | Warteliste | waitlist |
|
||||||
|
| `S` | Storno | cancelled |
|
||||||
|
| `U` | Umbuchung | rebooking |
|
||||||
|
|
||||||
|
The **working column** for hotel availability is **`PartnerKontingent.BuchungsStatus`**
|
||||||
|
(`nvarchar(2)`) — confirmed to carry these: observed `''` ≈ 19 664 (free/Fest),
|
||||||
|
`S` ≈ 12 215 (stop), `A` ≈ 2 060 (on request). So per room/date: `''` = bookable,
|
||||||
|
`S` = not bookable, `A` = inquiry-only. (The same codes also appear via
|
||||||
|
`…IDArtBuchungsstatus_FS` on individual bookings such as `ZusatzZimmer`.) Transport
|
||||||
|
`<status_hin>`/`<status_rueck>` is not in `Leistung.Status`; treat it as derived from
|
||||||
|
the transport `Kontingent` count.
|
||||||
|
|
||||||
|
Bookable filter (departure-level): `Reise.Status = '' AND Reise.StornoDatum IS NULL`
|
||||||
|
(excludes both `S` Storno and `L` templates), then apply `PartnerKontingent.BuchungsStatus`
|
||||||
|
per room/date (exclude `S`, treat `A` as inquiry-only).
|
||||||
|
|
||||||
|
Note the XML repeats `lei_sonstiges` under each hotel; in the DB the services exist
|
||||||
|
**once** on the departure (`ReiseLeistung`).
|
||||||
|
|
||||||
|
Conventions: ids `bigint`→`int64`; prices `decimal(18,2)`; `_FS` = foreign key (many
|
||||||
|
soft/unenforced — join defensively); bracket non-ASCII columns (`[Reisebüro]`).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query A — travel list
|
||||||
|
|
||||||
|
### A1. Departures + product + dates (header)
|
||||||
|
```sql
|
||||||
|
SELECT
|
||||||
|
p.IDProdukt AS ProductId, p.Code AS ProductCode, p.Bezeichnung AS ProductLabel,
|
||||||
|
r.IDReise AS DateId, r.Code AS DateCode,
|
||||||
|
r.ReiseArt AS TravelType, -- XML reiseart, e.g. 'F'
|
||||||
|
r.Bezeichnung AS DateLabel,
|
||||||
|
r.TerminVon AS DateFrom, r.TerminBis AS DateTo
|
||||||
|
FROM dbo.Reise AS r
|
||||||
|
JOIN dbo.Produkt AS p ON p.IDProdukt = r.IDProdukt_FS
|
||||||
|
WHERE r.Status = '' AND r.StornoDatum IS NULL -- bookable (confirm status codes)
|
||||||
|
ORDER BY r.TerminVon, p.Code;
|
||||||
|
```
|
||||||
|
Customer description (XML `<text>`) = `dbo.ReiseText.ExternText` (`IDReise_FS`) — join if wanted.
|
||||||
|
|
||||||
|
### A2. Included-services list per departure
|
||||||
|
"Minimum services" = the **included** services (no surcharge), from two sources that
|
||||||
|
get merged into one plain list per departure.
|
||||||
|
|
||||||
|
**A2a — included `Leistung`s (sales price = 0.00).** Priced services are optional
|
||||||
|
add-ons; the package-included ones have a `0.00` sales price (schema 1).
|
||||||
|
```sql
|
||||||
|
SELECT
|
||||||
|
rl.IDReise_FS AS DateId,
|
||||||
|
l.IDLeistung AS ServiceId,
|
||||||
|
l.Art AS Type, -- 'BEF' (transport) | 'SON' (other)
|
||||||
|
l.Unterart AS SubType, -- BUS/PKW/SPA/VER/SON/LVS/...
|
||||||
|
l.Bezeichnung AS Label
|
||||||
|
FROM dbo.ReiseLeistung rl
|
||||||
|
JOIN dbo.Leistung l ON l.IDLeistung = rl.IDLeistung_FS
|
||||||
|
JOIN dbo.LeistungPreis lp ON lp.IDLeistung_FS = l.IDLeistung
|
||||||
|
AND lp.IDArtPreisSchema_FS = 1 -- standard sales price (confirmed)
|
||||||
|
WHERE rl.IDReise_FS IN (@DateIds)
|
||||||
|
AND lp.Preis = 0.00 -- included = no surcharge
|
||||||
|
ORDER BY rl.IDReise_FS, l.Art, l.Unterart;
|
||||||
|
```
|
||||||
|
> Note: a `LEFT JOIN` would also surface services with **no** price row (NULL). Those
|
||||||
|
> are *not* the same as priced-at-zero — keep the inner join so "included" means an
|
||||||
|
> explicit `0.00`. (If BusPro models some included items as price-less rows, widen to
|
||||||
|
> `lp.Preis = 0.00 OR lp.IDLeistungPreis IS NULL` — confirm with the discovery query.)
|
||||||
|
|
||||||
|
**A2b — "Leistungen…" selection groups (plain list).** The catalog also lists included
|
||||||
|
services as selection tags under the "Leistungen" groups. Filter by a **hardcoded list
|
||||||
|
of `Selektionsgruppenstamm` ids** (configured in the proxy) rather than a label match —
|
||||||
|
the labels can be renamed, the ids are stable. Same join as B4; emit `Selektion` as the
|
||||||
|
plain text item.
|
||||||
|
```sql
|
||||||
|
SELECT rs.IDReise_FS AS DateId,
|
||||||
|
gs.IDSelektionsgruppenstamm AS GroupId,
|
||||||
|
gs.Selektionsgruppe AS GroupLabel, -- e.g. 'Leistungen inklusive'
|
||||||
|
s.Selektion AS Item
|
||||||
|
FROM dbo.ReiseSelektionen rs
|
||||||
|
JOIN dbo.Selektionsstamm s ON s.IDSelektionsstamm = rs.IDSelektionsstamm_FS
|
||||||
|
JOIN dbo.Selektionsgruppe sg ON sg.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
JOIN dbo.Selektionsgruppenstamm gs ON gs.IDSelektionsgruppenstamm = sg.IDSelektionsgruppenstamm_FS
|
||||||
|
WHERE rs.IDReise_FS IN (@DateIds)
|
||||||
|
AND gs.IDSelektionsgruppenstamm IN (70, 89, 87, 88, 86, 7, 8, 90, 85, 71)
|
||||||
|
ORDER BY rs.IDReise_FS, gs.Position, sg.Position;
|
||||||
|
```
|
||||||
|
> The "Leistungen" `Selektionsgruppenstamm` ids (captured from the live DB — hardcode in
|
||||||
|
> the proxy; re-check if groups are added/renamed):
|
||||||
|
>
|
||||||
|
> | id | group | id | group |
|
||||||
|
> |---|---|---|---|
|
||||||
|
> | 70 | Leistungen | 86 | Leistungen Programm |
|
||||||
|
> | 89 | Leistungen Events | 7 | Leistungen Skipass |
|
||||||
|
> | 87 | Leistungen Kurse | 8 | Leistungen Sonstige |
|
||||||
|
> | 88 | Leistungen Personal | 90 | Leistungen Transport |
|
||||||
|
> | 85 | Leistungen Übernachtung | 71 | Leistungen Verpflegung |
|
||||||
|
> `LeistungPreis` has one row per `(Leistung, IDArtPreisSchema_FS)`; schema `1` is the
|
||||||
|
> standard sales price and reproduced the XML service prices exactly (13.90, 50.00, …).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Query B — detail for one `(@DateId [, @HotelId])`
|
||||||
|
|
||||||
|
Run a header query + one query per child collection; assemble in Go.
|
||||||
|
|
||||||
|
### B1. Header — A1 with `WHERE r.IDReise = @DateId` (+ `ReiseText.ExternText`).
|
||||||
|
|
||||||
|
### B2. Services (transport + other, with direction & pickups) — **confirmed**
|
||||||
|
```sql
|
||||||
|
SELECT
|
||||||
|
l.IDLeistung AS ServiceId,
|
||||||
|
l.Art AS Type, -- BEF | SON
|
||||||
|
l.Unterart AS SubType,
|
||||||
|
l.Bezeichnung AS Label,
|
||||||
|
l.Pflichtmerkmal AS Mandatory,
|
||||||
|
l.Kontingent AS Available,
|
||||||
|
l.Alter_VON AS AgeFrom, l.Alter_BIS AS AgeTo,
|
||||||
|
l.Termin_VON AS DateFrom, l.Termin_BIS AS DateTo,
|
||||||
|
lb.Richtung_Hin_Rueck AS Direction, -- 'H' | 'R' (transport only)
|
||||||
|
lb.ZustiegIDs AS PickupIds, -- delimited list of dbo.Zustieg ids
|
||||||
|
lb.IDArtZustiegZeitplan_FS AS PickupTimePlanId,
|
||||||
|
lp.Preis AS Price
|
||||||
|
FROM dbo.ReiseLeistung rl
|
||||||
|
JOIN dbo.Leistung l ON l.IDLeistung = rl.IDLeistung_FS
|
||||||
|
LEFT JOIN dbo.LeistungBefoerderung lb ON lb.IDLeistung_FS = l.IDLeistung
|
||||||
|
LEFT JOIN dbo.LeistungPreis lp ON lp.IDLeistung_FS = l.IDLeistung
|
||||||
|
AND lp.IDArtPreisSchema_FS = 1
|
||||||
|
WHERE rl.IDReise_FS = @DateId
|
||||||
|
ORDER BY l.Art, l.Unterart, l.Bezeichnung;
|
||||||
|
```
|
||||||
|
`LeistungBefoerderung` present ⇒ transport (`lei_befoerderung`), else `lei_sonstiges`.
|
||||||
|
English texts (`<fremdsprache>`) = `dbo.LeistungText.ExternText` (validate).
|
||||||
|
|
||||||
|
### B2b. Pickup detail (resolve the `ZustiegIDs` list + time) — **confirmed**
|
||||||
|
For each id parsed from `lb.ZustiegIDs`:
|
||||||
|
```sql
|
||||||
|
SELECT z.IDZustieg AS PickupId, z.Zustiegcode AS Code,
|
||||||
|
z.Plz AS PostalCode, z.Ort AS City, z.Strasse AS Street,
|
||||||
|
CONVERT(time, zp.Uhrzeit) AS PickupTime
|
||||||
|
FROM dbo.Zustieg z
|
||||||
|
LEFT JOIN dbo.ZustiegZeitplan zp
|
||||||
|
ON zp.IDZustieg_FS = z.IDZustieg
|
||||||
|
AND zp.IDArtZustiegZeitplan_FS = @PickupTimePlanId -- from B2 (0 ⇒ no time)
|
||||||
|
WHERE z.IDZustieg = @PickupId;
|
||||||
|
```
|
||||||
|
Only the **time-of-day** of `Uhrzeit` is meaningful (the date part is a placeholder).
|
||||||
|
Verified: zustieg `494`, plan `2546` → `05:15`.
|
||||||
|
|
||||||
|
### B3. Hotels + rooms + board — **Partner subsystem**
|
||||||
|
The XML `<hotel idbuspro=224923>` is a hotel **`Adresse.IDAdresse`** (224923 =
|
||||||
|
"NEU Sportclub Waldschlössli – Gruppen 2"), **not** a `ReisePartner`. Hotels are
|
||||||
|
assigned at the **product** level via the join table `PartnerProdukt
|
||||||
|
(IDProdukt_FS, IDAdresse_FS)` — that's why a departure (`IDReise`) has no `ReisePartner`
|
||||||
|
row. (`ReisePartner`/`IDArtVerpflegung_FS` is the booking-side hotel; for the *catalog*
|
||||||
|
use `PartnerProdukt`. `ProduktBeschreibung.IDAdresse_FS_Hotel` = the single featured hotel.)
|
||||||
|
```sql
|
||||||
|
-- hotels of the product (each IDAdresse_FS = an XML <hotel idbuspro>)
|
||||||
|
SELECT pp.IDAdresse_FS AS HotelAddressId, a.SuchName AS HotelName
|
||||||
|
FROM dbo.PartnerProdukt pp
|
||||||
|
JOIN dbo.Adresse a ON a.IDAdresse = pp.IDAdresse_FS
|
||||||
|
WHERE pp.IDProdukt_FS = @ProductId -- e.g. 1121
|
||||||
|
-- AND pp.IDAdresse_FS = @HotelAddressId
|
||||||
|
ORDER BY a.SuchName;
|
||||||
|
```
|
||||||
|
Board (`IDArtVerpflegung`) and stay dates aren't on `PartnerProdukt`; board comes from
|
||||||
|
the `PartnerPreisKategorie` rows below, and the stay span = the departure dates
|
||||||
|
(`Reise.TerminVon/TerminBis`, here `11.–13.12.2026` ⇒ `Naechte = 2`).
|
||||||
|
Rooms / price / availability for a hotel address. The pricing fans out over
|
||||||
|
`room → price-category → season tafel → nights`; **validated** against the live DB
|
||||||
|
for hotel `224923`, room-type `Zimmerart 1413` (Code `MBZ`) → `IDArtPartnerPreisCode 38`
|
||||||
|
→ category `9478`, season `15420` (covers `2026-12-11`), `Naechte=2`, `EK_VK='VK'`,
|
||||||
|
`IDArtPreisSchema_FS=1` → **`269,00`** (single clean row; same schema id `1` as the
|
||||||
|
`LeistungPreis` side). Map a room to its price category via `IDArtPartnerPreisCode_FS`.
|
||||||
|
(The XML headline `abpreis` of `289,00` = this room price + mandatory services, i.e.
|
||||||
|
computed — see note below; the flat per-room price is `269,00`.)
|
||||||
|
|
||||||
|
```sql
|
||||||
|
-- 1) rooms the hotel offers
|
||||||
|
-- PartnerZimmer ⋈ PartnerPreisKategorie on (IDAdresse_FS, IDArtPartnerPreisCode_FS)
|
||||||
|
SELECT pz.IDPartnerZimmer AS RoomId, za.Code AS RoomCode, za.Bezeichnung AS RoomLabel,
|
||||||
|
za.PaxMin, za.PaxMax, pz.IDArtPartnerPreisCode_FS AS PriceCode
|
||||||
|
FROM dbo.PartnerZimmer pz
|
||||||
|
JOIN dbo.Zimmerart za ON za.IDZimmerart = pz.IDZimmerart_FS
|
||||||
|
WHERE pz.IDAdresse_FS = @HotelAddressId;
|
||||||
|
|
||||||
|
-- 2) which season tafel covers the arrival date
|
||||||
|
SELECT IDPartnerSaisonTafel_FS FROM dbo.PartnerSaisonzeit
|
||||||
|
WHERE IDAdresse_FS = @HotelAddressId
|
||||||
|
AND TerminVon <= @Anreise AND TerminBis >= @Anreise
|
||||||
|
AND EK_VK = 'VK'; -- sale side
|
||||||
|
|
||||||
|
-- 3) price for the room's category × that season × nights
|
||||||
|
SELECT pp.Preis AS RoomPrice, pp.Naechte, pp.Verlaengerung
|
||||||
|
FROM dbo.PartnerPreisKategorie pk
|
||||||
|
JOIN dbo.PartnerPreis pp ON pp.IDPartnerPreisKategorie_FS = pk.IDPartnerPreisKategorie
|
||||||
|
WHERE pk.IDAdresse_FS = @HotelAddressId
|
||||||
|
AND pk.IDArtPartnerPreisCode_FS = @PriceCode -- from step 1 (room → category)
|
||||||
|
AND pk.IDArtVerpflegung_FS = @BoardId -- ReisePartner.IDArtVerpflegung_FS
|
||||||
|
AND pk.EK_VK = 'VK'
|
||||||
|
AND pp.IDPartnerSaisonTafel_FS = @SaisonTafelId -- from step 2
|
||||||
|
AND pp.Naechte = @Nights; -- nights of the stay
|
||||||
|
```
|
||||||
|
> `EK_VK` distinguishes purchase (`EK`) from sale (`VK`) — always filter `VK` for the
|
||||||
|
> customer price. `PartnerZimmer.PreisJeZimmer` flags per-room vs. per-person pricing.
|
||||||
|
|
||||||
|
```sql
|
||||||
|
-- allotment behind XML 'verfuegbar' for the (hotel, room-type, date-span).
|
||||||
|
-- IDZimmer_FS = the XML idbuspro_zimmer (a Zimmerart). Anzahl is the allotment, NOT what is
|
||||||
|
-- left: 2026-11-11, hotel 163113 / 2366 → Anzahl=6 against XML verfuegbar=1. The earlier
|
||||||
|
-- sample 224923 / 1413 / 2026-12-11 (Anzahl=25 = verfuegbar) presumably had no bookings yet.
|
||||||
|
SELECT IDZimmer_FS, Anzahl, BuchungsStatus FROM dbo.PartnerKontingent
|
||||||
|
WHERE IDAdresse_FS = @HotelAddressId
|
||||||
|
AND IDZimmer_FS = @ZimmerartId -- the room type (XML idbuspro_zimmer)
|
||||||
|
AND TerminVon <= @Abreise AND TerminBis >= @Anreise;
|
||||||
|
```
|
||||||
|
> `verfuegbar` is **computed** by BusPro: allotment minus bookings (see
|
||||||
|
> `live-api-queries.md`), and for a pooled room type the parent's figure
|
||||||
|
> (`PartnerZimmer.IDPartnerZimmer_FS_KontiAus`, `buspro-database-reference.md` A6).
|
||||||
|
> Gate it with `BuchungsStatus` (`''` bookable, `S` stop, `A` on-request).
|
||||||
|
> `<abpreis>` (the headline "from" price) is still **computed** (cheapest valid room +
|
||||||
|
> mandatory services) — recompute in the proxy from the per-room prices above.
|
||||||
|
|
||||||
|
### B4. Selection tags + groups — **confirmed**
|
||||||
|
```sql
|
||||||
|
SELECT gs.Selektionsgruppe AS GroupLabel, gs.Position AS GroupPos,
|
||||||
|
s.IDSelektionsstamm AS SelectionId, s.Selektion AS SelectionLabel
|
||||||
|
FROM dbo.ReiseSelektionen rs
|
||||||
|
JOIN dbo.Selektionsstamm s ON s.IDSelektionsstamm = rs.IDSelektionsstamm_FS
|
||||||
|
JOIN dbo.Selektionsgruppe sg ON sg.IDSelektionsstamm_FS = s.IDSelektionsstamm
|
||||||
|
JOIN dbo.Selektionsgruppenstamm gs ON gs.IDSelektionsgruppenstamm = sg.IDSelektionsgruppenstamm_FS
|
||||||
|
WHERE rs.IDReise_FS = @DateId
|
||||||
|
ORDER BY gs.Position, sg.Position;
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Status / open decisions
|
||||||
|
1. ~~**Status codes** (A1)~~ — ✅ confirmed: `Reise.Status` `''` = bookable, `S` = Storno
|
||||||
|
(cancelled, `StornoDatum` set), `L` = template/future master (exclude both).
|
||||||
|
2. ~~**F/A/O/S column**~~ — ✅ codes in `dbo.ArtBuchungsStatus` (F/O/A/W/S/U); the
|
||||||
|
working hotel-availability column is `PartnerKontingent.BuchungsStatus` (`''`/`S`/`A`).
|
||||||
|
3. ~~**Hotel link**~~ — ✅ XML `<hotel idbuspro>` = `Adresse.IDAdresse`; departure→hotel
|
||||||
|
via `PartnerProdukt(IDProdukt_FS, IDAdresse_FS)` at product level (not `ReisePartner`).
|
||||||
|
4. ~~**Partner room pricing**~~ — ✅ fully validated end-to-end: room `1413` (MBZ) →
|
||||||
|
code `38` → category `9478` → season `15420` × `Naechte=2` × `VK` × schema `1` =
|
||||||
|
**`269,00`**. (XML `abpreis 289,00` = room + mandatory services = computed.)
|
||||||
|
5. **`verfuegbar`** — computed, not flat (corrected 2026-11-11): `PartnerKontingent.Anzahl`
|
||||||
|
is the allotment; `1413 / 2026-12-11 → 25` presumably matched because nothing was booked
|
||||||
|
yet. `<abpreis>` remains computed (recompute in proxy).
|
||||||
|
6. ~~**Minimum-services filter**~~ — ✅ defined: "included services" =
|
||||||
|
(A2a) `Leistung`s with sales price `0.00` (schema 1) **+** (A2b) selection items from
|
||||||
|
the hardcoded "Leistungen" `Selektionsgruppenstamm` ids, merged into one plain list.
|
||||||
@@ -0,0 +1,196 @@
|
|||||||
|
# Chatbot MCP server
|
||||||
|
|
||||||
|
The website chatbot runs in n8n. Its AI Agent answers from a read-only MCP server in this app instead
|
||||||
|
of scraping the websites. The server combines two sources:
|
||||||
|
|
||||||
|
- **Editorial content from TYPO3**: the content feed of all public sites (ep-reisen, ser,
|
||||||
|
ski-boarderweek, ski-wochenenden, snowzone), mirrored into `content_document` by `app:content:sync`.
|
||||||
|
- **Trip data of our own**: dates, rooms, prices, availability and pickups from the product export
|
||||||
|
(`ProductExportBuilder`, the data behind `GET /api/exports/products`).
|
||||||
|
|
||||||
|
TYPO3 sends no dates or prices, and nothing flows back to TYPO3.
|
||||||
|
|
||||||
|
## Endpoint
|
||||||
|
|
||||||
|
`POST /mcp` (Streamable HTTP; `GET`/`DELETE` are part of the transport), served by `symfony/mcp-bundle`
|
||||||
|
from `config/packages/mcp.yaml`. Tools only, no resources or prompts. `POST /mcp/trips` is the same
|
||||||
|
server without the editorial content, see [Trips only](#trips-only-mcptrips).
|
||||||
|
|
||||||
|
Authentication is a static bearer token per client, `Authorization: Bearer <token>`, checked by
|
||||||
|
`App\Security\McpAccessTokenHandler` on the `mcp` firewall. `APP_MCP_TOKENS` lists the clients as
|
||||||
|
`name:token` pairs separated by commas, e.g. `APP_MCP_TOKENS="n8n:3f9c…,claude-desktop:a71e…"`. Give every
|
||||||
|
system its own token, so one can be revoked by removing its entry without touching the others. Use tokens
|
||||||
|
without commas, e.g. `openssl rand -hex 32`. A malformed list (no name, a duplicate name, a token shared by
|
||||||
|
two clients) fails loudly with a 500 on `/mcp` rather than locking a client out silently. If the list is
|
||||||
|
empty, every request is refused. It is not the OAuth2 client-credentials flow of `/api`: n8n's MCP Client Tool node sends a fixed
|
||||||
|
header and cannot renew a token every 10 minutes.
|
||||||
|
|
||||||
|
The client name becomes the authenticated user. Tool calls are rate-limited per client (`chatbot_mcp`
|
||||||
|
limiter, 60 per minute), so testing from Claude Desktop does not eat into n8n's budget. The limit is there to stop
|
||||||
|
runaway agent loops. Each call is logged on the `chatbot` channel (`var/log/<env>.chatbot.log`, file
|
||||||
|
only) with the client, tool, arguments, result count and duration. Nothing identifies the person chatting.
|
||||||
|
|
||||||
|
### n8n
|
||||||
|
|
||||||
|
MCP Client Tool node: endpoint `https://<host>/mcp`, transport *HTTP Streamable*, authentication *Bearer*
|
||||||
|
with n8n's own token from the stage's `APP_MCP_TOKENS`. The agent prompt should tell the bot to cite each answer's `url`, and
|
||||||
|
that prices and availability are a snapshot (`dataAsOf`) and only the booking page is binding.
|
||||||
|
|
||||||
|
## Tools
|
||||||
|
|
||||||
|
| Tool | Use | Returns |
|
||||||
|
|---|---|---|
|
||||||
|
| `search_trips` | The website's travel search: which trips exist, when, where, how much | One result per trip × hotel × travel date (default 10, max 25), with trip `code` and `hotelCode`, "ab" price, nights, inclusions, room types, availability, link; `total` and `dataAsOf` |
|
||||||
|
| `get_trip` | One trip by product `code`, or one date of it by date code such as `SSLMP061226` (optionally `hotelCode`) | Product text with FAQs, hotels with facts, all upcoming dates with bookable rooms, pickups for the first 3 dates |
|
||||||
|
| `search_content` | Questions not about dates or prices | Up to 8 hits with a ~600-character excerpt |
|
||||||
|
| `get_document` | The full text of one `search_content` hit, by `url` | Markdown body, truncated at 20 000 characters |
|
||||||
|
|
||||||
|
### Trips only: `/mcp/trips`
|
||||||
|
|
||||||
|
A second server (`chatbot_trips` in `config/packages/mcp.yaml`) for clients that must not answer from
|
||||||
|
editorial website text, which can contradict the booking system, most visibly on prices. A client picks
|
||||||
|
the variant by the path it is pointed at; tokens, rate limit and log are those of `/mcp`.
|
||||||
|
|
||||||
|
- Only `search_trips` and `get_trip`. `search_content` and `get_document` do not exist here.
|
||||||
|
- `get_trip` (`App\Chatbot\Mcp\TripsOnly\GetTripTool`) leaves out the product `description`, which
|
||||||
|
includes the FAQs, and each hotel's `description`.
|
||||||
|
- What remains from TYPO3 is structured: trip and hotel names, `url`, `site`, destination, concept and
|
||||||
|
the hotel `facts` (beds, altitude, distances, sauna, wifi, …; no prices). Which trips exist is still
|
||||||
|
decided by TYPO3's products and their `searchable` flag, and the free-text `query` of `search_trips`
|
||||||
|
still falls back to the page texts to find a trip, without returning any of it.
|
||||||
|
- The server instructions tell the model to refer to the trip's `url` for anything the tools don't answer.
|
||||||
|
|
||||||
|
To give a client the editorial content back, point it at `/mcp` again.
|
||||||
|
|
||||||
|
Editorial text (product descriptions, FAQs, pages) is maintained by hand in TYPO3 and can lag behind BusPro, e.g. an
|
||||||
|
old price or a changed inclusion. The server instructions and the tool descriptions therefore tell the model that the
|
||||||
|
structured trip fields of `search_trips` and `get_trip` override whatever the text says about dates, prices, pickups
|
||||||
|
and inclusions.
|
||||||
|
|
||||||
|
Every result carries the public `url`. Output is compact JSON with Markdown in the text fields.
|
||||||
|
An empty result is `{"results": []}`. Invalid input produces a tool error the model can read.
|
||||||
|
|
||||||
|
Trip rules (`App\Chatbot\TripCatalog`):
|
||||||
|
|
||||||
|
- TYPO3 products are joined to the export on `product.code`. Several products can share a code, and
|
||||||
|
each is listed as its own trip. Hotels are joined on any entry of the TYPO3 hotel's `codes` (BusPro
|
||||||
|
uses the matchcode aliases). A code that is one hotel's own and another's alias resolves to its owner.
|
||||||
|
- BusPro has hotel names of its own (`hotel.xml`, joined on the hotel id). They are internal wording
|
||||||
|
("NEU Sportclub Lederer Wochenenden und Kurztrips", "Vacanceole Résidence L'Edelweiss"), so a hotel is
|
||||||
|
shown under its TYPO3 title, and under BusPro's name only when TYPO3 has no hotel for its code.
|
||||||
|
`query` searches both. Trips have no name in BusPro's export, only a code; their names are TYPO3's.
|
||||||
|
- A room is listed unless its status is `Buchungsstop`. The baby row (room code `Baby`) is not a room.
|
||||||
|
A listed room is bookable when the booking flow offers it (the export's `bookable`): `Frei` with rooms
|
||||||
|
left is `frei`; `Anfrage` with rooms left and a room code ending in `Anf` (sold on request on purpose,
|
||||||
|
booking it produces an inquiry) is `auf Anfrage`. Any other room, including any other one on request, is
|
||||||
|
sold out, as the website shows it. A date at a hotel is as available as its best room; dates with only
|
||||||
|
sold-out rooms stay in `search_trips`, marked `ausgebucht`. `available` counts rooms, so the places of a
|
||||||
|
date at a hotel are `Σ available × maxPax` over its bookable rooms, and the "ab" price is the cheapest
|
||||||
|
bookable room's. The tools never output room counts, only `frei`, `auf Anfrage` or `ausgebucht`.
|
||||||
|
- `search_trips` only offers products that TYPO3 lists in its own website search (`searchable`) and does
|
||||||
|
not mark as unbookable. Closed group trips and staff trainings are `searchable: false`. `get_trip` still
|
||||||
|
answers when someone names their code.
|
||||||
|
- Pickup surcharges are per person and per leg, so each pickup carries `surchargeOutbound`, `surchargeReturn` and
|
||||||
|
their sum `surchargeRoundTrip`. A single figure was read by the model as the whole price. A leg listed without a
|
||||||
|
price is `0`, because BusPro bills only priced legs; `surchargeReturn` is absent only where the point is not
|
||||||
|
served on the way back.
|
||||||
|
- The export's `guide` (name, phone) and all BusPro ids are never output.
|
||||||
|
|
||||||
|
`search_trips` mirrors the search page (`/skireisen/suche/`), whose data is TYPO3's import of our own
|
||||||
|
product export. Its rules follow TYPO3's `DateImportService` and search repository, derived per date and
|
||||||
|
hotel in `App\Model\Chatbot\TravelDateFacts`:
|
||||||
|
|
||||||
|
- **"ab" price:** the cheapest bookable room with places left, otherwise the cheapest bookable room.
|
||||||
|
`priceMin`/`priceMax` apply to it. The site's price bands are presets of this.
|
||||||
|
- **Travel period:** `dateFrom`/`dateTo` match by containment (start on or after, end on or before), as on
|
||||||
|
the site, not by overlap. `period` names one of the site's presets, from the `chatbot_travel_periods`
|
||||||
|
parameter in `config/services.yaml`. It's duplicated from the TYPO3 search configuration on purpose, so
|
||||||
|
update both each season. Expired periods are no longer offered.
|
||||||
|
- **`persons`:** the site's condition (a room takes groups this small: smallest `minPax` ≤ persons) **and**
|
||||||
|
enough places left. The site checks only the first.
|
||||||
|
- **Room type:** capacity, as TYPO3's `RoomTypeResolver` (`App\Enum\RoomType`): `maxPax` 1–8, 9 or more
|
||||||
|
is `9er+`. A label containing "bett im" or "mit ander" is `mit anderen` (a shared bed, sold per bed).
|
||||||
|
- **Accommodation:** the TYPO3 hotel `type` (1 Ferienwohnung, 2 Sportclub, 3 Apartment, 4 Gästehaus,
|
||||||
|
5 Pension), `App\Enum\HotelType`.
|
||||||
|
- **Board:** the items of selection group 71 ("4x Abendessen", "Frühstück inkl. … Lunchpaket", "Vollpension",
|
||||||
|
…), matched by word against any item. The site keys on the first item only. "Halbpension" occurs in no
|
||||||
|
label, so dinner is asked as "Abendessen".
|
||||||
|
- **Inclusions:** selection groups 7 (Skipass), 71 (board), 86 (Programm), 87 (Kurse), 89 (Events), and the
|
||||||
|
outbound bus when its price is 0. `bus: true` asks for any bookable outbound bus.
|
||||||
|
- **Nights:** days between start and end. The site's "short" is ≤ 4 and its "long" is ≥ 5.
|
||||||
|
- **`query`:** the site has no free text. A code or a name is taken at its word, so that naming a trip or
|
||||||
|
hotel returns that one and not every page mentioning it. The first of these that finds anything decides
|
||||||
|
(`TripCatalog::resolveQuery()`, `App\Chatbot\Search\NameQuery`):
|
||||||
|
1. a product code, a hotel code or alias, or a date code;
|
||||||
|
2. names holding every word of the query, compared without accents, case and German stopwords, each
|
||||||
|
word as a prefix: "Lederer" is "Sportclub Lederer", "Chaviere" is "Val Chavière". Names are those of
|
||||||
|
products, hotels (TYPO3's and BusPro's), cities, regions, countries and concepts;
|
||||||
|
3. names the query spells out among other words ("Hotel Chamois d'Or in Val Thorens"), where the most
|
||||||
|
specific kind wins: product or hotel, then city, region, country or concept;
|
||||||
|
4. the page texts of those records, every term required, then any term.
|
||||||
|
|
||||||
|
A matching hotel selects its own travel dates, not all hotels of its trips. A destination or concept
|
||||||
|
selects its trips. Matches of one step are combined, so "Österreich Sportclub" is everything in Austria
|
||||||
|
plus every Sportclub; `country` and `concept` narrow instead.
|
||||||
|
- **Order:** by start date, then "ab" price. The site sorts by concept first, which the feed doesn't carry.
|
||||||
|
- Results link to the product page. Links with the hotel preselected and the site's "Restplätze" badge need
|
||||||
|
two fields the TYPO3 content feed doesn't send yet (`hotelUrls`, `lowContingent`).
|
||||||
|
|
||||||
|
Search (`App\Chatbot\Search\ContentSearch`) is MariaDB full text in boolean mode over
|
||||||
|
`title, breadcrumb, body_md`. Each term becomes a prefix match, because InnoDB has no German stemming,
|
||||||
|
and German stopwords are dropped in PHP. Relevance is weighted by type: products and hotels, then
|
||||||
|
destinations and concepts, then pages, then blog posts.
|
||||||
|
|
||||||
|
## Content sync
|
||||||
|
|
||||||
|
```bash
|
||||||
|
php bin/console app:content:sync # delta: what the manifest says changed
|
||||||
|
php bin/console app:content:sync --refresh # also refetch items older than 7 days, oldest first
|
||||||
|
php bin/console app:content:sync --ignore-window # deliberate bulk run outside 01:00–05:00
|
||||||
|
php bin/console app:content:check-freshness # fails if the last good manifest is > 60 min old
|
||||||
|
```
|
||||||
|
|
||||||
|
Scheduled on prod (`config/packages/zenstruck_schedule.yaml`): an hourly delta sync,
|
||||||
|
`--refresh` on Sunday at 01:05, and the freshness check hourly at :10 with `--max-age 150`, so that
|
||||||
|
`email_on_failure` reports a stalled sync but not a single missed run. Website content changes
|
||||||
|
rarely, and an hour's delay is acceptable for the chatbot; trip data and availability do not come
|
||||||
|
from this mirror. The refresh is off the quarter hour because a run that
|
||||||
|
finds another one holding the lock exits successfully without doing anything.
|
||||||
|
|
||||||
|
The feed is read with `X-Api-Key: <APP_CMS_API_KEY>` from `APP_CMS_API_BASE_URL`. The manifest lists
|
||||||
|
every site whichever host serves it. The key is only sent to hosts of the sites the manifest names.
|
||||||
|
|
||||||
|
**Load rules.** These are agreed with the TYPO3 side, so do not tune them:
|
||||||
|
|
||||||
|
- One request at a time, and at most one page fetch per second.
|
||||||
|
- A response slower than 2 s makes the next request wait 5 s. Three slow pages in a row end the page
|
||||||
|
phase for the run.
|
||||||
|
- A `503` is TYPO3's kill switch. The run stops, and `Retry-After` pauses later runs (`content_sync_state.paused_until`).
|
||||||
|
Three consecutive 5xx responses or timeouts (10 s) also stop the run. Nothing is retried in a loop.
|
||||||
|
- Outside 01:00–05:00 Europe/Berlin a run fetches at most 50 pages and leaves the rest for later.
|
||||||
|
|
||||||
|
**Robustness.**
|
||||||
|
|
||||||
|
- A failed, invalid or empty manifest changes nothing.
|
||||||
|
- A record that is requested but absent from the records response is deleted, and so is an item that
|
||||||
|
is missing from the manifest.
|
||||||
|
- A page answering 404 or 5xx is remembered as `failed`, and one that converts to no text as `empty`.
|
||||||
|
Each is stored with its `modified` and not refetched until that changes or a `--refresh` reaches it.
|
||||||
|
- A timeout is retried on the next run.
|
||||||
|
|
||||||
|
**Document model.** One `content_document` row per `(type, uid, language)`. A record's structured
|
||||||
|
payload is kept in `data`, and HTML is converted to Markdown (`HtmlToMarkdownConverter`). A page whose
|
||||||
|
`detailOf` names a record is appended to that record's `body_md` and kept out of the index
|
||||||
|
(`merged_into`), so a product is never found twice. Merges are recomputed on every run. A record without
|
||||||
|
a reachable page (`site`/`url` null) is not shown in search results, unless a detail page lends it its URL.
|
||||||
|
|
||||||
|
After a complete run that changed something, the codes the trip join cannot place are logged on `core`
|
||||||
|
(`Content feed: unmatched codes`).
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
| Variable | Meaning |
|
||||||
|
|---|---|
|
||||||
|
| `APP_CMS_API_BASE_URL` | TYPO3 base URL per stage (also used by `CmsDataProvider`) |
|
||||||
|
| `APP_CMS_API_KEY` | TYPO3 `X-Api-Key`: the content feed and its `contentUrl` pages, and `typo3.client` (`CmsDataProvider`) |
|
||||||
|
| `APP_MCP_TOKENS` | Bearer tokens for `/mcp` and `/mcp/trips`, one per client: `name:token,name:token` |
|
||||||
@@ -0,0 +1,380 @@
|
|||||||
|
# EP Reisen Mobile App — React Native Plan
|
||||||
|
|
||||||
|
**Copy this file into the React Native repository** (suggested: `docs/plan.md`). It is
|
||||||
|
written to be self-contained: you do not need access to the backend codebase to work from
|
||||||
|
it. Where it says "the contract", it means the API guide and fixtures shipped by the
|
||||||
|
backend team — see §3.
|
||||||
|
|
||||||
|
**Companion (backend side, not needed here):** `docs/mobile-app/backend-plan.md` in the
|
||||||
|
`myep` Symfony repository.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. What this app is
|
||||||
|
|
||||||
|
EP Reisen sells group travel — primarily ski and coach trips. A booking is not "one person
|
||||||
|
buys one thing": it is **one applicant booking a set of rooms for a group of participants**,
|
||||||
|
where each participant independently selects ski passes, equipment rental, board, courses,
|
||||||
|
transport, insurance and more, with prices and eligibility varying per person (notably by
|
||||||
|
age).
|
||||||
|
|
||||||
|
The existing web product is a server-rendered Symfony application. This app covers its
|
||||||
|
**public** surface. The admin area is explicitly out of scope and will remain web-only.
|
||||||
|
|
||||||
|
The app is being built for App Store presence and a native-feeling booking flow. Push
|
||||||
|
notifications are **not** currently a requirement — do not build infrastructure for them
|
||||||
|
without asking.
|
||||||
|
|
||||||
|
### The two systems behind the API
|
||||||
|
|
||||||
|
You will see this distinction leak into behaviour, so it is worth knowing:
|
||||||
|
|
||||||
|
- **BusProNet (BPN)** — an external, third-party XML system that is the system of record
|
||||||
|
for individual travel bookings. It is slow, occasionally unavailable, and its rules are
|
||||||
|
not ours to change. Endpoints backed by it can fail in ways local data cannot.
|
||||||
|
- **Local database** — system of record for group/accommodation bookings, user accounts,
|
||||||
|
newsletter consent, and booking drafts. Fast and reliable.
|
||||||
|
|
||||||
|
Increments are deliberately ordered local-data-first so you are not fighting BPN latency
|
||||||
|
while also debugging your own foundations.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. The one architectural rule
|
||||||
|
|
||||||
|
> **Business rules live on the server. The app renders what it is told.**
|
||||||
|
|
||||||
|
This is not a stylistic preference; it is the reason the project is viable. The backend
|
||||||
|
already contains, in one place, 27 condition classes and 25 field handlers that decide —
|
||||||
|
per participant, per field — whether a field is visible, editable, required, or shown as
|
||||||
|
read-only text, and which choices it offers. Reimplementing any of that in TypeScript
|
||||||
|
creates two sources of truth that will silently diverge.
|
||||||
|
|
||||||
|
**Concretely, never write code in this repo that:**
|
||||||
|
|
||||||
|
- decides whether a field is shown, e.g. inferring that a licence-plate input appears
|
||||||
|
because transport is by car;
|
||||||
|
- computes or re-computes a price, total, discount or voucher deduction from line items;
|
||||||
|
- decides whether a participant is eligible for a service, especially by age;
|
||||||
|
- validates a business constraint (as opposed to a formatting constraint like "this looks
|
||||||
|
like an email").
|
||||||
|
|
||||||
|
**If the app appears to need one of those, the schema is missing information. That is a
|
||||||
|
backend bug.** Report it; do not patch around it. This single discipline is what the whole
|
||||||
|
architecture buys, and it is lost the first time it is violated.
|
||||||
|
|
||||||
|
Client-side validation is limited to immediate input affordances — keyboard type, max
|
||||||
|
length, obviously-malformed email — purely for responsiveness. The server's verdict is
|
||||||
|
always authoritative and always re-checked on submit.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. The contract
|
||||||
|
|
||||||
|
The backend ships two artifacts. Together they are your ground truth.
|
||||||
|
|
||||||
|
1. **The API guide** — a self-contained markdown document describing every endpoint:
|
||||||
|
method, path, auth scope, request shape, response shape, error shapes. The backend
|
||||||
|
team updates it in the same commit as the endpoint.
|
||||||
|
2. **Fixtures** — real JSON responses, written out by the backend's own tests. Because
|
||||||
|
they are test *output*, they cannot silently go stale.
|
||||||
|
|
||||||
|
### How to work with them
|
||||||
|
|
||||||
|
- **Build against fixtures first**, then point at a live backend. This means app work
|
||||||
|
never blocks on a deployed endpoint.
|
||||||
|
- **Generate your TypeScript types from the contract** rather than hand-writing them, so
|
||||||
|
a schema change surfaces as a compile error instead of a runtime surprise.
|
||||||
|
- **When the guide is ambiguous, ask — do not guess.** A guess that happens to work
|
||||||
|
becomes an undocumented dependency on an accident.
|
||||||
|
|
||||||
|
### Error shapes to expect
|
||||||
|
|
||||||
|
The existing API does not have one universal error envelope. Handle all of these:
|
||||||
|
|
||||||
|
- `{"message": "..."}` — typically with 404 or 400.
|
||||||
|
- `{"error": "...", "type": "api_error"}` — upstream (BPN) failure. **Some endpoints
|
||||||
|
return this with HTTP 200.** Check for the presence of an `error` key, not only the
|
||||||
|
status code.
|
||||||
|
- `{"success": false, "message": "..."}` — some write endpoints.
|
||||||
|
- **400 with a constraint-violation body** — validation failures. These are the ones you
|
||||||
|
map back onto form fields; see §5.
|
||||||
|
|
||||||
|
`401` means the token is missing or invalid (refresh, then retry once). `403` means
|
||||||
|
insufficient scope — a bug, not a user-recoverable state.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Authentication
|
||||||
|
|
||||||
|
OAuth2 **authorization_code with PKCE**, against the backend's `/token` endpoint. The
|
||||||
|
password and implicit grants are disabled server-side and are not available to you.
|
||||||
|
|
||||||
|
Requirements:
|
||||||
|
|
||||||
|
- Use the system browser / `ASWebAuthenticationSession` / Custom Tabs — **not** a
|
||||||
|
`WebView`. App Store review and OAuth best practice both require this.
|
||||||
|
- Store tokens in the platform secure store (Keychain / Keystore), never in
|
||||||
|
`AsyncStorage`.
|
||||||
|
- **Access tokens are short-lived** — 10 minutes today, likely 1 hour by the time you
|
||||||
|
build. Confirm with the backend team in Increment 0. Either way the refresh-token grant
|
||||||
|
is enabled and you must use it.
|
||||||
|
- **Refresh-token rotation is ON.** Each refresh returns a *new* refresh token and revokes
|
||||||
|
the one you just used. This has two consequences you must design for, not discover:
|
||||||
|
- **Single-flight refresh is mandatory.** If two requests 401 at the same time and both
|
||||||
|
try to refresh, one wins and the other presents an already-revoked token — logging the
|
||||||
|
user out mid-booking. Put a mutex around refresh and queue every other 401 behind it,
|
||||||
|
then replay them with the new token. This is the most common OAuth bug in mobile apps
|
||||||
|
and the booking flow's per-field schema refreshes will find it immediately.
|
||||||
|
- **Persist the rotated token atomically before using it.** A crash between receiving a
|
||||||
|
new refresh token and storing it logs the user out permanently.
|
||||||
|
- The refresh TTL is a sliding window (currently ~1 month, likely 3), so an active user
|
||||||
|
should never be forced to re-authenticate. If yours are, the refresh path is broken —
|
||||||
|
treat it as a bug, not as expected behaviour.
|
||||||
|
- The redirect URI must be registered server-side against the exact host the app calls.
|
||||||
|
This bites during local development — see §8.
|
||||||
|
|
||||||
|
**You will never handle credentials for the upstream BPN system.** The server resolves
|
||||||
|
those internally. If any task seems to require the app to send a BPN password, stop and
|
||||||
|
ask; the answer is no.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. Server-driven UI
|
||||||
|
|
||||||
|
The dynamic parts of the booking flow are rendered from a schema the server computes. You
|
||||||
|
build **one generic renderer**, not per-screen field logic.
|
||||||
|
|
||||||
|
### Expected schema shape
|
||||||
|
|
||||||
|
Confirm against the fixtures — they are authoritative — but the agreed shape is:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "skiPass",
|
||||||
|
"type": "choice",
|
||||||
|
"label": "Skipass",
|
||||||
|
"required": true,
|
||||||
|
"value": 881,
|
||||||
|
"choices": [
|
||||||
|
{"id": 881, "label": "6 Tage", "price": 249.0}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{"name": "licensePlate", "type": "text", "hidden": true},
|
||||||
|
{"name": "pickup", "type": "choice", "readonly": true, "value": 12, "choices": []},
|
||||||
|
{"name": "firstName", "type": "text", "staticText": true, "value": "Anna"}
|
||||||
|
],
|
||||||
|
"dependsOn": {
|
||||||
|
"licensePlate": ["transportationOutbound"],
|
||||||
|
"pickup": ["transportationOutbound"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Field states — all four are distinct
|
||||||
|
|
||||||
|
| State | Meaning | Render as |
|
||||||
|
|---|---|---|
|
||||||
|
| `hidden` | Not applicable at all | Nothing |
|
||||||
|
| `staticText` | Value matters, user may not change it | Read-only text, no input affordance |
|
||||||
|
| `readonly` | Input shown but not editable | Disabled-looking input |
|
||||||
|
| `disabled` | Temporarily not interactive | Greyed input |
|
||||||
|
|
||||||
|
`hidden` and `staticText` are genuinely different and the backend treats them
|
||||||
|
differently — `staticText` is used, for example, when personal data is locked because
|
||||||
|
changing it would create a duplicate customer record upstream. Collapsing the two will
|
||||||
|
produce wrong screens.
|
||||||
|
|
||||||
|
### `dependsOn`
|
||||||
|
|
||||||
|
Maps a field to the fields whose changes invalidate it. When the user changes field *X*,
|
||||||
|
any field listing *X* in its `dependsOn` may now have different visibility, state, or
|
||||||
|
choices. **Re-fetch the schema from the server** — do not attempt to recompute locally.
|
||||||
|
This is the mechanism that keeps rule evaluation server-side.
|
||||||
|
|
||||||
|
Debounce these refreshes and keep the UI responsive during them, but never predict the
|
||||||
|
result optimistically for anything that affects price or eligibility.
|
||||||
|
|
||||||
|
### Field types you must support
|
||||||
|
|
||||||
|
`text`, `email`, `tel`, `date`, `choice` (single), `multichoice`, `checkbox`, `address`
|
||||||
|
(composite), plus a `static` presentation mode. Confirm the final list against the
|
||||||
|
contract before building.
|
||||||
|
|
||||||
|
### Mapping validation errors back
|
||||||
|
|
||||||
|
The server returns violations keyed by a property path (e.g.
|
||||||
|
`participants[2].dateOfBirth`). Your renderer must resolve those onto the right field on
|
||||||
|
the right participant. Design for this from the start — retrofitting it is painful.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. Domain glossary
|
||||||
|
|
||||||
|
Enough to read the API without guessing.
|
||||||
|
|
||||||
|
- **Travel** — a dated departure of a product, at a specific hotel. Identified by a
|
||||||
|
numeric `dateId` + `hotelId`, or by string codes. Carries the available rooms, services,
|
||||||
|
pickups, insurances.
|
||||||
|
- **Applicant** — participant index 0. The person who books and is billed. Subject to
|
||||||
|
extra rules the others are not; their personal data is frequently locked (`staticText`).
|
||||||
|
- **Participant** — one traveller. Most selections live per participant, not per booking.
|
||||||
|
- **Room selection** — how many of which room type. This determines the participant count,
|
||||||
|
which is why step 1 precedes step 2.
|
||||||
|
- **Service** — anything bookable alongside: ski pass, equipment rental, board, courses,
|
||||||
|
transport, parking, additional services. Some are mandatory, some auto-booked with
|
||||||
|
opt-out, some age-restricted.
|
||||||
|
- **Booking status** — `F` firm booking, `O` option (held), `A` inquiry. Determined by
|
||||||
|
server rules, not user choice.
|
||||||
|
- **Payment method** — `transfer` or `debit`. Debit requires bank account details.
|
||||||
|
- **Voucher** — purchase vouchers (a balance), goodwill vouchers, and promo vouchers
|
||||||
|
(fixed or percentage, per-participant or per-booking). **Always** server-validated;
|
||||||
|
never compute a discount locally.
|
||||||
|
- **Baby** — participants aged 0–2 are a real special case in eligibility and pricing.
|
||||||
|
- **Mutability** — for existing bookings, BPN decides per field whether a change is still
|
||||||
|
permitted. Surfaces as `staticText`/`readonly`. Never override it.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 7. Increments
|
||||||
|
|
||||||
|
Each increment is a working loop with the backend session; see §9. Do not start an
|
||||||
|
increment before its backend endpoints and fixtures exist.
|
||||||
|
|
||||||
|
### Increment 0 — Foundations
|
||||||
|
|
||||||
|
- RN app skeleton, navigation, theming, error boundary.
|
||||||
|
- OAuth2 authorization_code + PKCE, secure token storage, silent refresh with request
|
||||||
|
queuing.
|
||||||
|
- API client: auth injection, 401-refresh-retry, the error shapes in §3, and a fixture
|
||||||
|
mock mode toggled by env.
|
||||||
|
- **The generic SDUI renderer** — consumes `{fields, dependsOn}`, renders every field type,
|
||||||
|
emits changes, maps server violations onto fields.
|
||||||
|
- Type generation from the contract wired into the build.
|
||||||
|
- **Done when:** Increment 1 renders entirely through the generic renderer.
|
||||||
|
|
||||||
|
### Increment 1 — Accommodation & group offers (pilot)
|
||||||
|
|
||||||
|
Local data, fast, low risk. Deliberately first so the foundations are exercised end-to-end
|
||||||
|
before anything hard.
|
||||||
|
|
||||||
|
- Offer list for the signed-in user, offer detail, accept an offer.
|
||||||
|
- **Validates:** auth, error handling, navigation, the fixture pipeline.
|
||||||
|
|
||||||
|
### Increment 2 — Account, personal data, newsletter, registration
|
||||||
|
|
||||||
|
- Sign-up, password reset, profile view/edit, newsletter preferences.
|
||||||
|
- **First real use of SDUI** on a small form, before betting the booking flow on it. Expect
|
||||||
|
to find gaps in the renderer here — that is the point of doing it now.
|
||||||
|
|
||||||
|
### Increment 3 — Booking read
|
||||||
|
|
||||||
|
- "My travels": booking list, booking detail with participants, services and price
|
||||||
|
breakdown, document/invoice download.
|
||||||
|
- First BPN-backed screens. Expect slower responses and genuine upstream failures — build
|
||||||
|
proper loading and error states here, and reuse them everywhere after.
|
||||||
|
|
||||||
|
### Increment 4 — *(backend only)*
|
||||||
|
|
||||||
|
An internal backend refactor that produces the participant field schema. No app work.
|
||||||
|
Good moment to pay down debt or firm up the renderer.
|
||||||
|
|
||||||
|
### Increment 5 — Booking edit
|
||||||
|
|
||||||
|
- Edit an existing booking through a server-persisted draft: load draft, edit participants
|
||||||
|
via SDUI, review changes, submit.
|
||||||
|
- Honour mutability strictly — many fields will be `staticText`, and that is correct.
|
||||||
|
- Drafts are server-side, so edits survive app restarts. Design the UX around that.
|
||||||
|
|
||||||
|
### Increment 6 — Booking create
|
||||||
|
|
||||||
|
The full four-step flow, last, once everything above is proven.
|
||||||
|
|
||||||
|
1. **Rooms** — select room types and quantities. Determines participant count.
|
||||||
|
2. **Participants** — one card per participant, each opening an SDUI form. Groups can be
|
||||||
|
large (50+); the web version lazy-loads per participant and you should too.
|
||||||
|
3. **Payment** — method, and bank details when debit.
|
||||||
|
4. **Confirmation** — full summary, terms, submit.
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
|
||||||
|
- State lives in a **server-side draft keyed by UUID**, not on the device. The app holds
|
||||||
|
the draft id and renders server state.
|
||||||
|
- Price refreshes are server calls. Never compute totals locally, not even for a
|
||||||
|
"preview".
|
||||||
|
- Submission goes to BPN and can fail or partially succeed. Treat the submit step as
|
||||||
|
genuinely fallible and make retry safe.
|
||||||
|
|
||||||
|
### Increment 7 — Discovery *(not yet scoped)*
|
||||||
|
|
||||||
|
Browsing travels and hotels currently lives in a separate CMS website, not in the backend
|
||||||
|
this app talks to. If the app must be a standalone entry point rather than something users
|
||||||
|
deep-link into, that is a second integration project. Do not assume it is in scope.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 8. Local development
|
||||||
|
|
||||||
|
- The backend runs in DDEV. A **simulator** can reach it via the host; a **physical
|
||||||
|
device** cannot resolve `*.ddev.site`. The backend team will expose a shareable URL
|
||||||
|
(`ddev share` / ngrok).
|
||||||
|
- OAuth2 redirect URIs are registered per host, so switching between simulator and device
|
||||||
|
URLs needs a backend-side change. Agree the setup in Increment 0 rather than discovering
|
||||||
|
it mid-increment.
|
||||||
|
- Keep fixture-mock mode working permanently, not just as scaffolding — it is how you stay
|
||||||
|
unblocked and how you write deterministic tests.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 9. Working agreement with the backend session
|
||||||
|
|
||||||
|
The backend lives in a separate repository and a separate sandboxed session. Neither side
|
||||||
|
can see the other's code. The contract is the only coupling point, and keeping it that way
|
||||||
|
is a shared discipline.
|
||||||
|
|
||||||
|
**Per-increment loop:**
|
||||||
|
|
||||||
|
1. Backend ships: endpoints + tests + fixtures + updated guide.
|
||||||
|
2. Handoff brief: what is live, which fixtures to mock, what changed in the guide.
|
||||||
|
3. App builds against fixtures, then against a live backend.
|
||||||
|
4. Joint end-to-end verification.
|
||||||
|
|
||||||
|
The two sessions do not work the same increment concurrently — they overlap by one stage,
|
||||||
|
so the backend starts *N+1* while the app builds *N*.
|
||||||
|
|
||||||
|
**Escalate to the backend rather than solving locally when:**
|
||||||
|
|
||||||
|
- a rule seems missing from the schema;
|
||||||
|
- a response shape is undocumented or contradicts the guide;
|
||||||
|
- you need a field the API does not expose;
|
||||||
|
- you are tempted to hardcode a business constant.
|
||||||
|
|
||||||
|
Each of those is a contract gap. Fixing it in the app is the failure mode this entire
|
||||||
|
architecture exists to prevent.
|
||||||
|
|
||||||
|
**Suggested `AGENTS.md` for this repo**, so future sessions inherit the rule:
|
||||||
|
|
||||||
|
> Business rules live server-side. This app renders a server-provided schema and never
|
||||||
|
> decides field visibility, eligibility, or pricing. If a rule appears to be missing,
|
||||||
|
> that is a backend bug — report it, do not implement it here. Never recompute prices
|
||||||
|
> from line items or infer field visibility from other field values.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 10. Verification
|
||||||
|
|
||||||
|
- **Unit:** the SDUI renderer against every field type and state combination, including
|
||||||
|
`hidden` vs `staticText`, and violation-path mapping onto nested participant fields.
|
||||||
|
- **Auth:** an explicit test that fires several concurrent requests against an expired
|
||||||
|
access token and asserts *exactly one* refresh call is made, all requests succeed, and
|
||||||
|
the rotated refresh token is persisted. Rotation makes this a correctness test, not a
|
||||||
|
performance one.
|
||||||
|
- **Integration:** screens against committed fixtures — deterministic, no backend needed.
|
||||||
|
- **Contract:** types regenerate cleanly and compile against current fixtures. A failure
|
||||||
|
here is an early warning of drift; treat it as urgent.
|
||||||
|
- **End-to-end:** at the close of Increment 6, complete one booking through the app
|
||||||
|
against a real backend. The backend team verifies the resulting upstream payload is
|
||||||
|
**identical** to the same booking made through the web flow. That equivalence is the
|
||||||
|
project's actual acceptance criterion — everything else is a proxy for it.
|
||||||
@@ -0,0 +1,354 @@
|
|||||||
|
# Mobile App — Backend Plan (myep / Symfony)
|
||||||
|
|
||||||
|
**Audience:** sessions working in *this* repository (`myep`, Symfony 6.4).
|
||||||
|
**Companion:** `docs/mobile-app/app-plan.md` — the React Native side. That document is
|
||||||
|
written to be self-contained and is meant to be **copied into the RN repository**, whose
|
||||||
|
sessions have no access to this codebase.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Context
|
||||||
|
|
||||||
|
`myep` is the booking engine behind the separate CMS marketing site (`ep-reisen.de`;
|
||||||
|
see `BookingSessionManager::DEFAULT_RETURN_URL` and `CmsDataProvider`). It serves:
|
||||||
|
|
||||||
|
- **Individual travel bookings** — system of record is **BusProNet** (BPN), an external
|
||||||
|
XML service reached through `src/BusProNet/ApiClient.php`.
|
||||||
|
- **Groups / accommodation bookings** — system of record is local Doctrine entities under
|
||||||
|
`src/Entity/Groups/`.
|
||||||
|
|
||||||
|
The public UI is Twig + HTMX + Tailwind. The admin UI under `/admin` is **out of scope**
|
||||||
|
for the mobile app and stays web-only.
|
||||||
|
|
||||||
|
### What we are building and why
|
||||||
|
|
||||||
|
A React Native app covering the **full public surface, including the booking create
|
||||||
|
flow**. Drivers: App Store presence/brand and a native-feeling booking experience. A PWA
|
||||||
|
was explicitly ruled out. Push notifications were *not* named as a driver — worth
|
||||||
|
remembering, since push is normally what makes native unarguable; the payoff here rests
|
||||||
|
on brand and UX.
|
||||||
|
|
||||||
|
### The decision that shapes everything
|
||||||
|
|
||||||
|
**The sibling project is the React Native app only. The API stays in this repository.**
|
||||||
|
|
||||||
|
A second backend would recreate exactly the duplication of validation and business rules
|
||||||
|
this plan exists to prevent. The API is a new `src/Controller/Api/App/` namespace reusing
|
||||||
|
the existing services and DTOs.
|
||||||
|
|
||||||
|
**Client strategy: server-driven UI (SDUI).** The server emits a JSON field schema per
|
||||||
|
participant/step; RN renders it generically. Business rules never leave PHP.
|
||||||
|
|
||||||
|
### Why this codebase can actually support that
|
||||||
|
|
||||||
|
The rules are already headless:
|
||||||
|
|
||||||
|
- **Validation lives on DTOs, not form types.** `src/Form/Model/ParticipantDto.php` (21
|
||||||
|
constraints), `BookingDto.php`, `BankAccountDto.php`, `RegistrationDto.php` carry
|
||||||
|
`Assert\*` plus custom `App\Validator\Constraints\Participant`, with validation groups
|
||||||
|
(`booking_create`, `booking_edit`, `strict_required`, `applicant_address`). An API
|
||||||
|
endpoint can denormalize → `validate($dto, groups: [...])` and get identical results.
|
||||||
|
- **Dynamic field logic is a rules engine.** `src/Form/Service/` holds
|
||||||
|
`Contract/FieldStateProviderInterface` (hidden / readonly / disabled / required /
|
||||||
|
static_text), `Contract/FieldOptionsProviderInterface` (labels + choices),
|
||||||
|
`ParticipantFieldHandlerRegistry` (25 handlers) and 27 reusable `Condition/` classes.
|
||||||
|
- **Orchestration is in services, not controllers.** `BookingConfigurator` (652 lines),
|
||||||
|
`RoomAssigner`, `BookingPricingAssembler`, `BookingSummaryAssembler`,
|
||||||
|
`VoucherValidator`, `BookingEditSubmitGuard`, `BookingEditSubmitter`. Controllers are
|
||||||
|
thin — `Step2Controller` is 147 lines, mostly session handling and redirects.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. The four real obstacles
|
||||||
|
|
||||||
|
Everything else is mechanical. These need design work before the increments that depend
|
||||||
|
on them.
|
||||||
|
|
||||||
|
### Obstacle 1 — The create flow is session-bound
|
||||||
|
|
||||||
|
`src/Service/BookingSessionManager.php` keys the entire create flow off
|
||||||
|
`$request->getSession()` (`booking_create`, `booking_create_baseline_snapshot`,
|
||||||
|
`booking_return_url`). Stateless OAuth2 clients have no session.
|
||||||
|
|
||||||
|
**Fix:** a server-persisted draft addressed by UUID. The pattern already exists for edit —
|
||||||
|
`src/Entity/BookingEditDraft.php` plus `BookingEditDraftManager` / `BookingEditDraftMerger`.
|
||||||
|
Generalise into a `BookingDraft` store and put `BookingStateStoreInterface` in front, with
|
||||||
|
two backends: session (web, unchanged) and draft (app). Do **not** fork the flow logic.
|
||||||
|
|
||||||
|
### Obstacle 2 — `FieldStateProviderInterface` leaks Symfony Form
|
||||||
|
|
||||||
|
Two leaks:
|
||||||
|
|
||||||
|
- `getBookingDtoFromForm(FormInterface $form)` is pure Form coupling and belongs in a
|
||||||
|
form-side adapter, not the interface.
|
||||||
|
- `getFieldState()` returns **Symfony form options** (`disabled`, `required`,
|
||||||
|
`attr => ['readonly' => true]`), and `ParticipantFieldOptionsProvider` returns `choices`
|
||||||
|
as domain objects (`Service`, `Pickup`, `Insurance`) plus occasional `choice_loader`.
|
||||||
|
|
||||||
|
**Fix:** a neutral `FieldDescriptor` value object — name, type, label, required, readonly,
|
||||||
|
disabled, hidden, staticText, choices, value. Both `BookingParticipantType` and the new
|
||||||
|
JSON serializer consume it. Conditions and handlers are untouched.
|
||||||
|
|
||||||
|
Note the `hidden` vs `static_text` distinction documented in `AbstractFieldStateProvider`:
|
||||||
|
`hidden` means excluded entirely; `static_text` means "show the value, don't let them edit
|
||||||
|
it". The app must honour both, so `FieldDescriptor` has to carry them separately.
|
||||||
|
|
||||||
|
### Obstacle 3 — Token lifetimes and refresh-token rotation
|
||||||
|
|
||||||
|
`config/packages/league_oauth2_server.yaml` sets `access_token_ttl: PT10M` — deliberately,
|
||||||
|
since the bundle's own default is `PT1H`. Find out why before changing it.
|
||||||
|
|
||||||
|
**TTLs are global.** They live under `authorization_server`; the bundle has no per-client
|
||||||
|
TTL. Any change affects the CMS and M2M clients too. "Raise it just for the app" is not
|
||||||
|
available without a custom grant or response type.
|
||||||
|
|
||||||
|
Two values are unset and defaulted, and both matter:
|
||||||
|
|
||||||
|
- `refresh_token_ttl` → **`P1M`** (1 month)
|
||||||
|
- `revoke_refresh_tokens` → **`true`**, so **refresh-token rotation is on**
|
||||||
|
|
||||||
|
Rotation is correct security, and it is also the main source of mobile auth bugs: two
|
||||||
|
requests 401 concurrently, both refresh, one rotates, the second presents a revoked
|
||||||
|
refresh token and the user is logged out mid-booking. At a 10-minute TTL with step 2
|
||||||
|
firing schema refreshes per field change, this *will* happen. The mitigation is client-side
|
||||||
|
— single-flight refresh — and it is a hard requirement in `app-plan.md` §4.
|
||||||
|
|
||||||
|
A longer access-token TTL does **not** create an unrevocable window here:
|
||||||
|
`persist_access_token` defaults to true and `BearerTokenValidator` checks
|
||||||
|
`isAccessTokenRevoked()` on every request, so tokens can be killed immediately. The usual
|
||||||
|
argument for a very short TTL does not apply.
|
||||||
|
|
||||||
|
**Recommendation:** `access_token_ttl: PT1H`, `refresh_token_ttl: P3M` set explicitly,
|
||||||
|
rotation left on. Rotation issues a fresh refresh token each time, so the refresh TTL is a
|
||||||
|
sliding window — active users never re-auth, only ~3 months of true inactivity forces it.
|
||||||
|
M2M clients get fewer token round-trips. Extra token rows are already handled by
|
||||||
|
`league:oauth2-server:clear-expired-tokens`, scheduled in `config/packages/zenstruck_schedule.yaml`.
|
||||||
|
|
||||||
|
**Settle this before the RN auth layer is written, not after.**
|
||||||
|
|
||||||
|
Otherwise auth is ready: `enable_auth_code_grant: true` with
|
||||||
|
`require_code_challenge_for_public_clients: true` (PKCE), and
|
||||||
|
`enable_password_grant: false` / `enable_implicit_grant: false` — correct for a native app.
|
||||||
|
|
||||||
|
### Obstacle 4 — BPN per-user calls need the user's plaintext password
|
||||||
|
|
||||||
|
`ApiClient::getBookings()`, `getBooking()`, `getPersonalData()`, `updatePersonalData()`,
|
||||||
|
`updateNewsletterRegistration()` all take `(string $email, string $password)`.
|
||||||
|
`src/Controller/Booking/IndexController.php` supplies them via
|
||||||
|
`$this->crypt->decrypt($user->getPassword())` — the local `User` stores the BPN password
|
||||||
|
RSA-encrypted (`src/Security/Crypt.php`).
|
||||||
|
|
||||||
|
Consequences:
|
||||||
|
|
||||||
|
- **The app must never see BPN credentials.** The API layer resolves them server-side from
|
||||||
|
the authenticated `User`, exactly as the web controllers do. This is not a change, but
|
||||||
|
it must be stated so nobody "simplifies" it by proxying credentials.
|
||||||
|
- **BPN-backed user data only works for users with a local `User` record** carrying the
|
||||||
|
encrypted password. Guest flows and app-only accounts cannot read BPN bookings. Confirm
|
||||||
|
how registration-via-app populates this before Increment 3.
|
||||||
|
- The OAuth2 token identifies the user; it does **not** carry BPN authority. Every
|
||||||
|
BPN-backed endpoint needs an explicit ownership check, not just a valid token.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. Increments
|
||||||
|
|
||||||
|
Ordered local-data-first, BPN-last, so each stage ships something usable and the riskiest
|
||||||
|
integration lands after the SDUI machinery is proven.
|
||||||
|
|
||||||
|
### Increment 0 — Foundations
|
||||||
|
|
||||||
|
No user-visible feature. Backend side:
|
||||||
|
|
||||||
|
- Register an OAuth2 client for the app (authorization_code + PKCE, native redirect URI).
|
||||||
|
- Resolve Obstacle 3 (TTL).
|
||||||
|
- Resolve device→DDEV access: `.ddev/config.yaml` has `ngrok_args`; `ddev share` is the
|
||||||
|
path. Redirect URIs must be registered against whatever host the app actually calls.
|
||||||
|
- Create `docs/app-api/` with the contract skeleton and the fixtures directory.
|
||||||
|
|
||||||
|
### Increment 1 — Accommodation & group offers (pilot)
|
||||||
|
|
||||||
|
Local Doctrine data, UUID-addressed, and a write endpoint already exists. Zero BPN risk.
|
||||||
|
|
||||||
|
- Reuse `GET /api/accommodation-bookings/{uuid}` and
|
||||||
|
`POST /api/accommodation-bookings/{uuid}/accept`
|
||||||
|
(`src/Controller/Api/AccommodationBookingController.php`).
|
||||||
|
- Add a list endpoint scoped to the authenticated user.
|
||||||
|
- Mirrors `src/Controller/Groups/Offer/IndexController.php`; reuse
|
||||||
|
`AccommodationBookingService`, `AccommodationBookingBreakdownCalculator`,
|
||||||
|
`AccommodationBookingApiResponse`.
|
||||||
|
- **Validates:** auth, serialization conventions, RN navigation, the fixture pipeline.
|
||||||
|
|
||||||
|
### Increment 2 — Account, personal data, newsletter, registration
|
||||||
|
|
||||||
|
- Mirror `src/Controller/Account/`, `RegistrationController`, `ResetPasswordController`,
|
||||||
|
`src/Controller/Newsletter/`.
|
||||||
|
- Reuse `RegistrationDto`, the `PersonalDataType` DTO, `NewsletterManager`,
|
||||||
|
`ProfileCompletenessChecker`, and existing `/api/newsletter-subscriptions`,
|
||||||
|
`/api/userinfo`, `/api/crm-attributes`.
|
||||||
|
- **First real SDUI use**, on a small low-risk form, before betting the booking flow on it.
|
||||||
|
- Registration here is what makes Obstacle 4 tractable — verify the encrypted-password
|
||||||
|
path is populated for app-registered users.
|
||||||
|
|
||||||
|
### Increment 3 — Booking read
|
||||||
|
|
||||||
|
- `GET /api/app/bookings` and `/api/app/bookings/{id}`, mirroring
|
||||||
|
`src/Controller/Booking/IndexController.php` (note its `TravelLoader::patchBookings()`
|
||||||
|
enrichment step).
|
||||||
|
- Documents/invoice, mirroring `src/Controller/Booking/DownloadController.php`.
|
||||||
|
- Reuse `BookingSummaryAssembler`, `BookingPricingAssembler`, `BookingEditDataLoader`.
|
||||||
|
- BPN **reads only, no writes** — the safe way to shake out `BusProNet\Model`
|
||||||
|
normalization (`Travel`, `Booking`, `Service`, `Room`, `Pickup`, `Insurance`), which
|
||||||
|
every later increment depends on.
|
||||||
|
|
||||||
|
### Increment 4 — `FieldDescriptor` refactor
|
||||||
|
|
||||||
|
Pure internal refactor. No new endpoints. Covered by the existing 155 test files.
|
||||||
|
|
||||||
|
- Introduce `FieldDescriptor`; split `getBookingDtoFromForm` out of
|
||||||
|
`FieldStateProviderInterface`.
|
||||||
|
- Adapt `BookingParticipantType::mergeFieldState()` / `addDynamicFields()` to consume it.
|
||||||
|
- Add `ParticipantFieldSchemaSerializer` producing the JSON schema, including the
|
||||||
|
`dependsOn` map derived from `FieldConditionInterface::getDependentFields()` and
|
||||||
|
`ParticipantFieldHandlerInterface::getDependencies()`.
|
||||||
|
- **Ship criterion:** web behaviour byte-identical, Cypress specs green, **no test file
|
||||||
|
changed**. A required test change means a behaviour regression.
|
||||||
|
|
||||||
|
### Increment 5 — Booking edit
|
||||||
|
|
||||||
|
Before create, because drafts already exist here.
|
||||||
|
|
||||||
|
- Endpoints over `BookingEditDraftManager`, `BookingEditPreFlightChecker`,
|
||||||
|
`BookingEditSubmitGuard`, `BookingEditSubmitter`, `BookingChangeTracker`.
|
||||||
|
- Participant schema endpoint from Increment 4.
|
||||||
|
- Honour `BookingMutabilityDto` and BPN's `aenderungmoeglich` mutability rules — these
|
||||||
|
already drive `static_text`, so SDUI inherits them.
|
||||||
|
- **Caution:** the participant[0]/applicant block is on hold pending BPN vendor
|
||||||
|
confirmation about the shared customer id. Do not try to resolve it here.
|
||||||
|
|
||||||
|
### Increment 6 — Booking create
|
||||||
|
|
||||||
|
The full flow, last. Web routes being mirrored:
|
||||||
|
|
||||||
|
| Step | Web route | Controller |
|
||||||
|
|---|---|---|
|
||||||
|
| init | `/bookings/create`, `/bookings/create/init` | `Create/IndexController.php` |
|
||||||
|
| 1 — rooms | `/bookings/create/rooms` (+ `/refresh`) | `Create/Step1Controller.php` |
|
||||||
|
| 2 — participants | `/bookings/create/participants` (+ `/{index}`, `/{index}/refresh`) | `Create/Step2Controller.php`, `Step2ParticipantController.php` |
|
||||||
|
| 3 — payment | `/bookings/create/payment` (+ `/refresh`) | `Create/Step3Controller.php` |
|
||||||
|
| 4 — confirmation | `/bookings/create/confirmation` | `Create/Step4Controller.php` |
|
||||||
|
| success | `/bookings/create/success` | `Create/SuccessController.php` |
|
||||||
|
|
||||||
|
- Generalise draft storage behind `BookingStateStoreInterface` (Obstacle 1).
|
||||||
|
- Reuse `BookingConfigurator` (`startFreshBooking`, `preselectDefaultServices`,
|
||||||
|
`applyCreateBookingStatusRules`, `updateBookingStatusFromRoomSelection`), `RoomAssigner`,
|
||||||
|
`ParticipantDataPrefiller`, `TravelDataProvider`, `VoucherValidator`,
|
||||||
|
`FamilyInsuranceAvailabilityChecker`.
|
||||||
|
- Submit via `BusProNet\ApiClient::createBooking()` / `createBookingInquiry()` with
|
||||||
|
`BookingPayloadBuilder`, exactly as `Step4Controller` does.
|
||||||
|
- Every HTMX refresh route gets a JSON sibling returning recomputed schema + pricing.
|
||||||
|
|
||||||
|
### Increment 7 — Discovery (scoping decision, not yet planned)
|
||||||
|
|
||||||
|
Travel/hotel browsing lives in the **CMS**, not here — this repo only proxies it via
|
||||||
|
`CmsDataProvider` and `/api/hotels`, `/api/products`, `/api/travels`. If the app is to be
|
||||||
|
a standalone entry point rather than a deep-link target, that is a second integration
|
||||||
|
project and should be scoped separately.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Files
|
||||||
|
|
||||||
|
**New (representative):**
|
||||||
|
|
||||||
|
- `src/Controller/Api/App/` — one controller per resource, mirroring the public tree
|
||||||
|
- `src/Form/Service/Model/FieldDescriptor.php`
|
||||||
|
- `src/Form/Service/ParticipantFieldSchemaSerializer.php`
|
||||||
|
- `src/Service/BookingStateStoreInterface.php` + draft-backed implementation
|
||||||
|
- `src/Entity/BookingDraft.php` (generalised from `BookingEditDraft`) + migration
|
||||||
|
- Normalizers for `BusProNet\Model\*` value objects
|
||||||
|
- `tests/Controller/Api/App/`
|
||||||
|
|
||||||
|
**Modified:**
|
||||||
|
|
||||||
|
- `src/Form/Service/Contract/FieldStateProviderInterface.php` — drop the Form-coupled method
|
||||||
|
- `src/Form/Service/Abstract/AbstractFieldStateProvider.php`, `CreateFieldStateProvider.php`,
|
||||||
|
`EditFieldStateProvider.php`
|
||||||
|
- `src/Form/BookingParticipantType.php` — consume `FieldDescriptor`
|
||||||
|
- `src/Service/BookingSessionManager.php` — implement the store interface
|
||||||
|
- `config/packages/league_oauth2_server.yaml` — TTL, app client, scopes
|
||||||
|
- `docs/api-consumer-guide.md` / `docs/app-api/` — the contract
|
||||||
|
|
||||||
|
**Unchanged by design:** every `src/Form/Service/Condition/*`, every
|
||||||
|
`src/Form/Service/Participant*FieldHandler.php`, every `src/Validator/Constraints/*`, and
|
||||||
|
all pricing services. If an increment starts wanting to edit these, the design has drifted
|
||||||
|
— stop and reconsider.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. Working across two repos and two sessions
|
||||||
|
|
||||||
|
The RN work happens in a separate repo and a separate sandboxed session. The risk that
|
||||||
|
creates is **contract drift**: the app session guessing at response shapes, or worse,
|
||||||
|
re-deriving business rules in TypeScript because the JSON was ambiguous. That is the
|
||||||
|
original duplication problem arriving through a side door.
|
||||||
|
|
||||||
|
### The contract is an artifact in this repo
|
||||||
|
|
||||||
|
`docs/api-consumer-guide.md` already opens with *"It is self-contained: no access to this
|
||||||
|
codebase is required to use it."* That is the format. Extend it — or split out
|
||||||
|
`docs/app-api/guide.md` once it outgrows one file — **in the same commit as the endpoint**,
|
||||||
|
every time.
|
||||||
|
|
||||||
|
Rule: **the RN session never reads this PHP repo.** Its ground truth is the guide plus
|
||||||
|
fixtures. If it has to ask "what does the server send here?", the guide has a gap — fix
|
||||||
|
the guide, not the app.
|
||||||
|
|
||||||
|
### Fixtures decouple the sessions
|
||||||
|
|
||||||
|
Parity tests in `tests/Controller/Api/App/` write their JSON responses to
|
||||||
|
`docs/app-api/fixtures/*.json` (mirroring the existing `tests/Resources/*.xml`
|
||||||
|
convention). Commit them. The RN session mocks against those files, so app work never
|
||||||
|
waits on a deployed endpoint — and because they are test *output*, they cannot silently
|
||||||
|
go stale.
|
||||||
|
|
||||||
|
### Per-increment rhythm
|
||||||
|
|
||||||
|
1. **Backend session (here):** endpoint + parity test + fixtures + guide update.
|
||||||
|
2. **Handoff:** a short brief — endpoints now live, fixtures to mock, what changed in the
|
||||||
|
guide since last time.
|
||||||
|
3. **App session (RN repo):** build against fixtures first, then against DDEV.
|
||||||
|
4. **Joint verification:** run the increment end-to-end against a real backend.
|
||||||
|
|
||||||
|
Do not run both sessions on the same increment concurrently. Overlap by one stage: while
|
||||||
|
the app session builds increment *N*, start *N+1* here.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. Verification
|
||||||
|
|
||||||
|
Per increment:
|
||||||
|
|
||||||
|
1. `vendor/bin/phpunit` — 155 existing test files, notably `tests/Form/`, `tests/Service/`,
|
||||||
|
`tests/BusProNet/`. **Increment 4 must pass with no test changes.**
|
||||||
|
2. `vendor/bin/phpstan analyse` and `vendor/bin/php-cs-fixer fix --dry-run`.
|
||||||
|
3. `npx cypress run` — existing specs cover the web booking flow and guard against SDUI
|
||||||
|
refactors leaking into Twig rendering.
|
||||||
|
4. **Parity tests** under `tests/Controller/Api/App/`, asserting the JSON schema matches
|
||||||
|
what `BookingParticipantType` builds for the same `BookingDto`. This is the single most
|
||||||
|
valuable artifact in the project — it mechanically proves web and app share one rule set.
|
||||||
|
5. Manual: extend the existing `api.http` / `http-client.env.json` collection per increment.
|
||||||
|
6. End-to-end: run one booking through the RN client against a DDEV backend and confirm the
|
||||||
|
BPN payload is identical to a web-flow booking with the same inputs — compare via
|
||||||
|
`src/Controller/Admin/Log/XmlDumpController.php`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 7. Open questions before Increment 6
|
||||||
|
|
||||||
|
- App-client access token TTL (Obstacle 3).
|
||||||
|
- How app registration populates the encrypted BPN password (Obstacle 4), and whether
|
||||||
|
guest/unauthenticated create is supported in the app as it is on the web via
|
||||||
|
`/bookings/create/init`.
|
||||||
|
- Draft retention and expiry policy.
|
||||||
|
- Whether the app deep-links from the CMS site or must own discovery (Increment 7).
|
||||||
@@ -41,7 +41,11 @@
|
|||||||
"Scope": "api"
|
"Scope": "api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"clickup_baseurl": "https://api.clickup.com/api/v2",
|
||||||
|
"clickup_api_token": "abcdef123456789",
|
||||||
|
"clickup_list_id": "12345",
|
||||||
|
"clickup_template_id": "t-12345"
|
||||||
},
|
},
|
||||||
"staging": {
|
"staging": {
|
||||||
"Security": {
|
"Security": {
|
||||||
@@ -85,7 +89,11 @@
|
|||||||
"Scope": "api"
|
"Scope": "api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"clickup_baseurl": "https://api.clickup.com/api/v2",
|
||||||
|
"clickup_api_token": "abcdef123456789",
|
||||||
|
"clickup_list_id": "12345",
|
||||||
|
"clickup_template_id": "t-12345"
|
||||||
},
|
},
|
||||||
"prod": {
|
"prod": {
|
||||||
"Security": {
|
"Security": {
|
||||||
@@ -129,6 +137,10 @@
|
|||||||
"Scope": "api"
|
"Scope": "api"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"clickup_baseurl": "https://api.clickup.com/api/v2",
|
||||||
|
"clickup_api_token": "abcdef123456789",
|
||||||
|
"clickup_list_id": "12345",
|
||||||
|
"clickup_template_id": "t-12345"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260804120000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add exclusion group and exclusive flag to additional services';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// The default only backfills existing rows; it is dropped again so the column matches the mapping.
|
||||||
|
$this->addSql('ALTER TABLE additional_service ADD exclusion_group VARCHAR(128) DEFAULT NULL, ADD is_exclusive TINYINT(1) DEFAULT 0 NOT NULL');
|
||||||
|
$this->addSql('ALTER TABLE additional_service ALTER COLUMN is_exclusive DROP DEFAULT');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE additional_service DROP exclusion_group, DROP is_exclusive');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260804140000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add manual ordering position to additional services';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// The default only backfills existing rows; it is dropped again so the column matches the mapping.
|
||||||
|
$this->addSql('ALTER TABLE additional_service ADD position INT DEFAULT 0 NOT NULL');
|
||||||
|
$this->addSql('ALTER TABLE additional_service ALTER COLUMN position DROP DEFAULT');
|
||||||
|
|
||||||
|
// Seed the positions with the ordering the admin overview used before, so nothing changes
|
||||||
|
// visually until someone actually drags a row.
|
||||||
|
$this->addSql('
|
||||||
|
UPDATE additional_service s
|
||||||
|
JOIN (
|
||||||
|
SELECT id, ROW_NUMBER() OVER (
|
||||||
|
PARTITION BY accommodation_id
|
||||||
|
ORDER BY date_from ASC, (price <> 0) ASC, label ASC
|
||||||
|
) AS rn
|
||||||
|
FROM additional_service
|
||||||
|
) o ON o.id = s.id
|
||||||
|
SET s.position = o.rn
|
||||||
|
');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE additional_service DROP position');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
|
*/
|
||||||
|
final class Version20260804152215 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Make accommodation booking contact fields nullable (filled on the edit page after creation)';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE first_name first_name VARCHAR(100) DEFAULT NULL, CHANGE last_name last_name VARCHAR(100) DEFAULT NULL, CHANGE email email VARCHAR(255) DEFAULT NULL, CHANGE group_name group_name VARCHAR(255) DEFAULT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE group_name group_name VARCHAR(255) NOT NULL, CHANGE first_name first_name VARCHAR(100) NOT NULL, CHANGE last_name last_name VARCHAR(100) NOT NULL, CHANGE email email VARCHAR(255) NOT NULL');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
|
*/
|
||||||
|
final class Version20260804153855 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Replace the accommodation booking is_inquiry flag with a four-value status';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking ADD status VARCHAR(20) DEFAULT NULL');
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET status = IF(is_inquiry = 1, 'inquiry', 'booking')");
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE status status VARCHAR(20) NOT NULL');
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP is_inquiry');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking ADD is_inquiry TINYINT(1) DEFAULT NULL');
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET is_inquiry = IF(status = 'inquiry', 1, 0)");
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE is_inquiry is_inquiry TINYINT(1) NOT NULL');
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP status');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260805102251 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add country to accommodation, defaulting existing rows to DE';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// Added with a default so existing rows backfill to DE, then dropped again to match the mapping
|
||||||
|
$this->addSql("ALTER TABLE accommodation ADD country VARCHAR(2) DEFAULT 'DE' NOT NULL");
|
||||||
|
$this->addSql('ALTER TABLE accommodation ALTER country DROP DEFAULT');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation DROP country');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260806120000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Split the accommodation booking status into a status and a type';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking ADD type VARCHAR(20) DEFAULT NULL');
|
||||||
|
|
||||||
|
// An old 'booking' row with an accepted_at came from an accepted offer, so it is an
|
||||||
|
// Anfrage; without one it was placed directly. Rows in 'draft'/'discarded' carry no
|
||||||
|
// trace of their kind any more — they are mapped to 'inquiry', which is where the
|
||||||
|
// office path produces them.
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET type = CASE
|
||||||
|
WHEN status = 'booking' AND accepted_at IS NULL THEN 'booking'
|
||||||
|
ELSE 'inquiry' END");
|
||||||
|
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET status = CASE
|
||||||
|
WHEN status = 'inquiry' THEN 'open'
|
||||||
|
WHEN status = 'booking' THEN 'accepted'
|
||||||
|
ELSE status END");
|
||||||
|
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE type type VARCHAR(20) NOT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET status = CASE
|
||||||
|
WHEN status IN ('draft', 'discarded') THEN status
|
||||||
|
WHEN type = 'inquiry' AND status = 'open' THEN 'inquiry'
|
||||||
|
ELSE 'booking' END");
|
||||||
|
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP type');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260817090000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Store the BusPro first and last name on the user';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// Left empty on purpose: the names are synced from BPN on the next login of each account.
|
||||||
|
$this->addSql('ALTER TABLE user ADD first_name VARCHAR(100) DEFAULT NULL, ADD last_name VARCHAR(100) DEFAULT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE user DROP first_name, DROP last_name');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260818103004 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Record when the office confirmed an accommodation booking, separately from when the customer committed to it';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking ADD confirmed_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\'');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP confirmed_at');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260819120000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Split the ambiguous Offen status into Angefragt and Offen, and turn the booking type into an immutable origin';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// Offen used to mean both "inquiry just arrived" and "offer is out with the customer",
|
||||||
|
// told apart only by the access link. An Offen row without a link is exactly the
|
||||||
|
// former case and becomes Angefragt; rows with a link are genuinely awaiting the
|
||||||
|
// customer's acceptance and keep their status.
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET status = 'requested' WHERE status = 'open' AND access_link_issued_at IS NULL");
|
||||||
|
|
||||||
|
// The type described the lifecycle a second time and contradicted the status once an
|
||||||
|
// offer had been accepted. It now records only where the booking came from, which is
|
||||||
|
// true at every point of its life: an old `inquiry` went through an offer however far
|
||||||
|
// it got, an old `booking` was placed directly.
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE type origin VARCHAR(20) NOT NULL');
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET origin = 'offer' WHERE origin = 'inquiry'");
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET origin = 'direct' WHERE origin = 'booking'");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET origin = 'inquiry' WHERE origin = 'offer'");
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET origin = 'booking' WHERE origin = 'direct'");
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking CHANGE origin type VARCHAR(20) NOT NULL');
|
||||||
|
$this->addSql("UPDATE accommodation_booking SET status = 'open' WHERE status = 'requested'");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260820080235 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Adds the local contingent snapshot (contingent_day) and its sync bookkeeping (contingent_sync_state).';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('CREATE TABLE contingent_day (id INT AUTO_INCREMENT NOT NULL, accommodation_id INT NOT NULL, date DATE NOT NULL COMMENT \'(DC2Type:date_immutable)\', status VARCHAR(20) NOT NULL, INDEX IDX_8ACC3A068F3692CD (accommodation_id), UNIQUE INDEX uniq_contingent_day_accommodation_date (accommodation_id, date), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
|
||||||
|
$this->addSql('CREATE TABLE contingent_sync_state (id INT AUTO_INCREMENT NOT NULL, accommodation_id INT NOT NULL, content_hash VARCHAR(64) NOT NULL, changed_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', synced_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:datetime_immutable)\', horizon_to DATE DEFAULT NULL COMMENT \'(DC2Type:date_immutable)\', last_error LONGTEXT DEFAULT NULL, failure_count INT NOT NULL, UNIQUE INDEX UNIQ_737F167C8F3692CD (accommodation_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
|
||||||
|
$this->addSql('ALTER TABLE contingent_day ADD CONSTRAINT FK_8ACC3A068F3692CD FOREIGN KEY (accommodation_id) REFERENCES accommodation (id) ON DELETE CASCADE');
|
||||||
|
$this->addSql('ALTER TABLE contingent_sync_state ADD CONSTRAINT FK_737F167C8F3692CD FOREIGN KEY (accommodation_id) REFERENCES accommodation (id) ON DELETE CASCADE');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE contingent_day DROP FOREIGN KEY FK_8ACC3A068F3692CD');
|
||||||
|
$this->addSql('ALTER TABLE contingent_sync_state DROP FOREIGN KEY FK_737F167C8F3692CD');
|
||||||
|
$this->addSql('DROP TABLE contingent_day');
|
||||||
|
$this->addSql('DROP TABLE contingent_sync_state');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auto-generated Migration: Please modify to your needs!
|
||||||
|
*/
|
||||||
|
final class Version20260903153641 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// this up() migration is auto-generated, please modify it to your needs
|
||||||
|
$this->addSql('ALTER TABLE accommodation ADD product_code VARCHAR(16) DEFAULT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
// this down() migration is auto-generated, please modify it to your needs
|
||||||
|
$this->addSql('ALTER TABLE accommodation DROP product_code');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260908145156 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Add a generic labelled discount on the accommodation booking total';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking ADD total_discount INT DEFAULT NULL, ADD total_discount_label VARCHAR(255) DEFAULT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP total_discount, DROP total_discount_label');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The percentage column is dropped rather than converted: it shipped with Version20260908145156
|
||||||
|
* but no booking was ever given a value, so there is nothing to carry over.
|
||||||
|
*/
|
||||||
|
final class Version20260908161500 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Store the accommodation booking total discount as an absolute amount in minor units instead of a percentage';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP total_discount, ADD total_discount_amount INT DEFAULT NULL');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking DROP total_discount_amount, ADD total_discount INT DEFAULT NULL');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
final class Version20260911170000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Drops contingent_sync_state.content_hash: the rolling sync window makes a snapshot digest unusable as a change signal.';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE contingent_sync_state DROP content_hash');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE contingent_sync_state ADD content_hash VARCHAR(64) NOT NULL');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adds the per-client role requirement that App\EventListener\AuthorizationCodeListener
|
||||||
|
* gates the authorization code grant on.
|
||||||
|
*
|
||||||
|
* The column defaults to an empty list and an empty list denies, so every client is
|
||||||
|
* refused until its roles are set. The two clients in actual use are therefore set here
|
||||||
|
* rather than by hand after the deploy: it closes the window in which both staff tools
|
||||||
|
* would be live but unable to authorize anyone, and it keeps the role strings somewhere
|
||||||
|
* review can see them.
|
||||||
|
*
|
||||||
|
* Matched on name, not identifier: client identifiers are generated per environment and
|
||||||
|
* differ between local, staging and production, while the names do not.
|
||||||
|
*
|
||||||
|
* Deliberately left empty, and so denied: myepapp (the mobile app) and myep (the Keycloak
|
||||||
|
* broker), both R&D only and not in use. The client_credentials clients never reach the
|
||||||
|
* authorization endpoint and are unaffected either way.
|
||||||
|
*/
|
||||||
|
final class Version20260923120000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Adds oauth2_client.required_roles and sets it for the two staff clients.';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
// Added nullable and backfilled before being tightened: a NOT NULL column with no
|
||||||
|
// default leaves existing rows holding an empty string, which is not valid JSON and
|
||||||
|
// fails to hydrate -- the row cannot even reach the listener that would deny it.
|
||||||
|
$this->addSql("ALTER TABLE oauth2_client ADD required_roles JSON DEFAULT NULL COMMENT '(DC2Type:json)'");
|
||||||
|
$this->addSql("UPDATE oauth2_client SET required_roles = '[]'");
|
||||||
|
$this->addSql("ALTER TABLE oauth2_client MODIFY required_roles JSON NOT NULL COMMENT '(DC2Type:json)'");
|
||||||
|
|
||||||
|
// mirrors ephub's App\Security\Role::ELIGIBLE
|
||||||
|
$this->addSql('UPDATE oauth2_client SET required_roles = :roles WHERE name = :name', [
|
||||||
|
'roles' => json_encode(['ROLE_EMPLOYEE', 'ROLE_ADMIN'], JSON_THROW_ON_ERROR),
|
||||||
|
'name' => 'EPHub',
|
||||||
|
]);
|
||||||
|
|
||||||
|
// mirrors myep-team's App\Security\MyEpAuthenticator::ELIGIBLE_ROLES
|
||||||
|
$this->addSql('UPDATE oauth2_client SET required_roles = :roles WHERE name = :name', [
|
||||||
|
'roles' => json_encode(['ROLE_TEAM_ADMIN', 'ROLE_TEAMER', 'ROLE_MANAGER', 'ROLE_HOUSE_MANAGER'], JSON_THROW_ON_ERROR),
|
||||||
|
'name' => 'MyEPTeam',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE oauth2_client DROP required_roles');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
use Symfony\Component\Uid\Uuid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gives every account a uuid, which replaces the primary key as the OAuth2 `sub` claim.
|
||||||
|
*
|
||||||
|
* The UUIDs are generated here in PHP rather than with MariaDB's UUID(): that function
|
||||||
|
* returns v1, which encodes a timestamp and the server's node id, so a whole backfill
|
||||||
|
* would come out time-ordered and share a suffix. Guessing one account's identifier from
|
||||||
|
* another's is the property this column exists to remove, so the backfill has to be as
|
||||||
|
* random as the ones App\Entity\User generates from now on.
|
||||||
|
*
|
||||||
|
* One statement per row, which is why it is emitted rather than written out: the values
|
||||||
|
* cannot exist before the migration runs. Added nullable and tightened afterwards, since
|
||||||
|
* there is no single default that could satisfy a unique column.
|
||||||
|
*/
|
||||||
|
final class Version20260923150000 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Adds user.uuid and backfills it; the OAuth2 sub claim moves off the primary key.';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE user ADD uuid VARCHAR(36) DEFAULT NULL');
|
||||||
|
|
||||||
|
foreach ($this->connection->fetchFirstColumn('SELECT id FROM user') as $id) {
|
||||||
|
$this->addSql('UPDATE user SET uuid = :uuid WHERE id = :id', [
|
||||||
|
'uuid' => Uuid::v4()->toRfc4122(),
|
||||||
|
'id' => $id,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->addSql('ALTER TABLE user MODIFY uuid VARCHAR(36) NOT NULL');
|
||||||
|
$this->addSql('CREATE UNIQUE INDEX UNIQ_8D93D649D17F50A6 ON user (uuid)');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('DROP INDEX UNIQ_8D93D649D17F50A6 ON user');
|
||||||
|
$this->addSql('ALTER TABLE user DROP uuid');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace DoctrineMigrations;
|
||||||
|
|
||||||
|
use Doctrine\DBAL\Schema\Schema;
|
||||||
|
use Doctrine\Migrations\AbstractMigration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Split-off periods of an accommodation booking. No backfill: a booking without periods is
|
||||||
|
* priced exactly as before.
|
||||||
|
*/
|
||||||
|
final class Version20260930150445 extends AbstractMigration
|
||||||
|
{
|
||||||
|
public function getDescription(): string
|
||||||
|
{
|
||||||
|
return 'Adds accommodation_booking_period for nights split off the start or end of a stay.';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function up(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('CREATE TABLE accommodation_booking_period (id INT AUTO_INCREMENT NOT NULL, booking_id INT NOT NULL, position VARCHAR(10) NOT NULL, date_from DATE NOT NULL COMMENT \'(DC2Type:date_immutable)\', date_to DATE NOT NULL COMMENT \'(DC2Type:date_immutable)\', label VARCHAR(255) DEFAULT NULL, price_lines JSON NOT NULL COMMENT \'(DC2Type:json)\', INDEX IDX_ABFCF6B33301C60 (booking_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking_period ADD CONSTRAINT FK_ABFCF6B33301C60 FOREIGN KEY (booking_id) REFERENCES accommodation_booking (id) ON DELETE CASCADE');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(Schema $schema): void
|
||||||
|
{
|
||||||
|
$this->addSql('ALTER TABLE accommodation_booking_period DROP FOREIGN KEY FK_ABFCF6B33301C60');
|
||||||
|
$this->addSql('DROP TABLE accommodation_booking_period');
|
||||||
|
}
|
||||||
|
}
|
||||||