SyncBill
同步ISV(即行业软件系统)的单据数据到KIS账务平台。
参数名称 | 参数类型 | 参数说明 | 是否必填 | 值域 |
---|---|---|---|---|
FDate | Date | 业务日期 | 是 | |
FTypeID | string | 单据类型ID,即行业模板工具中定义单据类型时的单据【类型编码】 | 是 | |
FID | string | ISV中单据编号 | 是 | |
FCustID | string | ISV中客户ID | 否 | |
FSupplyID | string | ISV中供应商ID | 否 | |
FDeptID | string | ISV中部门ID | 否 | |
FSalesmanID | string | ISV中业务员ID | 否 | |
FRowIndex | Integer | ISV中行号 | 是 | |
FSettleTypeID | string | ISV中结算方式编码 | 否 | |
FCurrencyNumber | string | 原币代码 | 否 | |
FExchangeRate | Double | 汇率 | 否 | |
FAmount_NoTax | Double | 不含税金额(本位币) | 否 | |
FAmount_NoTax_For | Double | 不含税金额(原币) | 否 | |
FTax | Double | 税额(本位币) | 否 | |
FTax_For | Double | 税额(原币) | 否 | |
FExpense | Double | 费用(本位币) | 否 | |
FExpense_For | Double | 费用(原币) | 否 | |
FDisAmount | Double | 折扣额(本位币) | 否 | |
FDisAmount_For | Double | 折扣额(原币) | 否 | |
FExplanation | string | 摘要 | 否 | |
FCustomAmount[] | Double | 10个自定义金额(本位币) | 否 | |
FCustomAmount_For[] | Double | 10个自定义金额(原币) | 否 | |
FCustomQty[] | Double | 5个自定义数量 | 否 | |
FCustomText[] | string | 5个自定义文本 | 否 | |
FCustomItemID[] | string | 10种自定义核算项目各自所属数据的ISV编码 | 否 |
1.怎样传10种自定义核算项目
(a)10种自定义核算项目是可选项,即可以不传;当需要传数据时,也不用都传,即传其中几种也可。
(b)10种自定义核算项目的排开次序需与单据类型定义中的次序一致。单据类型定义可在行业工具中找到。
举例,有一种单据类型定义如下图所示时
1.对这种单据,其FCustomItemID最多只需传第一、二项的值,其它项不要传,否则会被告知所传数据在单据类型定义中并无定义。
2.当FCustomItemID的数据为["WL001","CK008"]时,按照单据类型的定义,亦即同步单据的自定义核算项目包括:ISV编码为WL001的物料和ISV编码为CK008的仓库。
3.当FCustomItemID的数据为["","CK008"]时,按照单据类型的定义,亦即同步单据的自定义核算项目仅包括:ISV编码为CK008的仓库。
Post Url:https://kisgz.kingdee.com/Kisopenapi/router/
Post数据:
eid=1884366
&netid=1884366317841
&client_id=1402576015
&method=kis.APP004088.acctplatform.AcctController.DealAcctPlatForm
×tamp=2016-06-20 11:22:34
&ver=2.0
&access_token=2BB6EC5194303633356B5ACE509D1BA0
&state=dmYZagdU8kwC8yLr
&custdata={
"ProductID":"S1S013S001", "AccountDB":"KISOEM_Sample", "Data":{ "Action":"SyncBill", "Recordset":[ { "FDate":"2014-03-01", "FTypeID":"0001", "FID":"C0001", "FRowIndex":"1", "FCustID":"", "FSupplyID":"", "FDeptID":"", "FSalesmanID":"", "FSettleTypeID":"", "FCurrencyNumber":"JPY", "FExchangeRate":"19.73", "FAmount_NoTax":"39460", "FAmount_NoTax_For":"2000", "FTax":"50", "FTax_For":"340", "FExpense":"30", "FExpense_For":"591.9", "FDisAmount":"100", "FDisAmount_For":"1973", "FExplanation":"xx", "FCustomAmount":[ "", "", "", "", "", "", "", "", "", "" ], "FCustomAmount_For":[ "", "", "", "", "", "", "", "", "", "" ], "FCustomQty":[ "", "", "", "", "" ], "FCustomText":[ "", "", "", "", "" ], "FCustomItemID":[ "", "", "", "", "", "", "", "", "", "" ] }, { "FDate":"2014-03-02", "FTypeID":"0001", "FID":"C0002", "FRowIndex":"1", "FCustID":"", "FSupplyID":"", "FDeptID":"", "FSalesmanID":"", "FSettleTypeID":"", "FCurrencyNumber":"JPY", "FExchangeRate":"19.73", "FAmount_NoTax":"19730", "FAmount_NoTax_For":"1000", "FTax":"3", "FTax_For":"170", "FExpense":"70", "FExpense_For":"1381.1", "FDisAmount":"30", "FDisAmount_For":"591.9", "FExplanation":"yy", "FCustomAmount":[ "", "", "", "", "", "", "", "", "", "" ], "FCustomAmount_For":[ "", "", "", "", "", "", "", "", "", "" ], "FCustomQty":[ "", "", "", "", "" ], "FCustomText":[ "", "", "", "", "" ], "FCustomItemID":[ "", "", "", "", "", "", "", "", "", "" ] } ] }
}
示例1
{
"Result": 200, "ErrMsg": "", "DataJson": { "Result": "200", "ErrMsg": "", "AccountDB": null, "TotalPage": "5", "CurrentPage": "1", "ItemsOfPage": "10", "Data": "" }
}
示例2
{
"Result": 200, "ErrMsg": "关于路由的出错信息", "DataJson": { "Result": "200", "ErrMsg": "", "AccountDB": null, "TotalPage": "5", "CurrentPage": "1", "ItemsOfPage": "10", "Data": null }
}
示例3
{
"Result": 200, "ErrMsg": "", "DataJson": { "Result": "202", "ErrMsg": "关于业务处理的出错信息", "AccountDB": null, "TotalPage": "5", "CurrentPage": "1", "ItemsOfPage": "10", "Data": null }
}