fix: standardize summary format to list with primary=id in all models
This commit is contained in:
parent
13b4a5223e
commit
a0eac5f516
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"tablename": "financial_vouchers",
|
||||
"label": "财务凭证",
|
||||
"comment": "财务凭证记录,关联合同和订单"
|
||||
},
|
||||
"summary": [
|
||||
{
|
||||
"name": "financial_vouchers",
|
||||
"title": "财务凭证",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -96,27 +99,38 @@
|
||||
{
|
||||
"name": "idx_vouchers_contract_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["contract_id"]
|
||||
"columns": [
|
||||
"contract_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_vouchers_order_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["order_id"]
|
||||
"columns": [
|
||||
"order_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_vouchers_voucher_number",
|
||||
"idxtype": "unique",
|
||||
"columns": ["voucher_number", "org_id"]
|
||||
"columns": [
|
||||
"voucher_number",
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_vouchers_org_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["org_id"]
|
||||
"columns": [
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_vouchers_type",
|
||||
"idxtype": "index",
|
||||
"columns": ["voucher_type"]
|
||||
"columns": [
|
||||
"voucher_type"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"tablename": "payments",
|
||||
"label": "支出记录",
|
||||
"comment": "支出管理,关联已核销的合同收款"
|
||||
},
|
||||
"summary": [
|
||||
{
|
||||
"name": "payments",
|
||||
"title": "支出记录",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -119,22 +122,31 @@
|
||||
{
|
||||
"name": "idx_payments_contract_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["contract_id"]
|
||||
"columns": [
|
||||
"contract_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_payments_payment_number",
|
||||
"idxtype": "unique",
|
||||
"columns": ["payment_number", "org_id"]
|
||||
"columns": [
|
||||
"payment_number",
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_payments_org_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["org_id"]
|
||||
"columns": [
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_payments_status",
|
||||
"idxtype": "index",
|
||||
"columns": ["payment_status"]
|
||||
"columns": [
|
||||
"payment_status"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"tablename": "receipt_allocations",
|
||||
"label": "收款分配",
|
||||
"comment": "收款在多个订单间的分配记录"
|
||||
},
|
||||
"summary": [
|
||||
{
|
||||
"name": "receipt_allocations",
|
||||
"title": "收款分配",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -81,22 +84,30 @@
|
||||
{
|
||||
"name": "idx_allocations_receipt_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["receipt_id"]
|
||||
"columns": [
|
||||
"receipt_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_allocations_order_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["order_id"]
|
||||
"columns": [
|
||||
"order_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_allocations_receivable_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["receivable_id"]
|
||||
"columns": [
|
||||
"receivable_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_allocations_org_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["org_id"]
|
||||
"columns": [
|
||||
"org_id"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
@ -1,9 +1,12 @@
|
||||
{
|
||||
"summary": {
|
||||
"tablename": "receipts",
|
||||
"label": "收款记录",
|
||||
"comment": "客户收款记录管理"
|
||||
},
|
||||
"summary": [
|
||||
{
|
||||
"name": "receipts",
|
||||
"title": "收款记录",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"name": "id",
|
||||
@ -103,22 +106,31 @@
|
||||
{
|
||||
"name": "idx_receipts_customer_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["customer_id"]
|
||||
"columns": [
|
||||
"customer_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_receipts_receipt_number",
|
||||
"idxtype": "unique",
|
||||
"columns": ["receipt_number", "org_id"]
|
||||
"columns": [
|
||||
"receipt_number",
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_receipts_org_id",
|
||||
"idxtype": "index",
|
||||
"columns": ["org_id"]
|
||||
"columns": [
|
||||
"org_id"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "idx_receipts_status",
|
||||
"idxtype": "index",
|
||||
"columns": ["receipt_status"]
|
||||
"columns": [
|
||||
"receipt_status"
|
||||
]
|
||||
}
|
||||
],
|
||||
"codes": []
|
||||
|
||||
@ -89,9 +89,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"summary": {
|
||||
"tablename": "receivables",
|
||||
"label": "应收款项",
|
||||
"comment": "合同应收款项管理"
|
||||
"summary": [
|
||||
{
|
||||
"name": "receivables",
|
||||
"title": "应收款项",
|
||||
"primary": "id",
|
||||
"catelog": "entity"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user