Advertisement
iNature

Print format iNature

Nov 24th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 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. <b>{{ doc.company }}</b><br>
  19. {{ doc.select_print_heading or _("36 ngõ 106 Lê Thanh Nghị - Hai Bà Trưng") }}<br>
  20. {{ doc.select_print_heading or _("Điện thoại: 04.66 846 380") }}<br>
  21. <b>{{ doc.select_print_heading or _("HÓA ĐƠN BÁN HÀNG") }}</b><br>
  22. </p>
  23. <p>
  24. <b>{{ _("Hóa đơn số") }}:</b> {{ doc.name }}<br>
  25. <b>{{ _("Ngày") }}:</b> {{ doc.get_formatted("posting_date") }}<br>
  26. <b>{{ _("Khách hàng") }}:</b> {{ doc.customer_name }}<br>
  27. <b>{{ _("Địa chỉ nhận hàng") }}:</b> {{ doc.get_formatted("shipping_address") }}<br>
  28.  
  29. </p>
  30.  
  31. <hr>
  32. <table class="table table-condensed cart no-border">
  33. <thead>
  34. <tr>
  35. <th width="40%">{{ _("Sản phẩm") }}</b></th>
  36. <th width="10%" class="text-right">{{ _("SLg") }}</th>
  37. <th width="25%" class="text-right">{{ _("Đơn giá") }}</th>
  38. <th width="25%" class="text-right">{{ _("Thành tiền") }}</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. {%- for item in doc.entries -%}
  43. <tr>
  44. <td>
  45. {{ item.item_code }}
  46. {%- if item.item_name != item.item_code -%}
  47. <br>{{ item.item_name }}{%- endif -%}
  48. </td>
  49. <td class="text-right">{{ item.qty }}</td>
  50. <td class="text-right">{{ item.rate }}</td>
  51. <td class="text-right">{{ item.amount }}</td>
  52. </tr>
  53. {%- endfor -%}
  54. </tbody>
  55. </table>
  56. <table class="table table-condensed no-border">
  57. <tbody>
  58. <tr>
  59. <td class="text-right" style="width: 70%">
  60. {{ _("Tổng tiền") }}
  61. </td>
  62. <td class="text-right">
  63. {{ doc.get_formatted("net_total_export") }}
  64. </td>
  65. </tr>
  66. {%- for row in doc.other_charges -%}
  67. {%- if not row.included_in_print_rate -%}
  68. <tr>
  69. <td class="text-right" style="width: 70%">
  70. {{ row.description }}
  71. </td>
  72. <td class="text-right">
  73. {{ row.get_formatted("tax_amount", doc) }}
  74. </td>
  75. </tr>
  76. {%- endif -%}
  77. {%- endfor -%}
  78. {%- if doc.discount_amount -%}
  79. <tr>
  80. <td class="text-right" style="width: 70%">
  81. {{ _("Chiết khấu") }}
  82. </td>
  83. <td class="text-right">
  84. {{ doc.get_formatted("discount_amount") }}
  85. </td>
  86. </tr>
  87. {%- endif -%}
  88. <tr>
  89. <td class="text-right" style="width: 70%">
  90. <b>{{ _("Tổng thanh toán") }}</b>
  91. </td>
  92. <td class="text-right">
  93. {{ doc.get_formatted("grand_total_export") }}
  94. </td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. {% if doc.get("other_charges", filters={"included_in_print_rate": 1}) %}
  99. <hr>
  100. <p><b>Taxes Included:</b></p>
  101. <table class="table table-condensed no-border">
  102. <tbody>
  103. {%- for row in doc.other_charges -%}
  104. {%- if row.included_in_print_rate -%}
  105. <tr>
  106. <td class="text-right" style="width: 70%">
  107. {{ row.description }}
  108. </td>
  109. <td class="text-right">
  110. {{ row.get_formatted("tax_amount", doc) }}
  111. </td>
  112. <tr>
  113. {%- endif -%}
  114. {%- endfor -%}
  115. </tbody>
  116. </table>
  117. {%- endif -%}
  118. <hr>
  119. <p>{{ doc.terms or "" }}</p>
  120. <p class="text-center">{{ _("Cám ơn bạn đã sử dụng sản phẩm tự nhiên. ") }}</p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement