Enterprises who supply only to hub shops - i.e. their enterprise setting for 'sells' is set to 'None' and their products are sold only through a hub shop - cannot load any reports.
Whether using only one filter parameter, including only date range or no filters, user reports the screen just reloads to empty filters and does not produce a report onscreen, for download, or by email.
Admin has replicated this when logged into the users account, but can load reports normally when in admin or another producer account.
Expected Behavior
Reports should be loaded regardless of account type.
Actual Behaviour
Reports do not load at all, screen refreshes to the initial report filters screen, with empty filter fields.
Steps to Reproduce
Log in to a 'supplier only' account where the 'Sells' setting is set to 'none'.
Attempt to load a report such as Pack by Customer or Order Cycle Customer Totals, with and without report filters.
See that the report does not load, but refreshes to blank reports screen.
Description
Enterprises who supply only to hub shops - i.e. their enterprise setting for 'sells' is set to 'None' and their products are sold only through a hub shop - cannot load any reports.
Whether using only one filter parameter, including only date range or no filters, user reports the screen just reloads to empty filters and does not produce a report onscreen, for download, or by email.
Admin has replicated this when logged into the users account, but can load reports normally when in admin or another producer account.
Expected Behavior
Reports should be loaded regardless of account type.
Actual Behaviour
Reports do not load at all, screen refreshes to the initial report filters screen, with empty filter fields.
Steps to Reproduce
Animated Gif/Screenshot
Workaround
Change the 'Sells' setting to 'Own'
Severity
S3
https://github.com/openfoodfoundation/openfoodnetwork/wiki/Bug-severity -->
Your Environment
Bug is not environment dependent but depends on the type of user account
Possible Fix