Skip to content

Fix critical sales and backup regressions#76

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/critical-bug-investigation-afb5
Draft

Fix critical sales and backup regressions#76
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/critical-bug-investigation-afb5

Conversation

@cursor

@cursor cursor Bot commented Jun 26, 2026

Copy link
Copy Markdown

Summary

  • Stop sale detail GET requests from rewriting persisted sale totals.
  • Reject unsupported sale payment methods and remove the exposed credit checkout option.
  • Make draft sale item deletion POST-only with CSRF and transactional row locks.
  • Restore backup restore/delete UI compatibility and nullable admin log entries for log file actions.

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 inventory.tests.test_views.LogFileViewTest
  • mkdir -p logs && .venv/bin/python manage.py check
Open in Web View Automation 

cursoragent and others added 2 commits June 26, 2026 11:06
Co-authored-by: Xianist Lab <zhtyyx@users.noreply.github.com>
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