子表字段明明有值,为啥还是报错?
金蝶云社区-厦门新芒_范明勇
厦门新芒_范明勇
0人赞赏了该文章 1,181次浏览 未经作者许可,禁止转载编辑于2016年04月10日 10:20:34

下面是采购退料的JSON ,为啥子表总是说字段没值,明明已经有值了:
"Creator": "PDA",
"NeedUpDateFields": [],
"Model": {
"FID": 0,
"FBillTypeID": {
"FNumber": "TLD01_SYS"
},
"FBusinessType": "CG",
"FDate": "\/Date(1460035243000+0800)\/",
"FMRTYPE": "B",
"FMRMODE": "A",
"FStockOrgId": {
"FNumber": "100"
},
"FRequireOrgId": {
"FNumber": "100"
},
"FOwnerIDHead": {
"FNumber": "100"
},
"FPurchaseOrgId": {
"FNumber": "100"
},
"FSupplierID": {
"FNumber": "200000"
},
"PUR_MRB_FPURMRBENTRY": [
{
"FMATERIALID": {
"FNumber": "05040015"
},
"FUNITID": {
"FNumber": "Pcs"
},
"FRMREALQTY": 1.0,
"FREPLENISHQTY": 1.0,
"FKEAPAMTQTY": 1.0,
"FPRICEUNITID": {
"FNumber": "Pcs"
},
"FPRICEUNITQTY": 1.0,
"FSTOCKID": {
"FNumber": "CK001"
},
"FStockStatusId": {
"FNumber": "KCZT04_SYS"
},
"FCARRYQTY": 1.0,
"FCARRYUNITID": {
"FNumber": "Pcs"
},
"FSerialNote": "test",
"FLot": {
"FName": ""
}
}
]
}
}, result= {"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"FPRICEUNITID","Message":"单据体“明细信息”第1行字段“计价单位”是必填项"},{"FieldName":"FUnitID","Message":"单据体“明细信息”第1行字段“库存单位”是必填项"},{"FieldName":"FCarryUnitId","Message":"单据体“明细信息”第1行字段“采购单位”是必填项"},{"FieldName":"FMATERIALID","Message":"单据体“明细信息”第1行字段“物料编码”是必填项"},{"FieldName":"","Message":"第1行分录,实退数量必须大于0!"},{"FieldName":"","Message":"第1行分录,计价数量必须大于0!"},{"FieldName":"","Message":"第1行分录,采购数量必须大于0"},{"FieldName":"AbstractInteractionResult","Message":"AbstractInteractionResult.InteractionContext is null"}]},"Id":""}}