24 Commits

Author SHA1 Message Date
52d48c964a fix: ORDER BY改用$参数化 2026-06-29 15:56:09 +08:00
dafa2d5eb2 fix: request._run_ns.params_kw 2026-06-29 15:30:14 +08:00
6e6a6a14f0 fix: discountid改用request._params_kw(同accounting模块方式) 2026-06-29 15:28:53 +08:00
6000ea7b01 fix: discountid改用request.query.get, aiohttp标准方式 2026-06-29 15:26:11 +08:00
a2aa95ef94 fix: _run_env→_run_ns 2026-06-29 13:35:22 +08:00
89d116acfd refactor: discountid获取简化为单一路径request._run_env.param_kw 2026-06-29 13:22:56 +08:00
b20c580193 fix: discountid优先从request._run_env.param_kw获取 2026-06-29 13:18:18 +08:00
2d869c1fbc fix: cwidth改为width百分比(22/34/22/22); discountid改用rel_url.query多种方式获取 2026-06-29 12:05:41 +08:00
2259b68789 refactor: 折扣设置改用Jinja2直建HBox列表+Form/UiFloat+changed事件, 废弃Tabular和inline_edit.js 2026-06-29 11:54:12 +08:00
Hermes Agent
f5250fb261 feat: 营销方案、促销码、客户归属绑定功能
- 新增3个数据模型: discount_marketing, discount_promo_code, discount_customer_bind
- 新增CRUD定义: marketing/promo_code/customer_bind 的list和api
- 新增init/data.json: appcodes编码(促销码类型、绑定方式)
- init.py: bind_customer支持customerid参数覆盖(注册场景)
- 折扣校验放宽至 0 < discount <= 1
2026-06-24 00:56:32 +08:00
3a57205337 fix(discount): 兼容discount_detail表不存在的情况,fallback到discount.discount字段 + 新增discount_detail表定义和迁移脚本 + 修复discount.json中float类型缺少dec字段 2026-05-24 22:31:42 +08:00
b41c89e9dd bugfix 2026-05-11 11:30:57 +08:00
a25c9e56dc bugfix 2026-04-08 14:27:38 +08:00
678cf4bac8 bugfix 2026-03-30 14:05:04 +08:00
aaf09f50a0 bugfix 2026-03-30 14:01:10 +08:00
41a7412283 bugfix 2026-02-26 11:19:39 +08:00
a563f92fd5 bugfix 2026-02-26 11:18:16 +08:00
8ab227ddd3 bugfix 2026-02-25 19:06:47 +08:00
98581b2a37 bugfix 2026-02-25 13:49:16 +08:00
c890fdf249 bugfix 2026-02-25 12:05:48 +08:00
11b6f8b0c8 bugfix 2026-02-25 11:58:22 +08:00
c64921972f bugfix 2026-02-25 11:56:23 +08:00
9f99790d38 bugfix 2026-02-25 11:33:34 +08:00
45333b6b23 bugfix 2026-02-24 17:32:46 +08:00