diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-03-03 13:55:22 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-03-03 13:55:22 -0800 |
commit | bb8493151593420f2d2440c476c2ce43473a2476 (patch) | |
tree | 677b722a5bb44a9c07aa66d78d961e1a2bf0c2f7 | |
parent | 35d76834f3fce8c1e7a450c8f260c9cf54035749 (diff) |
prevent customer payment type changes from skewing payment report
-rw-r--r-- | FS/FS/UI/Web.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FS/FS/UI/Web.pm b/FS/FS/UI/Web.pm index cb0cc99f1..d31e918d0 100644 --- a/FS/FS/UI/Web.pm +++ b/FS/FS/UI/Web.pm @@ -273,7 +273,7 @@ sub cust_header { '(service) Latitude' => 'ship_latitude', '(service) Longitude' => 'ship_longitude', 'Invoicing email(s)' => 'invoicing_list_emailonly_scalar', - 'Payment Type' => 'payby', + 'Payment Type' => 'cust_payby', 'Current Balance' => 'current_balance', 'Agent Cust#' => 'agent_custid', ); @@ -373,9 +373,11 @@ sub cust_sql_fields { } } - foreach my $field (qw(daytime night mobile fax payby)) { + foreach my $field (qw(daytime night mobile fax )) { push @fields, $field if (grep { $_ eq $field } @cust_fields); } + push @fields, "payby AS cust_payby" + if grep { 'cust_payby' eq $field } @cust_fields; push @fields, 'agent_custid'; my @extra_fields = (); |