From: Bernd Blessmann Date: Wed, 14 Dec 2011 14:12:34 +0000 (+0100) Subject: Häkchen bei der Konto-Konfiguration als Radio-Buttons ... X-Git-Tag: release-2.7.0beta1~125^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2828d1565b297bf51e3e06ae8b6baec1817c294d;p=kivitendo-erp.git Häkchen bei der Konto-Konfiguration als Radio-Buttons ... ... f. Forderungen u. Verbindlichkeiten. --- diff --git a/SL/AM.pm b/SL/AM.pm index f6c93ada0..df8bf23e5 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -213,6 +213,13 @@ sub save_account { qw(AR_amount AR_tax AR_paid AP_amount AP_tax AP_paid IC_sale IC_cogs IC_taxpart IC_income IC_expense IC_taxservice); } + if ($form->{AR_include_in_dropdown}) { + $form->{$form->{AR_include_in_dropdown}} = $form->{AR_include_in_dropdown}; + } + if ($form->{AP_include_in_dropdown}) { + $form->{$form->{AP_include_in_dropdown}} = $form->{AP_include_in_dropdown}; + } + $form->{link} = ""; foreach my $item ($form->{AR}, $form->{AR_amount}, $form->{AR_tax}, $form->{AR_paid}, diff --git a/doc/changelog b/doc/changelog index 19e6e5a7f..7fb438619 100644 --- a/doc/changelog +++ b/doc/changelog @@ -46,6 +46,9 @@ löschen und nur bedingt umkonfigurieren (Häkchen bei Forderungen o. Verbindlichkeiten). + - Häkchen bei der Konto-Konfiguration f. Forderungen u. Verbindlichkeiten + als Radio-Buttons. + Liste gefixter Bugs aus dem Bugtracker: diff --git a/locale/de/all b/locale/de/all index 5704d20cd..2b911de8c 100644 --- a/locale/de/all +++ b/locale/de/all @@ -2162,6 +2162,7 @@ $self->{texts} = { 'deliverydate' => 'Lieferdatum', 'direct debit' => 'Lastschrift', 'disposed' => 'Entsorgung', + 'do not include' => 'Nicht aufnehmen', 'done' => 'erledigt', 'down' => 'runter', 'dunning_list' => 'mahnungsliste', diff --git a/locale/de_DE/all b/locale/de_DE/all index db7f5e8f9..c164b7e70 100644 --- a/locale/de_DE/all +++ b/locale/de_DE/all @@ -2008,6 +2008,7 @@ $self->{texts} = { 'deliverydate' => 'Lieferdatum', 'direct debit' => 'Lastschrift', 'disposed' => 'Entsorgung', + 'do not include' => 'Nicht aufnehmen', 'done' => 'erledigt', 'down' => 'runter', 'dunning_list' => 'mahnungsliste', diff --git a/locale/en/all b/locale/en/all index e305a8773..5f658eda2 100644 --- a/locale/en/all +++ b/locale/en/all @@ -2016,6 +2016,7 @@ $self->{texts} = { 'deliverydate' => '', 'direct debit' => '', 'disposed' => '', + 'do not include' => '', 'done' => '', 'down' => '', 'dunning_list' => '', diff --git a/templates/webpages/am/edit_accounts.html b/templates/webpages/am/edit_accounts.html index 098ab6707..bb8d48431 100644 --- a/templates/webpages/am/edit_accounts.html +++ b/templates/webpages/am/edit_accounts.html @@ -104,26 +104,46 @@ window.onload = function() { -   - [% 'Revenue' | $T8 %]
-   - [% 'Receipt' | $T8 %]
-   - [% 'Tax' | $T8 %] + [% L.radio_button_tag('AR_include_in_dropdown', + value => 'AR_amount', + disabled => AccountIsPosted, + checked => AR_amount) %] +  [% 'Revenue' | $T8 %]
+ [% L.radio_button_tag('AR_include_in_dropdown', + value => 'AR_paid', + disabled => AccountIsPosted, + checked => AR_paid) %] +  [% 'Receipt' | $T8 %]
+ [% L.radio_button_tag('AR_include_in_dropdown', + value => 'AR_tax', + disabled => AccountIsPosted, + checked => AR_tax) %] +  [% 'Tax' | $T8 %]
+ [% L.radio_button_tag('AR_include_in_dropdown', + value => '', + disabled => AccountIsPosted) %] +  [% 'do not include' | $T8 %] -   - [% 'Expense/Asset' | $T8 %]
-   - [% 'Payment' | $T8 %]
-   - [% 'Tax' | $T8 %] + [% L.radio_button_tag('AP_include_in_dropdown', + value => 'AP_amount', + disabled => AccountIsPosted, + checked => AP_amount) %] +  [% 'Expense/Asset' | $T8 %]
+ [% L.radio_button_tag('AP_include_in_dropdown', + value => 'AP_paid', + disabled => AccountIsPosted, + checked => AP_paid) %] +  [% 'Payment' | $T8 %]
+ [% L.radio_button_tag('AP_include_in_dropdown', + value => 'AP_tax', + disabled => AccountIsPosted, + checked => AP_tax) %] +  [% 'Tax' | $T8 %]
+ [% L.radio_button_tag('AP_include_in_dropdown', + value => '', + disabled => AccountIsPosted) %] +  [% 'do not include' | $T8 %]   [% 'Tax' | $T8 %] +

  [% 'Tax' | $T8 %] +