From f1ada32742c794c412fb59b566d6f2ba22684466 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 16 Jan 2025 22:02:37 +0100 Subject: [PATCH] bugfix angebot, auftrag column Einkaufspreis, DB --- phpwf/plugins/class.yui.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/phpwf/plugins/class.yui.php b/phpwf/plugins/class.yui.php index 9dd3d631..b5ca26e7 100644 --- a/phpwf/plugins/class.yui.php +++ b/phpwf/plugins/class.yui.php @@ -2626,6 +2626,8 @@ class YUI { $sql .= $this->FormatPreis('einkaufspreis')." as einkaufspreis, CONCAT(".$this->app->erp->FormatPreis("ROUND(deckungsbeitrag*100,2)",2).",'%') AS DB, "; + } else { + $sql .= "'-' AS 'einkaufspreis', '-' AS 'DB',"; } $sql .= "b.id as id @@ -2871,7 +2873,9 @@ class YUI { $sql .= $this->FormatPreis('einkaufspreis')." as einkaufspreis, CONCAT(".$this->app->erp->FormatPreis("ROUND(deckungsbeitrag*100,2)",2).",'%') AS DB, "; - } + } else { + $sql .= "'-' AS 'einkaufspreis', '-' AS 'DB',"; + } } else { $sql = "SELECT $sortcol, CONCAT($hersteller_ansicht if(b.beschreibung!='',