- 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

@@ -231,6 +231,7 @@ export default function OrderDetail() {
const handleGenerateConfirmation = async (
lang: string,
applyVat: boolean,
customItems?: Array<{
description: string;
quantity: number;
@@ -247,7 +248,7 @@ export default function OrderDetail() {
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ lang, items: customItems }),
body: JSON.stringify({ lang, applyVat, items: customItems }),
},
);
if (!response.ok) {
@@ -846,6 +847,7 @@ export default function OrderDetail() {
}))}
orderNumber={order.order_number}
defaultVatRate={Number(order.vat_rate) || 21}
applyVat={!!order.apply_vat}
/>
)}
</div>