生产补料,货主类型和货主换了还是无法保存
金蝶云社区-厦门新芒_范明勇
厦门新芒_范明勇
1人赞赏了该文章 659次浏览 未经作者许可,禁止转载编辑于2016年04月14日 10:33:23

先填货主类型,再填货主,还是不行;如果是货主信息Fnumber="100"不对,销售出库的货主信息也是Fnumber="100":
如下:
this._model.Add("FOwnerTypeIdHead", "BD_OwnerOrg");

basedata = new JObject();
//basedata.Add("FNumber", this._parameters.head.FOwnerIdHead);
basedata.Add("FNumber", "100");
this._model.Add("FOwnerIdHead", basedata);
销售出库就可以保存;
生产补料就是不行,晕!

"Creator": "PDA",
"NeedUpDateFields": [],
"Model": {
"FID": 0,
"FBillType": {
"FNumber": "SCBLD01_SYS"
},
"FDate": "\/Date(1460557243000+0800)\/",
"FStockOrgId": {
"FNUMBER": "100"
},
"FPrdOrgId": {
"FNUMBER": "100"
},
"PRD_FeedMtrl__FEntity": [
{
"FMaterialId": {
"FNumber": "01010002"
},
"FUnitID": {
"FNumber": "t"
},
"FActualQty": 5.0,
"FAppQty": 5.0,
"FStockId": {
"FNumber": "CK007"
},
"FMoBillNo": "MO000001",
"FMoEntryId": "100004",
"FMoId": 100004,
"FMoEntrySeq": 1,
"FEntrySrcBillNo": "PPBOM00000001",
"FEntrySrcEnteryId": 100001,
"FEntrySrcInterId": 100001,
"FEntrySrcEntrySeq": 1,
"FEntrySrcBillType": "PRD_PPBOM",
"FPPBomBillNo": "PPBOM00000001",
"FPPBomEntryId": 100001,
"FOwnerTypeId": "BD_OwnerOrg",
"FOwnerId": {
"FNumber": "100"
},
"FWorkShopId": {
"FNumber": "BM000003"
},
"FEntrtyDescription": "test"
}
]
}
}, result= {"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"","Message":"第1行分录,实发数量或报废数量不为0,需要录入货主"},{"FieldName":"AbstractInteractionResult","Message":"AbstractInteractionResult.InteractionContext is null"}]},"Id":""}}