Browse Source

Present lot# input only if product.has_lot is true

Vijayakrishnan 4 years ago
parent
commit
e01bf7374a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      resources/views/app/patient/shipments.blade.php

+ 4 - 0
resources/views/app/patient/shipments.blade.php

@@ -224,6 +224,7 @@
                                         </td>
                                         <td class="px-2">
                                             <div moe relative class="d-block">
+                                                @if($iSupplyOrder->product->has_lot)
                                                 <a start show>{{ $iSupplyOrder->lot_number ? $iSupplyOrder->lot_number : '(not set)' }}</a>
                                                 <form url="/api/supplyOrder/updateLotNumber" right>
                                                     <input type="hidden" name="uid" value="{{ $iSupplyOrder->uid }}">
@@ -237,6 +238,9 @@
                                                         <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
                                                     </div>
                                                 </form>
+                                                @else
+                                                    <span class="text-secondary">N/A</span>
+                                                @endif
                                             </div>
                                         </td>
                                         <td class="px-2">