WEBAPI生成资产卡片时带不出实物信息的资产编码
金蝶云社区-云社区用户73182930
云社区用户73182930
0人赞赏了该文章 805次浏览 未经作者许可,禁止转载编辑于2018年03月28日 10:00:34

使用WEBAPI创建资产卡片的时候,能带出单据头的卡片编码,但是带不出实物信息里的资产编码,导致保存报错

下面是WEBAPI的调用JSON
{"Creator":"","NeedUpDateFields":[],"NeedReturnFields":[],"IsDeleteEntry":"True","SubSystemId":"",
"IsVerifyBaseDataField":"false","Model":

{"FAlterID":"0","FBillNo":"","FBillType":{"FNumber":"1"},"FDate":"2018-03-27",
"Fjopnum":"RK2018032200001",
"FAssetOrgID":{"FNumber":"100.02.01.02"},
"FOwnerOrgID":{"FNumber":"100.02.01.02"},
"FName":"大众高尔夫 1.6 AT|时尚型|白色|沪A00000",
"FAssetTypeID":{"FNumber":"06"},
"FUnitID":{"FNumber":"liang"},"FQuantity":"1",
"FAssetStatusID":{"FNumber":"ZCZT01_SYS"},
"FAlterModeID":{"FNumber":"BDFS08_SYS"},
"FBeginUseDate":"2018-03-27","FZCLBBASE":{"FNumber":"112"},"FDisposalType":"0","FWZBase":{"FNumber":"00"},
"FCARTYPE":"1","FText":"沪A00000","FCJNUMBER":"wsx","FSource":"1",
"FCLPPCombo":"1",

"FFinance":[{"FFinanceID":"0","FAcctPolicyID":{"FNumber":"KJZC01_SYS"},
"FAcctDate":"2018-03-27","FOriginalCost":"489000.00","FLifePeriods":"",
"FDeprMethod":"1","FInputTax":"11000.00","FExpenseValue":"10000.00",
"FFinanceCurrencyID":{"FNumber":"PRE001"},"FPurchaseValue":"500000.00"}],
"FInvoice":[{"FEntryID":"0","FINVOICENO":"wsx","FINVOICEDATE":"2018-03-22","FALLAMOUNTFOR":"500000.00",
"FAMOUNTFOR":"489000.00"}],

"FCardDetail":[{"FID":"0","FDetailQuantity":"1"}]
}}
下面是返回的错误信息
{"Result":{"ResponseStatus":{"ErrorCode":500,"IsSuccess":false,"Errors":[{"FieldName":"FAssetNO","Message":"单据体“实物信息”第1行字段“资产编码”是必填项"},{"FieldName":"FAllocAssetNO","Message":"单据体使用分配第1行字段[资产编码]必须是实物信息中的资产编码"},{"FieldName":"FInvoiceAssetNO","Message":"单据体发票第1行字段[资产编码]为必填项"},{"FieldName":"FAllocation","Message":"资产编码,未进行使用分配"}],"SuccessEntitys":[]},"Id":""}}求助啊