EVOLUTION-NINJA
Edit File: po_grn_preview.php
<?php //include("menu.php"); error_reporting(E_ALL); ?> <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/avinash.min.css" > <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>assets/css/skin-blue.min.css" > <link rel='shortcut icon' type='image/x-icon' href="<?php echo base_url(); ?>assets/images/samll-big.png"/> <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" 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" ><a href="<?php echo base_url('vendor/purchase_order_List');?>" 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 class="content-wrapper" id="print_report"> <section class="content"> <div class="print" style="width:900px;"> <h2 style="text-align:center;padding-left:299px;margin-bottom:0px !important;"><b><span>Deco-Textil</span></b><span style="padding-left:170px;font-size:14px !important;">Ph: +91(80)41888298</span></h2> <p style="text-align:center;margin-bottom:0px !important;">"SWAN HOUSE" NO.40,4th Cross,Residency Road,</p> <p style="text-align:center;margin-bottom:0px !important;">Bangalore - 560025.</p> <h3 style="text-align:center;margin-top:0px !important;"><u>GOODS RECEIVED NOTE</u></h3> <table class="" align="center" style="width:900px;"> <tbody> <tr> <td width="700px;"> Unit / Branch /Department : <span style="border-bottom:1px dotted #000;"><?php echo $po_details->department; ?> </span> </td> <td> </td> </tr> <tr> <td></td> <td> Date: <span style="border-bottom:1px dotted #000;"><?php echo date("d-m-Y"); ?></span> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> Received the following goods from M/s : <span style="border-bottom:1px dotted #000;"><?php echo $po_details->vendor_name; ?></span> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> PO No. : <span style="border-bottom:1px dotted #000;"><?php echo $po_details->po_no; ?></span> </td> </tr> <tr> <td colspan="2" style="padding-top:15px;tex"> <table border="1" style="width:100%;border-spacing:0px;"> <tr> <th style="text-align:center;">Product </th> <th style="text-align:center;">Ordered Quantity </th> <th style="text-align:center;">Total Gross Weight </th> <th style="text-align:center;">Total Net Weight </th> <th style="text-align:center;">Total Tare Weight </th> </tr> <?php if(isset($po_details1)) { foreach($po_details1 as $po_details1){?> <tr> <td style="text-align:center;"><?php echo $po_details1->product_name; ?></td> <td style="text-align:center;"><?php echo $po_details1->quantity; ?></td> <td style="text-align:center;"><?php echo $po_details1->gross_weight; ?></td> <td style="text-align:center;"><?php echo $po_details1->net_weight; ?></td> <td style="text-align:center;"><?php echo $po_details1->tare_weight; ?></td> </td> </tr> <?php }}?> </table> </td> </tr> </tbody> </table> <table align="center" style="width:100%;border-spacing:0px !important;margin-top:20px;" border="1"> <thead> <tr > <th style="text-align:center;">Sl.No.</th> <th style="text-align:center;">Product Name</th> <!-- <th style="text-align:center;">Width</th>--> <?php if($po_details->product_type != 'Yarn - Raw'){?> <th style="text-align:center;">Shade</th> <?php } ?> <th style="text-align:center;">Yarn Type</th> <th style="text-align:center;">Received Weight</th> <th style="text-align:center;">Invoice</th> <th style="text-align:center;">Lot</th> <th style="text-align:center;">Bale</th> <th style="text-align:center;">Received Date</th> <th style="text-align:center;">Gross Weight</th> <th style="text-align:center;">Net Weight</th> <th style="text-align:center;">Tare Weight</th> <th style="text-align:center;">Mill</th> <th style="text-align:center;">Location</th> <th style="text-align:center;">Received By</th> </tr> </thead> <tbody> <?php $i=1;?> <?php if(isset($goods_details)) { foreach($goods_details as $fetch_data) {?> <tr style="height:30px;"> <td><?php echo $i; ?></td> <td><?php echo $fetch_data->product_name; ?></td> <td style="text-transform: uppercase !important;"><?php echo $fetch_data->product_type; ?></td> <!--<td><?php echo $fetch_data->width; ?></td>--> <?php if($po_details->product_type != 'Yarn - Raw'){?> <td><?php echo $fetch_data->shades; ?></td> <?php } ?> <td><?php echo $fetch_data->gross_weight; ?></td> <td><?php echo $fetch_data->invoice; ?></td> <td><?php echo $fetch_data->lot; ?></td> <td><?php echo $fetch_data->bale; ?></td> <td><?php echo $fetch_data->rec_date; ?></td> <td><?php echo $fetch_data->gross_weight; ?></td> <td><?php echo $fetch_data->net_weight; ?></td> <td><?php echo round($fetch_data->tare_weight,2); ?></td> <td><?php echo $fetch_data->mill; ?></td> <td><?php echo $fetch_data->consumed_at; ?></td> <td style="text-transform: uppercase !important;"><?php echo $fetch_data->rec_by; ?></td> </tr> <?php $i++;} } ?> </tbody> </table> <table class="" align="center" style="width:900px;"> <tbody> <tr> <td width="700px;" style="padding-top:15px;"> Received By(signature of the Recipient with seal) : <span style="border-bottom:1px dotted #000;"><?php echo $approved_by; ?></span> </td> </tr> </tbody> </table> </div> </section> </div> </div> </div> <script> $(document).ready(function(){ $("#booking_print").click(function(){ var divToPrint=document.getElementById("print_report"); newWin= window.open(""); newWin.document.write(divToPrint.outerHTML); newWin.print(); newWin.close(); }); }); </script> <!--<script> var divContents = $(".print").html(); newWin= window.open(""); newWin.document.write(divContents); newWin.print(); newWin.close(); </script>--> <style> .content-wrapper{ overflow:auto !important; } </style>