Default Umlaufvermögen-Konto nur bei neuen Einträgen vorauswählen
authorJan Büren <jan@kivitendo-premium.de>
Tue, 21 Jan 2014 08:11:40 +0000 (09:11 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Tue, 21 Jan 2014 08:11:40 +0000 (09:11 +0100)
closes #2438

templates/webpages/ap/form_header.html

index dde66f7..81861fc 100644 (file)
             [% temp = "AP_paid_"_ i %]
             <td align="center">
               [% IF( changeable ) %]
-                [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = accno_arap)  %]
+                [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap))  %]
               [% ELSE %]
                 [% $temp | html %]
                 <input type="hidden" name="[% temp %]" value="[% $temp | html %]">