diff --git a/strichliste/Containerfile b/strichliste/Containerfile index 83f4602..469ce79 100644 --- a/strichliste/Containerfile +++ b/strichliste/Containerfile @@ -1,11 +1,13 @@ FROM alpine AS builder +ARG STRICHLISTE_VERSION=1.8.2 + WORKDIR /usr/src RUN apk update && apk add git -ADD https://github.com/strichliste/strichliste/releases/download/v1.8.2/strichliste-v1.8.2.tar.gz . -RUN mkdir strichliste/ && tar -xzf strichliste-v1.8.2.tar.gz -C strichliste/ +ADD https://github.com/strichliste/strichliste/releases/download/v${STRICHLISTE_VERSION}/strichliste-v${STRICHLISTE_VERSION}.tar.gz . +RUN mkdir strichliste/ && tar -xzf strichliste-v${STRICHLISTE_VERSION}.tar.gz -C strichliste/ FROM docker.io/library/unit:php8.2 @@ -16,3 +18,4 @@ RUN docker-php-ext-install -j$(nproc) mysqli COPY --from=builder --chown=unit:unit /usr/src/strichliste . COPY config.json /docker-entrypoint.d/config.json +COPY strichliste.yaml config/strichliste.yaml diff --git a/strichliste/strichliste.yaml b/strichliste/strichliste.yaml new file mode 100644 index 0000000..7ccaca2 --- /dev/null +++ b/strichliste/strichliste.yaml @@ -0,0 +1,66 @@ +parameters: + strichliste: + article: + enabled: false + autoOpen: false + common: + idleTimeout: 30000 + + paypal: + enabled: false + recipient: "" + fee: 0 + + user: + stalePeriod: "15 day" + + i18n: + dateFormat: "YYYY-MM-DD HH:mm:ss" + timezone: "auto" + language: "en" + currency: + name: "Euro" + symbol: "€" + alpha3: "EUR" + + account: + boundary: + upper: 20000 + lower: -1000 + + payment: + undo: + enabled: true + delete: false + timeout: "5 minute" + + boundary: + upper: 15000 + lower: -3000 + + transactions: + enabled: true + + splitInvoice: + enabled: true + + deposit: + enabled: true + custom: true + steps: + - 50 + - 100 + - 200 + - 500 + - 1000 + + dispense: + enabled: true + custom: true + steps: + - 100 + - 150 + - 200 + - 300 + - 500 + - 600