单据同步功能调用方法

业务类型名称

SyncBill

功能说明

同步ISV(即行业软件系统)的单据数据到KIS账务平台。

Recordset数据集参数

参数名称参数类型参数说明是否必填值域
FDateDate业务日期 
FTypeIDstring单据类型ID,即行业模板工具中定义单据类型时的单据【类型编码 
FIDstringISV中单据编号 
FCustIDstringISV中客户ID 
FSupplyIDstringISV中供应商ID 
FDeptIDstringISV中部门ID 
FSalesmanIDstringISV中业务员ID 
FRowIndexIntegerISV中行号 
FSettleTypeIDstringISV中结算方式编码 
FCurrencyNumberstring原币代码 
FExchangeRateDouble汇率 
FAmount_NoTaxDouble不含税金额(本位币) 
FAmount_NoTax_ForDouble不含税金额(原币) 
FTaxDouble税额(本位币) 
FTax_ForDouble税额(原币) 
FExpenseDouble费用(本位币) 
FExpense_ForDouble费用(原币) 
FDisAmountDouble折扣额(本位币) 
FDisAmount_ForDouble折扣额(原币) 
FExplanationstring摘要 
FCustomAmount[]Double10个自定义金额(本位币) 
FCustomAmount_For[]Double10个自定义金额(原币) 
FCustomQty[]Double5个自定义数量 
FCustomText[]string5个自定义文本 
FCustomItemID[]string10种自定义核算项目各自所属数据的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
&timestamp=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
    }

}