From a00edc8ed3457fb24932f11e9534b691a1931e55 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Fri, 15 Mar 2024 10:23:32 +0000 Subject: [PATCH] rechnung hide payment difference if 'bezahlt' --- 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 27a4ed81..d78eb336 100644 --- a/phpwf/plugins/class.yui.php +++ b/phpwf/plugins/class.yui.php @@ -6781,7 +6781,11 @@ r.land as land, p.abkuerzung as projekt, r.zahlungsweise as zahlungsweise, FORMAT(r.soll,2{$extended_mysql55} ) as soll, ifnull(r.waehrung,'EUR'), r.zahlungsstatus as zahlung, - if(r.soll-r.ist!=0 AND r.ist > 0,FORMAT(r.ist-r.soll,2{$extended_mysql55}),FORMAT((r.soll-r.ist)*-1,2{$extended_mysql55})) as fehlt, + if ( + r.zahlungsstatus <> 'bezahlt', + if(r.soll-r.ist!=0 AND r.ist > 0,FORMAT(r.ist-r.soll,2{$extended_mysql55}),FORMAT((r.soll-r.ist)*-1,2{$extended_mysql55})), + '') + as fehlt, if(r.status = 'storniert' AND r.teilstorno = 1,'TEILSTORNO',UPPER(r.status)) as status, ".(!empty($zusatzcols)?implode(', ',$zusatzcols).',':'')." r.id