|
44 | 44 | var address = order.BillingAddress; |
45 | 45 |
|
46 | 46 | <div class="document"> |
47 | | - @Html.Widget("invoice_top") |
| 47 | + @Html.Widget("invoice_top", order) |
48 | 48 |
|
49 | 49 | <!-- Address & Info --> |
50 | 50 | <div class="clearfix" style="margin-bottom: 100px"> |
|
83 | 83 | </div> |
84 | 84 | </div> |
85 | 85 |
|
86 | | - @Html.Widget("invoice_orderinfo_top") |
| 86 | + @Html.Widget("invoice_orderinfo_top", order) |
87 | 87 |
|
88 | 88 | <div class="order-info text-small pull-right"> |
89 | 89 | <table> |
|
104 | 104 | <td class="value">@order.ShippingMethod</td> |
105 | 105 | </tr> |
106 | 106 | </table> |
107 | | - @Html.Widget("invoice_orderinfotable_after") |
| 107 | + @Html.Widget("invoice_orderinfotable_after", order) |
108 | 108 | </div> |
109 | 109 |
|
110 | | - @Html.Widget("invoice_orderinfo_bottom") |
| 110 | + @Html.Widget("invoice_orderinfo_bottom", order) |
111 | 111 | </div> |
112 | 112 |
|
113 | 113 | <!-- Order lines --> |
114 | | - @Html.Widget("invoice_lines_before") |
| 114 | + @Html.Widget("invoice_lines_before", order) |
115 | 115 | <h3>@T("PDFInvoice.Product(s)")</h3> |
116 | 116 |
|
117 | 117 | <table class="table order-summary"> |
|
141 | 141 | </table> |
142 | 142 |
|
143 | 143 | <!-- Checkout attributes --> |
144 | | - @Html.Widget("invoice_checkoutattributes_before") |
| 144 | + @Html.Widget("invoice_checkoutattributes_before", order) |
145 | 145 | @if (order.CheckoutAttributeInfo.HasValue()) |
146 | 146 | { |
147 | 147 | <div class="checkout-attributes margin-bottom-30"> |
|
150 | 150 | } |
151 | 151 |
|
152 | 152 | <!-- Order totals --> |
153 | | - @Html.Widget("invoice_ordertotals_before") |
| 153 | + @Html.Widget("invoice_ordertotals_before", order) |
154 | 154 | <div class="order-totals clearfix"> |
155 | 155 | <div class="pull-right" style="width: 40%; page-break-inside: avoid"> |
156 | 156 | <table class="table order-totals"> |
|
229 | 229 | </div> |
230 | 230 |
|
231 | 231 | <!-- Order notes --> |
232 | | - @Html.Widget("invoice_ordernotes_before") |
| 232 | + @Html.Widget("invoice_ordernotes_before", order) |
233 | 233 | @if (order.RenderOrderNotes && order.OrderNotes.Count > 0) |
234 | 234 | { |
235 | 235 | <h3>@T("PDFInvoice.OrderNotes")</h3> |
|
263 | 263 | </div> |
264 | 264 | } |
265 | 265 |
|
266 | | - @Html.Widget("invoice_bottom") |
| 266 | + @Html.Widget("invoice_bottom", order) |
267 | 267 | </div> |
268 | 268 | } |
269 | 269 | </div> |
|
0 commit comments