kingdee_forbid_bills
Forbids (disables) Kingdee master data records such as customers, suppliers, materials, or warehouses by FormId and bill IDs or numbers, so you can block inactive base data without manual ERP steps.
Instructions
禁用基础资料(opNumber=Forbid,非 UnForbid;Disable 已废弃慎用)。
FormId 参数化通用工具(非某单专用,理由:禁用是标准动作应走通用工具防重复), 仅适用于基础资料(如 BD_Customer / BD_Supplier / BD_Material / BD_Stock 等)。
action 依据:范探源 2026-08-07 三重证据查证 + QA 严过关真机实测——禁用 = Forbid, Disable 已废弃慎用,勿用 UnForbid(无此常量)。
端点/格式:ExecuteOperation,opNumber=Forbid 放顶层,data 只放业务参数。
传参:bill_ids(FID 列表,优先)或 bill_nos(编号列表,基础资料用 FNumber),至少一个。
二开基础资料自定义禁用动作时,可显式传 operation 覆盖默认 Forbid。
Returns: str: JSON,含 success / fid / ids / action / endpoint 字段(注意是 fid/ids 而非 id)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |