Site.SyncBill的历史版本

隐藏细微更改 - 以Markup源码显示

2016年-12月-13日219.133.170.172 -
将 13 行由:
FTypeIDstring单据类型ID,即行业模板工具中定义单据类型时的单据【类型编码】 
更新为以下内容:
FTypeIDstring单据类型ID,即行业模板工具中定义单据类型时的单据【类型编码 
2016年-12月-13日219.133.170.172 -
将 7 行由:

同步ISV的单据数据到KIS账务平台。

更新为以下内容:

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

2016年-12月-13日219.133.170.172 -
将 13 行由:
FTypeIDstring单据类型ID,即行业模板工具中定义单据类型时的【单据类型编码】 
更新为以下内容:
FTypeIDstring单据类型ID,即行业模板工具中定义单据类型时的单据【类型编码】 
2016年-12月-13日219.133.170.172 -
将 13 行由:
FTypeIDstring单据类型ID 
更新为以下内容:
FTypeIDstring单据类型ID,即行业模板工具中定义单据类型时的【单据类型编码】 
2016年-11月-29日219.133.170.172 -
将 36 行由:
FCustomItemID[]string0种自定义核算项目各自所属数据的ISV编码 
更新为以下内容:
FCustomItemID[]string10种自定义核算项目各自所属数据的ISV编码 
2016年-06月-20日219.133.170.76 -
改为:

Post Url:http://120.132.144.214/Webapi/Router/

post数据:

EID=22002

&Method=kis.APP001804.acctplatform.AcctController.DealAcctPlatForm

&Timestamp=2014-12-09 09:35:29

&Ver=1.0

&Sign=E9140828882E39CD92E0F3BC64C69A35

&State=TIcoIdlRhh89PU4o

&IsEncrypt=N

&CustData={

更新为以下内容:

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={

删除了 70-73 行中的以下内容
    "UserID":"",
    "PassWord":"",
    "CurrentPage":0,
    "ItemsOfPage":0,
删除了第 71 行的以下内容:
        "DBServerIP":"",
删除了第 72 行的以下内容:
        "Sql":"",
将 74 行由:
                        {
更新为以下内容:
              {
2016年-04月-14日127.0.0.1 -
在 37-52 行中增加以下内容:

说明

1.怎样传10种自定义核算项目

(a)10种自定义核算项目是可选项,即可以不传;当需要传数据时,也不用都传,即传其中几种也可。

(b)10种自定义核算项目的排开次序需与单据类型定义中的次序一致。单据类型定义可在行业工具中找到。

举例,有一种单据类型定义如下图所示时

1.对这种单据,其FCustomItemID最多只需传第一、二项的值,其它项不要传,否则会被告知所传数据在单据类型定义中并无定义。

2.当FCustomItemID的数据为["WL001","CK008"]时,按照单据类型的定义,亦即同步单据的自定义核算项目包括:ISV编码为WL001的物料和ISV编码为CK008的仓库。

3.当FCustomItemID的数据为["","CK008"]时,按照单据类型的定义,亦即同步单据的自定义核算项目仅包括:ISV编码为CK008的仓库。

2016年-04月-14日127.0.0.1 -
将 35 行由:

|FCustomText[]||string||5个自定义文本||否|| ||

更新为以下内容:
FCustomText[]string5个自定义文本 
2016年-04月-14日127.0.0.1 -
将 20 行由:

|FSettleTypeID||string||ISV中结算方式编码||否|| ||

更新为以下内容:
FSettleTypeIDstringISV中结算方式编码 
2016年-04月-14日127.0.0.1 -
在 1-265 行中增加以下内容:

单据同步功能调用方法

业务类型名称

SyncBill

功能说明

同步ISV的单据数据到KIS账务平台。

Recordset数据集参数

参数名称参数类型参数说明是否必填值域
FDateDate业务日期 
FTypeIDstring单据类型ID 
FIDstringISV中单据编号 
FCustIDstringISV中客户ID 
FSupplyIDstringISV中供应商ID 
FDeptIDstringISV中部门ID 
FSalesmanIDstringISV中业务员ID 
FRowIndexIntegerISV中行号 

|FSettleTypeID||string||ISV中结算方式编码||否|| ||

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[]||string||5个自定义文本||否|| ||

FCustomItemID[]string0种自定义核算项目各自所属数据的ISV编码 

发送请求示例

Post Url:http://120.132.144.214/Webapi/Router/

post数据:

EID=22002

&Method=kis.APP001804.acctplatform.AcctController.DealAcctPlatForm

&Timestamp=2014-12-09 09:35:29

&Ver=1.0

&Sign=E9140828882E39CD92E0F3BC64C69A35

&State=TIcoIdlRhh89PU4o

&IsEncrypt=N

&CustData={

    "ProductID":"S1S013S001",
    "AccountDB":"KISOEM_Sample",
    "UserID":"",
    "PassWord":"",
    "CurrentPage":0,
    "ItemsOfPage":0,
    "Data":{
        "DBServerIP":"",
        "Action":"SyncBill",
        "Sql":"",
        "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
    }

}