/*
Name: fnReprintTaxInvoice
Function:
Param:
let objParam = {
"AccId": 25677194,
"PropertyId": 254,
"PrintType": 1,
"TaxInvoices": [
{ "InvoiceNo": 49844 }
]
}
Return:
future:
*/
function fnReprintTaxInvoice(strEventId, nAccId, nInvoiceNo) {
let xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
let objParam = {
"strName": "fnCallBackReprintTaxInvoice",
"objValue": null
}
window.postMessage(objParam);
}
}
let objParam = {
"AccId": nAccId,
"PropertyId": JSON.parse(window.sessionStorage.getItem("InitData")).data.AccDates[0].PropertyId,
"PrintType": 1,
"TaxInvoices": [
{ "InvoiceNo": nInvoiceNo }
]
}
xmlhttp.open("POST", "https://app9.rmscloud.cn/api/Accounting/TaxInvoice/PreProcessRePrintTaxInvoice?" +
"strEventId");
xmlhttp.setRequestHeader('content-Type', 'application/json; charset=utf-8');
xmlhttp.send(JSON.stringify(objParam));
}
function fnOnReprintTaxInvoiceReady( xmlhttp) {
console.log(xmlhttp.responseText);
window.open(JSON.parse(xmlhttp.responseText).PostPath + "?Token=" + JSON.parse(xmlhttp.responseText).PostToken + "¶meters=" + JSON.parse(xmlhttp.responseText).PostData);
}
https://app9.rmscloud.cn/api/Report/Token/Accounting/TaxInvoice
POST
{
"ReportId": 40231,
"ScheduleId": 0,
"TaxInvoiceNos": "49844",
"IsReprint": true,
"AltTaxInvoice": "TI10305CHINA",
"PropertyId": 254,
"SortById": 0,
"IsTaxInvoiceProforma": false,
"AccountId": 25677194,
"AccountTypeIDs": "1,2,4,5,6,12",
"CurrencySymbol": "¥",
"SharedDataPath": "/shareddata/14910/RMSWIN/",
"EmailTo": "",
"IsThermalPrint": false,
"ResId": 9631420,
"FromEmail": "",
"ProformaUseDateRange": false,
"ProformaStartDate": "2025-06-13",
"ProformaEndDate": "2025-06-13",
"IsEmailOverride": false,
"ReportType": 1,
"LetterHistoryIds": "",
"IsRestrictedUser": false,
"InvoiceDueDateEnabled": false,
"InvoiceDueDate": "2025-06-13",
"DirectDebitDateEnabled": false,
"DirectDebitDate": "2025-06-13",
"RePrint_Nos": "",
"UseGovInvoiceAudit": false,
"NinePlusVersionNo": "",
"CountryRunningFrom": 44,
"CurrencyView": 0,
"LocalDateTime": "2025-06-13T12:02:43+08:00",
"AlternatePayee": { }
}