From 0f0f42639c9a9c31a86521a9347f910fe0f0c3e0 Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Wed, 23 Jan 2013 11:49:32 +0100 Subject: [PATCH] Sonderbehandlung im template MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- bin/mozilla/am.pl | 2 +- templates/webpages/am/edit_accounts.html | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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 %] -- 2.20.1