调用web Api保存应收单报错
金蝶云社区-常新勇
常新勇
0人赞赏了该文章 726次浏览 未经作者许可,禁止转载编辑于2015年12月23日 17:05:29

json格式如下
{
"Creator": "KG",
"NeedUpDateFields": [],
"Model": {
"FID": 0,
"FBillTypeID": {
"FNUMBER": "YSD01_SYS"
},
"FDATE": "2015-12-20",
"FCUSTOMERID": {
"FNUMBER": "00001"
},
"FCURRENCYID": {
"FNumber": "PRE001"
},
"FALLAMOUNTFOR": 100,
"FSETTLEORGID": {
"FNUMBER": "100"
},
"FPAYORGID": {
"FNUMBER": "100"
},
"AR_receivable__FEntityDetail": [
{
"FMATERIALID": {
"FNumber": "100110"
},
"FPRICEUNITID": {
"FNumber": "Pcs"
},
"FPriceQty": 1,
"FTaxPrice": 2,
"FPrice": 2,
"FEntryTaxRate": 20,
"FEntryDiscountRate": 20,
"FNoTaxAmountFor_D": 20,
"FDISCOUNTAMOUNTFOR": 2,
"FTAXAMOUNTFOR_D": 2,
"FALLAMOUNTFOR_D": 20
}
]
}
}
插入时报错"Errors":[{"FieldName":"","Message":"第1行分录,物料必录。"}
物料明明已经传入,有人知道是什么原因吗?