各位老师,我这边碰到这样一个问题:调用API,采购订单下推采购入库单的时候采购订单上的关联数量不反写,还请各位给看看是什么问题,以下爱是请求的数据:{
"Creator": "user",
"NeedUpDateFields": [],
"NeedReturnFields": [],
"IsDeleteEntry": "True",
"SubSystemId": "",
"IsVerifyBaseDataField": "false",
"IsEntryBatchFill": "True",
"Model": {
"FID": "0",
"FBillTypeID": {
"FNumber": "RKD01_SYS"
},
"FBillNo": "",
"FDate": "2018-10-24",
"FStockOrgId": {
"FNumber": "BH01"
},
"FPurchaseOrgId": {
"FNumber": "1000"
},
"FOwnerTypeIdHead": "BD_OwnerOrg",
"FOwnerIdHead": {
"FNumber": "BH01"
},
"FDemandOrgId": {
"FNumber": "BH01"
},
"FPayOrgId": {
"FNumber": "1000"
},
"FSupplierId": {
"FNumber": "AIDI"
},
"FProviderId": {
"FNumber": "AIDI"
},
"FConfirmDate": "2018-10-24",
"FInStockFin": {
"FSettleOrgId": {
"FNumber": "1000"
},
"FSettleCurrId": {
"FNumber": "PRE001"
},
"FIsIncludedTax": "false",
"FPriceTimePoint": "1"
},
"FPurchaseDeptId": {
"FNumber": ""
},
"FReceiveDeptId": {
"FNumber": ""
},
"FPurchaserId": {
"FNumber": ""
},
"FSettleId": {
"FNumber": "AIDI"
},
"FChargeId": {
"FNumber": "AIDI"
},
"FInStockEntry": [{
"FEntryID": 0,
"FMaterialId": {
"FNumber": "3008WAIDI0001"
},
"FUnitID": {
"FNumber": "Pcs"
},
"FRealQty": 40.0,
"FMustQty": 40.0000000000,
"FPriceUnitID": {
"FNumber": "Pcs"
},
"FStockId": {
"FNumber": "BH01-01"
},
"FPrice": 50.3327590000,
"FRemainInStockUnitId": {
"FNumber": "Pcs"
},
"FStockStatusId": {
"FNumber": "KCZT01_SYS"
},
"FEntryTaxRate": 16.000000,
"F_dxd_jsj": 64.8084600000,
"FInStockEntry_Link": [{
"FInStockEntry_Link_FFlowId": "",
"FInStockEntry_Link_FFlowLineId": "",
"FInStockEntry_Link_FRuleId": "PUR_PurchaseOrder-STK_InStock",
"FInStockEntry_Link_FSTableName": "t_PUR_POOrderEntry",
"FInStockEntry_Link_FSBillId": 154802,
"FInStockEntry_Link_FSId": 430592,
"FInStockEntry_Link_FBaseQty": 40.0
}],
"FSrcBillTypeId": "CGDD01_SYS",
"FSrcBillNo": "CGDD054238"
}]
}
}
接口返回的结果为:采购入库单保存返回数据为:{"Result":{"ResponseStatus":{"IsSuccess":true,"Errors":[],"SuccessEntitys":[{"Id":261758,"Number":"CGRK168062","DIndex":0}]},"Id":261758,"Number":"CGRK168062"}}
现在的问题是:采购入库单能保存成功,也能上查下查,但采购订单的关联数量没有反写。这里面没有合并下推。
另外我按照 帖子:https://vip.kingdee.com/article/33748 里面的方法 设置了fldBaseQtyKey ,测试了多次还是没有反写关联数量。请各位给看看这是哪里的问题,谢谢!
另外 cloud 的版本是6.0.
推荐阅读