|
|
3f6c71b4d5
|
feat: multi-currency support — currency/exchange_rate tables + migration
|
2026-07-07 15:43:01 +08:00 |
|
|
|
bda9e7fc00
|
feat: credit_limit 加 grant_orgid 授予机构字段,支持多租户
credit_limit 新增 grant_orgid 字段,区分「客户所属机构(orgid)」
与「授予信用的机构(grant_orgid)」。多租户下,操作员为客户授信时:
- orgid = 客户机构ID
- grant_orgid = 操作员所属机构ID
修改:
- models/credit_limit.json: 加 grant_orgid 字段(VARCHAR(32), default 0) + 索引
- creditlimit.py:
get_credit_stats/get_all_customer_credits: WHERE orgid → WHERE grant_orgid
set_credit_limit: 加 grant_orgid 参数
- set_customer_credit.dspy: 写入时 orgid=客户orgid, grant_orgid=操作员orgid;
三处UPDATE同步加 grant_orgid
- credit_summary.dspy: WHERE orgid → WHERE grant_orgid
get_my_credit_list(客户自看)保持按 cl.orgid 过滤不变。
|
2026-06-29 12:46:49 +08:00 |
|
Hermes Agent
|
4a20509490
|
fix(P0): 修正accounting CRUD JSON格式,添加.gitignore排除自动生成的CRUD目录
|
2026-06-16 10:45:25 +08:00 |
|
|
|
1de6fbcf9b
|
chore: remove vim swap file, add .swp to gitignore
|
2026-06-12 15:08:38 +08:00 |
|
|
|
65a735764c
|
feat: add credit_status codes to init/data.yaml for credit_limit table
|
2026-06-12 15:08:25 +08:00 |
|
|
|
9696d4334b
|
feat: 添加信用额度功能
- 新增 credit_limit 表定义和DDL
- 修改 accounting_config.py 支持信用额度透支检查
- 新增 creditlimit.py 信用额度管理模块
- 新增信用额度管理界面和CRUD API
- 支持设置/查询/更新客户信用额度
|
2026-05-28 19:09:04 +08:00 |
|
|
|
af10e4a810
|
refactor(models): convert to json format per database-table-definition-spec
|
2026-05-27 13:23:22 +08:00 |
|
|
|
9fe2b31407
|
feat: add json table definitions for all models (converted from xlsx)
|
2026-05-21 12:46:36 +08:00 |
|
|
|
7886376c0e
|
bugfix
|
2026-03-30 14:45:09 +08:00 |
|
|
|
a78eae8664
|
bugfix
|
2026-01-05 17:39:55 +08:00 |
|
|
|
6faf88b224
|
first commit
|
2025-07-16 14:32:14 +08:00 |
|