|
@@ -10,6 +10,7 @@ namespace App;
|
|
|
use App\Helpers\HtmlHelper;
|
|
use App\Helpers\HtmlHelper;
|
|
|
|
|
|
|
|
$title ??= __("Sales Orders");
|
|
$title ??= __("Sales Orders");
|
|
|
|
|
+$show_location_column ??= true;
|
|
|
|
|
|
|
|
?>
|
|
?>
|
|
|
|
|
|
|
@@ -26,7 +27,13 @@ $title ??= __("Sales Orders");
|
|
|
<tr>
|
|
<tr>
|
|
|
<th><?=htmlspecialchars(__("No."))?></th>
|
|
<th><?=htmlspecialchars(__("No."))?></th>
|
|
|
<th><?=htmlspecialchars(__("Date"))?></th>
|
|
<th><?=htmlspecialchars(__("Date"))?></th>
|
|
|
- <th><?=htmlspecialchars(__("Location"))?></th>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if($show_location_column) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <th><?=htmlspecialchars(__("Location"))?></th>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
<th><?=htmlspecialchars(__("Status"))?></th>
|
|
<th><?=htmlspecialchars(__("Status"))?></th>
|
|
|
<th><?=htmlspecialchars(__("Item"))?></th>
|
|
<th><?=htmlspecialchars(__("Item"))?></th>
|
|
|
<th><?=htmlspecialchars(__("S/N"))?></th>
|
|
<th><?=htmlspecialchars(__("S/N"))?></th>
|
|
@@ -54,11 +61,17 @@ $title ??= __("Sales Orders");
|
|
|
<td rowspan="<?=$rowspan?>">
|
|
<td rowspan="<?=$rowspan?>">
|
|
|
<?=htmlspecialchars($sales_order->getDisplayDate())?>
|
|
<?=htmlspecialchars($sales_order->getDisplayDate())?>
|
|
|
</td>
|
|
</td>
|
|
|
- <td rowspan="<?=$rowspan?>">
|
|
|
|
|
- <a href="<?=htmlspecialchars($location->getUrl())?>">
|
|
|
|
|
- <?=htmlspecialchars($location->name)?>
|
|
|
|
|
- </a>
|
|
|
|
|
- </td>
|
|
|
|
|
|
|
+ <?php
|
|
|
|
|
+ if($show_location_column) {
|
|
|
|
|
+ ?>
|
|
|
|
|
+ <td rowspan="<?=$rowspan?>">
|
|
|
|
|
+ <a href="<?=htmlspecialchars($location->getUrl())?>">
|
|
|
|
|
+ <?=htmlspecialchars($location->name)?>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </td>
|
|
|
|
|
+ <?php
|
|
|
|
|
+ }
|
|
|
|
|
+ ?>
|
|
|
<td rowspan="<?=$rowspan?>">
|
|
<td rowspan="<?=$rowspan?>">
|
|
|
<?=htmlspecialchars($sales_order->getDisplaySalesOrderStatus())?>
|
|
<?=htmlspecialchars($sales_order->getDisplaySalesOrderStatus())?>
|
|
|
</td>
|
|
</td>
|