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
92 lines
2.0 KiB
JSON
92 lines
2.0 KiB
JSON
{
|
|
"summary": [
|
|
{
|
|
"name": "bill_detail",
|
|
"title": "账单明细",
|
|
"primary": [
|
|
"id"
|
|
]
|
|
}
|
|
],
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "accounting_orgid",
|
|
"title": "账务机构id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "billid",
|
|
"title": "账单ID",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "账务说明",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "participantid",
|
|
"title": "记账方id",
|
|
"type": "str",
|
|
"length": 32
|
|
},
|
|
{
|
|
"name": "participanttype",
|
|
"title": "记账方类型",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "subjectname",
|
|
"title": "科目名称",
|
|
"type": "str",
|
|
"length": 255
|
|
},
|
|
{
|
|
"name": "accounting_dir",
|
|
"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"
|
|
}
|
|
]
|
|
}
|