From dab2f724f162a7183d5782d79fde672f4f443a6d Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Wed, 14 Dec 2011 13:45:19 +0100 Subject: [PATCH] =?utf8?q?L=C3=B6schen=20und=20H=C3=A4kchen=20=C3=84ndern?= =?utf8?q?=20bei=20Konten,=20die=20als=20Automatikkonten=20f=C3=BCr=20ande?= =?utf8?q?re=20Konten=20dienen,=20verhindern.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Zumindest bei Forderungen und Verbindlichkeiten. --- bin/mozilla/am.pl | 8 ++++++++ doc/changelog | 4 ++++ locale/de/all | 1 + locale/de_DE/all | 1 + locale/en/all | 1 + templates/webpages/am/edit_accounts.html | 3 ++- 6 files changed, 17 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 73a2133d2..997fd2c28 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -345,6 +345,14 @@ sub account_header { } + # account where AR_tax or AP_tax is set are not orphaned if they are used as + # tax-o-matic account + if ( $form->{id} && !$form->{orphaned} && ($form->{link} =~ m/(AP_tax|AR_tax)/) ) { + if (SL::DB::Manager::Tax->find_by(chart_id => $form->{id})) { + $form->{orphaned} = 0; + } + } + my $ChartTypeIsAccount = ($form->{charttype} eq "A") ? "1":""; my $AccountIsPosted = ($form->{orphaned} ) ? "":"1"; diff --git a/doc/changelog b/doc/changelog index 318bd9cb0..19e6e5a7f 100644 --- a/doc/changelog +++ b/doc/changelog @@ -42,6 +42,10 @@ ein "Bullet" ersetzt. Dafür kann mit ein Aufzählungspunkt erzeugt werden. + - Bebuchte Konten und als Steuerautomatik-Konten dienende Konten lassen sich + löschen und nur bedingt umkonfigurieren (Häkchen bei Forderungen o. + Verbindlichkeiten). + Liste gefixter Bugs aus dem Bugtracker: diff --git a/locale/de/all b/locale/de/all index b66254552..5704d20cd 100644 --- a/locale/de/all +++ b/locale/de/all @@ -178,6 +178,7 @@ $self->{texts} = { 'An invalid character was used (invalid characters: #1).' => 'Ein ungültiges Zeichen wurde benutzt (ungültige Zeichen: #1).', 'An invalid character was used (valid characters: #1).' => 'Ein ungültiges Zeichen wurde benutzt (gültige Zeichen: #1).', 'An upper-case character is required.' => 'Ein Großbuchstabe ist vorgeschrieben.', + 'And if the account does not act as tax-o-matic account.' => 'Und wenn das Konto kein Steuerautomatik-Konto ist.', 'Annotations' => 'Anmerkungen', 'Another user with the login #1 does already exist.' => 'Es existiert bereits ein anderer Benutzer mit diesem Login.', 'Ap aging on %s' => 'Offene Verbindlichkeiten zum %s', diff --git a/locale/de_DE/all b/locale/de_DE/all index cab3c0baa..db7f5e8f9 100644 --- a/locale/de_DE/all +++ b/locale/de_DE/all @@ -185,6 +185,7 @@ $self->{texts} = { 'An invalid character was used (invalid characters: #1).' => '', 'An invalid character was used (valid characters: #1).' => '', 'An upper-case character is required.' => '', + 'And if the account does not act as tax-o-matic account.' => 'Und wenn das Konto kein Steuerautomatik-Konto ist.', 'Annotations' => 'Hilfe', 'Another user with the login #1 does already exist.' => 'Es existiert bereits ein anderer Benutzer mit diesem Login.', 'Ap aging on %s' => 'Offene Verbindlichkeiten zum %s', diff --git a/locale/en/all b/locale/en/all index 35aedaf70..e305a8773 100644 --- a/locale/en/all +++ b/locale/en/all @@ -186,6 +186,7 @@ $self->{texts} = { 'An invalid character was used (invalid characters: #1).' => '', 'An invalid character was used (valid characters: #1).' => '', 'An upper-case character is required.' => '', + 'And if the account does not act as tax-o-matic account.' => '', 'Annotations' => '', 'Another user with the login #1 does already exist.' => '', 'Ap aging on %s' => '', diff --git a/templates/webpages/am/edit_accounts.html b/templates/webpages/am/edit_accounts.html index 87e849bf9..098ab6707 100644 --- a/templates/webpages/am/edit_accounts.html +++ b/templates/webpages/am/edit_accounts.html @@ -93,7 +93,8 @@ window.onload = function() {
[% '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 %]

+

[% 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' | $T8 %] + [% 'And if the account does not act as tax-o-matic account.' | $T8 %]

-- 2.20.1
[% 'Receivables' | $T8 %]