该接口主要用于第三方平台或自主研发者,需要通过日期、单号、部门批量查询ERP系统的单据时,则可调用该单据的批量查询接口,将Sunlike ERP或Online ERP系统中的批量单据信息查询到第三方平台中。
{
"code": 0, //本次返回单据中最大的单据日期
"message": "查询成功",
"data": {
"UP_DD": "2021-01-18 18:51:13", //本次查询的单号总数量,每次最大返回单号数为5000笔
"TOTAL_NUM": 2, //本次查询的单号总数量,每次最大返回单号数为5000笔
"BILL_LIST": [ //返回的批量单据明细,含单据表头表身
{
"MF_POS": [
{
"OS_ID": "PO",
"OS_NO": "PO11180002",
"OS_DD": "2021-01-18 00:00:00",
"CUS_NO": "1001",
"SAL_NO": "10001",
"EST_DD": "2021-01-18 00:00:00",
"TAX_ID": "2",
"BIL_TYPE": "",
"PAY_MTH": "1",
"PAY_DAYS": 1,
"CHK_DAYS": 30,
"PAY_REM": "结帐期:2021-02-01;票据到期日:2021-03-01",
"SEND_MTH": "1",
"DIS_CNT": 0.00000000,
"PO_DEP": "0101",
"PAY_DD": "2021-02-01 00:00:00",
"CHK_DD": "2021-03-01 00:00:00",
"INT_DAYS": 30,
"USR": "ADMIN",
"PRT_SW": "N",
"CLS_DATE": "2021-01-18 00:00:00",
"CHK_MAN": "ADMIN",
"EXC_RTO": 1.00000000,
"TOT_QTY": 15.00000000,
"SYS_DATE": "2021-01-18 18:51:13",
"HS_ID": "F",
"HIS_PRICE": "T",
"PRE_ID": "F",
"BIL_COUNT": 0,
"BIL_FILE_COUNT": 0
}
],
"TF_POS": [
{
"OS_ID": "PO",
"OS_NO": "PO11180002",
"ITM": 1,
"PRD_NO": "00001",
"PRD_NAME": "00001货品",
"PRD_MARK": "",
"WH": "A000",
"UNIT": "1",
"QTY": 15.00000000,
"UP": 1.00000000,
"AMT": 15.00000000,
"AMTN": 14.29000000,
"TAX_RTO": 5.00000000,
"TAX": 0.71000000,
"PRE_ITM": 1,
"EST_DD": "2021-01-18 00:00:00",
"CST_STD": 0.00000000,
"QTY_RK": 15.00000000,
"OS_DD": "2021-01-18 00:00:00",
"QTY_YS": 15.00000000,
"EST_ITM": 1,
"CUS_OS_NO": "",
"UNCFM_ID": "F",
"GROUP_DEP": "",
"CUS_NO": "1001",
"SCM_USR": "ADMIN",
"SCM_DD": "2021-01-18 00:00:00",
"UP_PO": 1.00000000,
"GETUP_FROM": "3",
"CHK_TAX": "F",
"CST_STD_UNIT": 0.00,
"PRD_NO_NO": "00001",
"WLGL_UP": "1.00000000"
}
]
},
{
"MF_POS": [
{
"OS_ID": "PO",
"OS_NO": "PO11180001",
"OS_DD": "2021-01-18 00:00:00",
"CUS_NO": "1001",
"SAL_NO": "10001",
"EST_DD": "2021-01-18 00:00:00",
"TAX_ID": "2",
"BIL_TYPE": "",
"PAY_MTH": "1",
"PAY_DAYS": 1,
"CHK_DAYS": 30,
"PAY_REM": "结帐期:2021-02-01;票据到期日:2021-03-01",
"SEND_MTH": "1",
"DIS_CNT": 0.00000000,
"PO_DEP": "0101",
"PAY_DD": "2021-02-01 00:00:00",
"CHK_DD": "2021-03-01 00:00:00",
"INT_DAYS": 30,
"USR": "ADMIN",
"CLS_ID": "T",
"PRT_SW": "N",
"CLS_DATE": "2021-01-18 00:00:00",
"CHK_MAN": "ADMIN",
"EXC_RTO": 1.00000000,
"TOT_QTY": 1.00000000,
"SYS_DATE": "2021-01-18 10:43:58",
"HS_ID": "F",
"HIS_PRICE": "T",
"BACK_ID": "PR",
"PRE_ID": "F",
"BIL_COUNT": 0,
"BIL_FILE_COUNT": 0
}
],
"TF_POS": [
{
"OS_ID": "PO",
"OS_NO": "PO11180001",
"ITM": 1,
"PRD_NO": "00001",
"PRD_NAME": "00001货品",
"PRD_MARK": "",
"WH": "A000",
"UNIT": "1",
"QTY": 1.00000000,
"UP": 1.00000000,
"AMT": 1.00000000,
"AMTN": 0.95000000,
"TAX_RTO": 5.00000000,
"TAX": 0.05000000,
"PRE_ITM": 1,
"EST_DD": "2021-01-18 00:00:00",
"CST_STD": 0.00000000,
"QTY_PRE": 1.00000000,
"OS_DD": "2021-01-18 00:00:00",
"EST_ITM": 1,
"CUS_OS_NO": "",
"UNCFM_ID": "F",
"GROUP_DEP": "",
"CUS_NO": "1001",
"SCM_USR": "ADMIN",
"SCM_DD": "2021-01-18 00:00:00",
"UP_PO": 1.00000000,
"GETUP_FROM": "3",
"CHK_TAX": "F",
"CST_STD_UNIT": 0.00,
"PRD_NO_NO": "00001",
"WLGL_UP": "1.00000000"
}
]
}
]
}
}