- feat: manual VAT override in order confirmation modal
- feat: order confirmation PDF respects user-selected applyVat toggle

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-04-23 18:17:20 +02:00
parent 07cb428287
commit 5a28f75303
4 changed files with 44 additions and 6 deletions

View File

@@ -250,7 +250,8 @@ export default async function ordersPdfRoutes(
}
const currency = order.currency || "CZK";
const applyVat = !!order.apply_vat;
const applyVat =
body.applyVat !== undefined ? !!body.applyVat : !!order.apply_vat;
const orderVatRate = Number(order.vat_rate) || 21;
// Use custom items from body if provided, otherwise order items