The reporter.classic_current_circ view, which is available via
Open-ILS/src/sql/Pg/example.reporter-extension.sql, was excluding
circulations because it was assuming all users have a billing address
This branch corrects that with a LEFT JOIN.
No upgrade script will be included since these views are not assumed
to be installed by all Evergreen instances. Please re-run the
example.reporter-extension.sql file to apply this change for your
instance.
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
JOIN actor.org_unit hl ON (p.home_ou = hl.id)
JOIN permission.grp_tree g ON (p.profile = g.id)
JOIN reporter.demographic dem ON (dem.id = p.id)
- JOIN actor.usr_address paddr ON (paddr.id = p.billing_address)
+ LEFT JOIN actor.usr_address paddr ON (paddr.id = p.billing_address)
LEFT JOIN config.language_map lm ON (rd.item_lang = lm.code)
LEFT JOIN config.lit_form_map lfm ON (rd.lit_form = lfm.code)
LEFT JOIN config.item_form_map ifm ON (rd.item_form = ifm.code)