function fnCancelInvoiceNumber(nInvoiceNumber) {
let xmlhttp = new XMLHttpRequest();
xmlhttp.open("POST", "https://app9.rmscloud.cn/api/TaxInvoice/CancelTaxInvoice", true);
xmlhttp.onreadystatechange = function () {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
console.log('账单号已清理');
console.log(xmlhttp.responseText);
let objParam = {
"strName": "fnCallBackCancelInvoiceNumber",
"objValue": null,
"bIfContinue": true,
"strErrorDescription": null
}
window.postMessage(objParam);
}
}
let objParam = {
"InvoiceNo": nInvoiceNumber,
"PropertyId": JSON.parse(window.localStorage.getItem('RM_Property')).data.split('_')[0],
"ReasonId": 47
}
xmlhttp.setRequestHeader('content-Type', 'application/json; charset=utf-8');
xmlhttp.send(JSON.stringify(objParam));
console.log('fnCancelInvoice is going');
}