EVOLUTION-NINJA
Edit File: fabric_dbk_preview.php
<div class="page-content-wrapper"> <div class="page-content"> <div class="row" style=" text-align: right;"> <!--<button class="btn btn-success btn-lg" type="button" onclick="goods_details()" id="" style="--> <!-- padding-top: 2px;--> <!-- padding-bottom: 3px;--> <!-- padding-left: 15px;--> <!-- padding-right: 15px;--> <!-- background: rgb(72,91,127);--> <!-- color: white;--> <!--border: initial !important;--> <!-- font-size: 22px;">Submit</button>--> <button class="btn btn-success btn-lg" type="button" id="booking_print" style=" padding-top: 2px; padding-bottom: 3px; padding-left: 15px; padding-right: 15px; background: rgb(72,91,127); color: white; border: initial !important; font-size: 22px;">Print </button> <span class="close-right" id="back_button" ><a href="<?php echo base_url('packing_list/paking_list_details?prop_id=1');?>" style="font-size: 22px;border: 1px solid;padding-left: 15px;padding-right: 15px;background: rgb(72,91,127);color: white;padding-bottom: 7px;text-decoration:none;">Back</a></span> </div> <div id="print_report"> <p style = "align:centre;"><img src="<?php echo base_url();?>assets/img/preview_logo.png" class="img-responsive" style="width:157px !important;"></p> <table border="1" style="border-collapse: collapse;width:100%;"> <tr> <td colspan="6" style="padding:5px;"><h4 style="margin:0px;"><b>DBK/RODTEP DETAILS</h3></b> </tr> <tr> <td colspan="3" style="padding:5px;"><h4 style="margin:0px;"><b><?php echo 'INVOICE # - '.$invoice_num;?></b></h3> </tr> <tr> <td style="padding:5px;"><h4 style="margin:0px;"><b>SL NO</h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b>NET WT</h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b><?php echo $units; ?></h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b>SQ MTRS</h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b>HS CODE</h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b>DBK SL NO</h3></td></b> </tr> <?php $i = 1; $total_net = 0; $total_wt = 0; $total_sq = 0; foreach($fetch_invoice as $key=>$val){ $total_net += $val->stock_qty; $total_wt += $val->stock_wt; $total_sq += $sq[$key]; ?> <tr> <td style="padding:5px;"><h4 style="margin:0px;"><?php echo $i;?></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"><?php echo number_format((float)$val->stock_qty, 3, '.', '');?></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"><?php echo $val->stock_wt;?></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"><?php echo $sq[$key];?></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"><?php echo $val->hsn_code;?></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"><?php echo $val->dbk_si;?></h3></td> </tr> <?php $i++; } ?> <tr> <td style="padding:15px;"><h4 style="margin:0px;"></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"></h3></td> <td style="padding:5px;"><h4 style="margin:0px;"></h3></td> </tr> <tr> <td style="padding:5px;"><h4 style="margin:0px;"><b><?php echo 'TOTAL';?></h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b><?php echo number_format((float)$total_net, 3, '.', '');?></h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b><?php echo $total_wt;?></h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b><?php echo $total_sq;?></h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b></h3></td></b> <td style="padding:5px;"><h4 style="margin:0px;"><b></h3></td></b> </tr> </table> <p style="float:right;" align="right"> <h4 style="float:right;"><b>For DECO TEXTIL</b></h4><br><br><br> <h4 style="float:right;"><b>Authorized Signature</b></h4> </p> </div> </div> </div> <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> $(document).ready(function(){ $("#booking_print").click(function(){ $('#booking_print').toggle(); $('#back_button').toggle(); var divToPrint=document.getElementById("print_report"); window.print(); }); }); function goods_details() { var invoice=$('#invoice').val(); var awb_date=$('#awb_date').val(); var other_consignee=$('#other_consignee').val(); var special_instruction=$('#special_instruction').val(); var insurance_amount=$('#insurance_amount').val(); var air_freight=$('#air_freight').val(); $.ajax({ url:"<?php echo base_url('packing_list/add_airway_details');?>", type:"POST", data:{'invoice':invoice,'awb_date':awb_date,'other_consignee':other_consignee,'special_instruction':special_instruction,'insurance_amount':insurance_amount,'air_freight':air_freight}, async:false, success:function(data) { swal({ title: "Added Sucessfully", text: "", }); } }); } </script>