$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();
<td>[% HTML.escape(discount) %]%</td>
</tr>
+ [% IF is_customer %]
+ <tr>
+ <td align="right">[% 'Pricegroup' | $T8 %]</td>
+ <td>[% HTML.escape(pricegroup) %]</td>
+ </tr>
+ [% END %]
+
<tr>
<td align="right">[% 'Payment Terms' | $T8 %]</td>
<td>[% HTML.escape(payment_terms) %]</td>