webapi保存生产汇报单:“业务流程”字段无法保存的问题(可适用其他的单据)
1、下面的json可以作为标准输入参考,通过webapi保存主产品分录,并反写到生产订单,额外需要赋值的字段,对应进行赋值即可(没有涉及到序列号)
{
"Creator": "",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "true",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "true",
"ValidateFlag": "true",
"NumberSearch": "true",
"InterationFlags": "",
"IsAutoSubmitAndAudit": "false",
"Model": {
"FID": 0,
"FBillType": {
"FNUMBER": "SCHBD02_SYS"
},
"FDocumentStatus": "C",
"FDate": "2019-07-25 00:00:00",
"FPrdOrgId": {
"FNumber": "100"
},
"FEntity": [
{
"FEntryId":0,
"FSrcEntryId":105502,
"FIsNew": false,
"FMaterialId": {
"FNumber": "3601001"
},
"FProductType": "1",
"FReportType": {
"FNumber": "HBLX01_SYS"
},
"FUnitID": {
"FNumber": "Pcs"
},
"FWorkshipId": {
"FNumber": "BM000001"
},
"FCheckProduct": true,
"FIsEntrust": false,
"FSrcBillType": "PRD_MO",
"FMoBillNo": "MO000176",
"FSrcBillNo": "MO000176",
"FSrcEntrySeq":1,
"FQuaQty":5,
"FFinishQty":5,
"FBomId": {
"FNumber": "3601001_V1.4"
},
"FStartTime": "2019-07-25 00:00:00",
"FEndTime": "2019-07-25 00:00:00",
"FTimeUnitId": "1",
"FStandHourUnitId": "3600",
"FSrcInterId": 103502,
"FMoId": 103502,
"FMoEntryId": 105502,
"FMoEntrySeq":1,
"FBaseUnitId": {
"FNumber": "Pcs"
},
"FStockInOrgId": {
"FNumber": "100"
},
"FOwnerTypeId": "BD_OwnerOrg",
"FOwnerId": {
"FNumber": "100"
},
"FCostRate": 100.0,
"FISBACKFLUSH": true,
"FMOMAINENTRYID": 105502,
"FEntity_Link":[
{
"FEntity_Link_FFlowId":"f11b462a-8733-40bd-8f29-0906afc6a201",
"FEntity_Link_FFlowLineId":4,
"FEntity_Link_FRuleId":"PRD_MO2MORPT",
"FEntity_Link_FSTableName":"T_PRD_MOENTRY",
"FEntity_Link_FSBillId":"103502",
"FEntity_Link_FSId":"105502"
}
],
"FBFLowId":
{
"FID":"f11b462a-8733-40bd-8f29-0906afc6a201"
}
}
]
}
}
2、在调试过程中,遇到生产汇报单上的业务流程无法赋值,如下操作,可解决
3、适用于其他的单据
webapi保存生产汇报单:“业务流程”字段无法保存的问题(可适用其他的单据)
本文2024-09-23 03:23:41发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-158581.html