financial_management/models/receipt_allocations.json

114 lines
2.8 KiB
JSON
Raw 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": "receipt_allocations",
"title": "收款分配",
"primary": "id",
"catelog": "entity"
}
],
"fields": [
{
"name": "id",
"title": "ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "主键"
},
{
"name": "receipt_id",
"title": "收款ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "关联的收款记录ID"
},
{
"name": "order_id",
"title": "订单ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "关联的订单ID"
},
{
"name": "receivable_id",
"title": "应收ID",
"type": "str",
"length": 64,
"nullable": false,
"comments": "关联的应收记录ID"
},
{
"name": "allocated_amount",
"title": "分配金额",
"type": "decimal",
"length": "15,2",
"nullable": false,
"comments": "分配给该订单的金额"
},
{
"name": "allocation_percentage",
"title": "分配比例",
"type": "decimal",
"length": "5,4",
"nullable": true,
"comments": "分配比例0-1之间"
},
{
"name": "contract_id",
"title": "合同ID",
"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": "创建时间"
}
],
"indexes": [
{
"name": "idx_allocations_receipt_id",
"idxtype": "index",
"idxfields": [
"receipt_id"
]
},
{
"name": "idx_allocations_order_id",
"idxtype": "index",
"idxfields": [
"order_id"
]
},
{
"name": "idx_allocations_receivable_id",
"idxtype": "index",
"idxfields": [
"receivable_id"
]
},
{
"name": "idx_allocations_org_id",
"idxtype": "index",
"idxfields": [
"org_id"
]
}
],
"codes": []
}