EVOLUTION-NINJA
Edit File: goods_recived.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"> <!------------- left-side menu END -----------------------------------------------------------------------------------------------------> <div class="content-wrapper"> <section class="content"> <div class="print"> <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%"> <tr> <th style="text-align:center;">Product </th> <th style="text-align:center;"> Shades </th> <th style="text-align:center;">Width </th> <th style="text-align:center;">Ordered Quantity </th> </tr> <?php if(isset($product_details)) { foreach($product_details as $product_details){?> <tr> <td style="text-align:center;"> <?php echo $product_details->product_name; ?></td> <?php if(empty($product_details->shades)){ ?> <td style="text-align:center;"> </td> <?php } else { ?> <td style="text-align:center;"><?php echo $product_details->shades; ?></td></td> <?php } ?> <?php if(empty($product_details->width)){ ?> <td style="text-align:center;"> </td> <?php } else { ?> <td style="text-align:center;"><?php echo $product_details->width; ?></td> <?php } ?> <td style="text-align:center;"><?php echo $product_details->quantity; ?></td> </td> </tr> <?php }}?> </table> </td> </tr> </tbody> </table> <table align="center" style="width:1000px;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> <th style="text-align:center;">Shade</th> <!-- <th style="text-align:center;">Ordered Goods</th>--> <th style="text-align:center;">Received Goods</th> <th style="text-align:center;">Receieved Weight</th> <th style="text-align:center;">Received Date</th> <th style="text-align:center;">Location</th> <th style="text-align:center;">Piece No.</th> <th style="text-align:center;">Invoice/DC No.</th> <!--<th style="text-align:center;">Purpose/OSL No.</th>--> <th style="text-align:center;">Receieved 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><?php echo $fetch_data->width; ?></td> <td><?php echo $fetch_data->shades; ?></td> <!-- <td><?php echo $fetch_data->quantity; ?></td>--> <td><?php echo $fetch_data->rec_goods; ?></td> <td><?php echo $fetch_data->rec_weight; ?></td> <td><?php echo $fetch_data->received_date; ?></td> <td><?php echo $fetch_data->consumed_at; ?></td> <td><?php echo $fetch_data->piece_no; ?></td> <td><?php echo $fetch_data->no_type_val; ?></td> <!--<td><?php echo $fetch_data->no_type_val; ?></td>--> <td><?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> <!--<tr> <td colspan="2" style="padding-top:15px;"> Entered into Stock Register by........................................................................................................................................................................... </td> </tr> <tr> <td colspan="2" style="padding-top:15px;"> Stock Reg Folio No............................................................................................................................................................................................. </td> </tr>--> </tbody> </table> </div> </section> </div> </div> </div> <script> var divContents = $(".print").html(); newWin= window.open(""); newWin.document.write(divContents); newWin.print(); newWin.close(); </script>