Skip to content

fix(ordering): delete unordered products when order round closes#432

Open
tobiascadee wants to merge 1 commit intomainfrom
fix/delete-unordered-products-on-close
Open

fix(ordering): delete unordered products when order round closes#432
tobiascadee wants to merge 1 commit intomainfrom
fix/delete-unordered-products-on-close

Conversation

@tobiascadee
Copy link
Copy Markdown
Collaborator

Summary

  • When MailOrderLists processes a closed order round, all products from that round with no paid order items are now deleted
  • This covers products that were never ordered at all, and products where orders existed but were never paid
  • Addresses ~50% product cleanup mentioned in the issue

Test plan

  • test_unordered_products_are_deleted_when_order_is_placed — verifies unordered product is deleted while ordered product survives
  • test_products_with_only_unpaid_orders_are_deleted_when_order_is_placed — verifies products with only unpaid orders are also cleaned up
  • All existing cron tests still pass

Closes #430

🤖 Generated with Claude Code

When MailOrderLists processes a closed order round, delete all products
from that round that have no paid order items. This cleans up ~50% of
products that are entered but never ordered.

Closes #430

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Niet-bestelde producten verwijderen

1 participant