各位大师,新年好,我们在调试付款单上传接口时,遇到以下问题,帮忙解决下:
问题描述:
1、收款方类型(FRecType)加上后,会报错,"MapComplexProperty Field Error :Field Key is 【FRecType】","Source":null,"StackTrace":" 在 Kingdee.BOS.WebApi.FormService.WebApiServiceCall.ExecuteOperation(Context ctx, FormMetadata metadata, FormOperation op, String data);
2、银行、省、市、地区四个字段提交上去后,在系统里找不到,貌似没有保存下来。这些字段是后面调用银企直联接口要用到的。
完整的Json数据如下:
String sContent ="{"+
" \"Creator\": \"administrator\",\"NeedUpDateFields\":[], "+
" \"Model\": {"+
" \"FID\":0, "+
" \"FBillTypeID\":{"+ //单据类型
" \"FName\": \"采购业务付款单\","+ //FName可写,可不写,下同
" \"FNumber\": \"FKDLX01_SYS\""+
" },"+
" \"FBillNo\": \"FKD02021710\","+ //单据编号
" \"FDATE\": \"2016-02-02T17:10:00+08:00\", "+ //业务日期
" \"FPAYBILLENTRY\": ["+ //分录,付款单明细
" {"+
" \"FEntryID\":0, "+ //序号
" \"FSETTLETYPEID\": {"+ //结算方式
" \"FName\": \"转账\","+
" \"FNumber\": \"JSFS12_SYS\""+
" },"+
" \"FPURPOSEID\": {"+ //付款用途
" \"FName\": \"采购付款\","+
" \"FNumber\": \"SFKYT08_SYS\""+
" },"+
" \"FPAYTOTALAMOUNTFOR\": 1,"+ //应付金额
" \"FPAYAMOUNTFOR_E\": 1,"+ //付款金额
" \"FSETTLEPAYAMOUNTFOR\": 1,"+ //折后金额
" \"fREALPAYAMOUNTFOR_D\": 1,"+ //实付金额
" \"FACCOUNTID\": {"+ //我方银行账号
" \"FName\": \"测试企业5\","+
" \"FNumber\": \"762758040684\""+
" },"+
// " \"FRecType\": {"+ //收款方类型 (加上后报错)
// " \"FName\": \"个人\","+
// " \"FNumber\": \"1\""+
// " },"+
" \"FOPPOSITEBANKACCOUNT\": \"6013822000638295959\","+ //对方银行账号
" \"FOPPOSITECCOUNTNAME\": \"刘铁成\","+ //对方账户名称
" \"FOPPOSITEBANKNAME\": \"中国银行\","+ //对方开户行
" \"FOpenAddressRec\": \"中国银行深圳分行\","+ //开户行地址
" \"FCNAPS\": \"47669\","+ //联行号
" \"FBankTypeRec\": {"+ //收款银行(无效)
" \"FName\": \"中国银行\","+
" \"FNumber\": \"104\""+
" },"+
" \"FProvince\": {"+ //省(收方)(无效)
" \"FName\": \"广东省\","+
" \"FNumber\": \"6\""+
" },"+
" \"FCity\": {"+ //市(收方)(无效)
" \"FName\": \"深圳市\","+
" \"FNumber\": \"228\""+
" },"+
" \"FDistrict\": {"+ //地区(收方)(无效)
" \"FName\": \"深圳市\","+
" \"FNumber\": \"5840\""+
" },"+
" \"FCOSTID\": {"+ //费用项目编码
" \"FName\": \"材料成本\","+
" \"FNumber\": \"FYXM01_SYS\""+
" },"+
" \"FPAYAMOUNT_E\": 100"+ //付款金额本位币
" }], "+
" \"FCONTACTUNIT\": {"+ //往来单位
" \"FName\": \"长安制造\","+
" \"FNumber\": \"VEN00001\""+
" },"+
" \"FCONTACTUNITTYPE\": \"供应商\","+ //往来单位类型
" \"FRECTUNIT\": {"+ //收款单位
" \"FName\": \"长安制造\","+
" \"FNumber\": \"VEN00001\""+
" },"+
" \"FRECTUNITTYPE\": \"供应商\","+ //收款单位类型
" \"FISINIT\": false,"+ //是否期初单据
" \"FCURRENCYID\": {"+ //币别
" \"FNAME\": \"人民币\","+
" \"FNUMBER\": \"PRE001\""+
" },"+
" \"FSETTLERATE\": 1,"+ //结算汇率
" \"FEXCHANGERATE\": 1,"+ //汇率
" \"FSETTLEORGID\": {"+ //结算组织
" \"FNAME\": \"蓝海柴油机本部\","+
" \"FNUMBER\": \"101.1\""+
" },"+
" \"FPURCHASEORGID\": {"+ //采购组织
" \"FNAME\": \"蓝海柴油机本部\","+
" \"FNUMBER\": \"101.1\""+
" },"+
" \"FPAYORGID\": {"+ //付款组织
" \"FNAME\": \"蓝海柴油机本部\","+
" \"FNUMBER\": \"101.1\""+
" },"+
" \"FISSAMEORG\": true,"+ //是否相同组织
" \"FIsCredit\": false,"+ //是否信贷业务
" \"FSETTLECUR\": {"+ //结算币别
" \"FNAME\": \"人民币\","+
" \"FNUMBER\": \"PRE001\""+
" }"+
" }"+
"}";
谢谢。
推荐阅读