PageRenderTime 28ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/application/views/reportprints/voucher_ordergp_pdf.php

https://bitbucket.org/Digitalsoftspvt/sttoka
PHP | 238 lines | 221 code | 17 blank | 0 comment | 10 complexity | 9039c0635649479ce07fe41be466d42d MD5 | raw file
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Voucher</title>
  6. <link rel="stylesheet" href="../../assets/css/bootstrap.min.css">
  7. <link rel="stylesheet" href="../../assets/css/bootstrap-responsive.min.css">
  8. <link rel="stylesheet" href="../../../assets/bootstrap/css/bootstrap.min.css">
  9. <style>
  10. * { margin: 0; padding: 0; font-family: tahoma !important; }
  11. body { font-size:10px !important; }
  12. p { margin: 0 !important; /* line-height: 17px !important; */ }
  13. .field { font-size:12px !important; font-weight: bold !important; display: inline-block !important; width: 100px !important; }
  14. .field1 { font-size:12px !important; font-weight: bold !important; display: inline-block !important; width: 150px !important; }
  15. .voucher-table{ border-collapse: none !important; }
  16. table { width: 100% !important; border: 0px solid black !important; border-collapse:collapse !important; table-layout:fixed !important; margin-left:1px}
  17. th { padding: 5px !important; }
  18. td { /*text-align: center !important;*/ vertical-align: top !important; }
  19. td:first-child { }
  20. .voucher-table thead th {background: #ccc !important; }
  21. tfoot {border-top: 0px solid black !important; }
  22. .bold-td { font-weight: bold !important; border-bottom: 0px solid black !important;}
  23. .nettotal { font-weight: bold !important; font-size: 11px !important; border-top: 0px solid black !important; }
  24. .invoice-type { border-bottom: 0px solid black !important; }
  25. .relative { position: relative !important; }
  26. .signature-fields{ font-size: 10px; border: none !important; border-spacing: 20px !important; border-collapse: separate !important;}
  27. .signature-fields th {border: 0px !important; border-top: 1px solid black !important; border-spacing: 10px !important; }
  28. .inv-leftblock { width: 280px !important; }
  29. .text-left { text-align: left !important; }
  30. .text-right { text-align: right !important; }
  31. td {font-size: 12px !important; font-family: tahoma !important; line-height: 14px !important; padding: 4px !important; }
  32. .rcpt-header { width: 550px !important; margin: auto !important; display: block !important; }
  33. .inwords, .remBalInWords { text-transform: uppercase !important; }
  34. .barcode { margin: auto !important; }
  35. h3.invoice-type {font-size: 16px !important; line-height: 24px !important;}
  36. .extra-detail span { background: #7F83E9 !important; color: white !important; padding: 5px !important; margin-top: 17px !important; display: block !important; margin: 5px 0px !important; font-size: 12px !important; text-transform: uppercase !important; letter-spacing: 1px !important;}
  37. .nettotal { color: red !important; font-size: 12px !important;}
  38. .remainingBalance { font-weight: bold !important; color: blue !important;}
  39. .centered { margin: auto !important; }
  40. p { position: relative !important; font-size: 12px !important; }
  41. thead th { font-size: 12px !important; font-weight: bold !important; padding: 10px !important; }
  42. .fieldvalue { font-size:12px !important; position: absolute !important; width: 497px !important; }
  43. @media print {
  44. .noprint, .noprint * { display: none !important; }
  45. }
  46. .pl20 { padding-left: 20px !important;}
  47. .pl40 { padding-left: 40px !important;}
  48. .barcode { float: right !important; }
  49. .item-row td { font-size: 12px !important; padding: 10px !important; border-top: 0px solid black !important;}
  50. .footer_company td { font-size: 8px !important; padding: 10px !important; border-top: 0px solid black !important;}
  51. .rcpt-header { width: 305px !important; margin: 0px !important; display: inline !important; position: absolute !important; top: 0px !important; right: 0px !important; }
  52. h3.invoice-type { border: none !important; margin: 0px !important; position: relative !important; top: 34px !important; }
  53. tfoot tr td { font-size: 10px !important; padding: 10px !important; }
  54. .subtotalend { font-size: 12px !important; font-weight: bold !important;text-align: right !important; }
  55. .nettotal, .subtotal, .vrqty,.vrweight { font-size: 12px !important; font-weight: bold !important;text-align: right !important; color: red;}
  56. </style>
  57. </head>
  58. <body>
  59. <div class="container-fluid" style="">
  60. <div class="row-fluid">
  61. <div class="span12 centered">
  62. <!-- <div class="row-fluid top-img-head" style="display:none; padding-top: 15px; padding-bottom: 15px;">
  63. <div class="span12">
  64. <img src="#" class="top-head" alt="">
  65. </div>
  66. </div> -->
  67. <div class="row-fluid relative">
  68. <div class="span12">
  69. <div class="block pull-left inv-leftblock" style="width:250px !important; display:inline !important;">
  70. <p><span class="field">Invoice#</span><span class="fieldvalue inv-vrnoa"><?php echo $vrdetail[0]['vrnoa'];?></span></p>
  71. <p><span class="field">Date:</span><span class="fieldvalue inv-date"><?php echo date('d-M-y', strtotime($vrdetail[0]['vrdate']));;?></span></p>
  72. <p><span class="field">Order#</span><span class="fieldvalue inv-vrnoa"><?php echo $vrdetail[0]['ordno'];?></span></p>
  73. <p><span class="field ">Customer:</span><span class="fieldvalue cust-name"><?php echo $vrdetail[0]['party_name'];?></span></p>
  74. <p><span class="field">Remarks:</span><span class="fieldvalue cust-mobile"><?php echo $vrdetail[0]['remarks'];?></span></p>
  75. <!-- <p><span class="field">Receipt By</span><span class="fieldvalue rcptBy">[Receipt By]</span></p> -->
  76. </div>
  77. <div class="block pull-right" style="width:280px !important; float: right; display:inline !important;">
  78. <div class="span12"><img style="float:right; width:280px !important;" class="rcpt-header logo-img" src="<?php echo $header_img;?>" alt=""></div>
  79. <h3 class="invoice-type text-right" style="border:none !important; margin: 0px !important; position: relative; top: 12px !important; "><?php echo $title;?></h3>
  80. </div>
  81. </div>
  82. </div>
  83. <br>
  84. <br>
  85. <br>
  86. <div class="row-fluid">
  87. <table class="voucher-table">
  88. <thead>
  89. <tr>
  90. <th style=" width: 10px; " >Sr#</th>
  91. <th style=" width: 100px; text-align:left; ">Description</th>
  92. <th style=" width: 10px; ">Uom</th>
  93. <th style=" width: 20px; " class='text-right'>Qty</th>
  94. <th style=" width: 30px; " class='text-right'>Weight</th>
  95. <th style=" width: 20px; " class='text-right'>Type</th>
  96. <!-- <th style=" width: 30px; " class='text-right'>Amount</th> -->
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <?php
  101. $serial = 1;
  102. $netQty = 0;
  103. $netAmount=0;
  104. $netWeight=0;
  105. $typee='';
  106. $typee22='';
  107. foreach ($vrdetail as $row):
  108. if ($row['type']!==$typee){
  109. if($serial!=1){ ?>
  110. <tr class="foot-comments">
  111. <td class="subtotalend bold-td text-right" colspan="3">Subtotal:</td>
  112. <td class="subtotalend bold-td text-right"><?php number_format($netQty,2);?></td>
  113. <td class="subtotalend bold-td text-right"><?php echo number_format($netWeight,2);?></td>
  114. <td class="subtotalend bold-td text-right"></td>
  115. <!-- <td class="subtotalend bold-td text-right"><?php echo number_format($netAmount,2);?></td> -->
  116. </tr>
  117. <?php
  118. }
  119. ?>
  120. <!-- <td class="bold-td text-left" colspan="5"><?php echo $row['type'];?></td> -->
  121. <?php
  122. $typee=$row['type'];
  123. $netQty = 0;
  124. $netAmount=0;
  125. $netWeight=0;
  126. }
  127. ?>
  128. <tr class="item-row">
  129. <td class='text-left'><?php echo $serial++;?></td>
  130. <td class='text-left'><?php echo $row['item_name'];?></td>
  131. <td class='text-centre'><?php echo $row['uom'];?></td>
  132. <td class='text-right'><?php echo number_format(abs($row['qty']),2);?></td>
  133. <td class='text-right'><?php echo number_format(abs($row['weight']),2);?></td>
  134. <td class='text-right'><?php echo $row['type'];?></td>
  135. <!-- <td class="text-right"><?php echo number_format(($row['amount']),2);?></td> -->
  136. </tr>
  137. <?php
  138. $netQty += abs($row['qty']);
  139. $netAmount += $row['amount'];
  140. $netWeight += abs($row['weight']);
  141. endforeach?>
  142. </tbody>
  143. <tfoot>
  144. <tr class="foot-comments">
  145. <td class="subtotalend bold-td text-right" colspan="3">Subtotal:</td>
  146. <td class="subtotalend bold-td text-right"><?php number_format($netQty,2);?></td>
  147. <td class="subtotalend bold-td text-right"><?php echo number_format($netWeight,2);?></td>
  148. <td class="subtotalend bold-td text-right"></td>
  149. <!-- <td class="subtotalend bold-td text-right"><?php echo number_format($netAmount,2);?></td> -->
  150. </tr>
  151. <?php if(intval($vrdetail[0]['discount'])!=0){?>
  152. <tr>
  153. <td class="subtotal bold-td text-right discount-td " colspan="4">Discount:</td>
  154. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['discp']),2) . '% ';?></td>
  155. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['discount']),2);?></td>
  156. </tr>
  157. <?php }?>
  158. <?php if(intval($vrdetail[0]['expense'])!=0){?>
  159. <tr>
  160. <td class="subtotal bold-td text-right discount-td " colspan="4">Expense:</td>
  161. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['exppercent']),2) . '% ';?></td>
  162. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['expense']),2);?></td>
  163. </tr>
  164. <?php }?>
  165. <?php if(intval($vrdetail[0]['tax'])!=0){?>
  166. <tr>
  167. <td class="subtotal bold-td text-right discount-td " colspan="4">Tax:</td>
  168. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['taxpercent']),2) . '% ';?></td>
  169. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['tax']),2);?></td>
  170. </tr>
  171. <?php }?>
  172. <?php if(!(intval($vrdetail[0]['tax'])==0 && intval($vrdetail[0]['discount'])==0 && intval($vrdetail[0]['expense'])==0 && intval($vrdetail[0]['paid'])==0) ){?>
  173. <tr>
  174. <td class="subtotal bold-td text-right discount-td " colspan="4">NetAmount:</td>
  175. <td class="subtotal add-lower text-right"></td>
  176. <td class="subtotal bold-td text-right"><?php echo number_format(($vrdetail[0]['namount']),2);?></td>
  177. </tr>
  178. <?php }?>
  179. </tfoot>
  180. </table>
  181. </div>
  182. <!-- <div class="row-fluid">
  183. <div class="span12 add-on-detail1" style="margin-top: 10px;">
  184. <p class="" style="text-transform1: uppercase;">
  185. <strong>In words: </strong> <span class="inwords"></span><?php echo $amtInWords;?>ONLY <br>
  186. <br>
  187. <?php if ( $pre_bal_print==1 ){?>
  188. <p><span class="field1">Previous Balance:</span><span class="fieldvalue inv-vrnoa"><?php echo number_format($previousBalance,0);?></span></p>
  189. <p><span class="field1">This Invoice:</span><span class="fieldvalue inv-date"><?php echo number_format($vrdetail[0]['namount'],0);?></span></p>
  190. <p><span class="field1">Current Balance:</span><span class="fieldvalue cust-name"><?php echo number_format($vrdetail[0]['namount']+$previousBalance,2) ;?></span></p>
  191. <?php };?>
  192. </p>
  193. </div>
  194. </div> -->
  195. <!-- End row-fluid -->
  196. <br>
  197. <br>
  198. <div class="row-fluid">
  199. <div class="span12">
  200. <table class="signature-fields">
  201. <thead>
  202. <tr>
  203. <th>Approved By</th>
  204. <th>Accountant</th>
  205. <th>Received By</th>
  206. </tr>
  207. </thead>
  208. </table>
  209. </div>
  210. </div>
  211. <div class="row-fluid">
  212. <p>
  213. <span class="footer_company">User:<?php echo $user;?></span><br>
  214. <!-- <span class="footer_company">Sofware By: www.digitalsofts.com, Mob:03218661765</span> -->
  215. </p>
  216. </div>
  217. </div>
  218. </div>
  219. </div>
  220. </body>
  221. </html>