EVOLUTION-NINJA
Edit File: yarn_raw_chck_box_data.php
<div class="page-content-wrapper"> <div class="page-content"> <h3 class="page-title"> Yarn - Billing</h3> <?php $this->load->view('templates/nav_menu'); ?> <form action="" method="post" class="transfer_modal_application"> <div class="table-responsive"> <table width="100%"> <tr> <th style="width: 5%;">Billing No.</th> <th> <input type="text" name="billing_no" id="billing_no" style="width: 100%;border: transparent;" value="<?php echo $billing_details->billing_no; ?>" value="" readonly="readonly"> <input type="hidden" name="billing_id" id="billing_id" value="<?php echo $billing_details->billing_sl_no; ?>"> </th> <th rowspan="5"> <textarea rows="5" id="address" name="address" style="width: 100%; border: transparent;" placeholder="Address :" readonly><?php echo $billing_details->address; ?></textarea> </th> </tr> <tr> <th>Vendor</th> <th style="width: 21%;"> <input type="text" id="supplier_name" name="supplier_name" onkeyup="vendor_searchname()" onfocusout="vendor_myFunction()" style="width: 100%;border: transparent;" value="<?php echo $billing_details->vendor_name; ?>"> </th> </tr> <tr> <th>Date</th> <th><input type="text" name="g_date" id="g_date" style="width: 100%;border: transparent;" value="<?php echo date("d-m-Y"); ?>" readonly="readonly"></th> </tr> <tr> <th>Currency</th> <th> <select name="currency" id="currency" onfocusout="currency_myFunction()" style="width: 100%;border: transparent;" > <option value="INR" <?php if($billing_details->currency == 'INR') {echo "selected";}?> >INR</option> <option value="CHF" <?php if($billing_details->currency == 'CHF') {echo "selected";}?> >CHF</option> <option value="EUR" <?php if($billing_details->currency == 'EUR') {echo "selected";}?> >EUR</option> <option value="GBP" <?php if($billing_details->currency == 'GBP') {echo "selected";}?> >GBP</option> <option value="USD" <?php if($billing_details->currency == 'USD') {echo "selected";}?> >USD</option> </select> </th> </tr> <tr> <th>Yarn Type</th> <th> <select name="yarn_type" id="yarn_type" class="yarn_type" style="width: 100%;border: transparent;" > <option value="Yarn - Raw" <?php if($billing_details->yarn_type == 'Yarn - Raw') {echo "selected";}?> >Yarn - Raw</option> <option value="Yarn - Twisted" <?php if($billing_details->yarn_type == 'Yarn - Twisted') {echo "selected";}?> >Yarn - Twisted</option> <option value="Yarn - Dyed" <?php if($billing_details->yarn_type == 'Yarn - Dyed') {echo "selected";}?> >Yarn - Dyed</option> <option value="Swan - Yarn - Dyed" <?php if($billing_details->yarn_type == 'Swan - Yarn - Dyed') {echo "selected";}?> >Swan - Yarn - Dyed</option> </select> </th> </tr> </table> </div> <div class="table-responsive"> <table style="width:100%;"> <thead class="thead-default"> <tr> <th width="3%"><button type="button" style="margin-left: 25%;color:#fff;" id="waeving_modal" onclick="m_function()" name="weaving_modal"> <i class="fa fa-plus" style="color:#337AB7;"></i></button></th> <th width="18%">Yarn Name</th> <th width="12%">Lot / Issue #</th> <?php if($refer == 'double_val') { ?> <?php } else { ?> <th width="12%">Bale</th> <?php } ?> <th width="10%" >Net / Dyed Weight</th> <th width="10%" >Billing Net / Dyed Weight</th> <th width="10%" >Unit Price</th> <th width="6%" class="inr_val" id="inr_val" name="inr_val">INR Value</th> <th width="6%" class="chf_val" id="chf_val" name="chf_val" style="display: none;">CHF Value</th> <th width="6%" style="display: none;" class="eur_val" id="eur_val" name="eur_val">EUR Value</th> <th width="6%" style="display: none;" class="gbp_val" id="gbp_val" name="gbp_val">GBP Value</th> <th width="6%" style="display: none;" class="usd_val" id="usd_val" name="usd_val">USD Value</th> <th width="6%">SGST</th> <th width="6%">CGST</th> <th width="6%">IGST</th> <th width="6%">Total Value</th> </tr> </thead> <tbody> <?php if($refer == 'single') { $i=1; foreach($yarn_data as $yarn_data) { ?> <tr> <td width="8%" scope="row"><?php echo $i; ?><input type="hidden" style="border:none;" name="yarnid[]" value="<?php echo $yarn_data->id; ?>"></td> <td width="auto"><input type="text" style="border:none;" name="yarnname[]" value="<?php echo $yarn_data->yarnname; ?>" readonly></td> <td ><input type="text" style="border:none;" name="lot[]" value="<?php echo $yarn_data->lot; ?>" readonly></td> <td ><input type="text" style="border:none;" name="bale[]" value="<?php echo $yarn_data->bale; ?>" readonly></td> <td ><input type="text" style="border:none;" name="netwt[]" class="actual_net_wt<?php echo $i; ?>" value="<?php echo $yarn_data->issue_net_weight; ?>" readonly></td> <td ><input type="text" style="border:none;" name="bill_netwt[]" class="billing_net_weight<?php echo $i; ?>" onkeyup="billingvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"></td> <td><input type="text" style="border:none;" name="unitprice[]" class="billing_unit_price<?php echo $i; ?>" onkeyup="unitvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"></td> <td ><input type="text" style="border:none;" name="inr_val[]" class="billing_inr_vale<?php echo $i; ?>" value="<?php echo '0'; ?>" readonly></td> <td ><input type="text" style="border:none;" name="sgst_val[]" class="billing_sgst<?php echo $i; ?>" onkeyup="sgstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <td ><input type="text" style="border:none;" name="cgst_val[]" class="billing_cgst<?php echo $i; ?>" onkeyup="cgstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <td ><input type="text" style="border:none;" name="igst_val[]" class="billing_igst<?php echo $i; ?>" onkeyup="igstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <!--<td width="8%" style="width: 10%;padding: 1px;"> <span>%</span></td> <td width="8%" style="width: 10%;padding: 1px;"> <span>%</span></td> <td width="8%" style="width: 10%;padding: 1px;"><span>%</span></td>--> <td ><input type="text" class="total_value<?php echo $i; ?> tot_val" id="totalvalue" name="totalvalue[]" style="width: 100%;border: transparent;" value="<?php echo '0'; ?>" readonly></td> <!-- <th colspan="1" contenteditable="true"></th> <th colspan="3" contenteditable="true"></th>--> </tr> <?php $i++; } } else if($refer == 'double') { $i=1; foreach($yarn_data as $yarn_datas) { foreach($yarn_datas as $yarn) { ?> <tr> <td width="8%" scope="row"><?php echo $i; ?><input type="hidden" style="border:none;" name="yarnid[]" value="<?php echo $yarn->id; ?>" readonly></td> <td width="auto"><input type="text" style="border:none;" name="yarnname[]" value="<?php echo $yarn->yarnname; ?>" readonly></td> <td ><input type="text" style="border:none;" name="lot[]" value="<?php echo $yarn->lot; ?>" readonly></td> <td ><input type="text" style="border:none;" name="bale[]" value="<?php echo $yarn->bale; ?>" readonly></td> <td ><input type="text" style="border:none;" name="netwt[]" class="actual_net_wt<?php echo $i; ?>" value="<?php echo $yarn->issue_net_weight; ?>" readonly></td> <td ><input type="text" style="border:none;" name="bill_netwt[]" class="billing_net_weight<?php echo $i; ?>" onkeyup="billingvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"></td> <td><input type="text" style="border:none;" name="unitprice[]" class="billing_unit_price<?php echo $i; ?>" onkeyup="unitvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"></td> <td ><input type="text" style="border:none;" name="inr_val[]" class="billing_inr_vale<?php echo $i; ?>" value="<?php echo '0'; ?>" readonly></td> <td ><input type="text" style="border:none;" name="sgst_val[]" class="billing_sgst<?php echo $i; ?>" onkeyup="sgstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <td ><input type="text" style="border:none;" name="cgst_val[]" class="billing_cgst<?php echo $i; ?>" onkeyup="cgstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <td ><input type="text" style="border:none;" name="igst_val[]" class="billing_igst<?php echo $i; ?>" onkeyup="igstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <!--<td width="8%" style="width: 10%;padding: 1px;"> <span>%</span></td> <td width="8%" style="width: 10%;padding: 1px;"> <span>%</span></td> <td width="8%" style="width: 10%;padding: 1px;"><span>%</span></td>--> <td ><input type="text" class="total_value<?php echo $i; ?> tot_val" id="totalvalue" name="totalvalue[]" style="width: 100%;border: transparent;" value="<?php echo '0'; ?>" readonly></td> <!-- <th colspan="1" contenteditable="true"></th> <th colspan="3" contenteditable="true"></th>--> </tr> <?php $i++; } } } else if($refer == 'double_val') { $i=1; foreach($yarn_data as $yarn_datas) { foreach($yarn_datas as $yarn) { ?> <tr> <td width="8%" scope="row"><?php echo $i; ?><input type="hidden" style="border:none;" name="yarnid[]" value="<?php echo $yarn->id; ?>"></td> <td width="auto"><input type="text" style="border:none;" name="yarnname[]" value="<?php echo $yarn->yarn_details; ?>" readonly></td> <td ><input type="text" style="border:none;" name="lot[]" value="<?php echo $yarn->issue_no; ?>" readonly><input type="hidden" style="border:none;" name="bale[]" value=""></td> <td ><input type="text" style="border:none;" name="netwt[]" class="actual_net_wt<?php echo $i; ?>" value="<?php echo $yarn->rec_dyed_qua; ?>" readonly></td> <td ><input type="text" style="border:none;" name="bill_netwt[]" class="billing_net_weight<?php echo $i; ?>" onkeyup="billingvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"></td> <td><input type="text" style="border:none;" name="unitprice[]" class="billing_unit_price<?php echo $i; ?>" onkeyup="unitvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"></td> <td ><input type="text" style="border:none;" name="inr_val[]" class="billing_inr_vale<?php echo $i; ?>" value="<?php echo '0'; ?>" readonly></td> <td ><input type="text" style="border:none;" name="sgst_val[]" class="billing_sgst<?php echo $i; ?>" onkeyup="sgstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <td ><input type="text" style="border:none;" name="cgst_val[]" class="billing_cgst<?php echo $i; ?>" onkeyup="cgstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <td ><input type="text" style="border:none;" name="igst_val[]" class="billing_igst<?php echo $i; ?>" onkeyup="igstvalue(this.value,<?php echo $i; ?>)" value="<?php echo '0'; ?>"><span>%</span></td> <!--<td width="8%" style="width: 10%;padding: 1px;"> <span>%</span></td> <td width="8%" style="width: 10%;padding: 1px;"> <span>%</span></td> <td width="8%" style="width: 10%;padding: 1px;"><span>%</span></td>--> <td ><input type="text" class="total_value<?php echo $i; ?> tot_val" id="totalvalue" name="totalvalue[]" style="width: 100%;border: transparent;" value="<?php echo '0'; ?>" required readonly></td> <!-- <th colspan="1" contenteditable="true"></th> <th colspan="3" contenteditable="true"></th>--> </tr> <?php $i++; } } } ?> <tr> <th colspan="9" rowspan="3"> <textarea rows="1" id="note" name="note" style="width: 100%; border: transparent; margin-top: -15px;text-transform: uppercase !important;" ></textarea> </th> <th colspan="1" style="padding-bottom:5px;">TOTAL AMOUNT</th> <th colspan="2"><input type="text" class="total_amt" id="total_amt" name="total_amt" style="width: 100%;border: transparent;" readonly="readonly" required onfocusin="amount_total1()"> </th> </tr> </tbody> </table> </div> <br/><br/> <button name="submit_Order" id="submit_Order"class="btn center-block" style="float: left;margin-left: 39%;">Submit</button> <a href="<?php echo base_url(); ?>packing_list/yarn_raw_billing?prop_id=1" class="btn btn-default">Cancel</a> </form> </div> <!-- page-content --> </div> <!---------------------------osl modal------------------------------------------------> <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 src="<?php echo base_url(); ?>assets/js/sweetalert.min.js" type="text/javascript"></script> <link href="<?php echo base_url(); ?>assets/css/sweetalert.min.css" rel="stylesheet" type="text/css" > <script type="text/javascript"> function m_function() { var billing_no=$('#billing_no').val(); var billing_id=$('#billing_id').val(); var supplier_name=$('#supplier_name').val(); var g_date=$('#g_date').val(); var currency=$('#currency').val(); var yarn_type=$('#yarn_type').val(); $.ajax({ url:"<?php echo base_url('billing/insert_billing_data');?>", type:"POST", data:{'billing_no':billing_no,'billing_id':billing_id,'supplier_name':supplier_name,'g_date':g_date,'currency':currency,'yarn_type':yarn_type}, async:false, success:function(data) { if(yarn_type == 'Yarn - Raw') { window.location.href = "<?php echo base_url('billing/raw_yarn_stock_details'); ?>"; } else if(yarn_type == 'Yarn - Twisted') { window.location.href = "<?php echo base_url('billing/yarn_twisting_stock_details'); ?>"; } else if(yarn_type == 'Yarn - Dyed') { window.location.href = "<?php echo base_url('billing/yarn_dyed_stock_details'); ?>"; } else if(yarn_type == 'Swan - Yarn - Dyed') { window.location.href = "<?php echo base_url('billing/swan_yarn_stock_details'); ?>"; } } }); } $(document).ready(function() { //alert(); $( "#supplier_name" ).autocomplete({ source: '<?php echo base_url('vendor/auto_complete_vendor_name'); ?>', }); }); function vendor_searchname() { var customer = document.getElementById('supplier_name').value; //alert(customer); $.ajax({ url:"<?php echo base_url('vendor/vendor_search_by_fetch')?>", dataType: "json", data:{'customer':customer}, type:"POST", async:true, success:function(data) { // alert('hai'); var obj=JSON.parse(data); document.getElementById('address').value=obj[0].address+"\n"; document.getElementById('address').value+=obj[0].city+"\n"; document.getElementById('address').value+=obj[0].country+"\n"; document.getElementById('address').value+=obj[0].pincode; document.getElementById('bank_details').value=' '+'A/c No. '+obj[0].ac_no+"\n"; document.getElementById('bank_details').value+=','+obj[0].bank_name+"\n"; document.getElementById('bank_details').value+=','+obj[0].bank_address+"\n"; document.getElementById('bank_details').value+=','+obj[0].ifsc_code+"\n"; document.getElementById('bank_details').value+=','+obj[0].pan_no; document.getElementById('gst_no').value=obj[0].gst_no; } }); } function currency_myFunction() { var currency = document.getElementById('currency').value; if(currency == 'CHF') { $("#chf_val").show(); $("#eur_val").hide(); $("#gbp_val").hide(); $("#gbp_val").hide(); $("#usd_val").hide(); $("#inr_val").hide(); } else if(currency == 'EUR') { $("#eur_val").show(); $("#chf_val").hide(); $("#gbp_val").hide(); $("#usd_val").hide(); $("#inr_val").hide(); } else if(currency == 'GBP') { $("#gbp_val").show(); $("#eur_val").hide(); $("#usd_val").hide(); $("#chf_val").hide(); $("#inr_val").hide(); } else if(currency == 'USD') { $("#usd_val").show(); $("#eur_val").hide(); $("#gbp_val").hide(); $("#chf_val").hide(); $("#inr_val").hide(); } else if(currency == 'INR') { $("#usd_val").hide(); $("#eur_val").hide(); $("#gbp_val").hide(); $("#chf_val").hide(); $("#inr_val").show(); } } function vendor_myFunction() { var customer = document.getElementById('supplier_name').value; // alert(customer); $.ajax({ url:"<?php echo base_url('vendor/vendor_search_by_fetch')?>", dataType: "json", data:{'customer':customer}, type:"POST", async:true, success:function(data) { // alert('hai'); var obj=JSON.parse(data); document.getElementById('address').value=obj[0].address+"\n"; document.getElementById('address').value+=obj[0].city+"\n"; document.getElementById('address').value+=obj[0].country+"\n"; document.getElementById('address').value+=obj[0].pincode; document.getElementById('bank_details').value=' '+'A/c No. '+obj[0].ac_no+"\n"; document.getElementById('bank_details').value+=','+obj[0].bank_name+"\n"; document.getElementById('bank_details').value+=','+obj[0].bank_address+"\n"; document.getElementById('bank_details').value+=','+obj[0].ifsc_code+"\n"; document.getElementById('bank_details').value+=','+obj[0].pan_no; document.getElementById('gst_no').value=obj[0].gst_no; } }); } function billingvalue(str,i) { $('.billing_net_weight'+i).on('change keyup', function() { var sanitized = $(this).val().replace(/[^0-9.]/g, ''); $(this).val(sanitized); }); var t_q=$('.actual_net_wt'+i).val(); var i_q=$('.billing_net_weight'+i).val(); if(parseFloat(i_q) > parseFloat(t_q)) { swal({ title: "Billing Net Weight is Exceeded", text: "", }); $('.billing_net_weight'+i).val('0'); } else { var unit=str; var quantity_val =$('.billing_unit_price'+i).val(); var inr_val = str * quantity_val; $('.billing_inr_vale'+i).val(inr_val); var cgst =$('.billing_cgst'+i).val(); var sgst =$('.billing_sgst'+i).val(); var igst =$('.billing_igst'+i).val(); var tax=parseFloat(cgst) + parseFloat(sgst)+ parseFloat(igst); var total_val =(inr_val * tax)/100 ; var total=parseFloat(total_val) + parseFloat(inr_val); $('.total_value'+i).val(total); var tot=0; $('.tot_val').each(function () { // alert($(this).val()); var tots=$(this).val(); tot +=parseFloat(tots); }); $('.total_amt').val(tot.toFixed(2)); } } function unitvalue(str,i) { $('.billing_unit_price'+i).on('change keyup', function() { var sanitized = $(this).val().replace(/[^0-9.]/g, ''); $(this).val(sanitized); }); var unit=str; var quantity_val =$('.billing_net_weight'+i).val(); var inr_val = str * quantity_val; $('.billing_inr_vale'+i).val(inr_val); var cgst =$('.billing_cgst'+i).val(); var sgst =$('.billing_sgst'+i).val(); var igst =$('.billing_igst'+i).val(); var tax=parseFloat(cgst) + parseFloat(sgst)+ parseFloat(igst); var total_val =(inr_val * tax)/100 ; var total=parseFloat(total_val) + parseFloat(inr_val); $('.total_value'+i).val(total); var tot=0; $('.tot_val').each(function () { var tots=$(this).val(); tot +=parseFloat(tots); }); $('.total_amt').val(tot.toFixed(2)); } function sgstvalue(strr,i) { $('.billing_sgst'+i).on('change keyup', function() { var sanitized = $(this).val().replace(/[^0-9.]/g, ''); $(this).val(sanitized); }); var str=$('.billing_unit_price'+i).val(); var quantity_val =$('.billing_net_weight'+i).val(); var inr_val = str * quantity_val; $('.inr_value'+i).val(inr_val); var cgst =$('.billing_cgst'+i).val(); var sgst =$('.billing_sgst'+i).val(); var igst =$('.billing_igst'+i).val(); var tax=parseFloat(cgst) + parseFloat(sgst)+ parseFloat(igst); var total_val =(inr_val * tax)/100 ; var total=parseFloat(total_val) + parseFloat(inr_val); $('.total_value'+i).val(total); var tot=0; $('.tot_val').each(function () { var tots=$(this).val(); tot +=parseFloat(tots); }); $('.total_amt').val(tot.toFixed(2)); } function cgstvalue(strr,i) { $('.billing_cgst'+i).on('change keyup', function() { var sanitized = $(this).val().replace(/[^0-9.]/g, ''); $(this).val(sanitized); }); var str=$('.billing_unit_price'+i).val(); var quantity_val =$('.billing_net_weight'+i).val(); var inr_val = str * quantity_val; $('.inr_value'+i).val(inr_val); var cgst =$('.billing_cgst'+i).val(); var sgst =$('.billing_sgst'+i).val(); var igst =$('.billing_igst'+i).val(); var tax=parseFloat(cgst) + parseFloat(sgst)+ parseFloat(igst); var total_val =(inr_val * tax)/100 ; var total=parseFloat(total_val) + parseFloat(inr_val); $('.total_value'+i).val(total); var tot=0; $('.tot_val').each(function () { var tots=$(this).val(); tot +=parseFloat(tots); }); $('.total_amt').val(tot.toFixed(2)); } function igstvalue(strr,i) { $('.billing_igst'+i).on('change keyup', function() { var sanitized = $(this).val().replace(/[^0-9.]/g, ''); $(this).val(sanitized); }); var str=$('.billing_unit_price'+i).val(); var quantity_val =$('.billing_net_weight'+i).val(); var inr_val = str * quantity_val; $('.inr_value'+i).val(inr_val); var cgst =$('.billing_cgst'+i).val(); var sgst =$('.billing_sgst'+i).val(); var igst =$('.billing_igst'+i).val(); var tax=parseFloat(cgst) + parseFloat(sgst)+ parseFloat(igst); var total_val =(inr_val * tax)/100 ; var total=parseFloat(total_val) + parseFloat(inr_val); $('.total_value'+i).val(total); var tot=0; $('.tot_val').each(function () { var tots=$(this).val(); tot +=parseFloat(tots); }); $('.total_amt').val(tot.toFixed(2)); } </script> <style type="text/css"> .thead-default{ background:#337ab7; color:white; } .table{ margin-bottom:0 !important; //width:auto !important; } th, td{ border:1px solid gray; padding:6px; } .inner th{ border:transparent !important; } .inner tr{ border-bottom:1px solid gray; } table{ width:100%; } #ui-id-1 { display: none; width: 350px; top: 258px; overflow-x: hidden !important; overflow-y: scroll !important; height: 203px !important; } .btn-default { color: #333; background-color: #ddd !important; border-color: #ccc; } @media only screen and (min-width:320px) and (max-width:640px) { .submit_btn { margin-left: 30% !important; } } </style> <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> $('.transfer_modal_application').submit(function(e){ e.preventDefault(); // var u=$('#check_box_val').val(); // // alert(u); formdata = new FormData($(this)[0]); $.ajax({ type : 'post', url:"<?php echo base_url('billing/insert_billing_yarn_data');?>", data : formdata, contentType: false, processData: false, success:function() { //var obj = jQuery.parseJSON(response); //alert(obj.invoice); //alert(obj.invoice_num); // insert_billing_yarn_data // var confirmMsg= confirm("Do You Want To Create One More Packing List For Same Invoice No.!"); // if (confirmMsg==true) // { //alert('sadasd'); // $('#invoice').val(obj.invoice_num); // $('#invoice_number_g').val(obj.invoice); // $("#yarnTbody").empty(); // $("#invoicebody").empty(); // $("#pkgbody").empty(); // $('#customer_name').val(''); // $('#osl_no').val(''); // $('#order_date').val(''); // $('#delivery_date').val(''); // $('#units').val(''); // $('#units1').val(''); //$('.transfer_modal_application')[0].reset(); //} // else if (confirmMsg==false) // { //window.location.href = '<?php echo base_url('packing_list/paking_list_details?prop_id=1');?>'; // } window.location.href = '<?php echo base_url('packing_list/yarn_raw_billing?prop_id=1');?>'; } }); }); </script>