Merge branch 'order-change-email' into 'master'

added new warehouseorder features

See merge request fronk/thetool!1086
This commit is contained in:
Luca Haid
2025-03-07 07:05:16 +00:00
11 changed files with 460 additions and 119 deletions

View File

@@ -4,6 +4,7 @@
* @var WarehouseOrderModel $order
* @var Array $positions
* @var Array $textElements
* @var string $distributorCountryText
*/
$this->setReturnValue(['filename' => $order["id"] . ".pdf"]);
@@ -16,6 +17,7 @@ $texts = [
'total' => 'Total',
'taxFree' => 'Please provide tax-free delivery according to § 6a UStG (Austrian Sales tax law).<br>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',
@@ -32,6 +34,7 @@ $texts = [
'total' => 'Gesamt',
'taxFree' => 'Bitte um steuerfreie Lieferung gemäß § 6a UStG.<br> 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',
@@ -182,10 +185,17 @@ $text = $texts[in_array($distributorCountryText, ["Österreich", "Deutschland",
<div>
<?php if ($distributorCountryText !== "Österreich"): ?>
<?= $text['taxFree'] ?>
<br><?= $text['taxFree'] ?> <br><br>
<?php endif; ?>
<?= $text['orderConfirmation'] ?>
<?php if ($order['sendShippingNote'] > 0): ?>
<br><br>
<?= $text['sendShippingNote'] ?>
<?php endif; ?>
</div>
</body>
</html>