' . htmlspecialchars($lbl_invoice) . '

Total Safety Solutions B.V.
Laarakkerweg 8
5061 JR OISTERWIJK
Nederland
contact-details
Ralf Adams
+31 13 8221480
ralfadams@totalsafetysolutions.nl
Customer
'.$invoice_data['customer']['name'].'
'.$invoice_data['customer']['street'].'
'.$invoice_data['customer']['zip'].', '.$invoice_data['customer']['city'].'
'.$invoice_data['customer']['country'].'
Invoice Date: ' . htmlspecialchars(date('d-m-Y', strtotime($invoice_date))) . '
Invoice Number: ' . htmlspecialchars($order_id) . '
Your Vat Number: ' . htmlspecialchars($invoice_data['customer']['vat_number'] ?? '') . '
Reference: Online order
Order number: ' . htmlspecialchars($order_id) . '
Payment Methodr: ' . (${$payment_method} ?? $invoice_data['header']['payment_method'] ). '
'; foreach ($items as $item) { $line_total = $item['price'] * $item['quantity']; $message .= ''; } $message .= '
Item code Description Quantity Price Total
SOFTWARE ' . htmlspecialchars($item['name']); if ($item['serial_number'] !== 'N/A') { $message .= '
Serial: ' . htmlspecialchars($item['serial_number']) . ''; } if ($item['license_key'] !== 'Pending') { $message .= '
License: ' . htmlspecialchars($item['license_key']) . ''; } $message .= '
' . htmlspecialchars($item['quantity']) . ' € ' . number_format($item['price'], 2) . ' € ' . number_format($line_total, 2) . '
'; if ($tax_amount > 0) { $message .= ''; } else { $message .= ''; } $message .= '
' . htmlspecialchars($lbl_subtotal) . ' € ' . number_format($subtotal, 2) . '
' . htmlspecialchars($lbl_tax) . ' € ' . number_format($tax_amount, 2) . '
VAT included
' . htmlspecialchars($lbl_total) . ' € ' . number_format($payment_amount, 2) . '
';