该接口主要用于第三方平台或自主研发者,需要通过日期、单号、部门批量查询ERP系统的单据时,则可调用该单据的批量查询接口,将Sunlike ERP或Online ERP系统中的批量单据信息查询到第三方平台中。
{
"PGM":"DRPQC", //程序代号
"QT_ID":"QC", //单据别,但若单据无单据别,该参数可不用
"QT_NO":"", //按单号查询,可多张单号,加中括号[],单号之间用豆号隔开
"DATE_TYPE":0, //0表示单据日期,1表示制单日期,2表示终审日期,3修改日期
"START_DATE":"2021-01-01", //查询的开始日期
"END_DATE":"2021-01-31", //查询的结束日期
"QT_DEP":"00000000", //有[]表示多选,不含下属部门;没有[]表示单选且含下属
"ORDER_BY":{ //排序规则
"QT_NO":"DESC", //DESC表示降序排序
"CUS_NO1":"ASC" //ASC表示升序排序
}
}
{
"code": 0, //0表示执行成功
"message": "查询成功",
"data": {
"UP_DD": "2021-01-19 16:41:28", //本次查询返回单据中最大的单据日期
"TOTAL_NUM": 1, //本次查询返回的单号总数量,每次返回单据最大为5000笔
"BILL_LIST": [ //本次查询返回的所有单据明细数据
{
"MF_QTS": [
{
"QT_ID": "QC",
"QT_NO": "QC11190001",
"CUS_NO1": "0001",
"TRAD_MTH": "TD11190002",
"QT_DD": "2021-01-19 00:00:00",
"QT_VOID_DD": "2021-01-19 00:00:00",
"SAL_NO": "10001",
"QT_DEP": "0104",
"CUR_ID": "",
"EXC_RTO": 1.00000000,
"TAX_ID": "1",
"PAY_MTH": "1",
"PAY_DAYS": 1,
"INT_DAYS": 30,
"CHK_DAYS": 30,
"PAY_REM": "结帐期:2021-02-01;票据到期日:2021-03-01",
"PAY_DD": "2021-02-01 00:00:00",
"CHK_DD": "2021-03-01 00:00:00",
"SEND_MTH": "1",
"USR": "ADMIN",
"CHK_MAN": "ADMIN",
"PRT_SW": "N",
"SQ_NO": "QB11190001",
"BIL_ID": "QB",
"CLS_DATE": "2021-01-19 00:00:00",
"SYS_DATE": "2021-01-19 16:41:28",
"BIL_FILE_COUNT": 0,
"CUS_SNM1": "0001客户",
"TO_CUST1": "T"
}
],
"TF_QTS": [
{
"QT_ID": "QC",
"QT_NO": "QC11190001",
"ITM": 1,
"QT_DD": "2021-01-19 00:00:00",
"PRD_NO": "00001",
"PRD_NAME": "00001货品",
"PRD_MARK": "",
"QS_NO": "QB11190001",
"WH": "A000",
"UNIT": "1",
"QTY": 5.00000000,
"UP1": 123.00000000,
"AMTN1": 615.00000000,
"AMT1": 615.00000000,
"TAX1": 0.00000000,
"TAX2": 0.00000000,
"TAX3": 0.00000000,
"SEL_ID1": "T",
"AMTN2": 0.00000000,
"AMT2": 0.00000000,
"AMTN3": 0.00000000,
"AMT3": 0.00000000,
"EST_ITM": 1,
"OTH_ITM": 1,
"SQ_ID": "QB",
"SQ_NO": "QB11190001",
"TAX_RTO1": 5.00000000,
"CAN_MODIFY": "T",
"SAL_NO_XJ": "",
"CST_STD_UNIT": 0.00,
"TAX_RTO": 5.00
}
]
}
]
}
}