mirror of
https://github.com/zhtyyx/ioe.git
synced 2026-06-03 21:02:59 +08:00
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> |
||
|---|---|---|
| .. | ||
| system | ||
| __init__.py | ||
| barcode.py | ||
| core.py | ||
| inventory_check.py | ||
| inventory.py | ||
| member.py | ||
| product.py | ||
| report.py | ||
| sales.py | ||
| system_views.py | ||
| system.py | ||