From 70594fbd0020dcc79455b32b2abcc17d2a9de0e0 Mon Sep 17 00:00:00 2001 From: Xenomporio <> Date: Mon, 30 May 2022 21:04:38 +0200 Subject: [PATCH] Bugfixes gutschrift --- database/struktur.sql | 1 + www/lib/dokumente/class.briefpapier.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/database/struktur.sql b/database/struktur.sql index cebd2f50..759aa857 100755 --- a/database/struktur.sql +++ b/database/struktur.sql @@ -6057,6 +6057,7 @@ CREATE TABLE IF NOT EXISTS `gutschrift_position` ( `umsatzsteuer` varchar(255) NOT NULL, `bemerkung` text NOT NULL, `logdatei` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `explodiert_parent` int(11) NOT NULL DEFAULT '0', `explodiert_parent_artikel` int(11) NOT NULL DEFAULT '0', `keinrabatterlaubt` int(1) DEFAULT NULL, `grundrabatt` decimal(10,2) DEFAULT NULL, diff --git a/www/lib/dokumente/class.briefpapier.php b/www/lib/dokumente/class.briefpapier.php index 2c8f955f..2fb549be 100644 --- a/www/lib/dokumente/class.briefpapier.php +++ b/www/lib/dokumente/class.briefpapier.php @@ -321,7 +321,7 @@ class Briefpapier extends SuperFPDF { $auftrag_position_id = $this->app->DB->Select("SELECT auftrag_position_id FROM rechnung_position WHERE id='$posid'"); } if($doctype === 'gutschrift'){ - $auftrag_position_id = $this->app->DB->Select("SELECT gutschrift_position_id FROM rechnung_position WHERE id='$posid'"); +// $auftrag_position_id = $this->app->DB->Select("SELECT gutschrift_position_id FROM rechnung_position WHERE id='$posid'"); } if($doctype === 'rechnung') {