From: Sven Schöling Date: Fri, 29 May 2015 12:54:51 +0000 (+0200) Subject: DBUpgrade2: Warnings in Tests unterdrücken X-Git-Tag: release-3.3.0beta~74 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/40eb5e8b575ed7baa75554cda4a3096e04395d9b?ds=sidebyside;hp=-c DBUpgrade2: Warnings in Tests unterdrücken --- 40eb5e8b575ed7baa75554cda4a3096e04395d9b diff --git a/sql/Pg-upgrade2/umstellung_eur.pl b/sql/Pg-upgrade2/umstellung_eur.pl index cf93d76c6..0b8840079 100644 --- a/sql/Pg-upgrade2/umstellung_eur.pl +++ b/sql/Pg-upgrade2/umstellung_eur.pl @@ -30,7 +30,7 @@ sub run { # check current configuration and set default variables accordingly, so that # kivitendo behaviour isn't changed by this update - if ($::lx_office_conf{system}->{eur} == 0 ) { + if (!defined $::lx_office_conf{system}->{eur} || $::lx_office_conf{system}->{eur} == 0 ) { $accounting_method = 'accrual'; $inventory_system = 'perpetual'; $profit_determination = 'balance';