Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- .print-format table, .print-format tr,
- .print-format td, .print-format div, .print-format p {
- font-family: Monospace;
- line-height: 200%;
- vertical-align: middle;
- }
- @media screen {
- .print-format {
- width: 4in;
- padding: 0.25in;
- min-height: 8in;
- }
- }
- </style>
- <p class="text-center">
- <b>{{ doc.company }}</b><br>
- {{ doc.select_print_heading or _("36 ngõ 106 Lê Thanh Nghị - Hai Bà Trưng") }}<br>
- {{ doc.select_print_heading or _("Điện thoại: 04.66 846 380") }}<br>
- <b>{{ doc.select_print_heading or _("HÓA ĐƠN BÁN HÀNG") }}</b><br>
- </p>
- <p>
- <b>{{ _("Hóa đơn số") }}:</b> {{ doc.name }}<br>
- <b>{{ _("Ngày") }}:</b> {{ doc.get_formatted("posting_date") }}<br>
- <b>{{ _("Khách hàng") }}:</b> {{ doc.customer_name }}<br>
- <b>{{ _("Địa chỉ nhận hàng") }}:</b> {{ doc.get_formatted("shipping_address") }}<br>
- </p>
- <hr>
- <table class="table table-condensed cart no-border">
- <thead>
- <tr>
- <th width="40%">{{ _("Sản phẩm") }}</b></th>
- <th width="10%" class="text-right">{{ _("SLg") }}</th>
- <th width="25%" class="text-right">{{ _("Đơn giá") }}</th>
- <th width="25%" class="text-right">{{ _("Thành tiền") }}</th>
- </tr>
- </thead>
- <tbody>
- {%- for item in doc.entries -%}
- <tr>
- <td>
- {{ item.item_code }}
- {%- if item.item_name != item.item_code -%}
- <br>{{ item.item_name }}{%- endif -%}
- </td>
- <td class="text-right">{{ item.qty }}</td>
- <td class="text-right">{{ item.rate }}</td>
- <td class="text-right">{{ item.amount }}</td>
- </tr>
- {%- endfor -%}
- </tbody>
- </table>
- <table class="table table-condensed no-border">
- <tbody>
- <tr>
- <td class="text-right" style="width: 70%">
- {{ _("Tổng tiền") }}
- </td>
- <td class="text-right">
- {{ doc.get_formatted("net_total_export") }}
- </td>
- </tr>
- {%- for row in doc.other_charges -%}
- {%- if not row.included_in_print_rate -%}
- <tr>
- <td class="text-right" style="width: 70%">
- {{ row.description }}
- </td>
- <td class="text-right">
- {{ row.get_formatted("tax_amount", doc) }}
- </td>
- </tr>
- {%- endif -%}
- {%- endfor -%}
- {%- if doc.discount_amount -%}
- <tr>
- <td class="text-right" style="width: 70%">
- {{ _("Chiết khấu") }}
- </td>
- <td class="text-right">
- {{ doc.get_formatted("discount_amount") }}
- </td>
- </tr>
- {%- endif -%}
- <tr>
- <td class="text-right" style="width: 70%">
- <b>{{ _("Tổng thanh toán") }}</b>
- </td>
- <td class="text-right">
- {{ doc.get_formatted("grand_total_export") }}
- </td>
- </tr>
- </tbody>
- </table>
- {% if doc.get("other_charges", filters={"included_in_print_rate": 1}) %}
- <hr>
- <p><b>Taxes Included:</b></p>
- <table class="table table-condensed no-border">
- <tbody>
- {%- for row in doc.other_charges -%}
- {%- if row.included_in_print_rate -%}
- <tr>
- <td class="text-right" style="width: 70%">
- {{ row.description }}
- </td>
- <td class="text-right">
- {{ row.get_formatted("tax_amount", doc) }}
- </td>
- <tr>
- {%- endif -%}
- {%- endfor -%}
- </tbody>
- </table>
- {%- endif -%}
- <hr>
- <p>{{ doc.terms or "" }}</p>
- <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