  <!-- Modal HistoryBayaran -->
  <div class="modal fade" id="denominasiModal" tabindex="-1" role="dialog" aria-labelledby="ModalCenterTitle" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-xl" role="document">
      <div class="modal-content">
        <div class="modal-header">

          <ul class="nav nav-pills">
            <li class="nav-item">
              <a class="nav-link" data-toggle="pill" href="#home" role="tab" aria-controls="pills-flamingo" aria-selected="true">Bundle</a>
            </li>
            <li class="nav-item">
              <a class="nav-link active" data-toggle="pill" href="#profile" role="tab" aria-controls="pills-cuckoo" aria-selected="false">Keping</a>
            </li>
          </ul>

          <label class="mt-2 ml-3">Amaun Diminta:</label><input type="text" class="form-control col-3 ml-3" id="amaundiminta" placeholder="0.00" readonly>
          <label class="mt-2 ml-3">Amaun Kiraan:</label><input type="text" class="form-control col-3 ml-3" id="amaunkiraan" placeholder="0.00" readonly>
          
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
          
        </div>
        <div class="modal-body">  

          <div class="tab-content">
            <div class="tab-pane fade" id="home" role="tabpanel" aria-labelledby="flamingo-tab">
              
              <table class="table"> 
                    <tr>
                          <th></th>
                          <th>Ambilan</th>
                          <th>Jumlah (RM)</th>
                          <th></th>
                          <th>Ambilan</th>
                          <th>Jumlah (RM)</th>
                    </tr>
                    <tr>
                      <td>RM1</td>
                      <td><input type="text" name="ambilanb1" class="form-control" id="bundle1" onkeyup="kiraan(this)" readonly/> </td>
                      <td><input type="text" name="totalb1" class="form-control" id="totalb1" value="0.00" readonly/> </td>
                      <td> RM20</td>
                      <td><input type="text" name="ambilanb20" class="form-control" id="bundle20" onkeyup="kiraan(this)" readonly/> </td>
                      <td><input type="text" name="totalb20" class="form-control" id="totalb20" value="0.00" readonly/> </td>
                  </tr>
                  <tr>
                      <td>RM5</td>
                      <td><input type="text" name="ambilanb5" class="form-control" id="bundle5" onkeyup="kiraan(this)" readonly/> </td>
                      <td><input type="text" name="totalb5" class="form-control" id="totalb5" value="0.00" readonly/> </td>
                      <td>RM50</td> 
                      <td><input type="text" name="ambilanb50" class="form-control" id="bundle50" onkeyup="kiraan(this)" readonly/> </td>
                      <td><input type="text" name="totalb50" class="form-control" id="totalb50" value="0.00" readonly/> </td>
                  </tr>
                  <tr>
                      <td>RM10</td>
                      <td><input type="text" name="ambilanb10" class="form-control" id="bundle10" onkeyup="kiraan(this)" readonly/> </td>
                      <td><input type="text" name="totalb10" class="form-control" id="totalb10" value="0.00" readonly/> </td>
                      <td>RM100 </td>
                      <td><input type="text" name="ambilanb100" class="form-control" id="bundle100" onkeyup="kiraan(this)" readonly/> </td>
                      <td><input type="text" name="totalb100" class="form-control" id="totalb100" value="0.00" readonly/> </td>
                  </tr>
                    </table>

            </div>
            <div class="tab-pane fade show active" id="profile" role="tabpanel" aria-labelledby="profile-tab">
              
          <table class="table"> 
            <tr>
                  <th></th>
                  <th>Ambilan</th>
                  <th>Jumlah (RM)</th>
                  <th></th>
                  <th>Ambilan</th>
                  <th>Jumlah (RM)</th>
            </tr>
            <tr>
              
              <td>RM0.01</td>
              <td><input type="text" name="ambilansen1" class="form-control" id="sen1" onkeyup="kiraan(this)"/> </td>
              <td><input type="text" name="totalsen1" id="totalsen1" class="form-control" value="0.00" readonly/> </td>
              <td>RM1</td>
              <td><input type="text" name="ambilanring1" class="form-control" id="ringgit1" onkeyup="kiraan(this)"/> </td>
              <td><input type="text" name="totalring1" id="totalring1" class="form-control" value="0.00" readonly/> </td>
          </tr>
          <tr>
              <td>RM0.05</td>
              <td><input type="text" name="ambilansen5" class="form-control" id="sen5" onkeyup="kiraan(this)"/> </td>
              <td><input type="text" name="totalsen5" id="totalsen5" class="form-control" value="0.00" readonly/> </td>
              <td>RM5</td>
              <td><input type="text" name="ambilanring5" class="form-control" id="ringgit5" onkeyup="kiraan(this)"/> </td>
              <td><input type="text" name="totalring5" id="totalring5" class="form-control" value="0.00" readonly/> </td>
          </tr>
          <tr>
              <td>RM0.10</td>
              <td><input type="text" name="ambilansen10" class="form-control" id="sen10" onkeyup="kiraan(this)"/> </td>
              <td><input type="text" name="totalsen10" id="totalsen10" class="form-control" value="0.00" readonly/> </td>
              <td>RM10</td>
              <td><input type="text" name="ambilanring10" class="form-control" id="ringgit10" onkeyup="kiraan(this)"/> </td>
              <td><input type="text" name="totalring10" id="totalring10" class="form-control" value="0.00" readonly/> </td>
          </tr>
          <tr>
            <td>RM0.20</td>
            <td><input type="text" name="ambilansen20" class="form-control" id="sen20" onkeyup="kiraan(this)"/> </td>
            <td><input type="text" name="totalsen20" id="totalsen20" class="form-control" value="0.00" readonly/> </td>
            <td> RM20</td>
            <td><input type="text" name="ambilanring20" class="form-control" id="ringgit20" onkeyup="kiraan(this)"/> </td>
            <td><input type="text" name="totalring20" id="totalring20" class="form-control" value="0.00" readonly/> </td>
        </tr>
        <tr>
          <td>RM0.50</td>
          <td><input type="text" name="ambilansen50" class="form-control" id="sen50" onkeyup="kiraan(this)"/> </td>
          <td><input type="text" name="totalsen50" id="totalsen50" class="form-control" value="0.00" readonly/> </td>
          <td>RM50</td> 
          <td><input type="text" name="ambilanring50" class="form-control" id="ringgit50" onkeyup="kiraan(this)"/> </td>
          <td><input type="text" name="totalring50" id="totalring50" class="form-control" value="0.00" readonly/> </td>
      </tr>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td>RM100 </td> 
        <td><input type="text" name="ambilanring100" class="form-control" id="ringgit100" onkeyup="kiraan(this)"/> </td>
        <td><input type="text" name="totalring100" id="totalring100" class="form-control" value="0.00" readonly/> </td>
      </tr>
      </table>

            </div>
          </div>

          <input type="hidden" id="jenisjenis"/>
          <input type="hidden" id="kodcawangan"/>
          <input type="hidden" id="tellerla"/>

        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-danger btn-lg" data-dismiss="modal">Batal</button>
            <button type="button" onclick="tambahdanserahanfunc()" class="btn btn-success btn-lg">Terima</button>
        </div>
      </div>
    </div>
  </div>



