PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/application/views/reportprints/voucher_order_pdfs.php

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