/yonbip/scm/purinrecord/mergeSourceData/save{
"operation": {
"method": "none"
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | resubmitCheckKey | resubmitCheckKey | string | 1 | 必填 | 保证请求的幂等性,该值由客户端生成,并且必须是全局唯一的,长度不能超过32位。更多信息,请参见«MDD幂等性» |
| 2 | mergeSourceData | mergeSourceData | string | 1 | 必填 | 合并上游数据,固定值传入true。 |
| 3 | needCalcLines | needCalcLines | boolean | 1 | 可选 | 表体行计算标识:不传或传入false时不对子表进行二次计算,数量及价格相关从上游带入;为true时,以数量进行件数、计价数量相关反算,金额相关计算依据以参数calcLinesKey为准; |
| 4 | calcLinesKey | calcLinesKey | string | 1 | 可选 | 表体行计算依据,不传或传入null时默认原币无税金额(oriMoney),支持传入:oriUnitPrice、oriTaxUnitPrice、oriMoney、oriSum、natUnitPrice、natTaxUnitPrice、natMoney、natSum。作为计算依据的金额类字段,表体中对应参数不可为空。 |
| 5 | code | code | string | 1 | 可选 | 单据编号:以系统编码规则配置为准:系统设置为手工编号时必输,系统设置为自动编号时非必输 |
| 6 | vouchdate | vouchdate | string | 1 | 必填 | 单据日期,日期格式:YYYYMMDD |
| 7 | bustype | bustype | string | 1 | 可选 | 交易类型id,或交易类型code;业务流中未配置交易类型且未设置默认交易类型时必输。 |
| 8 | warehouse | warehouse | string | 1 | 可选 | 仓库id,或仓库code;上游单据未指定仓库时必输 |
| 9 | memo | memo | string | 1 | 可选 | 备注 |
| 10 | _status | _status | string | 1 | 必填 | 操作标识, Insert:新增 |
| 11 | purInRecords | purInRecords | object | 1 | 必填 | 采购入库单子表 |
| 12 | makeRuleCode | makeRuleCode | string | 1 | 必填 | 生单规则编码,固定值。订单入库:st_purchaseorder,订单退库:st_purchaseorder3,退货入库:st_purchaseorder_return,到货入库:pu_arrivalorder |
| 13 | sourceid | sourceid | string | 1 | 必填 | 上游单据主表id |
| 14 | sourceautoid | sourceautoid | string | 1 | 必填 | 上游单据子表id |
| 15 | batchno | batchno | string | 1 | 可选 | 批次号,批次管理的物料必输 |
| 16 | producedate | producedate | string | 1 | 可选 | 生产日期,效期管理的物料必输 |
| 17 | goodsposition | goodsposition | string | 1 | 可选 | 货位id,或货位code;仓库为货位仓且开启了货位记存量时必输 |
| 18 | qty | qty | int | 1 | 可选 | 数量,默认上游带入,若传入数量请确保表体行计算标识needCalcLines=true,并确认calcLinesKey是否符合实际业务场景 |
| 19 | oriUnitPrice | oriUnitPrice | int | 1 | 可选 | 无税单价,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 20 | oriTaxUnitPrice | oriTaxUnitPrice | int | 1 | 可选 | 含税单价,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 21 | oriMoney | oriMoney | int | 1 | 可选 | 无税金额,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 22 | oriSum | oriSum | int | 1 | 可选 | 含税金额,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 23 | natUnitPrice | natUnitPrice | int | 1 | 可选 | 本币无税单价,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 24 | natTaxUnitPrice | natTaxUnitPrice | int | 1 | 可选 | 本币含税单价,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 25 | natMoney | natMoney | int | 1 | 可选 | 本币无税金额,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 26 | natSum | natSum | int | 1 | 可选 | 本币含税金额,仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 27 | memo | memo | string | 1 | 可选 | 备注 |
| 28 | _status | _status | string | 1 | 必填 | 操作标识, Insert:新增 |
| 29 | purInRecordsSNs | purInRecordsSNs | object | 1 | 可选 | 序列号孙表 |
| 30 | sn | sn | string | 1 | 可选 | 序列号,存在序列号时必填 |
| 31 | _status | _status | string | 1 | 可选 | 操作标识,Insert:新增,存在序列号时必填 |
暂无参数说明
用友BIP的接口:采购入库来源生单保存_v1(/yonbip/scm/purinrecord/mergeSourceData/save),由轻易云数据集成平台 API 资产管理模块整理收纳,并随用友BIP版本更新同步更新。