Gives the company tables of the previous commit their screens, so a company can be configured from the browser, and makes the base data runnable outside the web server. - one generic editor for the 26 coded tables (/tabelle/<slug>), described in TableScreens: grid with active/disabled filter, detail with errors and warnings, disable instead of delete, CSV export and all-or-nothing import, "update from base tables"; index page and menu entries - company profile in tabs with the fiscal pack checks, fiscal years with month lock/unlock, exchange rates with manual rates - PaymentTermService: installments saved together, percentages must sum to 100 - a new profile proposes the registered company name instead of its code - seed verb in Khaemhat.Web and scripts/seed.sh --base [--company CODE], shipped in the image under /app/scripts - ADR 0026 (base data only adds missing codes; ISTAT and ABI/CAB lists come as separate datasets), wiki, CHANGELOG, STATUS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
870 B
Bash
Executable File
17 lines
870 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Adds the missing base tables to the company databases (SPEC §14, ADR 0026). Rows already there are never changed.
|
|
# scripts/seed.sh --base [--company CODE]
|
|
# In the container (shipped as /app/scripts/seed.sh, same KHAEMHAT_* variables as the service):
|
|
# docker compose run --rm --entrypoint /app/scripts/seed.sh khaemhat --base
|
|
# On a development machine it runs the project with the variables already set in the shell (see scripts/run-dev.sh).
|
|
# The demo data (--demo [--scale N]) arrive with parties and items.
|
|
set -euo pipefail
|
|
|
|
if [[ -f /app/Khaemhat.Web.dll ]]; then
|
|
# The entrypoint prepares the user and waits for the database, then runs "dotnet Khaemhat.Web.dll seed ...".
|
|
exec /app/entrypoint.sh seed "$@"
|
|
fi
|
|
|
|
root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
exec dotnet run --project "$root/src/Khaemhat.Web" -- seed "$@"
|