setReturnValue(['filename' => $order["id"] . ".pdf"]);
$texts = [
'EN' => [
'header' => 'XINON Supplier Order from ' . date("d.m.Y", $order["create"]),
'sum' => 'Sum',
'vat' => '20% VAT',
'total' => 'Total',
'taxFree' => 'Please provide tax-free delivery according to § 6a UStG (Austrian Sales tax law).
Our VAT ID number: ATU68711968. Delivery to Austria.',
'orderConfirmation' => 'Please send the order confirmation to einkauf@xinon.at',
'sendShippingNote' => 'Please send the delivery note with our shipping note and neutral packaging.',
'table' => [
'pos' => 'POS',
'article' => 'Article',
'articleNumber' => 'Dist. art. nr.',
'amount' => 'Amount',
'unitPrice' => 'Unit price',
'totalPrice' => 'Total price'
]
],
'DE' => [
'header' => 'XINON Lieferantenbestellung vom ' . date("d.m.Y", $order["create"]),
'sum' => 'Summe',
'vat' => '20% MwSt',
'total' => 'Gesamt',
'taxFree' => 'Bitte um steuerfreie Lieferung gemäß § 6a UStG.
Unsere UID-Nr.: ATU68711968. Lieferung nach Österreich.',
'orderConfirmation' => 'Wir bitten um Zusendung der Auftragsbestätigung für die Bestellung an einkauf@xinon.at.',
'sendShippingNote' => 'Bitte senden Sie den Lieferschein mit unserem Versandschein und neutraler Verpackung.',
'table' => [
'pos' => 'POS',
'article' => 'Artikel',
'articleNumber' => 'Art.-Nr. Lieferant',
'amount' => 'Menge',
'unitPrice' => 'Einzelpreis',
'totalPrice' => 'Gesamtpreis'
]
]];
$text = $texts[in_array($distributorCountryText, ["Österreich", "Deutschland", "Schweiz"]) ? "DE" : "EN"];
?>
| = $text['table']['pos'] ?> | = $text['table']['article'] ?> | = $text['table']['articleNumber'] ?> | = $text['table']['amount'] ?> | = $text['table']['unitPrice'] ?> | = $text['table']['totalPrice'] ?> |
|---|---|---|---|---|---|
| = $i + 1 ?> | = $p["articleName"] ?> | = $p["distributorArticleNumber"] ?> | = $p["amount"] ?> | = number_format($p["buyPrice"], 2, ",", ".") ?> € | = number_format($p["amount"] * $p["buyPrice"], 2, ",", ".") ?> € |
| = $p["articleDescription"] ?> | |||||
| = $text['sum'] ?> | = number_format($sum, 2, ",", ".") ?> € | ||||
| 20% MwSt | = number_format($sum * 0.2, 2, ",", ".") ?> € | ||||
| = $text['total'] ?> | = number_format($sum * 1.2, 2, ",", ".") ?> € | ||||