]> wagnertech.de Git - mfinanz.git/blobdiff - templates/webpages/ap/form_header.html
Rechnungen: Zahlungsein-/-ausgänge nach Datum sortieren
[mfinanz.git] / templates / webpages / ap / form_header.html
index b686d04d417ae3cda7f313d851b6c898216aa5b8..8fbd9c799048328094971b35e955a7ca58b8085d 100644 (file)
@@ -83,7 +83,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=PurchaseInvoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
   <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=PurchaseInvoice&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>
 
 [%- END %]
  </ul>
 
           <th>[% 'Source' | $T8 %]</th>
           <th>[% 'Memo' | $T8 %]</th>
           <th>[% 'Amount' | $T8 %]</th>
           <th>[% 'Source' | $T8 %]</th>
           <th>[% 'Memo' | $T8 %]</th>
           <th>[% 'Amount' | $T8 %]</th>
+          <th></th>
           [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
             <th>[% 'Exch' | $T8 %]</th>
           [% END %]
           [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
             <th>[% 'Exch' | $T8 %]</th>
           [% END %]
             [% temp = "datepaid_"_ i %]
             <td align="center">
               [% IF( changeable ) %]
             [% temp = "datepaid_"_ i %]
             <td align="center">
               [% IF( changeable ) %]
-                [% L.date_tag(temp, $temp) %]
+                [% L.date_tag(temp, $temp ? $temp : today) %]
               [% ELSE %]
                 [% $temp | html %]
                 <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
               [% ELSE %]
                 [% $temp | html %]
                 <input type="hidden" name="[% temp %]" value="[% $temp | html %]">
               [% END %]
             </td>
 
               [% END %]
             </td>
 
+            <td>
+              [% IF changeable && loop.last && paid_missing > 0 %]
+                <input type="button" id="ap_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]">
+              [% END %]
+            </td>
+
             [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
               <td align="center">
                 [% temp = "exchangerate_"_ i %]
             [% IF ( !defaultcurrency || (currency != defaultcurrency) ) %]
               <td align="center">
                 [% temp = "exchangerate_"_ i %]
 </table>
 </div>
 </div>
 </table>
 </div>
 </div>
+
+<script type='text/javascript'>
+ $('#ap_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') });
+</script>