invoice batch report, #940
authorMark Wells <mark@freeside.biz>
Tue, 19 Mar 2013 18:41:28 +0000 (11:41 -0700)
committerMark Wells <mark@freeside.biz>
Tue, 19 Mar 2013 18:41:28 +0000 (11:41 -0700)
httemplate/view/bill_batch.cgi

index 7d64039..55ee4be 100644 (file)
@@ -13,7 +13,7 @@
                                'hashref' => { },
                                'addl_from' => 
                                  'LEFT JOIN cust_bill USING ( invnum ) '.
-                                 'LEFT JOIN cust_main USING ( custnum )',
+                                 FS::UI::Web::join_cust_main('cust_bill'),
                                'extra_sql' => " WHERE batchnum = $batchnum",
                              },
               'count_query' => "SELECT COUNT(*) FROM cust_bill_batch WHERE batchnum = $batchnum",