EVOLUTION-NINJA
Edit File: transaction_mstr_details_preview.php
<!DOCTYPE HTML> <html lang="en-Us"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Deco-Textil</title> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/style.min.css');?>"> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/bootstrap.min.css');?>"> <link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/css/font-awesome.min.css');?>"> <script type="text/javascript" src="<?php echo base_url('assets/js/jquery-3.2.1.min.js');?>"></script> <script src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script> </head> <body> <button type="button" id="booking_print" style=" margin-left: 87%; margin-top: 1%; padding-top: 2px; padding-bottom: 1px; padding-left: 15px; padding-right: 15px; background: rgb(72,91,127); color: white; font-size: 22px;">Print</button> <span class="close-right" style="float:right;margin-right: 24px;margin-top: 13px;"><a href="<?php echo base_url('marketing/transactions_order_details');?>" style="font-size: 22px;border: 1px solid;padding-bottom: 8px; margin-top: 10%; text-decoration: none; padding-top: 1px; padding-right: 12px; padding-left: 12px;background: rgb(72,91,127);color: white;margin-top:10%;text-decoration:none;">Back</a></span> <div class="row mid" id="print_report"> <div class="mid-work"> <div class="row mid" > <h3 style="text-align:center;margin-top:1%">PERFORMA INVOICE</h3> <img src="<?php echo base_url('assets/images/1.jpg');?>" class="img-responsive" style="background-color:#485B7F;float:right;width: 170px;margin-right: 12px;"> <p>Phone:(080)41888298</p> <p>Fax:(080)25598299</p> <p>E-Mail:sales@swansilk</p> <p>Website:www.swansilk.com</p> </div> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive" > <!-- <thead> <tr> <th > </th> </tr> </thead> --> <tbody> <tr> <td colspan="7"> <?php echo $address->customerName; ?><br> <?php echo $address->customerAddress; ?><br> </td> </tr> <tr> <td colspan="7"> ORDER MODE:<?php echo $fetch_main2->deliveryMode; ?>          DELIVERY POINT:<?php echo $fetch_main2->deliveryPoint; ?> </td> </tr> <tr> <td> NO </td> <td> DATE:  <?php echo date("d-m-Y");?> </td> <td colspan="2"> TERMS OF PAYMENT:  <?php echo $fetch_preview1->paymentTerms; ?><br> </td> <td> ORDER NO:  <?php echo $fetch_preview1->oslNo; ?> </td> <td> ORDER DATE:  <?php $newDate1 = date("d-m-Y", strtotime($fetch_preview1->orderDate)); echo $newDate1; ?> </td> <td> DELIVERY DATE:  <?php $newDate1 = date("d-m-Y", strtotime($fetch_preview1->deliveryDate)); echo $newDate1; ?> </td> </tr> </tbody> </table> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive" style="margin-top:10px;"> <tbody> <tr> <th>WIDTH/SIZE</th> <th>QUALITY</th> <th>ARTICLE</th> <th>DESIGN</th> <th>DESCRIPTION</th> <th>COLOR</th> <th>SKU NO</th> <th>QUANTITY</th> <th>RATE/UNIT</th> <th>PRICE USD</th> </tr> <?php $totquantity=0; $totvalue=0; $un=0; foreach($fetch_preview2 as $preview){?> <tr> <td> <?php echo $preview->width; ?> </td> <td> <?php echo $preview->quality; ?> </td> <td> <?php echo $preview->articleNo; ?> </td> <td> <?php echo $preview->design; ?> </td> <td> <?php echo $preview->description; ?> </td> <td> <?php echo $preview->ourShade; ?> </td> <td> <?php echo $preview->skuNo; ?> </td> <td> <?php echo $preview->quantity." ".$preview->unit; ?> </td> <td> <?php echo $preview->unitPrice." ".$fetch_preview1->currency; ?> </td> <td> <?php echo $preview->totalValue." ".$fetch_preview1->currency; ?> </td> </tr> <?php $totquantity=$totquantity+$preview->quantity; $totvalue=$totvalue+$preview->totalValue; $un=$preview->unit; } ?> </tbody> </table> <!--<div class="fab"> <p>SILK JACQUARD FRENCH SLYNGE 20-2044 CJ 1040 FABRIC</p> <P>140 CMS ARTICLE NO:1984</P> <div class="col-sm-2"> </div> <div class="col-sm-2"> </div> <div class="col-sm-2"> <p>APS PEACOCK BLUE</p> </div> <div class="col-sm-2"> <p>120.00 MTRS</p> </div> <div class="col-sm-2"> <p>32.00</p> </div> <div class="col-sm-2"> <p>2333.00</p> </div> </div> <div class="fab"> <p>SILK JACQUARD DAUPHIN SLYNGE 20-5406 CJ 1038 FABRIC</p> <P>140 CMS ARTICLE NO:1977</P> <div class="col-sm-2"> </div> <div class="col-sm-2"> </div> <div class="col-sm-2"> <p>ASP GREEN</p> </div> <div class="col-sm-2"> <p>120.00 MTRS</p> </div> <div class="col-sm-2"> <p>42.00</p> </div> <div class="col-sm-2"> <p>5040.00</p> </div> </div>--> <div class="fab1"> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive"> <tbody> <tr> <td colspan="6"> TOTAL Qty:<?php echo $totquantity." ".$un; ?> </td> <td style="text-align:right;"> TOTAL VALUE : <?php echo $totvalue." ".$fetch_preview1->currency; ?> </td> </tr> </tbody> </table> </div> <h3>QUANTITY PLUS OR MINUS 100% ALLOWED</h3> <h3>ALL BANK CHARGES OUTSIDE INDIA ARE TO THE ACCOUNT OF BUYER</h3> <div class="fab1"> <table border="1" class="table table-bordered table-striped table-hover table-condensed table-responsive"> <tbody> <tr> <td colspan="7"> E& O.E: CST:0055976-3 TIN-29920016481 </td> </tr> </tbody> </table> </div> <p><b>Deco-Textil</b> "SWAN HOUSE" POST BOX 25210.,40 4TH CROSS,RESIDENCY ROAD BANGLORE-560025,INDIA <b><i> Phone:(080)41888298,Fax:(080)25598299</i></b></p> <P>BANKERS:STATE BANK OF INDIA,OVERSEAS BRANCH,SBI LHO CAMPUS,#65,St.MARK'S ROAD,BANGLORE-560001,INDIA.</P> </div> <div class="col-sm-2"></div> <div class="col-sm-3"> <p style="font-weight:bold; color:black">Prepared by</p> </div> <div class="col-sm-3"> <p style="font-weight:bold; color:black">Checked By</p> </div> <div class="col-sm-3"> <p style="font-weight:bold; color:black">Director</p> </div> <div class="col-sm-2"></div> </div> </body> </html> <style> .close-right { text-align:right; } </style> <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>