order_invoice.twig (4475B)
1 <!DOCTYPE html> 2 <html dir="{{ direction }}" lang="{{ lang }}"> 3 <head> 4 <meta charset="UTF-8" /> 5 <title>{{ title }}</title> 6 <base href="{{ base }}" /> 7 <link href="view/javascript/bootstrap/css/bootstrap.css" rel="stylesheet" media="all" /> 8 <script type="text/javascript" src="view/javascript/jquery/jquery-2.1.1.min.js"></script> 9 <script type="text/javascript" src="view/javascript/bootstrap/js/bootstrap.min.js"></script> 10 <link href="view/javascript/font-awesome/css/font-awesome.min.css" type="text/css" rel="stylesheet" /> 11 <link type="text/css" href="view/stylesheet/stylesheet.css" rel="stylesheet" media="all" /> 12 </head> 13 <body> 14 <div class="container"> 15 {% for order in orders %} 16 <div style="page-break-after: always;"> 17 <h1>{{ text_invoice }} #{{ order.order_id }}</h1> 18 <table class="table table-bordered"> 19 <thead> 20 <tr> 21 <td colspan="2">{{ text_order_detail }}</td> 22 </tr> 23 </thead> 24 <tbody> 25 <tr> 26 <td style="width: 50%;"><address> 27 <strong>{{ order.store_name }}</strong><br /> 28 {{ order.store_address }} 29 </address> 30 <b>{{ text_telephone }}</b> {{ order.store_telephone }}<br /> 31 {% if order.store_fax %} 32 <b>{{ text_fax }}</b> {{ order.store_fax }}<br /> 33 {% endif %} 34 <b>{{ text_email }}</b> {{ order.store_email }}<br /> 35 <b>{{ text_website }}</b> <a href="{{ order.store_url }}">{{ order.store_url }}</a></td> 36 <td style="width: 50%;"><b>{{ text_date_added }}</b> {{ order.date_added }}<br /> 37 {% if order.invoice_no %} 38 <b>{{ text_invoice_no }}</b> {{ order.invoice_no }}<br /> 39 {% endif %} 40 <b>{{ text_order_id }}</b> {{ order.order_id }}<br /> 41 <b>{{ text_payment_method }}</b> {{ order.payment_method }}<br /> 42 {% if order.shipping_method %} 43 <b>{{ text_shipping_method }}</b> {{ order.shipping_method }}<br /> 44 {% endif %}</td> 45 </tr> 46 </tbody> 47 </table> 48 <table class="table table-bordered"> 49 <thead> 50 <tr> 51 <td style="width: 50%;"><b>{{ text_payment_address }}</b></td> 52 <td style="width: 50%;"><b>{{ text_shipping_address }}</b></td> 53 </tr> 54 </thead> 55 <tbody> 56 <tr> 57 <td><address> 58 {{ order.payment_address }} 59 </address></td> 60 <td><address> 61 {{ order.shipping_address }} 62 </address></td> 63 </tr> 64 </tbody> 65 </table> 66 <table class="table table-bordered"> 67 <thead> 68 <tr> 69 <td><b>{{ column_product }}</b></td> 70 <td><b>{{ column_model }}</b></td> 71 <td class="text-right"><b>{{ column_quantity }}</b></td> 72 <td class="text-right"><b>{{ column_price }}</b></td> 73 <td class="text-right"><b>{{ column_total }}</b></td> 74 </tr> 75 </thead> 76 <tbody> 77 {% for product in order.product %} 78 <tr> 79 <td>{{ product.name }} 80 {% for option in product.option %} 81 <br /> 82 <small> - {{ option.name }}: {{ option.value }}</small> 83 {% endfor %}</td> 84 <td>{{ product.model }}</td> 85 <td class="text-right">{{ product.quantity }}</td> 86 <td class="text-right">{{ product.price }}</td> 87 <td class="text-right">{{ product.total }}</td> 88 </tr> 89 {% endfor %} 90 {% for voucher in order.voucher %} 91 <tr> 92 <td>{{ voucher.description }}</td> 93 <td></td> 94 <td class="text-right">1</td> 95 <td class="text-right">{{ voucher.amount }}</td> 96 <td class="text-right">{{ voucher.amount }}</td> 97 </tr> 98 {% endfor %} 99 {% for total in order.total %} 100 <tr> 101 <td class="text-right" colspan="4"><b>{{ total.title }}</b></td> 102 <td class="text-right">{{ total.text }}</td> 103 </tr> 104 {% endfor %} 105 </tbody> 106 </table> 107 {% if order.comment %} 108 <table class="table table-bordered"> 109 <thead> 110 <tr> 111 <td><b>{{ text_comment }}</b></td> 112 </tr> 113 </thead> 114 <tbody> 115 <tr> 116 <td>{{ order.comment }}</td> 117 </tr> 118 </tbody> 119 </table> 120 {% endif %} 121 </div> 122 {% endfor %} 123 </div> 124 </body> 125 </html>