Files
jtlPosSync/.env.example
seb 5951e10ea5 fix(delivery): deliver orders with father-articles and no-payment orders
- Treat an article that has become a father (nIstVater=1) as a free
  position (kArtikel=0) with the name kept: VersandIntern.vBestellPosOffen
  joins tArtikel with nIstVater=0, so such positions could never be
  reserved and failed with "insufficient stock after POS shortage
  booking" (e.g. Becks 42000030).
- Recalculate tAuftragPositionEckdaten before deliverOrder so orders
  without payments get their positions reserved too (previously only
  insertPayment triggered the recalculation).

Also adds debug logging across the delivery pipeline (reserve, commit,
deliver, session, stock-shortage, create-order).
2026-08-13 13:19:47 +02:00

42 lines
1.1 KiB
Plaintext

# HTTPS POS server
PORT=4443
# Plain HTTP POS server (no TLS) - same API, unencrypted
HTTP_PORT=8087
AUTH_TOKEN=df40ad2067954646abb0499548a52241
PAIRING_CODE=307018
# Allow generating fresh pairing codes on demand via GET /v1/newpin (default: false)
NEWPIN_ENABLED=false
LOG_FILE=logs/requests.log
ORDER_LOG_FILE=logs/orders.log
# TLS certificate metadata returned during pairing
CERTIFICATE_FINGERPRINT=BC2114CF407A42724BEEF417960F76DCBF9DE879
CERTIFICATE_SERIAL_NUMBER=00BFC8BEACDB981B165210EF111CB9D3
SERVER_FINGERPRINT=39-6D-BD-DE-F3-5C-5A-EA-C2-19-CF-EB-A7-A9-58-2F-20-3F-20-F7-3D-E6-CA-8E-AE-FD-28-30-37-A6-45-AE
# Mandant
MANDANT_ID=1
MANDANT_NAME=eB-Standard
MANDANT_DATABASE=eazybusiness
ROOT_CATEGORY_ID=1
# Category sync (tKategorieSprache lookups)
LANGUAGE_ID=1
# Product sync (tSteuerzone.cName used to look up tax rates per tSteuerklasse)
TAX_ZONE_NAME=Zone-EU
# Shop filter: active shop is queried from tShopSubshop at startup
# MSSQL (connection data for JTL-Wawi database)
MSSQL_SERVER=localhost
MSSQL_PORT=1433
MSSQL_DATABASE=eazybusiness
MSSQL_USER=sa
MSSQL_PASSWORD=
MSSQL_ENCRYPT=false
MSSQL_TRUST_SERVER_CERTIFICATE=true