docs: finalize request terminology updates and clean up license transforms
All checks were successful
Staging Build / build (push) Successful in 2m48s

This commit is contained in:
DanielS
2026-07-09 22:58:35 +02:00
parent 21c4aa859e
commit a93fb975c0
2 changed files with 5 additions and 7 deletions

View File

@@ -62,15 +62,13 @@ graph TD
- **Snapshot-Exklusivität**: Die Rechnungsgenerierung erfolgt ausschließlich auf Basis der in `orders.order_data` und `orders.customer_data` eingefrorenen Snapshots. - **Snapshot-Exklusivität**: Die Rechnungsgenerierung erfolgt ausschließlich auf Basis der in `orders.order_data` und `orders.customer_data` eingefrorenen Snapshots.
- **Layout-Unterscheidung**: - **Layout-Unterscheidung**:
- **Typ `purchase` (Kauf)**: - **Typ `purchase` (Kauf)**:
- Generiert eine klassische **B2B-Rechnung**. - Generiert eine klassische **B2B-Angebot**.
- Weist die einmalige Gesamtsumme aus. - Weist die einmalige Gesamtsumme aus.
- Beinhaltet ein explizites Zahlungsziel ("Zahlbar innerhalb von 14 Tagen ohne Abzug").
- **Typ `subscription` (Abonnement)**: - **Typ `subscription` (Abonnement)**:
- Generiert eine **Vertragsbestätigung (Abonnement)**. - Generiert eine **Angebotsbestätigung Abonnement**.
- Weist monatlich wiederkehrende Kosten aus. - Weist monatlich wiederkehrende Kosten aus.
- Beinhaltet das SEPA-Lastschriftmandat inklusive Kontoinhaber und IBAN.
- **Archivierung & Benachrichtigung**: - **Archivierung & Benachrichtigung**:
- Hochladen des PDFs in den Supabase Storage (`invoices` Bucket). - Hochladen des PDFs in den Supabase Storage (`invoices` Bucket).
- E-Mail-Versand mit PDF-Anhang an den Besteller. - E-Mail-Versand mit PDF-Anhang an den Partner.

View File

@@ -136,7 +136,7 @@ export function buildOrderSnapshot(
}) })
const moduleTotal = selectedModules.reduce((acc, m) => acc + (m.total_price || m.price), 0) const moduleTotal = selectedModules.reduce((acc, m) => acc + (m.total_price || m.price), 0)
// If this product falls under the free limit, set its base price to 0 // If this product falls under the free limit, set its base price to 0
const actualBasePrice = (sortedIndex < freeLimit) ? 0 : prod.base_price const actualBasePrice = (sortedIndex < freeLimit) ? 0 : prod.base_price
const itemTotal = actualBasePrice + moduleTotal const itemTotal = actualBasePrice + moduleTotal
@@ -146,7 +146,7 @@ export function buildOrderSnapshot(
category_id: cat.id, category_id: cat.id,
category_name: cat.name, category_name: cat.name,
product_id: prod.id, product_id: prod.id,
product_name: prod.name + (actualBasePrice === 0 ? " (Inklusive/Frei)" : ""), product_name: prod.name + (actualBasePrice === 0 ? "" : ""),
base_price: actualBasePrice, base_price: actualBasePrice,
billing_interval: prod.billing_interval, billing_interval: prod.billing_interval,
selected_modules: selectedModules, selected_modules: selectedModules,