feat: WarehouseArticle now supports showId get parameter for filtering
feat: tt-position-manager now emits displayValue if emitDisplayValue is true feat: tt-position-manager now has slot form-actions-append feat: WarehouseOrderController now support text-articles feat: WarehouseOrder now showing "Zum Artikel" button if article is selected
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
<?php /** @noinspection PhpUndefinedClassInspection */
|
||||
|
||||
/** @noinspection PhpUndefinedNamespaceInspection */
|
||||
|
||||
class WarehouseOrderController extends TTCrud {
|
||||
protected string $headerTitle = 'Lieferantenbestellungen';
|
||||
@@ -83,7 +85,7 @@ class WarehouseOrderController extends TTCrud {
|
||||
|
||||
foreach ($order['positions'] as &$position) {
|
||||
$position['distributorName'] = WarehouseDistributorModel::get($position['distributorId'])->name;
|
||||
$position['articleName'] = WarehouseArticleModel::get($position['article'])->title;
|
||||
$position['articleName'] = $position['article_text'] ?? WarehouseArticleModel::get($position['article'])->title;
|
||||
}
|
||||
|
||||
return $order;
|
||||
@@ -227,7 +229,7 @@ class WarehouseOrderController extends TTCrud {
|
||||
$mail->isHTML(true);
|
||||
$mail->Subject = "Neue Bestellung #$orderNumber";
|
||||
$mail->Body = "<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang='de'>
|
||||
<head>
|
||||
<title>XINON E-Mail Template</title>
|
||||
<meta charset='utf-8'/>
|
||||
|
||||
Reference in New Issue
Block a user