Commit Graph

11 Commits

Author SHA1 Message Date
ht
f126f06ab1 fix: 救活销售单状态功能(取消/完成此前因缺字段直接崩溃)
sale_cancel / sale_delete_item 引用了 Sale.status,sale_cancel 还引用了
已在 0008 迁移中重命名为 remark 的 notes 字段,导致这两个视图一进入就
AttributeError。补回 status 字段(DRAFT/COMPLETED/CANCELLED,存量单迁移为
COMPLETED)使状态流转可用:sale_create/sale_complete 标记 COMPLETED 并防止
重复结算,sale_cancel 改用 remark,sale_delete_item 补上漏掉的 save() 使
删除商品后的总额真正落库。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 23:55:36 +08:00
Cursor Agent
87eb63fbf8
Fix balance payment deduction on sale creation
Co-authored-by: zhtyyx <zhtyyx@users.noreply.github.com>
2026-05-22 11:07:38 +00:00
ht
01315fad76 Merge remote-tracking branch 'origin/cursor/critical-correctness-bugs-4fac' 2026-05-17 19:35:39 +08:00
ht
47ae8b0903 Merge remote-tracking branch 'origin/cursor/critical-bug-inspection-abeb' 2026-05-17 19:35:35 +08:00
ht
3d385f1be3 Merge remote-tracking branch 'origin/cursor/critical-bug-inspection-ac6f' 2026-05-17 19:35:31 +08:00
Cursor Agent
8e5a028c6b
Fix atomic member balance updates
Co-authored-by: zhtyyx <zhtyyx@users.noreply.github.com>
2026-05-16 11:13:23 +00:00
Cursor Agent
9d39eee5d4
fix logout redirect target
Co-authored-by: zhtyyx <zhtyyx@users.noreply.github.com>
2026-05-13 11:08:54 +00:00
Cursor Agent
3d8c0dbe38
Fix unsafe backup path handling
Co-authored-by: zhtyyx <zhtyyx@users.noreply.github.com>
2026-05-10 11:08:48 +00:00
Cursor Agent
ab61f5ed2d
test: use valid member discount fixture
Co-authored-by: zhtyyx <zhtyyx@users.noreply.github.com>
2026-04-28 11:09:58 +00:00
Cursor Agent
f37f76a272
fix: require login for member search api
Co-authored-by: zhtyyx <zhtyyx@users.noreply.github.com>
2026-04-28 11:08:59 +00:00
hunterzhang
7a4549b20c fix: reformat code, add test, optimize query 2025-04-07 11:17:28 +08:00