Add strichliste configuration
All checks were successful
ci/woodpecker/tag/strichliste Pipeline was successful

This commit is contained in:
Fritz Grimpen 2024-12-22 15:31:50 +01:00
parent 1b9c831d4e
commit 1a55006e75
2 changed files with 71 additions and 2 deletions

View file

@ -1,11 +1,13 @@
FROM alpine AS builder FROM alpine AS builder
ARG STRICHLISTE_VERSION=1.8.2
WORKDIR /usr/src WORKDIR /usr/src
RUN apk update && apk add git RUN apk update && apk add git
ADD https://github.com/strichliste/strichliste/releases/download/v1.8.2/strichliste-v1.8.2.tar.gz . ADD https://github.com/strichliste/strichliste/releases/download/v${STRICHLISTE_VERSION}/strichliste-v${STRICHLISTE_VERSION}.tar.gz .
RUN mkdir strichliste/ && tar -xzf strichliste-v1.8.2.tar.gz -C strichliste/ RUN mkdir strichliste/ && tar -xzf strichliste-v${STRICHLISTE_VERSION}.tar.gz -C strichliste/
FROM docker.io/library/unit:php8.2 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 --from=builder --chown=unit:unit /usr/src/strichliste .
COPY config.json /docker-entrypoint.d/config.json COPY config.json /docker-entrypoint.d/config.json
COPY strichliste.yaml config/strichliste.yaml

View file

@ -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