From: Moritz Bunkus Date: Mon, 29 Jul 2013 13:22:30 +0000 (+0200) Subject: steuerfilterung.pl: mit "keine Steuer" zurecht kommen X-Git-Tag: release-3.1.0beta1~130 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=66f7ff40ffa875b06f9df02cd0e732f36af05a15;p=kivitendo-erp.git steuerfilterung.pl: mit "keine Steuer" zurecht kommen --- diff --git a/sql/Pg-upgrade2/steuerfilterung.pl b/sql/Pg-upgrade2/steuerfilterung.pl index 1b454e3b0..655d28f5e 100644 --- a/sql/Pg-upgrade2/steuerfilterung.pl +++ b/sql/Pg-upgrade2/steuerfilterung.pl @@ -30,6 +30,7 @@ sub run { $categories .= 'E' if $::form->{"expense_$i"}; $self->db_query(qq|UPDATE tax SET chart_categories = ? WHERE id = ?|, bind => [ $categories, $tax_id ]); } + $self->db_query(qq|UPDATE tax SET chart_categories = 'ALQCIE' WHERE chart_categories IS NULL|); $self->db_query(qq|ALTER TABLE tax ALTER COLUMN chart_categories SET NOT NULL|); return 1; }