<%- L.flo[checkout.lang].pleaseselect %>:

<%- L.flo[checkout.lang].addnewbtn %>:

<% // N E W - P R O D U C T S () console.log("==============================\nshow-showproducts - new products\n===============================") var teller = 0; for(var i=0; i <% var isok = function (v) { if (typeof v == 'undefined' || v === false || v == "" || v == null) { console.log(`v = ${v} is not ok`) return false; } else { return true; } } var _dateFormat = function (date, fstr, utc) { utc = utc ? "getUTC" : "get"; return fstr.replace(/%[YmdHMS]/g, function (m) { switch (m) { case "%Y": return date[utc + "FullYear"](); break; // no leading zeros required case "%m": m = 1 + date[utc + "Month"](); break; case "%d": m = date[utc + "Date"](); break; case "%H": m = date[utc + "Hours"](); break; case "%M": m = date[utc + "Minutes"](); break; case "%S": m = date[utc + "Seconds"](); break; default: return m.slice(1); } // add leading zero if required return ("0" + m).slice(-2); }); } var skip = false; for (var ep = 0; ep < existingprds.length; ep++) { if(window.prds[i].type == existingprds[ep].type && parseInt(existingprds[ep].validity)>0) { console.log(i + " window.prds[i].type=" + window.prds[i].type + " EXISTS!"); skip = true; } } skip=false; if (skip == false && checkout.newlics.indexOf(window.prds[i].type) > -1) { if (checkout.newonlyid == "*" || checkout.newonlyid.indexOf(window.prds[i].id)>-1 ) { skip = false; //hardcoded added product } else { skip = true } } else { skip = true; } if(isok(window.prds[i].notinnewlics)){ skip=true; } %> <% if (skip==false) { teller++; %> <% } //skipped %> <% } //loop %> <% if(teller<1) { %> <% } %>
Select
 
Product
 
Users/ Sites
 
<%- L.flo[checkout.lang].duration %>
(in months)
<%- L.flo[checkout.lang].price %>
(excl taxes)
<%- window.prds[i].name %>
<% if(parseInt(window.prds[i].maxusers)>1) { %> <% } else { %> 1 <% } %> <% if(parseInt(window.prds[i].maxmonths) == 1) { %> 1 months <% } else if(parseInt(window.prds[i].minmonths)!=parseInt(window.prds[i].maxmonths)) { %> <% } else { %> 12 months <% } %>
<%= window.prds[i].pricecalc %>
No new licenses available.
<% if(!isok(checkout.filenr)) { %>

<%- L.flo[checkout.lang].upgrbtn %>:

<% } %> <% // E X I S T I N G - P R O D U C T S console.log("==============================\ncreateProductsTable - existing products\n===============================") var extrarow=(i-1); for (var ep = 0; ep < existingprds.length; ep++) { for (var p = 0; p < window.prds.length; p++) { if( isok(existingprds[ep].filenm) && (checkout.upgrlics.indexOf(window.prds[p].type) > -1) && (!isok(checkout.filenr) || existingprds[ep].filenm.replace(".json","").slice(-3) == checkout.filenr) && (existingprds[ep].type==window.prds[p].type) && (existingprds[ep].accountstatus == window.prds[p].id) && (existingprds[ep].users <= parseInt(window.prds[p].maxusers))) { //same type of apps for(var up = 0; up < window.prds[p].upgrpaths.length;up++) { //show upg options extrarow++; %> <% if(up==0) { %> <% } %> <% }} %> <% }} %>
Select
 
<%- L.flo[checkout.lang].existprds %> Users/ Sites
 
<%- L.flo[checkout.lang].duration %>
(in months)
<%- L.flo[checkout.lang].price %>
(excl taxes)
App # <%- existingprds[ep].filenm.replace(".json","").slice(-3) %>   <%- window.prds[p].name %>
<%- window.prds[p].upgrpaths[up].name %>
<% if(existingprds[ep].type == "rlbnb" && typeof existingprds[ep].formdata != 'undefined' && typeof existingprds[ep].formdata.gegevensform != 'undefined') { %> <%- JSON.parse(existingprds[ep].formdata.gegevensform)[1] %> <% } else if(existingprds[ep].type == "rlhu" && typeof existingprds[ep].formdata != 'undefined' && typeof existingprds[ep].formdata.gegevensform != 'undefined') { %> <%- JSON.parse(existingprds[ep].formdata.gegevensform)[1] %> <% } else { %> <% } %> <% var now = _dateFormat(new Date(), "%Y%m%d", true); %> <%= (existingprds[ep].domain || existingprds[ep].filenr || "-") %> | <%= (existingprds[ep].accountstatus || "-") %><%= (prds[p].id || "-") %><%= (prds[p].upgrpaths[up].newstatus || "-") %> | exp. <%= dayjs(existingprds[ep].validity,"YYYYMMDD").diff(now, 'days') %> days <% if (prds[p].upgrpaths[up].upgrtype == "user") { %> users: <%= parseInt(existingprds[ep].users) %> <% } %> <% if (typeof window.prds[p].upgrpaths[up].datecalc != "undefined") { %> <% } %>
<% if (prds[p].upgrpaths[up].upgrtype == "user") { %> <% } else { %> <%= parseInt(existingprds[ep].users) || "1" %> <% } %> <% if(prds[p].upgrpaths[up].upgrtype=="month" || window.prds[p].upgrpaths[up].upgrtype == "status") { %> 12 months <% } else { %> follows acc. <% } %>
<%= window.prds[p].upgrpaths[up].pricecalc %>

<%- L.flo[checkout.lang].paymeth %>:

Sub-total New:
Sub-total Upgrade:

Sub-total:  

Select a product first ....

<%- L.flo[checkout.lang].dblclick %>
<%- L.flo[checkout.lang].crossupgrade %>
4
<%- L.flo[checkout.lang].clickhere %>
© 2024 LaDauze SAS v3.0