|
|
e44c84d14c
|
fix: created_by should be user_id not userorgid
|
2026-07-03 16:10:02 +08:00 |
|
|
|
724a912bc9
|
fix: remove duplicate supplier_id in new_data_url; JSON config is the correct fix, not dspy workaround
|
2026-07-03 16:09:30 +08:00 |
|
|
|
698f0f6e29
|
fix: unwrap list values from bricks code lookups (supplier_id was ['x','x']) before sor.C
|
2026-07-03 16:00:39 +08:00 |
|
|
|
fa81da2bbf
|
fix: return plain dict (ahserver handles serialization), match CRUD pattern exactly
|
2026-07-03 15:54:19 +08:00 |
|
|
|
4a0b9db82a
|
fix: follow CRUD add_llm pattern exactly — ns.copy(), sor.C, no param cleaning
|
2026-07-03 15:41:58 +08:00 |
|
|
|
6b6489af02
|
fix: back to sor.C with simple param cleaning
|
2026-07-03 15:40:11 +08:00 |
|
|
|
37c39a053f
|
fix: sor.I takes 1 arg (data), not 2
|
2026-07-03 15:33:42 +08:00 |
|
|
|
1d99375578
|
fix: use whitelist approach - only pass known table columns to sor.I
|
2026-07-03 15:29:08 +08:00 |
|
|
|
959d021537
|
fix: clean _text suffix fields, use sor.I instead of sor.C, json.dumps return
|
2026-07-03 15:11:26 +08:00 |
|
|
|
da64e09090
|
fix: supply_contracts_create remove json.dumps
|
2026-07-03 15:10:01 +08:00 |
|
|
|
63a1bedeba
|
fix: clean non-table params before sor.C; return json.dumps instead of dict
|
2026-07-03 15:04:34 +08:00 |
|
|
|
f325ad0c93
|
fix: CRUD endpoint return format - remove json.dumps
|
2026-07-03 15:01:08 +08:00 |
|
|
|
813882ff71
|
fix: supply_contracts_create generates contract_code automatically
|
2026-07-03 14:30:35 +08:00 |
|
Hermes Agent
|
2dd2953757
|
fix: rewrite all create dspy files to use pre-loaded functions
- Removed all imports (json, ServerEnv, datetime, getID)
- Replaced datetime.now().strftime with timestampstr()
- Added id=getID(), created_at=timestampstr(), updated_at=timestampstr()
- Added resellerid from user org context
- Used DBPools().sqlorContext pattern
- Pass data dict directly to sor.C() without field filtering
- Fixed: suppliers, sub_distributors, sub_resellers, distribution_agreements,
distribution_agreement_items, supply_contracts, supply_contract_items,
platform_supply_products, platform_supply_relations, product_supplier_mapping,
sales_ledger, supplychain_accounting
|
2026-06-17 17:49:48 +08:00 |
|
Hermes Agent
|
bfc50f2364
|
feat: 补充供销协议和协议产品明细折扣CRUD管理
- 新增 json/supply_contracts_list.json CRUD定义(供销协议管理)
- 新增 json/supply_contract_items_list.json CRUD定义(协议产品明细折扣)
- 修复 json/suppliers_list.json JSON语法错误(缺少逗号)
- 修复6个API dspy文件违规(移除import/print,改用return)
- 新增4个搜索API(供应商/合同/产品分类/产品下拉数据)
- 新增 supplychain/__init__.py 导出所有公共函数
- 重新生成CRUD UI文件并修正editable URL指向自定义API
- 更新load_path.py注册新路径
- 添加.gitignore排除自动生成文件
|
2026-06-17 15:03:46 +08:00 |
|
|
|
ed9c96d719
|
Initial commit: supplychain module - supplier, sub-reseller, contract, agreement, and sales ledger management
|
2026-05-26 14:21:31 +08:00 |
|
|
|
092d74133e
|
fix: 添加product引用, 创建scripts/load_path.py, 修复.dspy代码生成逻辑
- models/*.json: 在supply_contract_items, distribution_agreement_items,
supplychain_accounting的codes段添加products/product_types引用
- scripts/load_path.py: 模块RBAC权限管理脚本, 包含any/logined/operator/sale四类权限
- supplychain/init.py: 重命名get_module_dbname为_get_dbname避免覆盖全局函数
- wwwroot/api/*_create.dspy: 修复自动编号生成逻辑(移除死代码条件判断)
|
2026-05-25 15:37:06 +08:00 |
|
|
|
da32159ad9
|
feat: 供应商和分销商管理模块 (supplychain)
- 7个数据库表: suppliers, supply_contracts, supply_contract_items,
sub_distributors, distribution_agreements, distribution_agreement_items,
supplychain_accounting
- CRUD JSON配置 (7个列表 + editable段)
- API端点: create/update/delete (21个) + calculate_accounting + query_discount (2个)
- 前端页面: index.ui + 5个功能页 + menu.ui
- 记账计算: 自动查找有效合同/协议折扣,计算进货金额、分销金额、利润
- 折扣查找优先级: 精确产品 > 产品分类 > 默认折扣
- productid/prodtypeid引用product模块(即将开发)
|
2026-05-25 15:37:06 +08:00 |
|