Guest User

Untitled

a guest
Jan 13th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. <style>
  2. .print-format table, .print-format tr,
  3. .print-format td, .print-format div, .print-format p {
  4. font-family: Monospace;
  5. line-height: 200%;
  6. vertical-align: middle;
  7. }
  8. @media screen {
  9. .print-format {
  10. width: 4in;
  11. padding: 0.25in;
  12. min-height: 8in;
  13. }
  14. }
  15. </style>
  16.  
  17. <p class="text-center">
  18. {{ doc.company }}<br>
  19. {{ doc.select_print_heading or _("Invoice") }}<br>
  20. </p>
  21. <p>
  22. <b>{{ _("Receipt No") }}:</b> {{ doc.name }}<br>
  23. <b>{{ _("Date") }}:</b> {{ doc.get_formatted("posting_date") }}<br>
  24. <b>{{ _("Customer") }}:</b> {{ doc.customer_name }}
  25. </p>
  26.  
  27. <hr>
  28. <table class="table table-condensed cart no-border">
  29. <thead>
  30. <tr>
  31. <th width="50%">{{ _("Item") }}</b></th>
  32. <th width="25%" class="text-right">{{ _("Qty") }}</th>
  33. <th width="25%" class="text-right">{{ _("Amount") }}</th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. {%- for item in doc.items -%}
  38. <tr>
  39. <td>
  40. {{ item.item_code }}
  41. {%- if item.item_name != item.item_code -%}
  42. <br>{{ item.item_name }}{%- endif -%}
  43. </td>
  44. <td class="text-right">{{ item.qty }}<br>@ {{ item.get_formatted("rate") }}</td>
  45. <td class="text-right">{{ item.get_formatted("amount") }}</td>
  46. </tr>
  47. {%- endfor -%}
  48. </tbody>
  49. </table>
  50. <table class="table table-condensed no-border">
  51. <tbody>
  52. <tr>
  53. <td class="text-right" style="width: 70%">
  54. {{ _("Net Total") }}
  55. </td>
  56. <td class="text-right">
  57. {{ doc.get_formatted("net_total") }}
  58. </td>
  59. </tr>
  60. {%- for row in doc.taxes -%}
  61. {%- if not row.included_in_print_rate -%}
  62. <tr>
  63. <td class="text-right" style="width: 70%">
  64. {{ row.description }}
  65. </td>
  66. <td class="text-right">
  67. {{ row.get_formatted("tax_amount", doc) }}
  68. </td>
  69. </tr>
  70. {%- endif -%}
  71. {%- endfor -%}
  72. {%- if doc.discount_amount -%}
  73. <tr>
  74. <td class="text-right" style="width: 75%">
  75. {{ _("Discount") }}
  76. </td>
  77. <td class="text-right">
  78. {{ doc.get_formatted("discount_amount") }}
  79. </td>
  80. </tr>
  81. {%- endif -%}
  82. <tr>
  83. <td class="text-right" style="width: 75%">
  84. <b>{{ _("Grand Total") }}</b>
  85. </td>
  86. <td class="text-right">
  87. {{ doc.get_formatted("grand_total") }}
  88. </td>
  89. </tr>
  90. </tbody>
  91. </table>
  92. {% if doc.get("taxes", filters={"included_in_print_rate": 1}) %}
  93. <hr>
  94. <p><b>Taxes Included:</b></p>
  95. <table class="table table-condensed no-border">
  96. <tbody>
  97. {%- for row in doc.taxes -%}
  98. {%- if row.included_in_print_rate -%}
  99. <tr>
  100. <td class="text-right" style="width: 70%">
  101. {{ row.description }}
  102. </td>
  103. <td class="text-right">
  104. {{ row.get_formatted("tax_amount_after_discount_amount", doc) }}
  105. </td>
  106. <tr>
  107. {%- endif -%}
  108. {%- endfor -%}
  109. </tbody>
  110. </table>
  111. {%- endif -%}
  112. <hr>
  113. <p>{{ doc.terms or "" }}</p>
  114. <p class="text-center">{{ _("Thank you, please visit again.") }}</p>
Add Comment
Please, Sign In to add comment