From: Bernd Blessmann Date: Thu, 6 Oct 2011 11:53:11 +0000 (+0200) Subject: Änderungen für die Aufklappmenüs Forderungen und Verbindlichkeiten verhindern, ... X-Git-Tag: release-2.7.0beta1~240^2~4 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ee23f6e0a13418cf83d8f70063e2a0de5f5ea66b;p=kivitendo-erp.git Änderungen für die Aufklappmenüs Forderungen und Verbindlichkeiten verhindern, ... ... bei schon bebuchten Konten. Siehe auch Bug 1640. --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 368a62716..111e14e94 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -347,11 +347,13 @@ sub account_header { } my $ChartTypeIsAccount = ($form->{charttype} eq "A") ? "1":""; + my $AccountIsPosted = ($form->{orphaned} ) ? "":"1"; $form->header(); my $parameters_ref = { ChartTypeIsAccount => $ChartTypeIsAccount, + AccountIsPosted => $AccountIsPosted, select_category => $select_category, select_charttype => $select_charttype, select_bwa => $select_bwa, diff --git a/locale/de/all b/locale/de/all index ab51f5756..5bd9658ae 100644 --- a/locale/de/all +++ b/locale/de/all @@ -369,6 +369,7 @@ $self->{texts} = { 'Cc' => 'Cc', 'Change Lx-Office installation settings (all menu entries beneath \'System\')' => 'Verändern der Lx-Office-Installationseinstellungen (Menüpunkte unterhalb von \'System\')', 'Change representative to' => 'Vertreter ändern in', + 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' => 'Änderungen bei Forderungen oder Verbindlichkeiten sind nur möglich, wenn dieses Konto noch nicht bebucht wurde.', 'Charge Number' => 'Chargennummer', 'Charge number' => 'Chargennummer', 'Charset' => 'Zeichensatz', diff --git a/locale/en/all b/locale/en/all index 7627741aa..879d1ac07 100644 --- a/locale/en/all +++ b/locale/en/all @@ -360,6 +360,7 @@ $self->{texts} = { 'Cc' => '', 'Change Lx-Office installation settings (all menu entries beneath \'System\')' => '', 'Change representative to' => '', + 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' => '', 'Charge Number' => '', 'Charge number' => '', 'Chart' => '', diff --git a/templates/webpages/am/edit_accounts.html b/templates/webpages/am/edit_accounts.html index 6252ee169..c55e08f1d 100644 --- a/templates/webpages/am/edit_accounts.html +++ b/templates/webpages/am/edit_accounts.html @@ -80,9 +80,13 @@ window.onload = function() {  [% 'Inventory' | $T8 %] +[% IF AccountIsPosted %] +[%- SET DIS = ' disabled="disabled"' %] +[% END %]
[% 'Include in drop-down menus' | $T8 %]

[% 'These will only be effective if the account is NOT a summary account AND there exists at least one taxkey. Setting the account as a summary account will erase these settings.' | $T8 %]

+

[% 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' | $T8 %]

@@ -93,24 +97,24 @@ window.onload = function() {
[% 'Receivables' | $T8 %]
  + [% HTML.escape(AR_amount)%][% DIS %]>  [% 'Revenue' | $T8 %]
  + [% HTML.escape(AR_paid) %][% DIS %]>  [% 'Receipt' | $T8 %]
  + [% HTML.escape(AR_tax) %][% DIS %]>  [% 'Tax' | $T8 %]
  + [% HTML.escape(AP_amount) %][% DIS %]>  [% 'Expense/Asset' | $T8 %]
  + [% HTML.escape(AP_paid) %][% DIS %]>  [% 'Payment' | $T8 %]
  + [% HTML.escape(AP_tax) %][% DIS %]>  [% 'Tax' | $T8 %]