Skip to content

1.10.6

⚙️ Patch 1.10.6 — ZIP layout, Shopify Buchhaltung, bank/Otto statements, failed-invoice fold-out

🚀 Summary

Invoice ZIP · layout options — Download ZIP gains Sort platform invoices in folders (default off; flat Invoices/Platforms/ vs nested by vendor), optional month reports into Reports/ (from reports/{year}/{month}/, incl. bank_creditcard/), and optional Shopping-Table batching into numbered folders Invoices/Shopping-Table/1…N with configurable batch size (default 300).

Buchhaltung · Shopify CSVs — Review accounting email requires two more manual reports: Shopify payouts and Shopify order transactions, stored as shopify_payouts.csv / shopify_order_transactions.csv under reports/{year}/{month}/. Both link to Shopify Finance with step-by-step export hints (CSV arrives by email). They gate ready and are included in the attachments ZIP / n8n email payload.

Buchhaltung · bank, credit card & Otto fees — New archive uploads under reports/{year}/{month}/bank_creditcard/ (Volksbank, Sparkasse, Kreditkarte, PayPal, Revolut, American Express, plus Otto Payment-/Finanzierungs-/Marktplatz-/Servicegebühren and Umsatzsteuerkorrekturen). Shown on Download Management below Manual platform invoices (Otto fees in their own subgroup) and in the review dialog. Not emailed as attachments, but required for ready / Review & send. Otto fee types are multi-file (subdir per type; often several uploads each; at least one file marks the type found).

Failed invoices · fold-out — Failed invoices lists all files in invoices/{year}/{month}/ in a collapsible fold-out; manual uploads remain marked as submitted_subsequently.

✨ Details

Area Behavior
ZIP · sort_platforms_in_folders Query/UI flag; default false (flat Platforms/)
ZIP · flat collisions Same basename across vendors → {vendor}_{filename}
ZIP · folders on Previous nested Platforms/<vendor>/ layout
ZIP · include_reports Optional; packs reports/{y}/{m}/ under ZIP Reports/
ZIP · sort_reports_in_folders Default false (flat Reports/); true keeps subdirs like bank_creditcard/
ZIP · batch_shopping_table Optional; Shopping-Table files in numbered folders 1…N
ZIP · shopping_table_batch_size Default 300 (1–10000) when batching is on
Buchhaltung · Shopify payouts Manual CSV; Finance → View payouts → Export → All payouts by date
Buchhaltung · Shopify order transactions Manual CSV; same page → View order transactions → Export → Items by date
Buchhaltung · bank/creditcard archive BANK_CREDITCARD_REPORTS under reports/.../bank_creditcard/; not in email ZIP
Buchhaltung · Otto fee group Payment / Financing / VAT / Marketplace / Service; UI subgroup; multi-file per type
Buchhaltung · ready / send Manual platforms and all bank/Otto statements required before review & send
Failed invoices · fold-out Accordion of all month invoices; subsequently submitted flagged

📌 Notes

  • Redeploy service_invoice and refresh the frontend.
  • Export Shopify CSVs from Finance, then upload in Review accounting email before send.
  • Upload bank/credit-card/Otto statements on Download Management (below Manual platform invoices) before Review & send accounting email.
  • Prefer flat Platforms ZIP unless you need per-vendor folders.

📁 Files

  • backend/service_invoice/app/services/invoice_archive.py
  • backend/service_invoice/app/services/buchhaltung.py
  • backend/service_invoice/app/services/failed_invoice_uploads.py
  • backend/service_invoice/app/api/v1/endpoints/download.py
  • backend/service_invoice/app/tests/services/test_invoice_archive.py
  • backend/service_invoice/app/tests/services/test_buchhaltung.py
  • backend/service_invoice/app/tests/services/test_failed_invoice_uploads.py
  • backend/service_invoice/app/tests/api/v1/test_download.py
  • frontend/src/pages/Invoices/Tabs/SubTabs/DownloadSubTab.jsx
  • frontend/src/services/api/invoice/download.js
  • docs/docs/services/service_invoice/endpoints/download.md
  • docs/docs/services/service_invoice/services/buchhaltung.md
  • docs/docs/services/service_invoice/services/manual_platform_invoices.md
  • docs/docs/services/service_invoice/services/n8n_buchhaltung_workflow.md
  • docs/docs/patchnotes/1.10/1.10.6.md — this file