kingdee_unclose_bill
Reopen fully closed Kingdee Cloud bills to restore business on sales orders, purchase requisitions, and delivery notices. Provide a form ID with bill IDs or bill numbers to run the correct unclose operation.
Instructions
整单反关闭单据(已整单关闭的单据恢复业务,opNumber 随表单而异)。
FormId 参数化通用工具(非某单专用,理由:反关闭是标准动作应走通用工具防重复), 适用于单据(销售订单、采购申请单、发货通知单等)。
action 依据:范探源 2026-08-07 三重证据查证 + QA 严过关真机实测——反关闭 opNumber 因表单而异(如 SAL_SaleOrder=YLUnBillClose、PUR_Requisition=Unclose、 PUR_PurchaseOrder=BillUnClose、SAL_DELIVERYNOTICE=UncloseBill),无法静态固定,需真机确认。
端点/格式:ExecuteOperation,opNumber 放顶层,data 只放业务参数。
解析优先级:显式 operation 参数 > 该 form_id 元数据 Operations 按中文名 「整单反关闭/反关闭」匹配 OperationNumber(复用元数据缓存 _query_metadata); 匹配不到返回明确中文错误(提示显式传 operation)。
传参:bill_ids(FID 列表,优先)或 bill_nos(单据编号列表),至少一个。
Returns: str: JSON,含 success / fid / ids / action / action_source / endpoint 字段
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "kingdee_unclose_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |