使用WebAPI进行单据保存时报错“name 'FPriceListId' is not defined ”,不过我的单据中根本就没有FPriceListId这个字段,还请老师大神们看看怎么回事!
调用接口:
json字符串:
{
"Creator": "张放",
"NeedUpDateFields": [
""
],
"Model": {
"FID": 0,
"FDATE": "2017-02-16",
"FSTOCKORGID": {
"FNumber": "1"
},
"FSTOCKDEPTID": {
"FNumber": "0"
},
"FSTOCKERGROUPID": {
"FNumber": "0"
},
"FSTOCKERID": {
"FNumber": "0"
},
"FDEMANDORGID": {
"FNumber": "1"
},
"FPURCHASEORGID": {
"FNumber": "1"
},
"FBILLNO": "201602160001",
"FPURCHASEDEPTID": {
"FNumber": "0"
},
"FPURCHASERGROUPID": {
"FNumber": "0"
},
"FPURCHASERID": {
"FNumber": "0"
},
"FSUPPLIERID": {
"FNumber": "100734"
},
"F_DEV_CONTROLS1": {
"FNumber": "101016"
},
"F_DEV_CONTROLS2": {
"FNumber": "101100"
},
"F_DEV_CONTROLS3": {
"FNumber": "0"
},
"F_DEV_CONTROLS4": {
"FNumber": "0"
},
"F_DEV_CONTROLS5": {
"FNumber": "0"
},
"F_DEV_CONTROLS6": {
"FNumber": "0"
},
"FENTITY": [
{
"FEntryID": 0,
"F_DEV_MATID": {
"FNumber": "100563"
},
"F_DEV_UNITID": {
"FNumber": "10101"
},
"F_DEV_MUSTQTY": 10,
"F_DEV_REALQTY": 11,
"F_DEV_STOCKID": {
"FNumber": "102077"
},
"F_DEV_JOINQTY": "0",
"F_DEV_SOURCEBILLNO": "CGSL3"
}
]
}
}
推荐阅读