فهرست منبع

Shipment - allow remove supply-order only if status <= PICKED

Vijayakrishnan 4 سال پیش
والد
کامیت
722eaa479b
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      resources/views/app/practice-management/shipment.blade.php

+ 5 - 1
resources/views/app/practice-management/shipment.blade.php

@@ -42,7 +42,7 @@
                     <span class="mr-3">Status:</span>
                     <?php $statuses = ['CREATED', 'PRINTED', 'BEING_PICKED', 'PICKED', 'BEING_SCANNED', 'SCANNED', 'BEING_FULFILLED', 'FULFILLED', 'DISPATCHED']; ?>
                     @foreach($statuses as $status)
-                        <button class="btn btn-sm {{ $shipment->status === $status ? 'btn-info font-weight-bold' : 'btn-outline-info change-status bg-white' }}"
+                        <button class="btn btn-sm {{ $shipment->status === $status ? 'btn-info font-weight-bold' : 'btn-outline-info change-status' }}"
                                 data-status="{{$status}}">
                             {{cleanStatus($status)}}
                         </button>
@@ -88,7 +88,9 @@
                                 <th class="px-2 text-nowrap text-secondary border-bottom-0">Item</th>
                                 <th class="px-2 text-nowrap text-secondary border-bottom-0">IMEI</th>
                                 <th class="px-2 text-nowrap text-secondary border-bottom-0">Lot #</th>
+                                @if(in_array($shipment->status, ['CREATED', 'PRINTED', 'BEING_PICKED', 'PICKED']))
                                 <th class="px-2 text-nowrap text-secondary border-bottom-0 only-screen">&nbsp;</th>
+                                @endif
                             </tr>
                             </thead>
                             <tbody>
@@ -149,6 +151,7 @@
                                             &nbsp;
                                         </div>
                                     </td>
+                                    @if(in_array($shipment->status, ['CREATED', 'PRINTED', 'BEING_PICKED', 'PICKED']))
                                     <td class="px-2 only-screen">
                                         <div moe relative>
                                             <a start show class="py-0 text-danger">Remove</a>
@@ -163,6 +166,7 @@
                                             </form>
                                         </div>
                                     </td>
+                                    @endif
                                 </tr>
                             @endforeach
                             </tbody>