| Server IP : 92.204.40.98 / Your IP : 216.73.216.201 Web Server : LiteSpeed System : Linux amster.dnsfors.com 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : tmksyste ( 2190) PHP Version : 8.3.31 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/tmksyste/domains/tmksystems.in/public_html/crmapp/assets/js/pages/ |
Upload File : |
if(null!==localStorage.getItem("invoices-list")&&null!==localStorage.getItem("option")&&null!==localStorage.getItem("invoice_no")){var invoices_list=localStorage.getItem("invoices-list"),options=localStorage.getItem("option"),invoice_no=localStorage.getItem("invoice_no"),invoices=JSON.parse(invoices_list);let t=invoices.find(e=>e.invoice_no===invoice_no);if(""!=t&&"view-invoice"==options){let e;switch(t.status){case"Paid":e="success";break;case"Pending":e="warning";break;case"Unpaid":case"Refund":e="danger"}document.getElementById("legal-register-no").innerHTML=t.company_details.legal_registration_no,document.querySelector(".card-logo").src=t.logo_img,document.getElementById("email").innerHTML=t.company_details.email,document.getElementById("website").href=t.company_details.website,document.getElementById("website").innerHTML=t.company_details.website,document.getElementById("contact-no").innerHTML=t.company_details.contact_no,document.getElementById("invoice-no").innerHTML=t.invoice_no,document.getElementById("invoice-date").innerHTML=t.createDate,document.getElementById("invoice-due-date").innerHTML=t.dueDate,document.getElementById("payment-status").innerHTML=t.status,document.getElementById("payment-status").classList.remove("bg-success-subtle","text-success"),document.getElementById("payment-status").classList.add("bg-"+e+"-subtle","text-"+e),document.getElementById("total-amount").innerHTML=t.invoice_amount,document.getElementById("billing-name").innerHTML=t.billing_address.full_name,document.getElementById("billing-address-line-1").innerHTML=t.billing_address.address,document.getElementById("billing-phone-no").innerHTML=t.billing_address.phone,document.getElementById("billing-tax-no").innerHTML=t.billing_address.tax,document.getElementById("shipping-name").innerHTML=t.shipping_address.full_name,document.getElementById("shipping-address-line-1").innerHTML=t.shipping_address.address,document.getElementById("shipping-phone-no").innerHTML=t.shipping_address.phone,document.getElementById("sign-img").src=t.sign_img,document.getElementById("products-list").innerHTML="";var paroducts_list=t.products,counter=1,order_summary=(Array.from(paroducts_list).forEach(function(e){product_data=`
<tr>
<th scope="row">`+counter+`</th>
<td class="text-start">
<span class="fw-medium">`+e.product_name+`</span>
<p class="text-muted mb-0">`+e.product_details+`</p>
</td>
<td>`+e.rates+`</td>
<td>`+e.quantity+`</td>
<td class="text-end">$`+e.amount+`</td>
</tr>`,document.getElementById("products-list").innerHTML+=product_data,counter++}),`<table class="table table-borderless table-nowrap align-middle mb-0 ms-auto" style="width:250px">
<tbody>
<tr>
<td>Sub Total</td>
<td class="text-end">$`+t.order_summary.sub_total+`</td>
</tr>
<tr>
<td>Estimated Tax <small class="text-muted">(18%)</small></td>
<td class="text-end">$`+t.order_summary.estimated_tex+`</td>
</tr>
<tr>
<td>Discount <small class="text-muted">(DOSIX30)</small></td>
<td class="text-end">- $`+t.order_summary.discount+`</td>
</tr>
<tr>
<td>Shipping Charge</td>
<td class="text-end">$`+t.order_summary.shipping_charge+`</td>
</tr>
<tr class="border-top border-top-dashed fs-15">
<th scope="row">Total Amount</th>
<th class="text-end">$`+t.order_summary.total_amount+`</th>
</tr>
</tbody>
</table><!--end table-->`);document.getElementById("products-list-total").innerHTML=order_summary,document.getElementById("payment-method").innerHTML=t.payment_details.payment_method,document.getElementById("card-holder-name").innerHTML=t.payment_details.card_holder_name,document.getElementById("card-number").innerHTML=t.payment_details.card_number,document.getElementById("card-total-amount").innerHTML=t.payment_details.total_amount,document.getElementById("note").innerHTML=t.notes}}