kingdee_query_stock_in
Query purchase stock-in receipts by supplier, warehouse, date, or document status to retrieve completed or in-transit receipt and supplier information.
Instructions
查询采购入库单。
对应金蝶 ApiDoc 库存管理域「采购入库」模块,FormId: STK_InStock。 用于查询已完成/在途的采购入库单及其供应商信息,支持按供应商、仓库、日期、单据状态筛选。
⚠️ 字段 Key 警示(真机实测,范探源已验证): 本单据业务伙伴是供应商,字段 Key 用 FSupplierId(注意与销售类单据的 FCustId / FCustomerID 不同,采购入库单的客户字段并不存在)。误用 FCustId 会报「字段不存在」。 字段 Key 一律以 kingdee_get_fields 元数据为准。
⚠️ 动作范围说明:标准保存/提交/审核动作已由通用 kingdee_save_bill / kingdee_submit_bills / kingdee_audit_bills 等按 FormId 参数化覆盖,本工具仅做查询,不负责写操作。
常用 filter_string:
已审核: "FDocumentStatus='C'"
指定供应商: "FSupplierId.FNumber='V001'"
日期区间: "FDate>='2026-05-01' and FDate<='2026-05-31'"
推荐 field_keys(已按本环境元数据校验可用): FID,FBillNo,FDate,FDocumentStatus,FSupplierId.FName
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |