Index: openacs-4/packages/invoices/lib/report-month-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/lib/report-month-postgresql.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/invoices/lib/report-month-postgresql.xql 6 Sep 2005 23:00:14 -0000 1.1 +++ openacs-4/packages/invoices/lib/report-month-postgresql.xql 7 Sep 2005 18:28:24 -0000 1.2 @@ -10,8 +10,8 @@ acs_objects o where to_char(iv.due_date, 'YYYY') = :year - and iv.organization_id = :organization_id and iv.recipient_id = o.object_id + $extra_query [template::list::filter_where_clauses -and -name iv_months] @@ -25,7 +25,7 @@ where to_char(due_date, 'YYYY') = :year and to_char(due_date, 'MM') = :iv_month - and organization_id = :organization_id + $extra_query @@ -38,6 +38,7 @@ where to_char(due_date, 'YYYY') = :year and to_char(due_date, 'MM') = :iv_month + $extra_query