ioe/inventory/forms
ht 7ec6febf23 fix: 修复销售价格校验崩溃与备份日志无效外键
1) SaleItemForm.clean 中 product.price * 0.5 是 Decimal * float,会抛
   TypeError,导致添加/编辑销售单商品时崩溃。改用 Decimal('0.5')/Decimal('2')。
2) 备份/恢复写 LogEntry 时用 content_type_id=0,0 号 ContentType 不存在,
   违反外键约束抛 IntegrityError;且该调用在 try 内,失败会连带删掉刚生成的
   备份目录。改为 content_type_id=None(该字段可空)。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-28 23:40:35 +08:00
..
__init__.py feat: create several useful function 2025-04-27 14:50:32 +08:00
batch.py feat: create several useful function 2025-04-27 14:50:32 +08:00
inventory_check_forms.py feat: create several useful function 2025-04-27 14:50:32 +08:00
inventory_forms.py feat: create several useful function 2025-04-27 14:50:32 +08:00
member_forms.py feat: create several useful function 2025-04-27 14:50:32 +08:00
product_forms.py feat: create several useful function 2025-04-27 14:50:32 +08:00
report_forms.py feat: create several useful function 2025-04-27 14:50:32 +08:00
sales_forms.py fix: 修复销售价格校验崩溃与备份日志无效外键 2026-05-28 23:40:35 +08:00
system_forms.py feat: create several useful function 2025-04-27 14:50:32 +08:00