there is no outstanding balance for this customer "),$("#PatmentMonerisUSA").val("")):n.includes("YES")?($("#custNumberRequired").hide(),RefreshInvDetailsByCustomerNumber(),$(".buttonForUsaMoneris").css("display","none"),Checkout.gotoSection("custinfo"),GetCompanyNameByCustomerNumber()):n.includes("MonerisIsNotActive")?($("#custnumber-buttons-container").append("
We apologize for the inconvenience regarding credit card payments. Please call us or use e-transfer at accounting@hansamed.net, referencing your customer/invoice number. We appreciate your business and are committed to providing excellent service.<\/div>"),$(".custnumberbtn").prop("disabled",!0)):n.includes("ForMoneris")&&($("#checkout-payment-info-load").css("display","none"),$(".PaymentMoneris").css("display","none"),$("#PatmentMonerisUSA").val("MonerisUSD"),Checkout.gotoSection("custinfo"),GetCompanyNameByCustomerNumber(),RefreshInvDetailsByCustomerNumber())}})}function GetCompanyNameByCustomerNumber(){var n=document.getElementById("customernumber").value;$.ajax({url:"/PaymentInvoice/GetCompanyName",type:"GET",datatype:"JSON",contentType:"application/json; charset=utf-8",data:{customer:n},success:function(n){$("#companyName").val(n)}})}function onChangeHandler(){$("#paymentChecked").html("");getInvoiceTotal()}function onSelectAllInvoices(n){$("#paymentChecked").html("");n.checked?$(".invoiceDelete").prop("checked",!0):$(".invoiceDelete").prop("checked",!1);getInvoiceTotal()}$(document).ready(function(){});TotalInvoice=0;var PaymentTran={CustomerNumber:"",FirstName:"",LastName:"",Email:"",TotalAmount:0,PaymentResult:"",InvoiceDetails:[]}