From: G. Richardson Date: Tue, 26 Feb 2013 14:56:58 +0000 (+0100) Subject: Bei Kundendetails auch Standardpreisgruppen anzeigen X-Git-Tag: release-3.1.0beta1~602^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5574a0364a45b583637e99b698a77b60c2b6b786;p=kivitendo-erp.git Bei Kundendetails auch Standardpreisgruppen anzeigen --- 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) %]