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
This commit is contained in:
parent
edb280ad79
commit
a7c83fadc5
@ -55,6 +55,29 @@
|
|||||||
"length": 18,
|
"length": 18,
|
||||||
"dec": 2
|
"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",
|
"name": "balance",
|
||||||
"title": "账户余额",
|
"title": "账户余额",
|
||||||
@ -69,4 +92,4 @@
|
|||||||
"length": 32
|
"length": 32
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,6 +33,13 @@
|
|||||||
"type": "str",
|
"type": "str",
|
||||||
"length": 32
|
"length": 32
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "currency",
|
||||||
|
"title": "币种",
|
||||||
|
"type": "str",
|
||||||
|
"length": 3,
|
||||||
|
"nullable": "yes"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "subjectid",
|
"name": "subjectid",
|
||||||
"title": "科目号",
|
"title": "科目号",
|
||||||
@ -97,4 +104,4 @@
|
|||||||
"textfield": "orgname"
|
"textfield": "orgname"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,6 +58,21 @@
|
|||||||
"length": 18,
|
"length": 18,
|
||||||
"dec": 2
|
"dec": 2
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "currency",
|
||||||
|
"title": "币种",
|
||||||
|
"type": "str",
|
||||||
|
"length": 3,
|
||||||
|
"nullable": "yes"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "base_amount",
|
||||||
|
"title": "折本位币金额",
|
||||||
|
"type": "double",
|
||||||
|
"length": 20,
|
||||||
|
"dec": 2,
|
||||||
|
"nullable": "yes"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "bill_date",
|
"name": "bill_date",
|
||||||
"title": "账单日期",
|
"title": "账单日期",
|
||||||
@ -75,4 +90,4 @@
|
|||||||
"length": 1
|
"length": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,6 +63,29 @@
|
|||||||
"type": "float",
|
"type": "float",
|
||||||
"length": 18,
|
"length": 18,
|
||||||
"dec": 2
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,6 +45,29 @@
|
|||||||
"type": "float",
|
"type": "float",
|
||||||
"length": 18,
|
"length": 18,
|
||||||
"dec": 2
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user