X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fumstellung_eur.pl;h=0b884007989c557988a9826b8ed92ec7ffee3109;hb=f8fff60be1abb9986486cc7367747ee16d829116;hp=cf93d76c67e95220f89c9d60adc8b0a4debf65ea;hpb=245d5036b6fbc2c9e4692244aff22d5188771e09;p=kivitendo-erp.git 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';