]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/do/form_header.html
date error in mapping
[mfinanz.git] / templates / webpages / do / form_header.html
index e5230f03294fd6613f071a126229ab48869dcb00..a752361d52ee0b59a0e87a299265e6a37bcb8a68 100644 (file)
   <input type="hidden" name="lastmtime" id="lastmtime" value="[% HTML.escape(lastmtime) %]">
   <input type="hidden" name="tax_point" id="tax_point" value="[% HTML.escape(tax_point) %]">
 
+  [% IF !id %]
+  [%   L.hidden_tag('form_validity_token', form_validity_token) %]
+  [% END %]
+
   <p>
    <table width="100%">
     <tr valign="top">
          </td>
         </tr>
 
+        [%- IF (vc == 'customer') && VC_OBJ.additional_billing_addresses.as_list.size %]
+        <tr>
+          <th align="right">[% 'Custom Billing Address' | $T8 %]</th>
+          <td>
+            [% L.select_tag('billing_address_id', VC_OBJ.additional_billing_addresses,
+                            with_empty=1, default=billing_address_id, value_key='id', title_key='displayable_id', style='width: 250px') %]
+          </td>
+        </tr>
+        [%- END %]
+
         [%- IF business %]
         <tr>
          <th align="right">[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>