X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2%2Fumstellung_eur.pl;h=438d2ee7f7071210fb62ec3ed23d6efd5333f7ad;hb=361d8846ed83e99bb34b13c46b4e6b5a7090c70f;hp=560bf645a4e97651b5955753d57979b9e48402c7;hpb=43f9b1c512be9bc2199369c2f5accea32b8bd423;p=kivitendo-erp.git diff --git a/sql/Pg-upgrade2/umstellung_eur.pl b/sql/Pg-upgrade2/umstellung_eur.pl index 560bf645a..438d2ee7f 100644 --- a/sql/Pg-upgrade2/umstellung_eur.pl +++ b/sql/Pg-upgrade2/umstellung_eur.pl @@ -1,11 +1,10 @@ # @tag: umstellung_eur -# @description: Variable eur umstellen: bitte doc/umstellung_eur.txt lesen -# @depends: units_id +# @description: Variable eur umstellen: bitte in doc/dokumentation.pdf das entsprechende Kapitel zur Konfiguration von EUR lesen +# @depends: release_2_6_3 # @charset: utf-8 -# this script relies on $eur still being set in lx_office.conf, and the +# this script relies on $eur still being set in kivitendo.conf, and the # variable available in $::lx_office_conf{system}->{eur} -# better @depends would be release_2_6_3 use utf8; #use strict; @@ -44,7 +43,7 @@ sub do_update { my $profit_determination; # check current configuration and set default variables accordingly, so that - # Lx-Office behaviour isn't changed by this update + # kivitendo behaviour isn't changed by this update if ($::lx_office_conf{system}->{eur} == 0 ) { $accounting_method = 'accrual'; @@ -63,7 +62,7 @@ sub do_update { # only set parameters if they haven't already been set (this in only the case # when upgrading) - my $update_eur = "UPDATE defaults set accounting_method = '$accounting_method' where accounting_method is null;" . + my $update_eur = "UPDATE defaults set accounting_method = '$accounting_method' where accounting_method is null;" . "UPDATE defaults set inventory_system = '$inventory_system' where inventory_system is null; " . "UPDATE defaults set profit_determination = '$profit_determination' where profit_determination is null;"; do_query($update_eur);