WebAPI保存采购入库单报错,打了外贸补丁
金蝶云社区-颜平
颜平
0人赞赏了该文章 828次浏览 未经作者许可,禁止转载编辑于2016年10月25日 11:49:07

[code]{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"FSupplyId","Message":"字段“供货方”是必填项","DIndex":0},{"FieldName":"FPurchaserId","Message":"字段“采购员”是必填项","DIndex":0},{"FieldName":"FSupplierId","Message":"字段“供应商”是必填项","DIndex":0},{"FieldName":"FOwnerIdHead","Message":"字段“货主”是必填项","DIndex":0},{"FieldName":"FAllAmount","Message":"第1行分录,不能为0!","DIndex":0}],"SuccessEntitys":[],"SuccessMessages":[]},"Id":""}}[/code]提示采购员,加税合计等字段为必填,但是再json字符串中已经加进去了
[code]{"NeedUpDateFields":[],"Creator":"dulin","Model":{"FCompanyId":{"FNumber":"01"},"FSupplierId":{"FNumber":"VEN00002"},"FStockOrgId":{"FNumber":"01"},"FBillTypeID":{"FNumber":"RKD01_SYS"},"FSupplyId":{"FNumber":"VEN00002"},"FInStockEntry":[{"FTaxPrice":1.33,"FAllAmount":399,"FMaterialId":{"FNumber":"L0010900001"},"FStockId":{"FNumber":"CK016"},"FSRCRowId":100012,"FSRCBILLTYPEID":"PUR_ReceiveBill","FStockStatusId":{"FNumber":"KCZT01_SYS"},"FAmount":399,"FDiscount":0,"FInvoiceQty":300,"FEntryTaxRate":0,"FUnitID":{"FNumber":"zhi"},"FPrice":1.33,"FMtoNo":"RDG006","FStockLocId":100005,"FEntryID":0,"FGiveAway":0,"FAllAmount_LC":399,"FInStockEntry_Link":[{"FInStockEntry_Link_FRuleId":"PUR_ReceiveBill-STK_InStock","FInStockEntry_Link_FBaseUnitQtyOld":600,"FInStockEntry_Link_FBaseUnitQty":300,"FInStockEntry_Link_FSId":100012,"FInStockEntry_Link_FSTableName":"T_PUR_ReceiveEntry","FInStockEntry_Link_FSBillId":100008}],"Amount_LC":399,"FNote":"","FLot":{"FNumber":""},"FBFLowId":{"FName":"标准采购流程"},"FSRCBillNo":"CGSL000005","FBaseUnitQty":300,"FRealQty":300,"FPOOrderNo":"CGDD000005"}],"FSettleCurrId":{"FNumber":"PRE001"},"FID":0,"FDate":"2016\/10\/24","FPurchaserId":{"FNumber":"cg001"},"FDemandOrgId":{"FNumber":"01"},"FPurchaseOrgId":{"FNumber":"01"},"FBusinessType":"CG","FInStockFin":{"FBillAmount":399,"FOwnerIdHead":{"FNumber":"VEN00002"},"FEntryId":0,"FPayOrgId":{"FNumber":"01"},"FLocalCurrId":{"FNumber":"PRE001"},"FExchangeRate":1,"FBillAllAmount":399,"FSettleOrgId":{"FNumber":"01"},"FSettleCurrId":{"FNumber":"PRE001"}},"FPurchaseDeptId":{"FNumber":"BM000007"}}}[/code]