Pārlūkot izejas kodu

SO and shipment - confirmation fields

Vijayakrishnan 3 gadi atpakaļ
vecāks
revīzija
6372687eec

+ 47 - 1
resources/views/app/patient/shipments.blade.php

@@ -413,7 +413,53 @@
                         </div>
                     @endif
 
-                    <hr class="m-neg-4">
+                    <hr class="m-neg-3">
+                    <div class="mb-3">
+                        <label class="text-secondary text-sm mb-1">Was Client Called and Has Client Acknowledged?</label>
+                        <div class="d-flex align-items-center">
+                            @if($shipment->was_client_called)
+                                <div>
+                                    <div class="mb-1 text-info">Client was called</div>
+                                    <div class="mb-1 text-info">Client has acknowledged receipt of product: {{$shipment->has_client_acknowledged}}</div>
+                                    @if($shipment->has_client_acknowledged === 'YES' && $shipment->client_acknowledgement_memo)
+                                        <div class="mb-1 text-secondary font-italic">{{$shipment->client_acknowledgement_memo}}</div>
+                                    @endif
+                                </div>
+                            @else
+                                <div class="mb-1 text-warning-mellow font-weight-bold">Client has not been called</div>
+                            @endif
+                        </div>
+                        <div class="" moe>
+                            <a start show class="py-0">Update</a>
+                            <form url="/api/shipment/{{$shipment->was_client_called ? 'setWasClientCalledToFalse' : 'setWasClientCalledToTrue'}}">
+                                <input type="hidden" name="uid" value="{{ $shipment->uid }}">
+                                @if($shipment->was_client_called)
+                                    <p>Set to client was not called?</p>
+                                @else
+                                    <p>Set to client was called?</p>
+                                    <div class="mb-2">
+                                        <label class="text-secondary text-sm">Has Client Acknowledged Receipt of Product?</label>
+                                        <select name="hasClientAcknowledged"
+                                                class="form-control form-control-sm">
+                                            <option value="">-- Select Status --</option>
+                                            <option value="YES">YES</option>
+                                            <option value="NO">NO</option>
+                                            <option value="UNKNOWN">UNKNOWN</option>
+                                        </select>
+                                    </div>
+                                    <div class="mb-2">
+                                        <label class="text-secondary text-sm">Client Acknowledgement Memo</label>
+                                        <input type="text" class="form-control form-control-sm" name="clientAcknowledgementMemo">
+                                    </div>
+                                @endif
+                                <div class="d-flex align-items-center">
+                                    <button class="btn btn-sm btn-primary mr-2" type="button" submit>Save</button>
+                                </div>
+                            </form>
+                        </div>
+                    </div>
+
+                    <hr class="m-neg-3">
                     @include('app.generic-bills.inline', ['patient' => $patient, 'entityType' => 'Shipment', 'entityUid' => $shipment->uid])
 
                 </div>

+ 44 - 0
resources/views/app/patient/supply-orders.blade.php

@@ -389,6 +389,50 @@
                             </div>
                         @endif
                     </div>
+                    <div class="mb-3">
+                        <label class="text-secondary text-sm mb-1">Was Client Called and Has Client Acknowledged?</label>
+                        <div class="d-flex align-items-center">
+                            @if($supplyOrder->was_client_called)
+                                <div>
+                                    <div class="mb-1 text-info">Client was called</div>
+                                    <div class="mb-1 text-info">Client has acknowledged receipt of product: {{$supplyOrder->has_client_acknowledged}}</div>
+                                    @if($supplyOrder->has_client_acknowledged === 'YES' && $supplyOrder->client_acknowledgement_memo)
+                                        <div class="mb-1 text-secondary font-italic">{{$supplyOrder->client_acknowledgement_memo}}</div>
+                                    @endif
+                                </div>
+                            @else
+                                <div class="mb-1 text-warning-mellow font-weight-bold">Client has not been called</div>
+                            @endif
+                        </div>
+                        <div class="" moe>
+                            <a start show class="py-0">Update</a>
+                            <form url="/api/supplyOrder/{{$supplyOrder->was_client_called ? 'setWasClientCalledToFalse' : 'setWasClientCalledToTrue'}}">
+                                <input type="hidden" name="uid" value="{{ $supplyOrder->uid }}">
+                                @if($supplyOrder->was_client_called)
+                                    <p>Set to client was not called?</p>
+                                @else
+                                    <p>Set to client was called?</p>
+                                    <div class="mb-2">
+                                        <label class="text-secondary text-sm">Has Client Acknowledged Receipt of Product?</label>
+                                        <select name="hasClientAcknowledged"
+                                                class="form-control form-control-sm">
+                                            <option value="">-- Select Status --</option>
+                                            <option value="YES">YES</option>
+                                            <option value="NO">NO</option>
+                                            <option value="UNKNOWN">UNKNOWN</option>
+                                        </select>
+                                    </div>
+                                    <div class="mb-2">
+                                        <label class="text-secondary text-sm">Client Acknowledgement Memo</label>
+                                        <input type="text" class="form-control form-control-sm" name="clientAcknowledgementMemo">
+                                    </div>
+                                @endif
+                                <div class="d-flex align-items-center">
+                                    <button class="btn btn-sm btn-primary mr-2" type="button" submit>Save</button>
+                                </div>
+                            </form>
+                        </div>
+                    </div>
                     <hr class="my-3">
                     <div class="d-flex align-items-center">
                         @if($supplyOrder->is_cleared_for_shipment)