Bugfixes gutschrift

This commit is contained in:
Xenomporio 2022-05-30 21:04:38 +02:00
parent e201f50b00
commit 70594fbd00
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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')
{