
                    <a class="navbar-brand text-white d-none">
                        <img id="with-internet" class="img-icon" src="<!--[#SITE_URL;]-->/res/img/with-internet.png" alt="PeakPOS">
                        <img id="no-internet" class="img-icon d-none" src="<!--[#SITE_URL;]-->/res/img/no-internet.png" alt="PeakPOS">
                    </a>
                </nav>

                <!-- main content -->
                <section class="py-3 px-1">

                    <div class="container">
                        <div class="form-group">
                            Search:
                            <input type="text" class="form-control" name="SEARCH_TXT" id="SEARCH_TXT" onkeydown="if(event.which == 13 || event.keyCode == 13 || event.key === 'Enter'){HTTP_SEARCH();}">
                        </div>
                         <div class="col-12 px-0 d-flex justify-content-between">
                            <div class="form-group col-6 pl-0 pr-1">
                                Date From:
                                <input type="date" class="form-control" name="START_DATE_TXT"  id="START_DATE_TXT">
                            </div>
                            <div class="form-group col-6 pl-0 pr-1">
                                Date To:
                                <input type="date" class="form-control" name="END_DATE_TXT"  id="END_DATE_TXT">
                            </div>
                        </div>
                        <div class="form-group">
                            <button id="SEARCH_CMD" class="btn btn__primary--cus btn-block"><i class="fas fa-search"></i> Search</button>
                        </div>
                    </div>

                    <div class="table-responsive table-fixed mt-4"  style="max-height:95vh;padding-bottom:10vh;">
                        <table class="table table-fit table-exp table-header-fixed table-header-primary-color" id="PO_ORDER_DGV">
                            <thead class="bg_primary--cus table-info text-white">
                                <tr id="PO_ORDER_DGV_HEADER">
                                    <th id="PO_ORDER_DGV_HEADER_ROW_COUNT" style="display: none;">#</th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_ID" style="display: none;">ID</th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_ACC_GROUP_ID" style="display: none;"></th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_ACC_GROUP_ID_DESCRIPTION" style="display: none;"></th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_DATE_REQUEST" style="width: 200px">P.O. Date</th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_DATE_EXPECT" style="width: 200px">Delivery Date</th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_CODE" style="width: 200px">Reference No.</th>
                                    <th id="PO_ORDER_DGV_HEADER_REC_PORDER_REMARKS" style="width: 300px">Remarks</th>
                                </tr>
                            </thead>
                            <tbody class="">
                                <tr id="PO_ORDER_DGV_ROW">
                                    <td id="PO_ORDER_DGV_ROW_ROW_COUNT" style="display: none;"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_ID" style="display: none;"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_ACC_GROUP_ID" style="display: none;"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_ACC_GROUP_ID_DESCRIPTION" style="display: none;"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_DATE_REQUEST" style="width: 200px;"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_DATE_EXPECT" style="width: 200px"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_CODE" style="width: 200px;"></td>
                                    <td id="PO_ORDER_DGV_ROW_REC_PORDER_REMARKS" style="width: 300px"></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </section>
            </div>
        </div>
    </main>

    <button class="btn round btn-floating btn__secondary--cus btn-lg" style="bottom:10px;"  onclick="Android.CALL('SCAN_BARCODE', 'SEARCH_TXT');"><i class="fas fa-qrcode"></i> Scan QR</button>

    <div class="col-8" id="PO_ORDER_MODAL" style="display: none;">
        <div class="modal-header">
            <h4 class="modal-title font-weight-bold" style="color:black;"><span id="MODAL_TITLE_MM"></span> Deliveries</h4>
            <input type="hidden">
        </div>
        <div class="modal-body"> 
            <div class="form-row mb-2" id="REC_PORDER_CODE_DLG_BLOCK">
                <label class="col-sm-4">Reference No.</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" id="REC_PORDER_CODE_TXT" disabled>
                </div>
            </div> 
            <div class="form-row mb-2" id="REC_PORDER_DATE_REQUEST_DLG_BLOCK">
                <label class="col-sm-4">P.O. Date</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" id="REC_PORDER_DATE_REQUEST_TXT" disabled>
                </div>
            </div>
            <div class="form-row mb-2" id="REC_PORDER_DATE_EXPECT_DLG_BLOCK">
                <label class="col-sm-4">Delivery Date</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" id="REC_PORDER_DATE_EXPECT_DTP" disabled>
                </div>
            </div>  
            <div class="form-row mb-2" id="REC_PORDER_RECEIVE_CODE_DLG_BLOCK">
                <label class="col-sm-4">Delivery Code</label>
                <div class="col-sm-8">
                    <input type="text" class="form-control" id="REC_PORDER_RECEIVE_CODE_TXT">
                </div>
            </div>
            <div id="PO_ORDER_LIST_DIV" class="form-row mt-3">
                <div class="fix-table-head-30 col-sm-12 col-sm-4">
                    <table class="pos-table" id="PO_ORDER_LIST_DGV">
                        <thead class="bg-blue text-white">
                            <tr id="PO_ORDER_LIST_DGV_HEADER">
                                <th id="PO_ORDER_LIST_DGV_HEADER_ROW_COUNT" style="display: none;">#</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_ID" style="display: none;">ID</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_CAT_PRODUCT_ID" style="display: none;">Product Id</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_CAT_PRODUCT_ID_DESCRIPTION">Product</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_COST" style="display: none;">Unit Cost</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_QUANTITY_EXPECT" style="text-align: right;">Ordered Qty</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_QUANTITY_APPROVE" style="display: none;">Approved Qty</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_QUANTITY_RECEIVE" style="text-align: right;">Received Qty</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_DESCRIPANCY" style="display: none;">Discrepancy</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_QUANTITY_CANCEL" style="display: none;">Cancelled Qty</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_STATUS" style="display: none;">Status</th>
                                <th id="PO_ORDER_LIST_DGV_HEADER_REC_PORDER_LIST_TORECEIVE" style="text-align: right;">TO RECEIVE</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr id="PO_ORDER_LIST_DGV_ROW">
                                <td id="PO_ORDER_LIST_DGV_ROW_ROW_COUNT" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_ID" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_CAT_PRODUCT_ID" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_CAT_PRODUCT_ID_DESCRIPTION"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_COST" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_QUANTITY_EXPECT" style="text-align: right;">
                                    <input type="number" class="form-control" style="text-align: right;" value="0.00" disabled>
                                </td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_QUANTITY_APPROVE" style="display: none;"></td>
                                <td class="received-qty" id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_QUANTITY_RECEIVE"  style="text-align: right;">
                                    <input type="number" class="form-control" style="text-align: right;" value="0.00" disabled>
                                </td>
                                <td class="discrepancy" id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_DESCRIPANCY" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_QUANTITY_CANCEL" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_STATUS" style="display: none;"></td>
                                <td id="PO_ORDER_LIST_DGV_ROW_REC_PORDER_LIST_TORECEIVE" style="text-align: right;">
                                    <input type="number" class="form-control" style="text-align: right;" value="0.00" onfocus="this.select();">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="modal-footer justify-content-between">
            <button type="button" class="btn btn-danger mr-1" id="MODAL_CLOSE_CMD">Cancel</button>
            <div>
                <button type="button" class="btn btn-success mr-1" id="SAVE_BBI">Save</button>
                <button type="button" class="btn btn-primary mr-1" id="COMPLETE_BBI">Complete</button>
            </div>
        </div>
    </div>

    <!--[#IMPORT:pos-end-shift-modal.tpl;]-->

    <!-- jQuery -->
    <script type="text/javascript" src="<!--[#SITE_URL;]-->/res/vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap -->
    <script type="text/javascript" src="<!--[#SITE_URL;]-->/res/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

    <!-- Alertify -->
    <script type="text/javascript" src="<!--[#SITE_URL;]-->/res/vendor/alertifyjs/alertify.min.js"></script>

    <!-- Select2 -->
    <script type="text/javascript" src="<!--[#SITE_URL;]-->/res/vendor/select2/js/select2.min.js"></script>

    <!--  Import Libraries  -->
    <script type="text/javascript" src="<!--[#SITE_URL;]-->/res/lib/javascript.js"></script>
    <script type="text/javascript" src="<!--[#SITE_URL;]-->/p/comm/common.js"></script>
