EVOLUTION-NINJA
Edit File: madeups_stock.php
<style> .ui-jqgrid { text-transform: capitalize !important; } .tablediv { text-transform: uppercase !important; } .ui-jqgrid tr.jqgrow td{ text-transform: uppercase !important; } </style> <script> function planningtypes(str) { if(str=="all") { $('#table_all').show(); $('#table_ho').hide(); $('#table_peenya').hide(); $('#table_nandi').hide(); $('#table_tailoring').hide(); $('#table_park').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="ho") { $('#table_ho').show(); $('#table_all').hide(); $('#table_peenya').hide(); $('#table_nandi').hide(); $('#table_tailoring').hide(); $('#table_park').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="peenya") { $('#table_peenya').show(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_nandi').hide(); $('#table_tailoring').hide(); $('#table_park').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="nandi") { $('#table_nandi').show(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_peenya').hide(); $('#table_tailoring').hide(); $('#table_park').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="tailoring") { $('#table_tailoring').show(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_nandi').hide(); $('#table_park').hide(); $('#table_peenya').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="kumara_park") { $('#table_park').show(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_nandi').hide(); $('#table_peenya').hide(); $('#table_tailoring').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="BYATRANPURA") { $('#table_nandi').hide(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_peenya').hide(); $('#table_tailoring').hide(); $('#table_park').hide(); $('#table_BYATRANPURA').show(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').hide(); } else if(str=="VIJAYAPURA") { $('#table_tailoring').hide(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_nandi').hide(); $('#table_park').hide(); $('#table_peenya').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').show(); $('#table_DODDAJALA').hide(); } else if(str=="DODDAJALA") { $('#table_park').hide(); $('#table_all').hide(); $('#table_ho').hide(); $('#table_nandi').hide(); $('#table_peenya').hide(); $('#table_tailoring').hide(); $('#table_BYATRANPURA').hide(); $('#table_VIJAYAPURA').hide(); $('#table_DODDAJALA').show(); } } </script> <div class="page-content-wrapper"> <div class="page-content"> <!-- BEGIN PAGE HEADER--> <h3 class="page-title"> Madeups Stock Details </h3> <?php // echo $this->load->view('templates/nav_menu'); ?> <div class="page-bar"> <ul class="page-breadcrumb"> <li><i class="fa fa-home"></i> <a href="https://swansilk.co/dashboard/dashboard_fun">Home</a> <i class="fa fa-angle-right"></i> <a href="#" > Madeups Stock Details </a></li> </ul> </div> <div class="row date_row"> <form action="<?php echo base_url('reports/madeups_stock_data'); ?>" method="post" class="form"> <div class="col-md-3"> <div class="form-group"> <label class="control-label col-md-4">From Date :</label> <div class="col-md-8"> <input type="text" class="form-control input-group openDatePicker from_delivery_date_required_on" name="from_delivery_date_required_on" id="from_delivery_date_required_on" data-provide="datepicker"> </div> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="control-label col-md-4">To Date :</label> <div class="col-md-8"> <input type="text" class="form-control input-group openDatePicker to_delivery_date_required_on" name="to_delivery_date_required_on" id="to_delivery_date_required_on" data-provide="datepicker" > </div> </div> </div> <div class="col-md-3"> <div class="form-group"> <label class="control-label col-md-4">Location :</label> <div class="col-md-8"> <select class="form-control" id="location" name="location"> <option value="all">ALL</option> <?php foreach($loc as $loc){ ?> <option value="<?php echo $loc->consumed_at; ?>"><?php echo $loc->consumed_at; ?></option> <?php } ?> </select> </div> </div> </div> <div class="col-md-3"> <input type="submit" id="" value="Submit" class="" style="margin-right: 22px;"/> </div> </form> </div> <!-- row -2--> <div class="radio-list" style="margin-left: 2%;"> <label class="radio-inline"><input type="radio" name="optradio" checked id="planningorder" onclick="planningtypes('all')" value="ho">ALL </label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('ho')" value="ho">HO </label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('peenya')" value="peenya">PEENYA DYEING </label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('nandi')" value="nandi">NANDI </label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('tailoring')" value="tailoring">PEENYA TAILORING</label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('kumara_park')" value="tailoring">KUMARA PARK</label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('BYATRANPURA')" value="ho">BYATRANPURA </label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('VIJAYAPURA')" value="peenya">VIJAYAPURA </label> <label class="radio-inline"><input type="radio" name="optradio" id="planningorder" onclick="planningtypes('DODDAJALA')" value="nandi">DODDAJALA </label> </div> <input type="hidden" id="delete_id" class="delete_id" value="<?php if(empty($access_row)){ } else { echo $access_row->delete_id; } ?>" > <input type="hidden" id="preview_id" class="preview_id" value="<?php if(empty($access_row)){ } else { echo $access_row->preview_id; } ?>" > <!-- split Modal --> <div class="modal fade" id="split_modal" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Fabric Stock Details</h4> </div> <div class="modal-body"> <b>Number Of Spilts </b> : <input type="text" id="no_of_split" class="no_of_split" > <input type="hidden" id="ref_id" class="ref_id" > </div> <div class="modal-footer"> <button id="submit_modal" name="submit" onclick="goods_details()" class="btn btn-primary">Submit</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <!-- split content Modal --> <div class="modal fade" id="content_modal" role="dialog" > <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Fabric Stock Details</h4> </div> <div class="table table-responsive"> <input type="hidden" id="table_ref_id" name="table_ref_id" class="table_ref_id" > <input type="hidden" id="rec_weightt" class="rec_weightt" > <input type="hidden" id="rec_qty" class="rec_qty" > <table border="1" width="100%" style="border-spacing:0;margin-top: 1%;" cellpadding="5px"> <tr> <td ><b>SI No.</b></td> <td ><b>PO# / OSL #</b></td> <td ><b>Order Type</b></td> <td ><b>Size</b></td> <td ><b>Article(PRODUCT)</b></td> <td ><b>Batch #</b></td> <td ><b>Design</b></td> <td ><b>Shades</b></td> <td ><b>Received Weight</b></td> <td ><b>Actual Quantity</b></td> </tr> <tbody id="dynamicTbody" > </tbody> </table> </div> <div class="modal-footer"> <button id="submit_modal" name="submit" onclick="content_goods_details()" class="btn btn-primary">Submit</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> <div id="table_all"> <div id = "jaytab" class="jaytab"> <table id="list6"></table> <div id="pager6"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_ho" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list2"></table> <div id="pager2"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_peenya" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list3"></table> <div id="pager3"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_nandi" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list4"></table> <div id="pager4"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_tailoring" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list5"></table> <div id="pager5"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_park" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list7"></table> <div id="pager7"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_BYATRANPURA" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list8"></table> <div id="pager8"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_VIJAYAPURA" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list9"></table> <div id="pager9"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> <div id="table_DODDAJALA" style="display:none;"> <div id = "jaytab" class="jaytab"> <table id="list10"></table> <div id="pager10"></div> <div id="dialogSelectRow" title="Warning" style="display:none"> <p>Please select row</p> </div> </div> </div> </div> </div> </div> <!-- End BEGIN CONTAINER --> <!-- BEGIN FOOTER --> <!-- BEGIN FOOTER --> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <style> .ss{ padding-right: 0 !important; padding-left: 0 !important; } .form-control { // width:65% !important; height:27px !important; padding: 3px 12px !important; border-radius: 0px !important; //margin-bottom:15px; } label { font-weight: normal; text-align: left; } .hr-line{ border-top: 1px solid #465A81; } .well-sm { padding: 3px !important; border-radius: 0px !important; } input[type="file"] { padding-bottom: 28px !important; height: 25px !important; color:transparent; } .portlet.box.blue-madison { border: 1px solid #fff !important; border-top: 0; background:#fff !important; } #table_approved_indent { display:none; } #refresh_list3 { display:none !important; } </style> <script> function getDesignAndQuality(articleNo) { $.ajax({ type: "post", url: "<?php echo base_url(); ?>marketing/getDesignAndQuality", data: "articleNo=" + articleNo, success: function (data) { var objData = jQuery.parseJSON(data); document.getElementById("design").value = objData.design; document.getElementById("quality").value = objData.quality; } }); } </script> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <link href="<?php echo base_url('assets/css/sweetalert2.min.css');?>" rel="stylesheet"/> <script src="<?php echo base_url('assets/js/sweetalert2.min.js');?>"></script> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/jquery.jqGrid.min.js'); ?>"></script> <!-- This is the localization file of the grid controlling messages, labels, etc. <!-- We support more than 40 localizations --> <script type="text/ecmascript" src="<?php echo base_url('jqgrid/js/i18n/grid.locale-en.min.js'); ?>"></script> <!-- A link to a jQuery UI ThemeRoller theme, more than 22 built-in and many more custom --> <!-- The link to the CSS that the grid needs --> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid.min.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid-bootstrap.min.css'); ?>" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('jqgrid/css/ui.jqgrid-bootstrap-ui.min.css'); ?>" /> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <style type="text/css"> .ss{ padding-right: 0 !important; padding-left: 0 !important; } label { font-weight: normal; text-align: left; } .hr-line{ border-top: 1px solid #465A81; } .well-sm { padding: 3px !important; border-radius: 0px !important; } input[type="file"] { padding-bottom: 28px !important; height: 25px !important; color:transparent; } .portlet.box.blue-madison { border: 1px solid #fff !important; border-top: 0; background:#fff !important; } input[type=file] { display: none; } .ui-jqgrid .ui-jqgrid-caption { text-align: left; background: rgb(72,91,127); color: white; } .ui-jqdialog .ui-jqdialog-titlebar { padding: .1em .1em; min-height: 35px; background: rgb(72,91,127); color: white; } .ui-jqdialog .ui-jqdialog-titlebar-close span { display: block; margin: -9px; } #sData { height: 27px; } #cData { height: 27px; } #dData { height: 27px; } #eData { height: 27px; } .coledit { cursor:pointer; text-align: right; padding-right: 33px !important; padding-left: 33px !important; } .ui-jqgrid .ui-jqgrid-btable tbody tr.jqgrow td { overflow: hidden; white-space: pre; } </style> <!-----------------datepicker-------------> <!-- The link to the CSS that the grid needs --> <script> <!----------------------------------------------------all location----------------------------------------> $(document).ready(function (){ jQuery("#list6").jqGrid({ url:"<?php echo base_url('stock_history_details/madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager6", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", //footerrow: true, footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list6").jqGrid('getCol','received_qty',false,'sum'); jQuery("#list6").jqGrid('footerData', 'set', { batch_no: 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list6").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list6").jqGrid('navGrid','#pager6', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); function generate_fun(rowId) { // Get the currently selected row var id = rowId.closest('tr').attr('id'); // var v=$('#delete_id').val(); // if(v == 1) // { $.ajax({ url:"<?php echo base_url('stock_history_details/madeups_bar_code_generate')?>", type:"POST", data:{'id':id}, async:false, success:function(data) { window.location.href = '<?php echo base_url('stock_history_details/madeups_bar_code_generate');?>?id='+id; } }); // } // else // { // swal({ // title: "You Don't Have Access For This Delete", // text: "", // }); // } } function fun_preview(rowId) { var id = rowId.closest('tr').attr('id'); var as=id; var v=$('#preview_id').val(); if(v == 1) { $.ajax({ type:'post', url:'<?php echo base_url("stock_history_details/madeups_stock_preview"); ?>', data:{'id':as}, async:false, success:function() { window.location.href = '<?php echo base_url('stock_history_details/madeups_stock_preview');?>/'+ '?id='+as; } }); } else { swal({ title: "You Don't Have Access For This Preview", text: "", }); } } <!------------------------ Ho ------------------------------------------> $(document).ready(function (){ jQuery("#list2").jqGrid({ url:"<?php echo base_url('stock_history_details/ho_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager2", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list2").jqGrid('getCol','received_qty',false,'sum'); // var sumOfPrice_balanced_mtrs = jQuery("#list2").jqGrid('getCol','balanced_mtrs',false,'sum'); //var sumOfPrice_var_mtrs = jQuery("#list2").jqGrid('getCol','variance_mtrs',false,'sum'); jQuery("#list2").jqGrid('footerData', 'set', { batch_no: 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list2").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list2").jqGrid('navGrid','#pager2', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!----------------------------------peenya access controll -------------------------------> $(document).ready(function (){ jQuery("#list3").jqGrid({ url:"<?php echo base_url('stock_history_details/dyeing_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager3", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list3").jqGrid('getCol','received_qty',false,'sum'); //var sumOfPrice_balanced_mtrs = jQuery("#list3").jqGrid('getCol','balanced_mtrs',false,'sum'); //var sumOfPrice_var_mtrs = jQuery("#list3").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list3").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list3").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list3").jqGrid('navGrid','#pager3', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!----------------------------------nandi access controll -------------------------------> $(document).ready(function (){ jQuery("#list4").jqGrid({ url:"<?php echo base_url('stock_history_details/nandi_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager4", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list4").jqGrid('getCol','received_qty',false,'sum'); // var sumOfPrice_balanced_mtrs = jQuery("#list4").jqGrid('getCol','balanced_mtrs',false,'sum'); // var sumOfPrice_var_mtrs = jQuery("#list4").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list4").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list4").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list4").jqGrid('navGrid','#pager4', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!----------------------------------tailoring access controll -------------------------------> $(document).ready(function (){ jQuery("#list5").jqGrid({ url:"<?php echo base_url('stock_history_details/tailoring_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager5", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list5").jqGrid('getCol','received_qty',false,'sum'); // var sumOfPrice_balanced_mtrs = jQuery("#list5").jqGrid('getCol','balanced_mtrs',false,'sum'); //var sumOfPrice_var_mtrs = jQuery("#list5").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list5").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list5").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list5").jqGrid('navGrid','#pager5', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!----------------------------------BYATRANPURA access controll -------------------------------> $(document).ready(function (){ jQuery("#list8").jqGrid({ url:"<?php echo base_url('stock_history_details/byatranpura_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager8", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list8").jqGrid('getCol','received_qty',false,'sum'); //var sumOfPrice_balanced_mtrs = jQuery("#list8").jqGrid('getCol','balanced_mtrs',false,'sum'); //var sumOfPrice_var_mtrs = jQuery("#list8").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list8").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list8").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list8").jqGrid('navGrid','#pager8', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!----------------------------------VIJAYAPURA access controll -------------------------------> $(document).ready(function (){ jQuery("#list9").jqGrid({ url:"<?php echo base_url('stock_history_details/vijayapura_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager9", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list9").jqGrid('getCol','received_qty',false,'sum'); //var sumOfPrice_balanced_mtrs = jQuery("#list9").jqGrid('getCol','balanced_mtrs',false,'sum'); // var sumOfPrice_var_mtrs = jQuery("#list9").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list9").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list9").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list9").jqGrid('navGrid','#pager9', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!----------------------------------DODDAJALA access controll -------------------------------> $(document).ready(function (){ jQuery("#list10").jqGrid({ url:"<?php echo base_url('stock_history_details/doddajala_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager10", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list10").jqGrid('getCol','received_qty',false,'sum'); //var sumOfPrice_balanced_mtrs = jQuery("#list10").jqGrid('getCol','balanced_mtrs',false,'sum'); //var sumOfPrice_var_mtrs = jQuery("#list10").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list10").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list10").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list10").jqGrid('navGrid','#pager10', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); <!------------------------------------kumara park----------------------------------> $(document).ready(function (){ jQuery("#list7").jqGrid({ url:"<?php echo base_url('stock_history_details/kumara_madeups_stock')?>", datatype: "json", colNames:['Id','OSL No','Order Type','Size','Article','Description','Design','Shade','SSL Shade','Batch No','Splitted Batch','Received Qty','Received Wt','Received Date','Location','Received By'], colModel:[ {name:'id',index:'id',hidden:true, width:50,editable:true,width:100}, {name:'osl',index:'osl', width:50,editable:false,width:130}, {name:'order_type',index:'order_type',edittype:'text',editable:true,editrules:{required: true}, width:120}, {name:'size',index:'size',editable:true, width:130}, {name:'article',index:'article',editable:true, width:120}, {name:'description',index:'description', editable:true,editrules:{required: true},width:200}, {name:'design',index:'design', width:50,editable:false,width:130}, {name:'shade',index:'shade', width:50,editable:false,width:100}, {name:'ssl_shade',index:'ssl_shade', width:50,editable:false,width:100}, {name:'batch_no',index:'batch_no',hidden:false,editable:true, width:120}, {name:'batch_split',index:'batch_split',hidden:false,editable:true, width:120}, {name:'received_qty',index:'received_qty', editable:true,editrules:{required: true},width:100}, {name:'received_wt',index:'received_wt', editable:true,editrules:{required: true},width:100}, {name:'rec_date',index:'rec_date', width:50,editable:false,width:100}, {name:'location',index:'location',hidden:false,editable:true, width:100}, {name:'rec_by',index:'rec_by',hidden:false,editable:true, width:120}, ], height: 'auto', rowNum:50, rowTotal: 200000000000000000000000000, rowList : [50,100,200,300,500,1000,5000], rownumbers: true, rownumWidth: 40, pager:"#pager7", sortname:'id', viewrecords: true, gridview: true, autowidth: true, sortorder:"asc", loadonce:true, caption:"Madeups Stock Details", footerrow: true, loadComplete: function () { var sumOfPrice_rec_weight = jQuery("#list7").jqGrid('getCol','received_qty',false,'sum'); // var sumOfPrice_balanced_mtrs = jQuery("#list7").jqGrid('getCol','balanced_mtrs',false,'sum'); //var sumOfPrice_var_mtrs = jQuery("#list7").jqGrid('getCol','variance_mtrs',false,'sum'); //var s=sumOfPrice_rec_weight.toFixed(2); jQuery("#list7").jqGrid('footerData', 'set', { batch_no : 'Total:', received_qty: sumOfPrice_rec_weight.toFixed(2) }); }, }); //$("#list2").jqGrid('filterToolbar',{searchOperators : false}); //for multisearch code,remove if not required jQuery("#list7").jqGrid('filterToolbar', { stringResult: true, searchOnEnter: false, defaultSearch: "cn" }); $("#list7").jqGrid('navGrid','#pager7', {edit:false,add:false,del:false,search:false,refreshstate:"current"}, { }, { }, { }, { sopt:['eq', 'ne', 'lt', 'gt', 'cn', 'bw', 'ew'], closeOnEscape: true, multipleSearch: true, closeAfterSearch: true } ); }); function fun_split_model(rowId) { var id = rowId.closest('tr').attr('id'); var as=id; $('#ref_id').val(as); $('#split_modal').modal('show'); } </script> <style> .preview { padding-bottom:3px !important; padding-top:3px !important; } </style> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script> $(function(){ $(".from_delivery_date_required_on").datepicker({ dateFormat: 'dd/mm/yy', }).on('changeDate', function(ev){ $('.from_delivery_date_required_on').datepicker('hide'); }); }); $('.from_delivery_date_required_on').on('change', function(){ var date = $(this).val(); $('.to_delivery_date_required_on').datepicker({ dateFormat: 'dd/mm/yy', minDate: date, }); }); </script> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script type="text/javascript"> function goods_details() { var no_of_split =$('#no_of_split').val(); var ref_id =$('#ref_id').val(); alert(no_of_split); $.ajax({ type:'post', url:'<?php echo base_url("stock_history_details/madeups_stock_split"); ?>', data:{'no_of_split':no_of_split,'ref_id':ref_id}, async:false, success:function(data) { var objData = jQuery.parseJSON(data); var split=objData.no_of_split; var val1=objData.getalldata; //alert(objData.getalldata.received_date); var content = ''; $('#dynamicTbody').empty(); $('#table_ref_id').val(ref_id); $('#rec_weightt').val(val1.received_wt); $('#rec_qty').val(val1.received_qty); var weight=parseFloat(val1.received_wt) / split; var qty=parseFloat(val1.received_qty) / split; var ww=parseFloat(weight.toFixed(2)); var qq=parseFloat(qty.toFixed(2)); for (var i = 1; i <= split; i++) { content += '<tr id="rowCount1" class="rowCount">'; content += '<td><input type="text" name="ourShade[1]" id="" class="form-control" value="'+i+'" /></td>'; content += '<td style="width: 214px;"><input type="hidden" name="refe_ids[]" class="form-control refe_ids" value="'+val1.id+'" readonly/><input type="text" name="po[]" id="" class="form-control" value="'+val1.osl+'" readonly/></td>'; content += '<td><input type="text" name="ourShade[1]" id="" class="form-control" value="'+val1.order_type+'" readonly/></td>'; content += '<td><input type="text" name="ourShade[1]" id="" class="form-control" value="'+val1.size+'" readonly /></td>'; content += '<td><input type="text" name="ourShade[1]" id="" class="form-control" value="'+val1.article+'" readonly/></td>'; content += '<td><input type="text" name="ssl_pc_no[]" id="" class="form-control ssl_piece_number" value="'+val1.batch_no+'/'+i+'" readonly/></td>'; content += '<td><input type="text" name="ourShade[1]" id="" class="form-control" value="'+val1.design+'" readonly/></td>'; content += '<td><input type="text" name="ourShade[1]" id="" class="form-control" value="'+val1.shade+'" readonly/></td>'; content += '<td><input type="text" name="wei[]" id="" class="form-control rec_w" value="'+ww+'" /></td>'; content += '<td><input type="text" name="qtty[]" id="" class="form-control rec_q" value="'+qq+'" /></td>'; content += '</tr>'; i+1; } content += '<tr >'; content += '<td colspan="13" style="text-align: right;font-size: 14px;font-weight: bold;">'+'Total Received Weight : '+val1.received_wt+' '+'</td>'; content += '</tr>'; content += '<tr >'; content += '<td colspan="13" style="text-align: right;font-size: 14px;font-weight: bold;">'+'Total Actual Quantity : '+val1.received_qty+' '+'</td>'; content += '</tr>'; $('#split_modal').modal('hide'); $('#no_of_split').val(''); $("#dynamicTbody").html(content); $('#content_modal').modal('show'); } }); } </script> <script> $(document).ready(function() { $( "#customer" ).autocomplete({ source: '<?php echo base_url('request/auto_sea'); ?>', }); }); function searchname() { var customer = document.getElementById('customer').value; $.ajax({ url:"<?php echo base_url('request/search_by_fetch')?>", dataType: "json", data:{'customer':customer}, type:"POST", async:true, success:function(data) { // alert('hai'); var obj=JSON.parse(data); document.getElementById('customer_id').value=obj[0].customerID; } }); } </script> <link href="<?php echo base_url('assets/css/sweetalert2.min.css');?>" rel="stylesheet"/> <script src="<?php echo base_url('assets/js/sweetalert2.min.js');?>"></script> <link rel="stylesheet" href="<?php echo base_url('assets/css/code_jquery.min.css');?>"> <script src="<?php echo base_url('assets/js/jquery-ui.min.js'); ?>" type="text/javascript"></script> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url('assets/css/jquery-ui.min.css'); ?>" /> <script> r_ids=[]; rec_wt=[]; rec_qt=[]; ssl_pc=[]; function content_goods_details() { //alert('hai'); r_ids.length=0; rec_wt.length=0; rec_qt.length=0; ssl_pc.length=0; var rec_weight = $('#rec_weightt').val(); var rec_qty = $('#rec_qty').val(); var tot=0; $('.rec_w').each(function () { var tots=$(this).val(); tot +=parseFloat(tots); //alert(tot); }); var tott=0; $('.rec_q').each(function () { var totss=$(this).val(); tott +=parseFloat(totss); //alert(tot); }); <!--------- UNCOMMENT -------------> // if(tot > rec_weight) // { // swal({ // title: "Received Weight Is Excceded", // text: "", // }); // } // else if(tott > rec_qty) // { // swal({ // title: "Received Quantity Is Excceded", // text: "", // }); // } <!--------- ALL COMMENT -------------> // else if(tot < rec_weight ) // { // swal({ // title: "Received Quantity Is Not Equal", // text: "", // }); // } // else if(tott < rec_qty) // { // swal({ // title: "Received Quantity Is Not Equal", // text: "", // }); // } // else // { $('.refe_ids').each(function () { r_ids.push($(this).val()); }); $('.rec_w').each(function () { rec_wt.push($(this).val()); }); $('.rec_q').each(function () { rec_qt.push($(this).val()); }); $('.ssl_piece_number').each(function () { ssl_pc.push($(this).val()); }); var table_ref_id=$('#table_ref_id').val(); $.ajax({ type:'post', url:'<?php echo base_url("stock_history_details/insert_madeups_madeups_split_data"); ?>', data:{'ssl_pc':ssl_pc,'table_ref_id':table_ref_id,'r_ids':r_ids,'rec_wt':rec_wt,'rec_qt':rec_qt}, async:false, success:function(data) { $('#content_modal').modal('toggle'); $("#list2").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list3").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list4").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list5").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list6").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list7").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list8").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list9").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); $("#list10").jqGrid('setGridParam',{datatype:'json'}).trigger('reloadGrid'); } }); // } } </script> <style> #ui-datepicker-div { z-index: 1000 !important; } .date_row { padding-bottom: 3%; } #search_list2 { display:none !important; } #list2_122_t { height:0px !important; } list2_136_t { height:12px !important; } .scroll { height:12px !important; } .ui-jqgrid-btable { } .ui-common-table { height:12px !important; } #refresh_list2 { display:none !important; } #client_edit { padding-right:12px !important; } #list2 { width: 1050px; height: 0px !important; } #gbox_list2 { height: auto !important; } #gview_list2 { height: auto !important; } @media only screen and (min-width:320px) and (max-width:641px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left: 0 !important; } #editmodlist2 { width:90% !important; } #sData span, #cData span { margin-left: 0 !important; } .h_radio { margin-left:10% !important; } } @media only screen and (min-width:641px) and (max-width:991px){ .ui-jqgrid { margin-left: 1px !important; } #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left:0 !important; padding-right:9px !important; } .h_radio { margin-left:4.3% !important; } } @media only screen and (min-width:992px) and (max-width:1258px){ #jaytab{ margin-top: 0 !important; margin-left: 0 !important; overflow-x: scroll; width: 100% !important; padding-left:0 !important; padding-right:9px !important; } .h_radio { margin-left:4.3% !important; } } #sData span, #cData span { margin-left: 3px; } #sData { height: 29px; } #cData { height: 29px; } .jqgfirstrow { height: 0px !important; } </style> <style> .modal-dialog { width: 90%; } .modal-content { padding:0 10px; } #list2 { width: 1300px !important; } #pager2 { width: 1300px !important; } #gbox_list2 { width: 1300px !important; } #gview_list2 { width: 1300px !important; } #list3 { width: 1300px !important; } #pager3 { width: 1300px !important; } #gbox_list3 { width: 1300px !important; } #gview_list3 { width: 1300px !important; } #list4 { width: 1300px !important; } #pager4 { width: 1300px !important; } #gbox_list4 { width: 1300px !important; } #gview_list4 { width: 1300px !important; } #list5 { width: 1300px !important; } #pager5 { width: 1300px !important; } #gbox_list5 { width: 1300px !important; } #gview_list5 { width: 1300px !important; } #list6 { width: 1300px !important; } #pager6 { width: 1300px !important; } #gbox_list6 { width: 1300px !important; } #gview_list6 { width: 1300px !important; } #list7 { width: 1300px !important; } #pager7 { width: 1300px !important; } #gbox_list7 { width: 1300px !important; } #gview_list7 { width: 1300px !important; } #list8 { width: 1300px !important; } #pager8 { width: 1300px !important; } #gbox_list8 { width: 1300px !important; } #gview_list8 { width: 1300px !important; } #list9 { width: 1300px !important; } #pager9 { width: 1300px !important; } #gbox_list9 { width: 1300px !important; } #gview_list9 { width: 1300px !important; } #list10 { width: 1300px !important; } #pager10 { width: 1300px !important; } #gbox_list10 { width: 1300px !important; } #gview_list10 { width: 1300px !important; } .ui-jqgrid-hdiv { width: 1300px !important; } .ui-jqgrid-htable { width: 1300px !important; } .ui-jqgrid-bdiv { width: 1300px !important; } </style>