]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/ar/form_header.html
Rechnungen: Zahlungsein-/-ausgänge nach Datum sortieren
[mfinanz.git] / templates / webpages / ar / form_header.html
index ba4fa351c8999d011354343a35700a44a8dc4687..ee3aa5cd3a8084ce41176732af39b375eccc5dd2 100644 (file)
@@ -24,7 +24,7 @@
   <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
 [%- IF id %]
   <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
-  <li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% 'Transactions' | $T8 %]</a></li>
+  <li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li>
 [%- END %]
  </ul>
 
          <th>[% 'Source' | $T8 %]</th>
          <th>[% 'Memo' | $T8 %]</th>
          <th>[% 'Amount' | $T8 %]</th>
+         <th></th>
 [%- IF show_exch %]
          <th>[% 'Exch' | $T8 %]</th>
 [%- END %]
         <tr>
          <td align=center>
   [%- IF row.changeable %]
-          [% L.date_tag('datepaid_' _ loop.count, row.datepaid) %]
+          [% L.date_tag('datepaid_' _ loop.count, row.datepaid ? row.datepaid : today) %]
   [%- ELSE %]
          [% row.datepaid | html %][% L.hidden_tag('datepaid_' _ loop.count, row.datepaid) %]
   [%- END %]
          [% row.paid | html %]<input type=hidden name="paid_[% loop.count %]" value="[% row.paid ? LxERP.format_amount(row.paid, 2) : '' | html %]">
   [%- END %]
          </td>
+         <td>
+           [% IF row.changeable && loop.last && paid_missing > 0 %]
+             <input type="button" id="ar_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]">
+           [% END %]
+         </td>
 [%- IF show_exch %]
          <td align=center>
     [%- IF row.forex || !row.changeable%]
 </table>
 </div>
 </div>
+
+<script type='text/javascript'>
+ $('#ar_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
+</script>