From: Niclas Zimmermann Date: Wed, 23 Jan 2013 10:49:32 +0000 (+0100) Subject: Sonderbehandlung im template X-Git-Tag: release-3.1.0beta1~640 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/commitdiff_plain/0f0f42639c9a9c31a86521a9347f910fe0f0c3e0 Sonderbehandlung im template Dieser Commit ist eine Verbesserung zu Commit 9eb59a91db1758fd98d0eff8b081e442ddae5cb3 Im template gab es noch für das Startdatum eines Steuerschlüssels eine Sonderbehandlung, die prüft, ob ein Konto bereits existiert oder nicht. --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index c2b401618..2b7cdf8ee 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -144,7 +144,7 @@ sub account_header { rate => '', taxkey_id => '', pos_ustva => '', - startdate => '', + startdate => $form->{account_exists} ? '' : DateTime->new(year => 1970, month => 1, day => 1)->to_lxoffice, }; push @{ $form->{ACCOUNT_TAXKEYS} }, $newtaxkey_ref; diff --git a/templates/webpages/am/edit_accounts.html b/templates/webpages/am/edit_accounts.html index 4715741fc..38652b73d 100644 --- a/templates/webpages/am/edit_accounts.html +++ b/templates/webpages/am/edit_accounts.html @@ -218,11 +218,7 @@ $(function() { [% ELSE %] - [% IF account_exists %] - [% ELSE %] - - [% END %]   [% END %]