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:
1d63c6b
)
477 reporting
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 4 Mar 2022 02:42:03 +0000
(18:42 -0800)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 4 Mar 2022 02:42:03 +0000
(18:42 -0800)
FS/FS/Report/FCC_477.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Report/FCC_477.pm
b/FS/FS/Report/FCC_477.pm
index
760f6f2
..
0f5d4ce
100644
(file)
--- a/
FS/FS/Report/FCC_477.pm
+++ b/
FS/FS/Report/FCC_477.pm
@@
-398,7
+398,7
@@
sub fbs_sql {
my $agentnum = $opt{agentnum};
my $q = $opt{ignore_quantity} ? '1' : 'COALESCE(cust_pkg.quantity, 1)';
my $agentnum = $opt{agentnum};
my $q = $opt{ignore_quantity} ? '1' : 'COALESCE(cust_pkg.quantity, 1)';
- my $censustract = "
replace(cust_location.censustract, '.', ''
)";
+ my $censustract = "
substr( replace(cust_location.censustract, '.', ''), 1, 11
)";
my @select = (
"$censustract AS censustract",
my @select = (
"$censustract AS censustract",
@@
-473,7
+473,7
@@
sub fvs_sql {
my $date = $opt{date} || time;
my $agentnum = $opt{agentnum};
my $q = $opt{ignore_quantity} ? '1' : 'COALESCE(cust_pkg.quantity, 1)';
my $date = $opt{date} || time;
my $agentnum = $opt{agentnum};
my $q = $opt{ignore_quantity} ? '1' : 'COALESCE(cust_pkg.quantity, 1)';
- my $censustract = "
replace(cust_location.censustract, '.', ''
)";
+ my $censustract = "
substr( replace(cust_location.censustract, '.', ''), 1, 11
)";
my @select = (
"$censustract AS censustract",
my @select = (
"$censustract AS censustract",