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

[Reports] Bulk co-op reports showing products from cancelled orders #10159

Open
audez opened this issue Dec 14, 2022 · 4 comments
Open

[Reports] Bulk co-op reports showing products from cancelled orders #10159

audez opened this issue Dec 14, 2022 · 4 comments
Labels
bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround.

Comments

@audez
Copy link
Collaborator

audez commented Dec 14, 2022

Description

Cancelled orders appear in:

  • Bulk Co-op Packing Sheets
  • Bulk Co-op Customer Payments
  • Bulk Co-op Allocation

Expected Behavior

Orders shouldn't appear in bulk co-op reports if they are cancelled.

Steps to Reproduce

  1. Create a bulk product (product with the "group by" option activated
  2. Create an OC with this product and pass an order
  3. Cancel the order
  4. Open the bulk co-op reports and see the order appear in these reports

Animated Gif/Screenshot

This order has been cancelled

Screen Shot 2022-12-13 at 09 16 54

But still appear in 3 bulk co-op reports

Screen Shot 2022-12-13 at 09 18 27
Screen Shot 2022-12-13 at 09 18 47
Screen Shot 2022-12-13 at 09 19 29

Severity

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

@RachL RachL added the bug-s3 The bug is stopping a critical or non-critical feature but there is a usable workaround. label Dec 14, 2022
@RachL
Copy link
Contributor

RachL commented Dec 14, 2022

@lin-d-hop to add on the reports tweaks?

@jibees jibees self-assigned this Dec 26, 2022
@jibees
Copy link
Contributor

jibees commented Dec 26, 2022

I read the spec, and noticed that showing canceled orders is wanted:

it 'shows canceled orders' do
o2 = create(:order, state: 'canceled', completed_at: 1.day.ago, order_cycle: oc1,
distributor: d1)
line_item = build(:line_item_with_shipment)
o2.line_items << line_item
expect(subject.table_items).to include(line_item)
end

it 'shows canceled orders' do
o2 = create(:order, state: 'canceled', completed_at: 1.day.ago, order_cycle: oc1,
distributor: d1)
line_item = build(:line_item_with_shipment)
o2.line_items << line_item
expect(subject.table_items).to include(line_item)
end

Before changing anything, I just want to be sure that we don't want to show canceled orders (and to be sure that changing that won't introduce any regression ; maybe we should add a checkbox Show canceled orders?)

@audez
Copy link
Collaborator Author

audez commented Dec 26, 2022

Thanks for this input! Just 2 comments: it seems weird to want to show canceled orders here whereas they don't appear in the "classic" packing reports. Also, if we show the canceled orders in Allocation and Packing Sheets, it will display the wrong quantities to prepare.

@lin-d-hop
Copy link
Contributor

lin-d-hop commented Dec 28, 2022

We don't want to show Cancelled orders in the Bulk Coop reports.

@jibees This should be delivered under the 'Standardise Bulk Coop Reports' epic meaning that it should be released as new reports (see here).

This is in the epic acceptance criteria but not in the bug report. Apologies for that confusion!

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.
Projects
Status: All the things 💤
Development

No branches or pull requests

4 participants