webapi保存入库单 json模板 以源单类型为生产订单为例
{
"Creator": "",
"IsEntryBatchFill": "true",//保存多行分录需要设置为false
"ValidateFlag": "true",
"NumberSearch": "true",
"IsAutoSubmitAndAudit": "true",
"Model": {
"FID": 0,//新增的入库单内码为0
"FBillType": {
"FNUMBER": "SCRKD02_SYS"//入库单对应单据类型
},
"FDate": "2019-11-09",
"FStockOrgId": {
"FNumber": "100.01"
},
"FStockId0": {
"FNumber": "CK007"
},
"FPrdOrgId": {
"FNumber": "100.01"
},
"FWorkShopId": {
"FNumber": "SS200205"
},
"FOwnerTypeId0": "BD_OwnerOrg",
"FOwnerId0": {
"FNumber": "100.01"
},
"FSTOCKERID": {
"FNAME": ""
},
"FDescription": "",
"FIsEntrust": "false",
"FCurrId": {
"FNumber": "PRE001"
},
"F_ora_Assistant": {
"FNumber": "02"
},
"FEntrustInStockId": 0,
"FScanBox": "",
"FEntity": [
{
"FEntryID": 0,//新增的入库单分录id为0
"FSrcEntryId": 111087,//源单分录id 汇报入库为汇报单对应的分录id 直接入库为生产订单对应的分录id
"FIsNew": "false", //如果保存主产品需要为false(主产品只能是选单返回的结果不能是新增行) 新增行为true
"FMaterialId": {
"FNumber": "303020100415"
},
"FCheckProduct": "false",//物料是否产品检验
"FInStockType": "1",//入库类型 合格品入库等
"FStockId": {
"FNumber": "CK007"
},
"FProductType": "1",//产品类型 如果保存主产品 物料勾选可为主产品 如果保存联副产品物料勾选联副产品
"FUnitID": {
"FNumber": "㎡"
},
"FMustQty": 143750,
"FRealQty": 12780,
"FCostRate": 0,
"FBaseUnitId": {
"FNumber": "㎡" //基本单位要与物料上的基本单位一致
},
"FBaseMustQty": 143750,
"FBaseRealQty": 12780,
"FBasePrdRealQty": 12780,
"FBaseSelReStkQty": 0,
"FOwnerTypeId": "BD_OwnerOrg",
"FOwnerId": {
"FNumber": "100.01"
},
"FStockLocId": null,
"FBomId": {
"FNumber": ""
},
"FLot": {
"FNumber": ""
},
"FISBACKFLUSH": "true",
"FAuxpropId":null,
"FMtoNo": "",
"FProjectNo": "",
"FWorkShopId1": {
"FNumber": "SS200205"
},
"FShiftGroupId": {
"FNumber": ""
},
"FMoBillNo": "M0039472",
"FMoId": 110672,
"FMoEntryId": 111087,
"FMoEntrySeq": 1,
"FMemo": "",
"FStockUnitId": {
"FNumber": "㎡"
},
"FStockRealQty": 12780,
"FSecUnitId": {
"FNumber": ""//库存辅单位要与物料辅单位一致
},
"FSecRealQty": 0,
"FSrcBillType": "PRD_MO",
"FSrcBillNo": "M0039472",
"FSrcInterId": 110672,
"FIsFinished": "false",
"FStockStatusId": {
"FNumber": "KCZT01_SYS"
},
"FSrcEntrySeq": 1,
"FMOMAINENTRYID": 111087,
"FKeeperTypeId": "BD_KeeperOrg",
"FKeeperId": {
"FNumber": "100.01"
},
"FProduceDate": "",
"FSelReStkQty": 0,
"FExpiryDate": "",
"FSrcBusinessType": "",
"FSendRowId": "",
"FSerialSubEntity": null,
"FEntity_Link": [
{//link信息模板 保存主产品类型的入库单 需要有上下游单据关联关系 因为主产品的入库单是通过界面选单来的
"FEntity_Link_FFlowId":"业务流程字段",
"FEntity_Link_FRuleId": "PRD_MO2INSTOCK",
"FEntity_Link_FSTableName": "T_PRD_MOENTRY",
"FEntity_Link_FSBillId": "110672",
"FEntity_Link_FSId": 111087,
"FEntity_Link_FBasePrdRealQtyOld": 143750,
"FEntity_Link_FBasePrdRealQty": 12780
}
],
"FBFLowId": {
"FID": ""//业务流程字段需要在link信息之后填入
}
}
]
}
}
webapi保存入库单 json模板 以源单类型为生产订单为例
本文2024-09-23 03:23:20发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-158541.html