');newWindow.document.close();var printIframe=newWindow.document.getElementById('printIframe');printIframe.style.display='none';var iframeDoc=printIframe.contentDocument||printIframe.contentWindow.document;iframeDoc.open();iframeDoc.write(xhr.responseText);iframeDoc.close();var iframeTitle=iframeDoc.title||'Document';newWindow.document.title=iframeTitle;setTimeout(function(){printIframe.contentWindow.focus();printIframe.contentWindow.print();newWindow.document.body.style.cursor='auto';newWindow.document.body.removeChild(printIframe);newWindow.close();if(!0===is_bulk_print){}else if(!0===reload_page){window.location.reload(!0)}},500)}else{alert(wf_pklist_params_public.msgs.new_tab_open_error)}}else{if(newWindow){newWindow.document.body.style.cursor='auto'} alert(wf_pklist_params_public.msgs.error_loading_data)}};xhr.onerror=function(){if(newWindow){newWindow.document.body.style.cursor='auto'} alert(wf_pklist_params_public.msgs.request_error);setTimeout(function(){jQuery('.wf_cst_overlay, .wf_pklist_popup').hide()},1000)};xhr.send()} function wf_Confirm_Notice_for_Manually_Creating_Invoicenumbers(url,a){if((1===a||"1"===a)||(2===a||"2"===a)||(3===a||"3"===a)||("11"===a||11===a)){if("2"===a||2===a){var invoice_prompt=wf_pklist_params_public.msgs.invoice_number_prompt_free_order}else if("11"===a||11===a){var invoice_prompt=wf_pklist_params_public.msgs.creditnote_number_prompt}else if("3"===a||3===a){var invoice_prompt=wf_pklist_params_public.msgs.invoice_number_prompt_no_from_addr;alert(invoice_prompt);return!1}else{var msg_title=((1===a||"1"===a)?wf_pklist_params_public.msgs.invoice_title_prompt:a);var invoice_prompt=msg_title+' '+wf_pklist_params_public.msgs.invoice_number_prompt} if(!0===wf_pklist_params_public.msgs.pop_dont_show_again){url=url+'&wt_dont_show_again=1';window.open(url,'_blank');setTimeout(function(){window.location.reload(!0)},1000)}else{if(confirm(invoice_prompt)){window.open(url,'_blank');setTimeout(function(){window.location.reload(!0)},1000)}else{return!1}}}else{window.open(url,'_blank');setTimeout(function(){window.location.reload(!0)},1000)} return!1} ;