From ee23f6e0a13418cf83d8f70063e2a0de5f5ea66b Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Thu, 6 Oct 2011 13:53:11 +0200 Subject: [PATCH] =?utf8?q?=C3=84nderungen=20f=C3=BCr=20die=20Aufklappmen?= =?utf8?q?=C3=BCs=20Forderungen=20und=20Verbindlichkeiten=20verhindern,=20?= =?utf8?q?...?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ... bei schon bebuchten Konten. Siehe auch Bug 1640. --- bin/mozilla/am.pl | 2 ++ locale/de/all | 1 + locale/en/all | 1 + templates/webpages/am/edit_accounts.html | 16 ++++++++++------ 4 files changed, 14 insertions(+), 6 deletions(-) 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 %]
-- 2.20.1