projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix joins for proper tax reporting
[freeside.git]
/
httemplate
/
search
/
report_tax.cgi
diff --git
a/httemplate/search/report_tax.cgi
b/httemplate/search/report_tax.cgi
index
f37e127
..
8b1c095
100755
(executable)
--- a/
httemplate/search/report_tax.cgi
+++ b/
httemplate/search/report_tax.cgi
@@
-44,8
+44,8
@@
foreach my $r (
FROM cust_bill_pkg
JOIN cust_bill USING ( invnum )
JOIN cust_main USING ( custnum )
FROM cust_bill_pkg
JOIN cust_bill USING ( invnum )
JOIN cust_main USING ( custnum )
- JOIN cust_pkg USING ( pkgnum )
- JOIN part_pkg USING ( pkgpart )
+
LEFT OUTER
JOIN cust_pkg USING ( pkgnum )
+
LEFT OUTER
JOIN part_pkg USING ( pkgpart )
WHERE _date >= $beginning AND _date <= $ending
AND ( county = ? OR ? = '' )
AND ( state = ? OR ? = '' )
WHERE _date >= $beginning AND _date <= $ending
AND ( county = ? OR ? = '' )
AND ( state = ? OR ? = '' )