From 5574a0364a45b583637e99b698a77b60c2b6b786 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Tue, 26 Feb 2013 15:56:58 +0100 Subject: [PATCH] Bei Kundendetails auch Standardpreisgruppen anzeigen --- SL/Common.pm | 3 +++ templates/webpages/common/show_vc_details.html | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/SL/Common.pm b/SL/Common.pm index 726c4c8e2..159609d30 100644 --- a/SL/Common.pm +++ b/SL/Common.pm @@ -441,6 +441,9 @@ sub get_vc_details { $query = qq|SELECT * FROM contacts WHERE (cp_cv_id = ?)|; $form->{CONTACTS} = selectall_hashref_query($form, $dbh, $query, $vc_id); + # Only show default pricegroup for customer, not vendor, which is why this is outside the main query + ($form->{pricegroup}) = selectrow_query($form, $dbh, qq|SELECT pricegroup FROM pricegroup WHERE id = ?|, $form->{klass}); + $dbh->disconnect(); $main::lxdebug->leave_sub(); diff --git a/templates/webpages/common/show_vc_details.html b/templates/webpages/common/show_vc_details.html index be6406bce..e0555d33c 100644 --- a/templates/webpages/common/show_vc_details.html +++ b/templates/webpages/common/show_vc_details.html @@ -105,6 +105,13 @@ [% HTML.escape(discount) %]% + [% IF is_customer %] + + [% 'Pricegroup' | $T8 %] + [% HTML.escape(pricegroup) %] + + [% END %] + [% 'Payment Terms' | $T8 %] [% HTML.escape(payment_terms) %] -- 2.20.1