]> wagnertech.de Git - kivitendo-erp.git/blobdiff - sql/Pg-upgrade2/defaults_datev_check.pl
Consolidation and extended test runs
[kivitendo-erp.git] / sql / Pg-upgrade2 / defaults_datev_check.pl
index 956bc810e6aa0c9ac8f4da27ae80442d045e792d..9b742ed52d3a710ef0aba9328d40e9007e198b0f 100644 (file)
@@ -23,7 +23,7 @@ sub run {
   # if checks are not set in config set it to true
   foreach my $check (qw(check_on_sales_invoice check_on_purchase_invoice check_on_ar_transaction check_on_ap_transaction check_on_gl_transaction)) {
     my $check_set = 1;
-    if ($::lx_office_conf{datev_check}->{$check} == 0 && defined ($::lx_office_conf{datev_check}->{$check})) {
+    if (defined ($::lx_office_conf{datev_check}->{$check}) && $::lx_office_conf{datev_check}->{$check} == 0) {
       $check_set = 0;
     }