已解决:调用付款单的‘动态表单服务列表’保存不成功。
金蝶云社区-Nakupenda
Nakupenda
0人赞赏了该文章 1,821次浏览 未经作者许可,禁止转载编辑于2015年09月29日 09:36:38

环境:K3 Cloud 5.0 +Webservice +php说明:通过在K3 Cloud 的‘动态表单服务列表’定义和发布服务后调用。付款单的保存服务,配置没做任何修改。

具体语句:
$data = array(
'Creator' => 'String',
'NeedUpDateFields' => array(
//付款单-单据头
'F_XFL_PT', //平台
'F_XFL_CZLX', //操作类型
'F_XFL_YWLX', //业务类型
'F_XFL_YWBH', //业务编号
'FDATE', //日期
'FCONTACTUNITTYPE', //往来单位类型:金蝶系统供应商-内码
'FCONTACTUNIT', //往来单位
'FBillTypeID', //单据类型:excel表格中无,金蝶对应单据-编码
//付款单-单据体
'AP_PAYBILL__FPAYBILLENTRY' => array(
'FPURPOSEID', //付款用途
'FSETTLETYPEID', //结算(付款)方式
'FACCOUNTID', //银行账号
'FPAYTOTALAMOUNTFOR', //付款金额
'FHANDLINGCHARGEFOR', //手续费
)
),
'Model' => array(
'FID' => 0,
'FBillNo' => '',
'FBillTypeID' => array(
//'FBillTypeID' => 0, //可不传
'FNumber' => 'FKDLX01_SYS', //金蝶系统-编码,其他两个可不传
//'FName' => String, //可不传
),
'F_XFL_PT' => array(
'FNumber' => $val['platform_id'],
),
'F_XFL_CZLX' => array(
'FNumber' => $val['operate_type'],
),
'F_XFL_YWLX' => array(
'FNumber' => $val['business_type'],
),
'F_XFL_YWBH' => $val['business_code'],
'FDATE' => $fdate,
'FCONTACTUNITTYPE' => 'BD_Supplier',
'FCONTACTUNIT' => array(
'FNumber' => $val['customer_code'],
),
'FRECTUNITTYPE' => 'BD_Supplier',
'FRECTUNIT' => array(
'FNumber' => $val['customer_code'],
),
//'FISINIT' => false, //是否期初单据
/*
'FDepartment' => array //部门
(
'FDEPTID' => 0
'FNUMBER' => String
'FNAME' => String
)
*/
'FMAINBOOKID' => array( //本位币
'FNUMBER' => 'PRE001', //PRE001-人民币
),
'FCURRENCYID' => array( //币别
'FNUMBER' => 'PRE001', //PRE001-人民币
),
/*
'FEXCHANGETYPE' => array //汇率类型
(
'FRATETYPEID' => 0
'FNumber' => String
'FName' => String
'FDIGITS' => 0
'FREVERSEDIGITS' => 0
)
*/
//'FPAYTOTALAMOUNTFOR_H' => 0 //表头-应付金额
//'FEXCHANGERATE' => 0 //汇率
//'FPAYTOTALAMOUNT_H' => 0 //表头-应付金额本位币
//'FREALPAYAMOUNTFOR_H' => 0 //表头-实付金额
'FSETTLEORGID' => array( //结算组织
'FNUMBER' => '100',
),
//'FREALPAYAMOUNT_H' => 0 //表头-实付金额本位币
'FPURCHASEORGID' => array( //采购组织
'FNUMBER' => '100',
),
/*
'FPURCHASEDEPTID' => array //采购部门
(
'FDEPTID' => 0
'FNUMBER' => String
'FNAME' => String
)
'FPURCHASERGROUPID' => array //采购组
(
'FEntryId' => 0
'FNUMBER' => String
'FNAME' => String
)

'FPURCHASERID' => array //采购员
(
'FID' => 0
'FNumber' => String
'FName' => String
'FDEPTID' => array
(
'FDEPTID' => 0
'FNUMBER' => String
'FNAME' => String
)

)
'FSOURCESYSTEM' => '0' //来源系统
'FWRITTENOFFSTATUS' => String //表体明细-核销状态
'FACCOUNTSYSTEM' => array //会计核算体系
(
'FACCTSYSTEMID' => 0
'FNumber' => String
'FName' => String
)
*/
'FDOCUMENTSTATUS' => 'C', //单据状态:金蝶系统,C-已审核
/*
'FCreatorId' => array //创建人
(
'FUserID' => 0
'FUserAccount' => String
'FName' => String
)
'FModifierId' => array //修改人
(
'FUserID' => 0
'FUserAccount' => String
'FName' => String
)
*/
'FCreateDate' => date('Y/m/d'), //创建日期
//'FModifyDate' => /Date(-62135596800000+0800)/
'FApproveDate' => date('Y/m/d'), //审核日期
/*
'FCancellerId' => array
(
'FUserID' => 0
'FUserAccount' => String
'FName' => String
)
'FCancelDate' => /Date(-62135596800000+0800)/
*/
'FBUSINESSTYPE' => '2', //金蝶系统-编码,业务类型 2-采购业务
/*
'FAPPROVERID' => array
(
'FUserID' => 0
'FUserAccount' => String
'FName' => String
)
*/
'FCancelStatus' => 'A', //金蝶系统-编码,作废状态 A-否
'FPAYORGID' => array( //付款组织
'FNUMBER' => '100',
),
'FISSAMEORG' => true, //金蝶系统-编码,是否相同组织 true-是
'FIsCredit' => false, //金蝶系统-编码,是否信贷业务 false-否
'AP_PAYBILL__FPAYBILLENTRY' => array(
'FPURPOSEID' => array(
'FNUMBER' => $val['pay_type'],
),
'FSETTLETYPEID' => array(
'FNUMBER' => $val['pay_mode'],
),
'FACCOUNTID' => array(
'FNUMBER' => $val['pay_account'],
),
'FPAYTOTALAMOUNTFOR' => $val['total_amount'],
'FHANDLINGCHARGEFOR' => $val['handling_charge'],
)
)
);

报错如下: