153 lines
3.9 KiB
JSON
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"summary": [
{
"name": "payments",
"title": "支出记录",
"primary": "id",
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "主键"
},
{
"name": "payment_number",
"title": "支出编号",
"type": "str",
"length": 64,
"nullable": false,
"comments": "支出编号"
},
{
"name": "contract_id",
"title": "合同ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "关联合同ID必须是已核销收款的合同"
},
{
"name": "vendor_id",
"title": "供应商ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "供应商ID"
},
{
"name": "payment_amount",
"title": "支出金额",
"type": "decimal",
"length": "15,2",
"nullable": false,
"comments": "支出金额"
},
{
"name": "payment_date",
"title": "支出日期",
"type": "date",
"nullable": false,
"comments": "实际支出日期"
},
{
"name": "payment_method",
"title": "支出方式",
"type": "str",
"length": 32,
"nullable": false,
"comments": "支出方式: bank_transfer, cash, check, other"
},
{
"name": "payment_status",
"title": "支出状态",
"type": "str",
"length": 32,
"nullable": false,
"comments": "状态: pending(待处理), processed(已处理), verified(已核销)"
},
{
"name": "description",
"title": "备注",
"type": "str",
"length": 500,
"nullable": true,
"comments": "备注信息"
},
{
"name": "approved_by",
"title": "审批人",
"type": "str",
"length": 64,
"nullable": true,
"comments": "审批人ID"
},
{
"name": "created_by",
"title": "创建人",
"type": "str",
"length": 64,
"nullable": false,
"comments": "财务人员ID"
},
{
"name": "org_id",
"title": "组织ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "组织ID用于多租户隔离"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": false,
"comments": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"nullable": false,
"comments": "更新时间"
}
],
"indexes": [
{
"name": "idx_payments_contract_id",
"idxtype": "index",
"idxfields": [
"contract_id"
]
},
{
"name": "idx_payments_payment_number",
"idxtype": "unique",
"idxfields": [
"payment_number",
"org_id"
]
},
{
"name": "idx_payments_org_id",
"idxtype": "index",
"idxfields": [
"org_id"
]
},
{
"name": "idx_payments_status",
"idxtype": "index",
"idxfields": [
"payment_status"
]
}
],
"codes": []
}