|
|
@@ -1,4 +1,4 @@
|
|
|
-<?php
|
|
|
+<?php /** @noinspection PhpUnhandledExceptionInspection */
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
@@ -13,7 +13,7 @@ use App\Helpers\HtmlHelper;
|
|
|
<section class="mb-4">
|
|
|
<h3><?=htmlspecialchars(__("Sales Orders"))?></h3>
|
|
|
<?php
|
|
|
- if(empty($sale_orders)) {
|
|
|
+ if(empty($sales_orders)) {
|
|
|
HtmlHelper::renderInfoAlert(__("No sales orders to display."));
|
|
|
}
|
|
|
else {
|
|
|
@@ -45,8 +45,8 @@ use App\Helpers\HtmlHelper;
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<?php
|
|
|
- foreach($sale_orders as $index => $sale_order) {
|
|
|
- $items = $sale_order->getItems();
|
|
|
+ foreach($sales_orders as $index => $sales_order) {
|
|
|
+ $items = $sales_order->getItems();
|
|
|
$rowspan = count($items);
|
|
|
|
|
|
$item = array_shift($items);
|
|
|
@@ -54,10 +54,10 @@ use App\Helpers\HtmlHelper;
|
|
|
?>
|
|
|
<tr class="<?=$row_class?>">
|
|
|
<td class="text-end" rowspan="<?=$rowspan?>">
|
|
|
- <a href="<?=htmlspecialchars($sale_order->getUrl())?>"><?=$sale_order->number?></a>
|
|
|
+ <a href="<?=htmlspecialchars($sales_order->getUrl())?>"><?=$sales_order->number?></a>
|
|
|
</td>
|
|
|
<td rowspan="<?=$rowspan?>">
|
|
|
- <?=htmlspecialchars($sale_order->getDisplaySalesOrderStatus())?>
|
|
|
+ <?=htmlspecialchars($sales_order->getDisplaySalesOrderStatus())?>
|
|
|
</td>
|
|
|
<td>
|
|
|
<?php
|
|
|
@@ -81,16 +81,16 @@ use App\Helpers\HtmlHelper;
|
|
|
<?=htmlspecialchars($item->quantity ?? "")?>
|
|
|
</td>
|
|
|
<td class="text-end" rowspan="<?=$rowspan?>">
|
|
|
- <?=htmlspecialchars($sale_order->getDisplaySubtotal())?>
|
|
|
+ <?=htmlspecialchars($sales_order->getDisplaySubtotal())?>
|
|
|
</td>
|
|
|
<td class="text-end" rowspan="<?=$rowspan?>">
|
|
|
- <?=htmlspecialchars($sale_order->getDisplayTax())?>
|
|
|
+ <?=htmlspecialchars($sales_order->getDisplayTax())?>
|
|
|
</td>
|
|
|
<td class="text-end" rowspan="<?=$rowspan?>">
|
|
|
- <?=htmlspecialchars($sale_order->getDisplayTotal())?>
|
|
|
+ <?=htmlspecialchars($sales_order->getDisplayTotal())?>
|
|
|
</td>
|
|
|
<td class="p-1" rowspan="<?=$rowspan?>">
|
|
|
- <a href="<?=htmlspecialchars($sale_order->getUrl())?>" class="btn btn-sm btn-primary">
|
|
|
+ <a href="<?=htmlspecialchars($sales_order->getUrl())?>" class="btn btn-sm btn-primary">
|
|
|
<?=htmlspecialchars(__("View"))?>
|
|
|
</a>
|
|
|
</td>
|