WebAPI接口生成生产入库单时无法添加多条明细
金蝶云社区-我还年轻
我还年轻
0人赞赏了该文章 2,279次浏览 未经作者许可,禁止转载编辑于2017年06月08日 10:10:20

[tr][td]调用K3Cloud WebAPI接口保存生产入库单时,需要生成一条单据其中含有多条分录明细。
用如下JSON语句生成单据后只有一条明细。
{
"Creator": "Interface",
"NeedUpDateFields": [
""
],
"Model": {
"FID": 0,
"FBillType": {
"FNumber": "SCDD03_SYS"
},
"FDate": "/Date(1496678400000+0800)/",
"FStockOrgId": {
"FNumber": "101"
},
"FPrdOrgId": {
"FNumber": "101"
},
"FOwnerId0": {
"FNumber": "101"
},
"FIsEntrust": "false",
"FEntity": [
{
"FEntryID": 0,
"FSrcInterId": 102556,
"FSrcEntryId": 103009,
"FSrcEntrySeq": 1,
"FMoId": 102556,
"FMoEntryId": 103009,
"FMoEntrySeq": 1,
"FMaterialId": {
"FNumber": "Y.01.03.0042A"
},
"FMustQty": 24.91,
"FRealQty": 24.91,
"FUnitID": {
"FNumber": "104934"
},
"FLot": {
"FNumber": "W1705027Y"
},
"FStockId": {
"FNumber": "101.21.01.01"
},
"FProduceDate": "/Date(1496678400000+0800)/",
"FBaseMustQty": 24910,
"FISBACKFLUSH": "false",
"FStockUnitId": {
"FNumber": "kg"
},
"FStockRealQty": 24.91,
"FCostRate": 100,
"FMoBillNo": "MO001945",
"FSrcBillType": "PRD_MO",
"FSrcBillNo": "MO001945",
"FEntity_Link": [
{
"FEntity_Link_FFlowId": "",
"FEntity_Link_FFlowLineId": "",
"FEntity_Link_FRuleId": "PRD_MO2INSTOCK",
"FEntity_Link_FSTableName": "T_PRD_MOENTRY",
"FEntity_Link_FSBillId": 102556,
"FEntity_Link_FSId": 103009,
"FEntity_Link_FBaseUnitQtyOld": 10,
"FEntity_Link_FBaseUnitQty": 10
}
]
},
{
"FEntryID": 0,
"FSrcInterId": 102556,
"FSrcEntryId": 103009,
"FSrcEntrySeq": 1,
"FMoId": 102556,
"FMoEntryId": 103009,
"FMoEntrySeq": 1,
"FMaterialId": {
"FNumber": "Y.01.03.0042A"
},
"FMustQty": 24.96,
"FRealQty": 24.96,
"FUnitID": {
"FNumber": "104934"
},
"FLot": {
"FNumber": "W1705027Y"
},
"FStockId": {
"FNumber": "101.21.01.01"
},
"FProduceDate": "/Date(1496678400000+0800)/",
"FBaseMustQty": 24960,
"FISBACKFLUSH": "false",
"FStockUnitId": {
"FNumber": "kg"
},
"FStockRealQty": 24.96,
"FCostRate": 100,
"FMoBillNo": "MO001945",
"FSrcBillType": "PRD_MO",
"FSrcBillNo": "MO001945",
"FEntity_Link": [
{
"FEntity_Link_FFlowId": "",
"FEntity_Link_FFlowLineId": "",
"FEntity_Link_FRuleId": "PRD_MO2INSTOCK",
"FEntity_Link_FSTableName": "T_PRD_MOENTRY",
"FEntity_Link_FSBillId": 102556,
"FEntity_Link_FSId": 103009,
"FEntity_Link_FBaseUnitQtyOld": 10,
"FEntity_Link_FBaseUnitQty": 10
}
]
}
]
}
}