?
Current Path : /home1/savoy/public_html/savoyglobal.net/rms/application/views/inventory/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/rms/application/views/inventory/load_inventory.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <script type="text/javascript"> function check_value(value,cur,name) { if(isNaN(cur)) { alert('enter number'); } if(cur>value) { alert('Exceeds availble stock'); name.value=""; } } </script> <div class="grid_12"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <table class="table"> <tr> <th style="width: 20%;">Inventory Name </th> <th>Available Stock</th> <th>Return Qty</th> <th>Sl No</th> <th>Make</th> <th>Remarks</th> </tr> <?php $i=1; foreach($current_id as $row) { $make=$this->mastermodel->get_data('inventory_utilization_details',$row,'inventory_utilization_stock_id'); $sl=$this->mastermodel->get_data('inventory_utilization_details',$row,'inventory_utilization_stock_id'); if($current_qty[$row]>0) { ?> <tr> <td> <input type="hidden" name="inventory_return_stock_id_<?=$i?>" value="<?=$row?>"/> <?=$this->mastermodel->get_single_field_value('inventory','inventory_type','inventory_id',$row)?> </td> <td><?=$current_qty[$row]?></td> <td><input class="w_90 required" type="text" name="inventory_return_stock_qty_<?=$i?>" id="inventory_return_stock_qty_<?=$i?>" onchange="check_value(<?=$current_qty[$row]?>,this.value,this)"/></td> <td> <select class="chzn-done" name="inventory_return_stock_sl_no_<?=$i?>" id="inventory_return_stock_sl_no_<?=$i?>"> <option value="">--Select--</option> <?php foreach($sl as $row) { if($row['inventory_utilization_stock_sl_no']!='') { ?> <option value="<?=$row['inventory_utilization_stock_sl_no']?>"><?=$row['inventory_utilization_stock_sl_no']?></option> <?php } } ?> </select> </td> <td> <select class="chzn-done" name="inventory_return_stock_make_<?=$i?>" id="inventory_return_stock_make_<?=$i?>"> <option value="">--Select--</option> <?php foreach($make as $row) { if($row['inventory_utilization_stock_make']!='') { ?> <option value="<?=$row['inventory_utilization_stock_make']?>"><?=$row['inventory_utilization_stock_make']?></option> <?php } } ?> </select> </td> <td><input class="w_90" type="text" name="inventory_return_stock_description_<?=$i?>" id="inventory_return_stock_description_<?=$i?>" /></td> </tr> <?php $i++; } } ?> </table> <input type="hidden" name="limit" value="<?=$i?>"/> </div> </div> </div>