Hermes Agent
b17272d9d7
fix: 恢复editable配置(使用default值) - xls2ui必须配置此字段
2026-06-24 12:56:31 +08:00
Hermes Agent
583babdd4a
refactor: 移除手写CRUD dspy文件 - 改由build.sh自动生成
...
- 删除手写的add/update/delete_credit_limit.dspy
- json/credit_limit.json移除editable配置(使用默认CRUD API)
- 避免build.sh重新生成时覆盖手写代码
2026-06-24 12:36:54 +08:00
Hermes Agent
03bf5fcde0
fix: 修复datetime.now()错误 - dspy预加载datetime模块非datetime.datetime
...
- set_customer_credit.dspy: datetime.now() → datetime.datetime.now()
- add_credit_limit.dspy: 删除import, 用datetime.datetime.now()
- update_credit_limit.dspy: 删除import, 用datetime.datetime.now()
2026-06-24 12:07:19 +08:00
Hermes Agent
afb9dd5d88
fix: 修复授信表单提交 - 使用submit_url替代url, 移除手动buttons
...
- url → submit_url (Form正确的属性名)
- 移除手动buttons配置 (Form自动生成Submit/Reset工具栏)
- 移除method:POST (Form默认POST)
2026-06-24 11:36:00 +08:00
Hermes Agent
77624b1ef5
fix: 修正授信表单按钮bind target
...
- 保存按钮 submit target: self → credit_form
- 取消按钮 close target: self → PopupWindow
2026-06-24 10:56:04 +08:00
Hermes Agent
625c6b6873
fix: 修复新增客户授信表单submit无响应
...
- 添加 Form id: credit_form
- 保存按钮添加 submit binds
- 取消按钮添加 close binds
- Form 添加 submit 事件 bind 关闭弹窗
2026-06-24 10:42:52 +08:00
Hermes Agent
511f4b0720
fix: 充值金额用rules校验(min+number)替代无效的min属性 + 后端NaN防护
2026-06-23 15:29:51 +08:00
Hermes Agent
e17a9ac58b
bugfix
2026-06-23 15:21:42 +08:00
Hermes Agent
dbbe553857
bugfix
2026-06-23 15:20:07 +08:00
Hermes Agent
b4ed9e1a8b
fix: proxy_recharge 去掉submit_url,仅保留bind处理,修复双重提交导致充值两次的问题
2026-06-23 15:15:12 +08:00
Hermes Agent
febde765fa
fix: proxy_recharge 充值金额添加min=0.01前端校验,防止负数提交
2026-06-23 15:05:30 +08:00
Hermes Agent
4cf4d0f6b4
fix: proxy_recharge actiontype urldata→urlwidget, 后端返回widget descriptor需用urlwidget模式渲染
2026-06-23 14:39:36 +08:00
Hermes Agent
bc58cbffda
fix: 代客充值结果bind target加app.前缀(兄弟控件)
2026-06-23 14:27:19 +08:00
Hermes Agent
6f6ae6b66a
bugfix
2026-06-23 14:13:42 +08:00
Hermes Agent
56ae61a992
fix: 授信表单改为客户名称查找模式 + 代客充值RBAC路径注册
...
1. 授信表单: accountid改为customer_name文本输入,后端先精确后模糊查找客户
2. 代客充值: load_path.py添加proxy_recharge.ui和proxy_recharge_submit.dspy路径
2026-06-22 17:26:03 +08:00
Hermes Agent
f00057bb75
移除临时文件,添加/更新.gitignore
2026-06-22 15:00:22 +08:00
Hermes Agent
f9bc45b97c
feat: add i18n translations (zh/en/jp/ko) for all modules
2026-06-19 15:01:15 +08:00
Hermes Agent
656fe2fc51
feat: 新增代客充值和错帐处理页面
...
- proxy_recharge.ui: Form表单输入客户用户名+充值金额
- proxy_recharge_submit.dspy: 查找用户+创建payment_log+调用recharge_accounting
- error_accounting.ui: 错帐处理管理页面(placeholder,含设计文档)
2026-06-18 13:33:16 +08:00
Hermes Agent
029a76f960
bugfix
2026-06-16 17:32:38 +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
2c6c0570f2
bugfix
2026-06-12 15:06:13 +08:00
414efa7e8f
bugfix
2026-06-11 14:02:39 +08:00
72b42cb654
bugfix
2026-06-10 18:28:30 +08:00
7475b30527
bugfix
2026-06-10 17:59:36 +08:00
c637d76a25
fix: replace wildcard patterns with explicit per-file entries in load_path.py
2026-06-04 13:03:27 +08:00
c4a869c9ff
fix: billing 500 error (sqlExe returns list not dict) + enlarge popup windows (recharge 600x500, detail 700x550)
2026-05-31 14:36:27 +08:00
434cfe950c
feat: billing - add stats summary and Excel download
2026-05-31 14:18:53 +08:00
f62e397c5a
chore: remove vim swap file
2026-05-31 14:11:20 +08:00
c141134001
fix: use this.render(params) instead of this.loadData for Tabular (DataViewer API)
2026-05-31 14:11:14 +08:00
dd12be3833
bugix
2026-05-31 14:08:52 +08:00
7fbc826330
bugix
2026-05-31 14:06:32 +08:00
1029078b56
bugix
2026-05-31 14:05:05 +08:00
0080bbd7c4
fix: IconBar click not working - add id and reference in binds instead of self
2026-05-31 14:00:08 +08:00
8d447b90ea
refactor: billing - use Form title, Tabular always present, form submit loadData via script
2026-05-31 13:56:56 +08:00
6d3dcf2db9
fix: billing layout - wrap Form in fixed-height VBox, Tabular as filler
2026-05-31 13:46:33 +08:00
eec08d684c
bugfix
2026-05-31 13:42:07 +08:00
7c2c584407
fix: billing layout - Form fixed height, Tabular css filler
2026-05-31 13:30:32 +08:00
7361614f89
fix: billing query - use Tabular instead of DataViewer, fix form submit target
...
- Changed DataViewer to Tabular with row_options.fields for proper table rendering
- Form submit target changed from 'self' to 'billing_page' (root VBox ID)
with mode:replace, preventing nested page loading inside Form
- Fixed page_size to page_rows (correct parameter name)
- Added column definitions: date, time, subject, direction, summary, amount, balance
2026-05-31 13:24:32 +08:00
1fddb96291
fix: myaccounts.ui icon click - fix event name, entire_url syntax, paths
2026-05-31 11:48:24 +08:00
8a3f1955d3
fix: collation mismatch in SQL JOINs + billing date fields use uitype:date
2026-05-31 11:44:58 +08:00
997c7a445e
feat: 新增账单查询页面,按机构id+日期范围查询acc_detail
2026-05-31 10:27:14 +08:00
78ff190789
feat(credit): redesign credit limit UI with dashboard, overview and management views
...
- Add hub.ui as main entry with stat cards (total/used/available/usage%)
- Add credit_overview.ui for user's own credit visualization with progress bars
- Add credit_manage.ui for distributor sales to manage customer credits
- Add set_credit_form.ui and set_customer_credit.dspy for credit adjustment
- Add credit_summary.dspy API for stats data
- Enhance creditlimit.py with get_credit_stats, get_my_credit_list, get_all_customer_credits
- Register new functions in init.py with ServerEnv
2026-05-30 21:00:27 +08:00
195a7bfb46
fix: wrap Tabular in VBox with cheight for proper scrolling
2026-05-29 22:09:45 +08:00
8f36013ad6
refactor: use wildcard % in load_path.py for auto-coverage
2026-05-29 00:52:18 +08:00
5fa058add9
fix: correct indentation in leg_accounting credit limit block
...
Two bugs fixed:
1. FATAL: lines 213-278 were indented inside the 'if new_balance < 0' block,
causing all normal (positive balance) accounting operations to be skipped.
All post-credit-check code now correctly at method body level (2 tabs).
2. LOGIC: added else clause to reset used_credit to 0 when balance returns
to non-negative (e.g. after recharge). Previously used_credit stayed
stale after account recovered from overdraft.
2026-05-28 23:05:23 +08:00
5da6ddd7d5
feat: expose credit limit functions via ServerEnv and register RBAC paths
2026-05-28 22:39:48 +08:00
9696d4334b
feat: 添加信用额度功能
...
- 新增 credit_limit 表定义和DDL
- 修改 accounting_config.py 支持信用额度透支检查
- 新增 creditlimit.py 信用额度管理模块
- 新增信用额度管理界面和CRUD API
- 支持设置/查询/更新客户信用额度
2026-05-28 19:09:04 +08:00
e34be6ad16
Merge branch 'main' of git.opencomputing.cn:yumoqing/accounting
...
# Conflicts:
# wwwroot/index.ui
# wwwroot/index.ui~be97eaf7b5edfa4867c9caa6a5e0ffd1e499faa3
2026-05-28 19:08:47 +08:00