financial_management/json/receivables.json
yumoqing 09c374d47a fix: rewrite all CRUD JSON files to match crud-definition-spec
- Replace wrong format (tablename/grid/form/joins/select_fields/widget)
  with correct spec format (tblname/params/browserfields/editexclouded/alters)
- Use uitype:code with data arrays for dropdown fields
- Add logined_userorgid for multi-tenant data isolation
- Only reference actual table fields, no cross-table joins
- Hide system fields (id, org_id, created_at, updated_at) in browser/edit views

Files: financial_vouchers.json, payments.json, receipt_allocations.json, receipts.json, receivables.json
2026-05-07 10:55:45 +08:00

26 lines
964 B
JSON

{
"tblname": "receivables",
"title": "应收款项",
"params": {
"sortby": ["due_date asc"],
"logined_userorgid": "org_id",
"confidential_fields": [],
"browserfields": {
"exclouded": ["id", "order_id", "contract_id", "customer_id", "org_id"],
"alters": {
"status": {
"uitype": "code",
"data": [
{"value": "pending", "text": "待收款"},
{"value": "partial", "text": "部分收款"},
{"value": "completed", "text": "已完成"},
{"value": "overdue", "text": "已逾期"},
{"value": "cancelled", "text": "已取消"}
]
}
}
},
"editexclouded": ["id", "order_id", "contract_id", "customer_id", "org_id", "created_at", "updated_at", "received_amount"]
}
}