]> wagnertech.de Git - kivitendo-erp.git/blobdiff - sql/Pg-upgrade2/defaults_datev_check.pl
Datev Checks standardmässig ein für neue Datenbanken ( > 2.7)
[kivitendo-erp.git] / sql / Pg-upgrade2 / defaults_datev_check.pl
index 175da42084a67200664b0b8f91347e708c7474e5..956bc810e6aa0c9ac8f4da27ae80442d045e792d 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}) {
+    if ($::lx_office_conf{datev_check}->{$check} == 0 && defined ($::lx_office_conf{datev_check}->{$check})) {
       $check_set = 0;
     }