accounting/models/acc_detail.json
ymq a7c83fadc5 fix(models): 账务表补多币种字段(currency/exchange_rate/base_amount)
get_user_currency 查 account.currency 报 Unknown column——migration SQL 给 5 张账务表
加了多币种列但 models json 未同步。逐表对齐 multi_currency_migration.sql:
- account: +currency
- bill: +currency +base_amount
- bill_detail/ledger/acc_detail: +currency +exchange_rate +base_amount
2026-08-26 17:49:31 +08:00

96 lines
2.1 KiB
JSON

{
"summary": [
{
"name": "acc_detail",
"title": "账户明细表",
"primary": [
"id"
]
}
],
"fields": [
{
"name": "id",
"title": "id",
"type": "str",
"length": 32
},
{
"name": "accountid",
"title": "账户id",
"type": "str",
"length": 32
},
{
"name": "acc_no",
"title": "明细顺序号",
"type": "short"
},
{
"name": "acc_date",
"title": "记账日期",
"type": "date"
},
{
"name": "acc_timestamp",
"title": "记账时间戳",
"type": "timestamp"
},
{
"name": "acc_dir",
"title": "记账方向",
"type": "str",
"length": 1
},
{
"name": "summary",
"title": "摘要",
"type": "str",
"length": 255
},
{
"name": "amount",
"title": "记账金额",
"type": "float",
"length": 18,
"dec": 2
},
{
"name": "currency",
"title": "币种",
"type": "str",
"length": 3,
"nullable": "yes"
},
{
"name": "exchange_rate",
"title": "汇率",
"type": "double",
"length": 14,
"dec": 6,
"nullable": "yes"
},
{
"name": "base_amount",
"title": "折本位币金额",
"type": "double",
"length": 20,
"dec": 2,
"nullable": "yes"
},
{
"name": "balance",
"title": "账户余额",
"type": "float",
"length": 18,
"dec": 2
},
{
"name": "acclogid",
"title": "账务流水id",
"type": "str",
"length": 32
}
]
}