added column in store order reports in store owner

This commit is contained in:
franknstayn
2019-11-11 18:37:06 +08:00
parent 460cf315a0
commit db0a359e56
4 changed files with 16 additions and 6 deletions

View File

@@ -88,7 +88,7 @@
</div>
<div class="col-md-8 col-md-pull-4">
<div style="border: 1px solid #e2e2e2; padding: 10px;">
<h4><img height="30px" class="store-logo" src="{{ config('site_config.uploads') . 'teamstore/'. $store_array[0]->StoreUrl . '/' . $store_array[0]->StoreLogo }}"> {{ $store_array[0]->StoreName }}</h4>
<h4><img height="30px" class="store-logo" src="{{ config('site_config.uploads') . 'teamstore/'. $store_array[0]->ImageFolder . '/' . $store_array[0]->StoreLogo }}"> {{ $store_array[0]->StoreName }}</h4>
</div>
@foreach($item_group as $item)
@if($item->VoucherId == null)

View File

@@ -54,6 +54,11 @@
<tr>
<th>Invoice No.</th>
<th>Product Name</th>
<th>Name</th>
<th>Number</th>
<th>Size</th>
<th>Jersey Size</th>
<th>Short Size</th>
<th>Price</th>
<th>Quantity</th>
<th>#</th>
@@ -75,6 +80,11 @@
<tr>
<td>{{ $item_order->InvoiceNumber . ' - ' . $item_order->Order_Id }}</td>
<td>{{ $item_order->ProductName }}</td>
<td>{{ $item_order->Name }}</td>
<td>{{ $item_order->Number }}</td>
<td>{{ $item_order->Size }}</td>
<td>{{ $item_order->JerseySize }}</td>
<td>{{ $item_order->ShortsSize }}</td>
<td>{{ $item_order->Price . ' ' . $item_order->Currency }}</td>
<td>{{ $item_order->Quantity }} </td>
<td>{{ date('Y/m/d', strtotime($item_order->DateCreated)) }}</td>

View File

@@ -661,7 +661,7 @@
{
extend: 'csv',
exportOptions: {
columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ]
},
className : "btn btn-default",
text: "<i class=\"fa fa-table\"></i> CSV",
@@ -672,7 +672,7 @@
{
extend: 'excel',
exportOptions: {
columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ]
columns: [ 0, 1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ]
},
className : "btn btn-default",
text: "<i class=\"fa fa-file-excel-o\"></i> Excel",
@@ -710,8 +710,8 @@
// }
],
columnDefs: [
{ targets: 4, type: 'date', visible: false },
{ targets: 5, type: 'date' }
{ targets: 9, type: 'date', visible: false },
{ targets: 19, type: 'date' }
],
});