EV3-420 "sztornó" megrendelés
This commit is contained in:
parent
b74f777cbc
commit
cf0e1dfee9
@ -890,6 +890,16 @@ public function getOrderData(?int $orderId = null, ?Order $Order = null): array
|
||||
$orderData['changedItems'] = $this->getChangedItems($Order);
|
||||
}
|
||||
|
||||
if ($Order->orderFlag == 'storno' && $Order->rel_id) {
|
||||
$originalOrder = OrderArchive::find($Order->rel_id);
|
||||
if (! $originalOrder) {
|
||||
$originalOrder = Order::find($Order->rel_id);
|
||||
}
|
||||
if ($originalOrder) {
|
||||
$orderData['originalHumanId'] = $originalOrder->humanId;
|
||||
}
|
||||
}
|
||||
|
||||
if ($Order->orderType == 'weekly') {
|
||||
$orderData['items'] = $this->getOrderItemsFromOrderData(null, $Order);
|
||||
if (is_array($orderData['items']['weekDayItems'])) {
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
<th colspan="9">
|
||||
<table style="width: 100%;" class="invoiceHeadTable">
|
||||
<tr class="orderIdRow">
|
||||
<td colspan="2" >{{$humanId}}</td>
|
||||
<td colspan="2" >{{$humanId}}@if($orderFlag == 'storno' && !empty($originalHumanId)), a {{$originalHumanId}} stornója @endif</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 50%">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user