function fnPrintInvoice(nInvoiceNumber,nAccountNumber,nReservationId)
{
let xmlhttp1 = new XMLHttpRequest();
xmlhttp1.open("POST", "https://app9.rmscloud.cn/api/ReportService/ReportPathPost?ReportId=40231&ReportName=Tax+Invoice&ReportType=1&ScheduleId=0", true);
xmlhttp1.onreadystatechange = function () {
if (xmlhttp1.readyState == 4 && xmlhttp1.status == 200) {
console.log(xmlhttp1.responseText);
window.open(JSON.parse(xmlhttp1.responseText).PostPath + "?Token=" + JSON.parse(xmlhttp1.responseText).PostToken + "¶meters=" + JSON.parse(xmlhttp1.responseText).PostData);
}
}
let aryParam = [
nInvoiceNumber,
true,
"TI10305CHINA",
JSON.parse(window.localStorage.getItem('RM_Property')).data.split('_')[0],
0,
false,
nAccountNumber,
"1,2,4,5,6,12",
"¥",
"/shareddata/14910/RMSWIN/",
null,
"false",
nReservationId,
"",
false,
new Date().getFullYear() + '-' + (parseInt(new Date().getMonth()) + 1) + '-' + new Date().getDate() + "T00:00:00",
new Date().getFullYear() + '-' + (parseInt(new Date().getMonth()) + 1) + '-' + new Date().getDate() + "T00:00:00",
false,
1,
"",
false,
false,
new Date().getFullYear() + '-' + (parseInt(new Date().getMonth()) + 1) + '-' + new Date().getDate() + "T00:00:00",
false,
new Date().getFullYear() + '-' + (parseInt(new Date().getMonth()) + 1) + '-' + new Date().getDate() + "T00:00:00",
false,
"",
JSON.parse(window.sessionStorage.getItem('InitData')).data.VersionNo,
44,
JSON.parse(window.localStorage.getItem('RM_Property')).data.split('_')[0],
false,
"",
"",
"0001-01-01T00:00:00"
]
xmlhttp1.setRequestHeader('content-Type', 'application/json; charset=utf-8');
xmlhttp1.send(JSON.stringify(aryParam));
}