" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |
" + prompttitle + " |

" + prompttitle + " |

" + prompttitle + " |

" + prompttitle + " |

" + prompttitle + " |

" + prompttitle + " |
" + prompttitle + " |
','');
h= h.replace('
','');
sp.innerHTML= h;
}
} else {
if (h.indexOf('arrow_up_force_match.png')!=-1) {
//h= h.replace('arrow_up_force_match.png','arrow_down_force_match.png');
if (sp.querySelector('#arrow')) {
sp.querySelector('#arrow').src='images/arrow_down_force_match.png'
}
if (column!='vendor') {
order='-1';
} else {
order='1';
}
} else if (h.indexOf('arrow_down_force_match.png')!=-1){
//h= h.replace('arrow_down_force_match.png','arrow_up_force_match.png');
if (sp.querySelector('#arrow')) {
sp.querySelector('#arrow').src='images/arrow_up_force_match.png'
}
if (column!='vendor') {
order='1';
} else {
order='-1';
}
} else {
if (order=='' && column!='vendor') {
h= h+'
';
order='-1';
} else {
if (column!='vendor') {
h= h+'
';
} else {
h= h+'
';
}
order='1';
}
e.innerHTML= h;
}
}
}
}
});
//editfrm = getIframeByName('receipt_frame');
var iframe= document.getElementById('contentIframe');
editfrm= iframe.contentWindow.getIframeByName('receipt_frame');
if (editfrm) {
//window.top.document.getElementById('transactiontable').classList.add('pre-animation');
editfrm.forceMatch_sortBy(id, column, order, homecurrency);
}
}
function submit_promptForceMatchID(ccid,rid,overwrite) {
var iframe= document.getElementById('contentIframe');
editfrm= iframe.contentWindow.getIframeByName('receipt_frame');
if (editfrm) {
editfrm.submit_promptForceMatchID(ccid,rid,overwrite);
}
}
function submit_promptOverwriteLocalAmount(receipt_id, cc_id) {
//showLoadingAnimation();
$.ajax({
url : '/user/overwrite_localamount.php',
type : 'POST',
data : {
'receipt_id' : receipt_id,
'cc_id' : cc_id
},
dataType:'text',
success : function(data) {
console.log('data: '+data);
var iframe= document.getElementById('contentIframe');
editfrm= iframe.contentWindow.getIframeByName('receipt_frame');
if (data!='') {
if (editfrm) {
frameDoc = editfrm.document;
amount_field= frameDoc.getElementById('amount_'+receipt_id);
//console.log('amount_field: '+amount_field);
if (amount_field) {
editfrm.setCurrentID(receipt_id);
amount_field.value= data;
amount_field.dispatchEvent(new Event('blur'));
editfrm.setCurrentID(undefined);
}
overwrite_arrow= frameDoc.getElementById('overwrite_amt_'+receipt_id+'_'+cc_id);
if (overwrite_arrow) {
overwrite_arrow.style.display='none';
}
amount_field= frameDoc.getElementById('amount_'+receipt_id+'_'+cc_id);
if (amount_field) {
amount_field.style.top='0px';
}
}
}
//hideLoadingAnimation();
},
error : function(request,error)
{
console.log('error: '+error);
//hideLoadingAnimation();
}
});
removePromptStandardYesNo();
}
function submit_promptSubmitApprove(code){
//console.log('approve submit');
parent.removePromptStandardYesNo();
// [MJ] - 23/08/28 - remove high prompt as well if policies are displayed
parent.removePromptStandardYesNoHigh();
parent.removePromptStandardYesNoVeryHigh();
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject('Microsoft.XMLHTTP');
}
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
console.log(xmlhttp);
prompttitle = 'Submitted for Approval';
message = 'The report has been submitted for approval.![]() |