该接口主要用于第三方平台或自主研发者,需要通过日期、单号、部门批量查询ERP系统的单据时,则可调用该单据的批量查询接口,将Sunlike ERP或Online ERP系统中的批量单据信息查询到第三方平台中。
{
"PGM":"DRPSO", //程序代号
"OS_ID":"SO", //单据别,但若单据无单据别,该参数可不用
"OS_NO":"", //按单号查询,可多张单号,加中括号[],单号之间用豆号隔开
"DATE_TYPE":0, //0表示单据日期,1表示制单日期,2表示终审日期,3修改日期
"START_DATE":"2021-01-01", //查询的开始日期
"END_DATE":"2021-01-31", //查询的结束日期
"PO_DEP":"00000000", //有[]表示多选,不含下属部门;没有[]表示单选且含下属
"ORDER_BY":{ //排序规则
"OS_NO":"DESC", //DESC表示降序排序
"CUS_NO":"ASC" //ASC表示升序排序
}
}
{
"code": 0, //0表示执行成功
"message": "查询成功",
"data": {
"OS_DD": "2021-01-18 00:00:00", //本次查询单据中的最大日期
"TOTAL_NUM": 1, //本次查询单据的总数量
"BILL_LIST": [ //本次批量查询的单据明细,每次查询最多显示5000笔
{
"MF_POS": [
{
"OS_ID": "SO",
"ZHANG_ID": "1",
"OS_NO": "SO11180001",
"OS_DD": "2021-01-18 00:00:00",
"CUS_NO": "0001",
"CUS_NAME": "0001客户",
"SAL_NO": "10001",
"EST_DD": "2021-01-18 00:00:00",
"CUR_ID": "",
"TAX_ID": "1",
"BIL_TYPE": "",
"TRAD_MTH": "TD11180002",
"PAY_MTH": "1",
"PAY_DAYS": 1,
"CHK_DAYS": 30,
"PAY_REM": "结帐期:2021-02-01;票据到期日:2021-03-01",
"SEND_MTH": "1",
"AMTN_NET": 615.00000000,
"PO_DEP": "0104",
"PAY_DD": "2021-02-01 00:00:00",
"CHK_DD": "2021-03-01 00:00:00",
"INT_DAYS": 30,
"USR": "ADMIN",
"CLS_ID": "F",
"LZ_CLS_ID2": "F",
"PRT_SW": "N",
"CLS_DATE": "2021-01-18 00:00:00",
"CHK_MAN": "ADMIN",
"EXC_RTO": 1.00000000,
"SYS_DATE": "2021-01-18 14:32:27",
"ISOVERSH": "F",
"HS_ID": "F",
"HIS_PRICE": "T",
"BIL_COUNT": 0,
"ISSVS": "F",
"CFM_SW": "F",
"ICOS_ID": "F",
"BIL_FILE_COUNT": 0,
"CHK_FULL_PAID": "F",
"LZ_CLS_ID21": "F"
}
],
"TF_POS": [
{
"OS_ID": "SO",
"OS_NO": "SO11180001",
"ITM": 1,
"PRD_NO": "00001",
"PRD_NAME": "00001货品",
"PRD_MARK": "",
"WH": "A000",
"FREE_ID_DEF": "F",
"UNIT": "1",
"PRM_NO": "",
"QTY": 5.00000000,
"UP": 123.00000000,
"AMT": 615.00000000,
"AMTN": 615.00000000,
"TAX_RTO": 5.00000000,
"TAX": 0.00000000,
"PRE_ITM": 1,
"CHK_TAX": "F",
"EST_DD": "2021-01-18 00:00:00",
"CST_STD": 0.00000000,
"OS_DD": "2021-01-18 00:00:00",
"EST_ITM": 1,
"TPL_NO": "001",
"SUP_PRD_NM": "",
"SUP_PRD_MARK": "",
"TRANSM": "0",
"LOGIST": "0",
"SUP_PRD_NO": "",
"ACT_DSC": "",
"ACT_REM": "",
"UNITNAME": "个",
"CHK_XZL": "T",
"PRD_NO_NO": "00001",
"CST_STD_UNIT": 0.00,
"WLGL_UP": "123.00000000"
}
]
}
]
}
}