DBUpgrade2: Warnings in Tests unterdrücken
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 12:54:51 +0000 (14:54 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 29 May 2015 12:54:51 +0000 (14:54 +0200)
sql/Pg-upgrade2/umstellung_eur.pl

index cf93d76..0b88400 100644 (file)
@@ -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';