Lokalen Rechnungsassistenten mit Vorlagen und PDF-Vorschau ergänzen

This commit is contained in:
admin committed 2026-10-19 16:52:48 +02:00
1 parent f447603af4
commit b9f307fc81
15 files changed
+1423 -26

No files matched your search

+9 -1
View File
@@ -6,7 +6,7 @@ if [[ "${1:-}" == --update ]]; then
shift
exec python3 "$root/scripts/update.py" "$@"
fi
# Resolve once: one invocation uses one complete release even during an update.
# Ein Aufruf verwendet auch während eines Updates eine vollständige Laufzeit.
if [[ -L "$root/.runtime/current" ]]; then
release="$(readlink -f -- "$root/.runtime/current")"
export JR_EINVOICE_MUSTANG_JAR="$release/Mustang-CLI.jar"
@@ -16,6 +16,14 @@ else
fi
export JR_EINVOICE_HOME="${JR_EINVOICE_HOME:-$root/private}"
export JR_EINVOICE_PRESETS="${JR_EINVOICE_PRESETS:-$root/private/presets}"
if [[ "$(basename -- "$0")" == einvoice-ui || "${1:-}" == --gui ]]; then
if [[ "${1:-}" == --gui ]]; then shift; fi
if ! "$python" -I -c 'from PySide6.QtPdfWidgets import QPdfView' 2>/dev/null; then
echo 'Oberfläche fehlt. Einmalig: einvoice --update --apply --with-gui' >&2
exit 1
fi
exec "$python" -I -m jr_einvoice.gui "$@"
fi
if [[ "$(basename -- "$0")" == jr-einvoice ]]; then
exec "$python" -I -c 'from jr_einvoice.cli import app; app()' "$@"
fi