Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2014
376
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None
  1. <style = "text/css">
  2. h3 {
  3. font-size:20pt;
  4. font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
  5. }
  6. .hoffset1 { margin-top: 15px; }
  7. </style>
  8.  
  9. <div class="row">
  10. <h3><div class ="text-right">{{ doc.select_print_heading or "INVOICE" }}</h3>
  11. </div>
  12.  
  13. <div class="row">
  14. <div class="text-right col-md-10">INVOICE No:</div>
  15. <div class="text-right">{{doc.name}}</div>
  16. </div>
  17.  
  18.  
  19. <div class = "row hoffset1"> </div>
  20. <table class="table table-bordered">
  21. <tbody>
  22. <tr>
  23. <th>LR No</th>
  24. <th>DCPI No</th>
  25. <th>Date</th>
  26. <th>Destination</th>
  27. <th class="text-right">Truck No</th>
  28. <th class="text-right">Weight</th>
  29. <th class="text-right">Rate</th>
  30. <th class="text-right">Freight</th>
  31.  
  32. </tr>
  33. {%- for row in doc.entries -%}
  34. <tr>
  35. <td style="width: 3%;">{{ row.l_r_no }}</td>
  36. <td style="width: 20%;">{{ row.dcpi_no }}</td>
  37. <td style="width: 37%;">{{ doc.get_formatted("posting_date") }}
  38. <td style="width: 10%; text-align: right;">{{ row.destination }}</td>
  39. <td style="width: 10%; text-align: right;">{{ row.lr_no }}</td>
  40. <td style="width: 10%; text-align: right;">{frappe.db.get_value("[]", "[Delivery Note Item]", { row.qty })}</td>
  41. <td style="width: 15%; text-align: right;">{frappe.db.get_value("[]", "[Delivery Note Item]", {row.get_formatted("rate", doc) })}</td>
  42. <td style="width: 15%; text-align: right;">{frappe.db.get_value("[]", "[Delivery Note Item]", {row.get_formatted("amount", doc) })}</td>
  43. </tr>
  44. {%- endfor -%}
  45. </tbody>
  46. <tr>
  47.  
  48. <td colspan="5" class = "text-right">Total</td>
  49. <td class = "text-right">{{doc.grand_total}}</td>
  50.  
  51. </tr>
  52.  
  53. </table>
  54.  
  55. <div style = "float:right">
  56. <table>
  57. <tr><td>
  58. <div class = "row">
  59. Rounded Total:{{doc.rounded_total}}
  60. <div>
  61. </tr></td>
  62. <tr><td>
  63. <div class = "row">
  64. In Words:{{doc.in_words}}
  65. <div>
  66. </tr></td>
  67. </table>
  68. </div>
Advertisement
RAW Paste Data Copied
Advertisement