EVOLUTION-NINJA
Edit File: fabric_inspection_detail.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> <?php if($back_fun == 'grn') { ?> <?php if($indent_p == 'indent_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>vendor/purchase_order_List?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> <?php } else if($indent_p == 'today_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>vendor/purchase_order_List?prop_id=2" 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> <?php } else if($indent_p == 'monthly_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>vendor/purchase_order_List?prop_id=3" 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> <?php } else if($indent_p == 'year_preview') { ?> <span class="close-right" ><a href="<?php echo base_url(); ?>vendor/purchase_order_List?prop_id=4" 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> <?php } ?> <?php } else { ?> <?php if($indent_p == 'indent_preview') { ?> <span class="close-right" ><a href="<?php echo base_url('new_stores/received_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> <?php } else if($indent_p == 'today_preview') { ?> <span class="close-right" ><a href="<?php echo base_url('new_stores/received_details?prop_id=2');?>" 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> <?php } else if($indent_p == 'monthly_preview') { ?> <span class="close-right" ><a href="<?php echo base_url('new_stores/received_details?prop_id=3');?>" 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> <?php } else if($indent_p == 'year_preview') { ?> <span class="close-right" ><a href="<?php echo base_url('new_stores/received_details?prop_id=4');?>" 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> <?php } ?> <?php } ?> </div> <div class="content-wrapper" id="print_report"> <section class="content"> <div class="print" style="width:100%;"> <h2 style="text-align:center;margin-bottom:0px !important;"><b><span>Deco Textil</span></b></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>FABRIC INSPECTION DETAILS</u></h3> <table class="" align="center" style="width:100%;"> <tbody> <tr> <td width="90%;"> <!--Unit / Branch /Department : <span style="border-bottom:1px dotted #000;"><?php echo $po_details->department; ?> </span>--> </td> <td> Ph: +91(80)41888298 </td> </tr> <!--<tr>--> <!-- <td colspan="" 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>--> <!-- <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;">--> <!-- 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;">--> <!-- Product Type : <span style="border-bottom:1px dotted #000;"><?php echo $po_details->product_type; ?></span>--> <!-- </td>--> <!--</tr>--> <tr> <td colspan="2" style="padding-top:15px;tex"> <table border="1" style="width:100%;border-spacing:0px !important;"> <tr> <th style="text-align:center;">Vendor name </th> <th style="text-align:center;">PO/OSL No</th> <th style="text-align:center;">SSL Piece No</th> <th style="text-align:center;">Supplier Piece No</th> <th style="text-align:center;">Article(Product) </th> <th style="text-align:center;">Width </th> <th style="text-align:center;">Design </th> <th style="text-align:center;"> Shades </th> <th style="text-align:center;">Rec Mtrs </th> <th style="text-align:center;">Rec Wt </th> <th style="text-align:center;">Insp Mtrs </th> <th style="text-align:center;">Insp Wt </th> <th style="text-align:center;">Rej Mtrs </th> <th style="text-align:center;">Rej Wt </th> <th style="text-align:center;">Varience Mtrs </th> <th style="text-align:center;">Invoice # </th> <th style="text-align:center;">Rec Date </th> <th style="text-align:center;">Inspected Date</th> </tr> <?php $tot_ins=0; $tot_rej=0; $tot_var=0;$tot_rec = 0;//if(isset($product_details)) { //foreach($product_details as $product_details){ $tot_qty=$tot_qty+$product_details->rec_goods; }} foreach($po_detailss as $shades){ $tot_ins += $shades->inspected_mtrs; $tot_rej += $shades->rejected_mtrs; $tot_var += $shades->variance_mtrs; $tot_rec += $shades->rec_goods; ?> <tr> <td style="text-align:center;"><?php echo $shades->vendor_name; ?></td> <td style="text-align:center;"><?php echo $shades->po_no; ?></td> <td style="text-align:center;"><?php echo $shades->ssl_pc_no; ?></td> <td style="text-align:center;"><?php echo $shades->piece_no; ?></td> <td style="text-align:center;"><?php echo $shades->product_name; ?></td> <td style="text-align:center;"><?php echo $shades->width; ?></td> <td style="text-align:center;"><?php echo $shades->design; ?></td> <td style="text-align:center;"><?php echo $shades->shades; ?></td></td> <td style="text-align:center;"><?php echo $shades->rec_goods; ?></td> <td style="text-align:center;"><?php echo $shades->rec_weight; ?></td> <td style="text-align:center;"><?php echo $shades->inspected_mtrs; ?></td> <td style="text-align:center;"><?php echo $shades->inspected_weight; ?></td> <td style="text-align:center;"><?php echo $shades->rejected_mtrs; ?></td> <td style="text-align:center;"><?php echo $shades->rejected_weight; ?></td> <td style="text-align:center;"><?php echo $shades->variance_mtrs; ?></td> <td style="text-align:center;"><?php echo $shades->no_type_val; ?></td> <td style="text-align:center;"><?php echo $shades->sys_date; ?></td> <td style="text-align:center;"><?php echo $shades->received_date; ?></td> </tr> <?php $tot_qty=0; } //} //}} ?> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td><?php //if($po_details->ot_charges != "" ){ $otcharge=$po_details->grand_total - $po_details->totalvalue; echo $po_details->ot_charges." : ".$otcharge; } ?></td> <td></td> <td><?php echo $tot_rec;?></td> <td></td> <td><?php echo $tot_ins;?> </td> <td></td> <td><?php echo $tot_rej;?></td> <td></td> <td><?php echo $tot_var;?></td> </tr> </table> </td> </tr> </tbody> </table> <table class="" align="center" style="width:900px;"> <tbody> <?php if($po_details->note != ""){ ?> <tr> <td style="padding-top:10;"> <?php echo $po_details->note; ?></span> </td> </tr> <?php } ?> <tr> <td width="700px;" style="padding-top:25px;"> 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> $(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>