Skip to content

1.11.20

⚙️ Patch 1.11.20 — Wholesale orders: DE VAT, Still to pay, editable details

🚀 Summary

German wholesaler orders now add 19% VAT on all payable amounts (deposit / balance / unpaid). The orders table shows Still to pay, fully received but unpaid orders are Payment due (not Partially delivered), and overview fields (owner, deliver to, invoice, availability, pay by, note) are editable in the drawer.

✨ Details

Area Behavior
DE VAT Country Germany / Deutschland / DE → payable = net × 1.19 (e.g. 50% deposit = net/2 × 1.19)
Phase All goods received + unpaid → payment_due, never partially_delivered
Table New Still to pay column
Drawer Edit Owner, Deliver to, Invoice/proforma, Expected availability, Pay by, Note → Save details

📌 Notes

  • Redeploy service-omni and frontend.
  • total_net stays excl. VAT; computed.payable_total / due_amount / unpaid are gross for DE.

✅ Verify

  1. DE wholesaler, deposit 50%, net 1000 → deposit due 595.00.
  2. Non-DE wholesaler → amounts stay net.
  3. Fully delivered, balance unpaid → status Payment due.
  4. Table shows Still to pay; drawer Save details persists owner / pay by / note.

📁 Files

  • backend/service_omni/app/services/wholesale_orders/calc.py
  • backend/service_omni/app/schemas/wholesale_purchase_orders.py
  • backend/service_omni/app/tests/test_wholesale_orders_calc.py
  • frontend/src/pages/Wholesalers/OrdersTab.jsx
  • docs/docs/services/service_omni/services/wholesale_orders.md
  • docs/docs/patchnotes/1.11/1.11.20.md — this file