请问总部老师:
用webAPI方式开发的保存“采购入库单”都是OK的,不选“来料检验”的物料一切正常!
但是现在有物料属性选了“来料检验”的(检验为:合格 或 让步待用),保存后就会报以下错误,排查了但没找到原因?
请总部老师帮忙看看!谢谢
错误信息:
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"FInStockEntry","Message":"分录实体“明细信息”是必填项","DIndex":0}],"SuccessEntitys":[]},"Id":""}}
---JSON字符串-----------------------------------{ "Creator": "kingdee", "NeedUpDateFields": [ "" ], "Model": { "FID": 0, "FBillTypeID": { "FNumber":"RKD01_SYS" }, "FStockOrgId": { "FNumber":"100.1.09" }, "FDemandOrgId": { "FNumber":"100.1.09" }, "FPurchaseOrgId": { "FNumber":"100.1.07" }, "FPurchaseDeptId": { "FNumber":"BM000001" }, "FPurchaserId": { "FNumber":"CG006" }, "FSupplierId": { "FNumber":"01D.027" }, "FDate":"2016-8-22", "FSettleOrgId": { "FNumber":"100.1.07" }, "FSettleCurrId": { "FNumber":"RMB" }, "FOwnerIdHead": { "FNumber":"100.1.09" }, "FInStockEntry": [ { "FEntryID": 0, "FMaterialId": { "FNumber":"01.04.99.1307" }, "FUnitID": { "FNumber":"29" }, "FWWInType":"CRI", "FRealQty": 100, "FBaseUnitQty": 100, "FPrice": 233.333333, "FMustQty": 100, "FTaxPrice":272.99999961, "FEntryTaxRate": 17, "FEntryTaxAmount":3966.666661, "FTaxAmount_LC":3966.666661, "FAmount":23333.3333, "FAmount_LC":23333.3333, "FPriceUnitQty": 100, "FTaxNetPrice":233.333333, "FLot": { "FNumber":"" }, "FStockId": { "FNumber":"01.42" }, "FSRCBILLTYPEID":"PUR_ReceiveBill", "FSRCBillNo":"1608018265", "FPOOrderNo":"HSCIII16076398A16", "FInStockEntry_Link":[ { "FInStockEntry_Link_FFlowId": "", "FInStockEntry_Link_FFlowLineId": "", "FInStockEntry_Link_FRuleId":"PUR_ReceiveBill-STK_InStock", "FInStockEntry_Link_FSTableName":"T_PUR_ReceiveEntry", "FInStockEntry_Link_FSBillId":118427, "FInStockEntry_Link_FSId": 137201 } ] }, { "FEntryID": 0, "FMaterialId": { "FNumber":"01.04.99.087A-1" }, "FUnitID": { "FNumber":"35" }, "FWWInType":"QLI", "FRealQty": 400, "FBaseUnitQty": 400, "FPrice": 25.213675, "FMustQty": 400, "FTaxPrice":29.49999975, "FEntryTaxRate": 17, "FEntryTaxAmount":1714.5299, "FTaxAmount_LC":1714.5299, "FAmount": 10085.47, "FAmount_LC":10085.47, "FPriceUnitQty": 400, "FTaxNetPrice":25.213675, "FLot": { "FNumber":"" }, "FStockId": { "FNumber":"01.42" }, "FSRCBILLTYPEID":"PUR_ReceiveBill", "FSRCBillNo":"1608018265", "FPOOrderNo":"HSCIII16076398A16", "FInStockEntry_Link":[ { "FInStockEntry_Link_FFlowId": "", "FInStockEntry_Link_FFlowLineId": "", "FInStockEntry_Link_FRuleId":"PUR_ReceiveBill-STK_InStock", "FInStockEntry_Link_FSTableName":"T_PUR_ReceiveEntry", "FInStockEntry_Link_FSBillId": 118427, "FInStockEntry_Link_FSId": 137204 } ] } ] }}
推荐阅读