+ [% IF SELF.type == "purchase_order_confirmation" %]
+ <tr>
+ <th width="70%" align="right" nowrap>[% 'Order Number' | $T8 %]</th>
+ [%-
+ numbers = [];
+ FOREACH p = SELF.order.preceding_purchase_orders();
+ numbers.push(HTML.escape(p.ordnumber));
+ END;
+ %]
+ <td>[% numbers.join(', ') %]</td>
+ </tr>
+ [% END %]
+
+ [%- IF (SELF.type == "sales_order_intake" || SELF.type == "sales_order" || SELF.type == "sales_quotation" || SELF.type == "purchase_quotation_intake") -%]