projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1056537
)
fix "column reference "refnum" is ambiguous" is credit detail report (when no adverti...
author
Ivan Kohler
<ivan@freeside.biz>
Wed, 4 Jan 2017 23:57:47 +0000
(15:57 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Wed, 4 Jan 2017 23:57:47 +0000
(15:57 -0800)
httemplate/search/cust_credit_bill.html
patch
|
blob
|
history
diff --git
a/httemplate/search/cust_credit_bill.html
b/httemplate/search/cust_credit_bill.html
index
88f897d
..
fb71061
100644
(file)
--- 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+)$/ ) {
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+)$/ ) {
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";
my $part_referral = qsearchs('part_referral', { 'refnum' => $1 } );
die "unknown refnum $1" unless $part_referral;
$title = $part_referral->referral. " $title";