Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin][Permissions] Orders disappear from producer's reports after removing permission to distributor #9520

Open
audez opened this issue Aug 4, 2022 · 0 comments
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. FR Selected to be done by the French active instance

Comments

@audez
Copy link
Collaborator

audez commented Aug 4, 2022

Description

Removing permission to a distributor make all orders disappear from producer's reports.

If permission is removed while a distributor's OC is ongoing, the producer's products still appear in the OC, and customers can make orders (see #5832). The orders are available in the hub's reports and hub's Orders tab, but not in the producer's reports (the only place where a producer that sells through a distributor can find them). Thus, unless the producer is notified by the distributor that new orders have arrived, he wouldn't know.

We had the case of a producer who removed the permission by mistake and didn't understand why he couldn't see new orders.

Expected Behavior

  • Past and next orders should remain available in the producer's reports.
  • When removing permission while an OC is ongoing, an alert should be displayed to the producer, for example "As an OC is ongoing, your products will still be available for orders. If you want to be removed from the OC, please contact the coordinator."

Actual Behaviour

  • Past and next orders don't appear in producer's reports. The producer has no clue if new orders have been made.
  • A producer can remove permission while an OC is ongoing, and is not informed that his products will continue to be sold.

Steps to Reproduce

  1. Create a Producer account (Profile, shop or hub), add a product
  2. Create a Hub profile account (producer or non-producer)
  3. Give the permission from Producer account to Hub to add products to order cycle
  4. Add an order cycle from the Hub account, in which you select the Producer product
  5. Make an order as a random client
  6. On the Producer account, in the Reports tab, open "Orders and distributor" report
    You see the order
  7. On the Producer account, remove permission given at 3.
  8. In the Reports tab, open "Orders and distributor" report
    You can't see the order anymore
  9. Make an order as a random client
  10. On the Producer account, in the Reports tab, open "Orders and distributor" report
    The new order is not there neither

Animated Gif/Screenshot

Producer's report - Permission granted

Screen Shot 2022-08-04 at 11 05 17

Screen Shot 2022-08-04 at 11 01 47

Producer's report - Permission removed

Screen Shot 2022-08-04 at 11 08 27

Screen Shot 2022-08-04 at 11 04 42

Workaround

The producer must ask the distributor to go to Order Cycles tab > Edit > click on the "Notify producers" button, so an email with the orders is sent to him.

Severity

bug-s3: a feature is broken but there is a workaround

@audez audez added bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. A5. Order Management labels Aug 4, 2022
@Cecilia-Hn Cecilia-Hn added the FR Selected to be done by the French active instance label Jul 26, 2023
@sigmundpetersen sigmundpetersen changed the title [Admin] [Permissions] Orders disappear from producer's reports after removing permission to distributor [Admin][Permissions] Orders disappear from producer's reports after removing permission to distributor Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. FR Selected to be done by the French active instance
Projects
Status: All the things
Development

No branches or pull requests

3 participants