1.5.3
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user