Skip to content

Fix critical sales and backup restore regressions#72

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-72d1
Draft

Fix critical sales and backup restore regressions#72
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-investigation-72d1

Conversation

@cursor

@cursor cursor Bot commented Jun 22, 2026

Copy link
Copy Markdown

Summary

  • Prevent sale detail GET requests from rewriting historical sale amounts.
  • Reject unsupported sale payment methods and remove the exposed credit checkout option.
  • Require POST plus row locks for sale item deletion.
  • Make backup restore confirmation/template context consistent and roll back DB/media changes if media replacement fails.
  • Add minimal system templates/URLs needed by the restore/settings flow.

Validation

  • mkdir -p logs && .venv/bin/python manage.py test inventory.tests.test_sale_status inventory.tests.test_sales_balance_payment inventory.tests.test_views.BackupViewSecurityTest
  • mkdir -p logs && .venv/bin/python manage.py test inventory.tests.test_i18n inventory.tests.test_services.MemberServiceTest
  • mkdir -p logs && .venv/bin/python manage.py check
Open in Web View Automation 

Co-authored-by: Xianist Lab <zhtyyx@users.noreply.github.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.

1 participant