Kreditorenbuchung: Zahlungsziel aufgrund des Rechnungsdatums berechnen
authorJan Büren <jan@kivitendo.de>
Tue, 1 Jun 2021 06:25:55 +0000 (08:25 +0200)
committerJan Büren <jan@kivitendo.de>
Tue, 1 Jun 2021 06:25:55 +0000 (08:25 +0200)
in ap.pl ist transdate == invdate, ferner das Neuberechnen
auch machen, sobald sich transdate ändert

templates/webpages/ap/form_header.html

index 2f22a96..da6d4d5 100644 (file)
               </tr>
               <tr>
                 <th align="right" nowrap>[% 'Invoice Date' | $T8 %]</th>
-                <td>[% L.date_tag('transdate', transdate) %]</td>
+                <td>[% L.date_tag('transdate', transdate, onchange='kivi.SalesPurchase.set_duedate_on_reference_date_change("transdate")') %]</td>
               </tr>
               <tr>
                 <th align="right" nowrap>[% 'Due Date' | $T8 %]</th>
             [% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %]
            </td>
            <td>
-             [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]
+             [% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('transdate')") %]
            </td>
           <tr>
         </table>