生产用料清单webapi保存 新增行json模板
{
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "false", //这个参数如果是保存原来已经存在分录的单据这个参数设置为true 如果是每次都是保存没有一条分录的单据的话这个可以设置为true 相当于会删除所有原来的分录
"SubSystemId": "",
"IsVerifyBaseDataField": "true",
"IsEntryBatchFill": "false", //这个参数在逻辑较复杂的单据中都要设置为false
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"Model": {
"FID": 242833,
"FBillNo": "PPBOM00011870", //这里表头只有这两个字段是因为用料清单比较特殊 是由生产订单保存生成的 所以保存用料清单时表头数据一定存在这里只需要将内码和单据编号给上值就好了
"FEntity": [
{
"FEntryID": 0,//如果是修改原用料清单表体分录要取数据库分录内码 ,如果是新增行这里给0
"FMaterialID2": {
"FNumber": "LH04" //物料是给编码 不是给数据库的内码
},
"FMaterialType": "1", //子项类型 BOSIDE查找枚举
"FSupplyType": "",
"FDosageType": "2",
"FNumerator": 1, //分母一定不能为0 同理还有基本单位分母
"FDenominator": 1,
"FUnitID2": {
"FNumber": "Pcs"
},
"FFixScrapQty": 0,
"FScrapRate": 0,
"FNeedDate2": "2021-01-22", //这里的需求日期有校验 不能大于生产订单对应的计划完工日期
"FSupplyOrg": {
"FNumber": "100"
},
"FIsKeyComponent": "false",
"FBomId2": {
"FNumber": ""
},
"FAllowOver": "false",
"FWorkCalId2": {
"FNumber": ""
},
"FBaseNumerator": 1,
"FReserveType": "",
"FBaseFixScrapQTY": 0,
"FAuxPropID": null,
"FBASEDENOMINATOR": 1,
"FOverControlMode": "",
"FSMId": {
"FNUMBER": ""
},
"FSMEntryId": 0,
"FChildSupplyOrgId": {
"FNumber": ""
},
"FOptQueue": "",
"FStockStatusId": {
"FNUMBER": "KCZT01_SYS"
},
"FEntrustPickOrgId": {
"FNumber": ""
},
"FOperID": 0,
"FLot": {
"FNumber": ""
},
"FOffsetTime": 0,
"FTimeUnit2": "",
"FProcessID": {
"FNumber": ""
},
"FIssueType": "1",
"FStockID": {
"FNumber": "" //设置了仓库下推领料单就会按照仓库进行领料 没有设置下推领料单按照单据转换中的批号拣货进行领料
},
"FStockLOCID": null,
"FSrcTransOrgId": {
"FNumber": ""
},
"FSrcTransStockId": {
"FNumber": ""
},
"FSrcTransStockLocId": null,
"FNoPickedQty": 0,
"FInventoryQty": 0,
"FIsSkip": "false",
"FISMinIssueQty": "false",
"FIsGetScrap": "false",
"FPPBomEntryType": "0",
"FUPDATERID": {
"FUserID": ""
},
"FUPDateDate": "2021-01-22",
"FOwnerTypeId": "BD_OwnerOrg",
"FSupplyMode": "Z",
"FBaseNoPickedQty": 0,
"FIsMrpRun": "false",
"FSrcPPBOMID": 0,
"FSrcPPBOMEntryId": 0,
"FStockReadyQty": 0,
"FBaseStockReadyQty": 0,
"FBaseUnitID1": {
"FNumber": "Pcs"
},
"FReturnNoOkQty": 0,
"FMoType1": {
"FNumber": "SCDD03_SYS"
},
"FOwnerID": {
"FNumber": "100"
},
"FGroupByOwnerId": {
"FNumber": ""
},
"FIsExpand": "false",
"FCheckReturnMtrl": "false",
"FBaseReturnAppSelQty": 0,
"FReturnAppSelQty": 0
}
]
}
}
注意:所有的webapi对应的字段顺序要按照系统中给出的顺序 以免字段之间有值更新事件或者实体服务规则等影响 导致字段赋值不成功
生产用料清单webapi保存 新增行json模板
本文2024-09-23 03:23:03发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-158512.html