diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-01-04 15:57:44 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-01-04 15:57:44 -0800 |
commit | 45d8ea4c5d8d66f2945c05a71f2e695c0bf00dac (patch) | |
tree | d0d68f5e27b4e9553abe826e46557cb3f91ea79f | |
parent | 4f2b07d0a7380717871aa951483a8285ea32e03e (diff) |
fix "column reference "refnum" is ambiguous" is credit detail report (when no advertising sources are configured yet), RT#73994
-rw-r--r-- | httemplate/search/cust_credit_bill.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/httemplate/search/cust_credit_bill.html b/httemplate/search/cust_credit_bill.html index 88f897d70..fb7106162 100644 --- a/httemplate/search/cust_credit_bill.html +++ b/httemplate/search/cust_credit_bill.html @@ -79,14 +79,14 @@ my $title = 'Net Credit Search Results'; my @search = (); if ( $cgi->param('agentnum') && $cgi->param('agentnum') =~ /^(\d+)$/ ) { - push @search, "agentnum = $1"; + push @search, "cust_main.agentnum = $1"; my $agent = qsearchs('agent', { 'agentnum' => $1 } ); die "unknown agentnum $1" unless $agent; $title = $agent->agent. " $title"; } if ( $cgi->param('refnum') && $cgi->param('refnum') =~ /^(\d+)$/ ) { - push @search, "refnum = $1"; + push @search, "cust_main.refnum = $1"; my $part_referral = qsearchs('part_referral', { 'refnum' => $1 } ); die "unknown refnum $1" unless $part_referral; $title = $part_referral->referral. " $title"; |