Revert "Form: round_amount precision support"
[kivitendo-erp.git] / templates / webpages / ap / form_header.html
index 8fbd9c7..fdcbefa 100644 (file)
@@ -39,6 +39,7 @@
 <input type="hidden" name="creditremaining" value="[% creditremaining | html %]">
 
 <input type="hidden" name="forex" value="[% forex | html %]">
+<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
 
 <input type="hidden" name="id" value="[% id | html %]">
 <input type="hidden" name="sort" value="[% sort | html %]">
               </tr>
 
               <tr>
-                <td></td>
-                <td colspan="3">
-                  <table width="100%">
-                    <tr>
-                      <th align="left" nowrap>[% 'Credit Limit' | $T8 %]</th>
-                      <td>[% creditlimit | html %]</td>
-                      <th align="left" nowrap>[% 'Remaining' | $T8 %]</th>
-                      <td class="plus[% creditremaining_plus %]">[% creditremaining | html %]</td>
-                    </tr>
-                  </table>
+                <th align="right" valign="top">[% LxERP.t8("Credit Limit") %]</th>
+                <td>
+                 [% creditlimit | html %];
+                 [% LxERP.t8("Remaining") %]
+                 <span class="plus[% creditremaining_plus %]">[% creditremaining | html %]</span>
+                </td>
+              </tr>
+
+[%- IF invoice_obj.sepa_exports.as_list.size %]
+              <tr>
+                <th align="right">[% LxERP.t8("SEPA exports") %]</th>
+                <td>
+                 [% FOREACH export = invoice_obj.sepa_exports.as_list %]
+                  <a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
+                  [% UNLESS loop.last %], [% END %]
+                 [% END %]
                 </td>
               </tr>
+[%- END %]
 
               <tr>
                 <th align="right" nowrap>[% 'Currency' | $T8 %]</th>