/* Consultgenix handoff-map v1: styles written during parse, page script after DOM ready */ document.write("\n"); (function(){function run(){ (function(){ var FORM_ID = "ENNranM9qetUzuCGKFgh"; var FORM_URL = "https://api.leadconnectorhq.com/widget/form/" + FORM_ID; function $(id){ return document.getElementById(id); } function money(v){ var s = Math.round(Math.abs(v)).toLocaleString("en-US"); return (v < 0 ? "-$" : "$") + s; } var TYPES = [["move","Move"],["process","Process"],["judge","Judge"],["approve","Approve"]]; var ROUTES = {api:"Connector or API", exp:"Scheduled export", screen:"Screen agent"}; var PROCS = [ {id:"pack", name:"Cost-centre report pack", pod:"Reporting", route:"exp", does:"One actuals report per cost centre against budget, forecast and last year, each sent to the right budget owner.", takes:"General ledger export, budget, forecast, cost-centre owner table", gives:"One file per cost centre, a proposed send list, a delivery log", gate:"Dry run first. Nothing sends until a reviewer approves the list.", steps:[["Export actuals from the accounting system","Accounting system to a download folder","move",15], ["Open budget and forecast files and paste in the actuals","Shared drive to Excel","move",20], ["Split the data into one file per cost centre","Excel","process",45], ["Check the files tie back to the ledger total","Excel","process",10], ["Read the big variances and write a short note on each","Analyst","judge",35], ["Look up each budget owner's email","Owner table to Outlook","move",15], ["Attach and send each report","Outlook","move",60], ["Approve the pack before it goes out","Finance manager","approve",10]]}, {id:"bva", name:"Weekly budget vs actual", pod:"FP&A", route:"api", does:"Pulls the week's actuals, lines them up against budget, calculates variances and drafts the commentary.", takes:"Ledger actuals, budget workbook, last week's commentary", gives:"Variance table, a draft note per material variance, the weekly file in the review folder", gate:"Commentary is a draft until the budget owner confirms the reason.", steps:[["Download the week's actuals","Accounting system","move",15], ["Paste into the budget workbook","Excel","move",15], ["Recalculate variances","Excel formulas","process",10], ["Investigate unexpected movements","Analyst","judge",45], ["Write the commentary","Analyst","judge",30], ["Save and email to budget owners","Outlook","move",20]]}, {id:"ap", name:"Vendor portal invoice collection", pod:"Payables", route:"screen", does:"Logs in to supplier portals that have no API, downloads the period's invoices and drops them in the AP intake folder.", takes:"Portal list, the period, the intake folder", gives:"Invoices filed by vendor and period, a list of portals that failed", gate:"Stops at any MFA prompt. Read-only. Never approves or pays.", steps:[["Log in to each supplier portal","Browser","move",30], ["Pick the period and download invoices","Browser","move",40], ["Rename and file by vendor","Shared drive","move",25], ["Check nothing is missing or duplicated","Analyst","process",15], ["Code and approve invoices","AP clerk and manager","approve",40]]}, {id:"ar", name:"Overdue receivables follow-up", pod:"Cash", route:"api", does:"Ages open invoices every week and drafts a polite follow-up for each overdue customer, largest first.", takes:"Open invoice report, customer contacts, last contact date", gives:"Aging by customer, a call list, one draft email per overdue account", gate:"Every email is reviewed before it goes. Disputes go to a person.", steps:[["Export the open invoice report","Accounting system","move",10], ["Age invoices and sort by balance","Excel","process",20], ["Look up contacts and history","CRM and inbox","move",25], ["Decide who gets a call versus an email","Controller","judge",15], ["Write and send each follow-up","Outlook","move",45]]}, {id:"cash", name:"13-week cash update", pod:"Cash", route:"exp", does:"Every Monday, collects bank balances, receivables, payables and the payroll calendar into the 13-week model.", takes:"Bank balances, AR and AP schedules, payroll calendar", gives:"Updated forecast, week-on-week changes explained, a minimum-cash warning", gate:"Any change to payment timing needs the CFO.", steps:[["Download bank balances","Bank portal","move",15], ["Export AR and AP schedules","Accounting system","move",15], ["Paste everything into the model","Excel","move",20], ["Roll the forecast forward","Excel formulas","process",10], ["Explain what changed and decide on payments","CFO","judge",30]]}, {id:"flash", name:"Month-end flash", pod:"Close", route:"api", does:"On day two of the close, pulls the trial balance, compares it with forecast and drafts the flash note.", takes:"Trial balance, forecast, prior month", gives:"Flash P&L, top movements, a draft note for leadership", gate:"Labelled preliminary until the close is final.", steps:[["Run and download the trial balance","Accounting system","move",15], ["Map accounts to the flash layout","Excel","process",20], ["Compare with forecast and prior month","Excel formulas","process",10], ["Write the flash commentary","Controller","judge",40], ["Format and send to leadership","PowerPoint and Outlook","move",30]]}, {id:"je", name:"Recurring journal prep", pod:"Close", route:"api", does:"Prepares the recurring accruals and reclasses each month, with the support attached to every entry.", takes:"Prior month entries, contracts and schedules, open purchase orders", gives:"Proposed entries with support, a list of anything new or unusual", gate:"Proposed only. A person posts every entry.", steps:[["Gather schedules and support","Shared drive and inbox","move",30], ["Calculate the accruals","Excel","process",30], ["Key entries into the ledger","Accounting system","move",25], ["Review and approve entries","Controller","approve",20]]}, {id:"pack2", name:"Monthly owner or board pack", pod:"Reporting", route:"exp", does:"Assembles the monthly pack from the closed numbers: P&L, cash, KPIs and the drivers that matter.", takes:"Closed financials, KPI sources, last month's pack", gives:"A finished pack with commentary drafted for review", gate:"Reporting only. Reviewed before it leaves the building.", steps:[["Collect closed numbers and KPI exports","Several systems","move",40], ["Update charts and tables","Excel and PowerPoint","move",60], ["Write the narrative","CFO","judge",45], ["Final review and send","CFO","approve",15]]} ]; var picked = {}; var work = {}; // per-process editable steps function stepsFor(id){ if (!work[id]) { var p = PROCS.filter(function(x){ return x.id === id; })[0]; work[id] = p.steps.map(function(s){ return {t:s[0], sys:s[1], type:s[2], min:s[3]}; }); } return work[id]; } function renderGrid(){ var g = $("hm-grid"); g.innerHTML = ""; PROCS.forEach(function(a){ var li = document.createElement("li"); var b = document.createElement("button"); b.type = "button"; b.className = "ab-card"; b.setAttribute("aria-pressed", picked[a.id] ? "true" : "false"); b.innerHTML = '
' + '

' + '
Takes in.
Hands back.
' + '
' + '

'; b.querySelector(".ab-name").textContent = a.name; b.querySelector(".ab-pod").textContent = a.pod; b.querySelector(".ab-does").textContent = a.does; b.querySelector(".t").textContent = a.takes; b.querySelector(".g").textContent = a.gives; b.querySelector(".ab-gate").textContent = a.gate; b.querySelector(".ab-route").textContent = "Usual route: " + ROUTES[a.route]; b.querySelector(".ab-pick").textContent = picked[a.id] ? "Picked" : "Pick this"; b.addEventListener("click", function(){ picked[a.id] = !picked[a.id]; renderGrid(); renderCount(); renderSelect(); if (picked[a.id]) { $("hm-proc").value = a.id; renderSteps(); } }); li.appendChild(b); g.appendChild(li); }); } function renderCount(){ var n = Object.keys(picked).filter(function(k){ return picked[k]; }).length; var el = $("hm-count"); if (n === 0) el.innerHTML = "Nothing picked yet."; else if (n === 1) el.innerHTML = "One process picked. Start with one; it teaches you the rest."; else el.innerHTML = "" + n + " processes picked. Map each one, then fix the one with the most moving hours first."; } function renderSelect(){ var s = $("hm-proc"), cur = s.value; var list = PROCS.filter(function(p){ return picked[p.id]; }); if (!list.length) list = PROCS; s.innerHTML = ""; list.forEach(function(p){ var o = document.createElement("option"); o.value = p.id; o.textContent = p.name; s.appendChild(o); }); if (list.some(function(p){ return p.id === cur; })) s.value = cur; } function totals(id){ var t = {move:0, process:0, judge:0, approve:0}; stepsFor(id).forEach(function(s){ t[s.type] += Math.max(0, +s.min || 0); }); return t; } function renderSteps(){ var id = $("hm-proc").value, box = $("hm-steps"); box.innerHTML = ""; stepsFor(id).forEach(function(s){ var row = document.createElement("div"); row.className = "hm-row"; row.setAttribute("role","row"); var a = document.createElement("span"); a.className = "s"; a.setAttribute("role","cell"); a.textContent = s.t; var sm = document.createElement("small"); sm.textContent = s.sys; a.appendChild(sm); var sel = document.createElement("select"); sel.setAttribute("aria-label", "Type for: " + s.t); TYPES.forEach(function(t){ var o = document.createElement("option"); o.value = t[0]; o.textContent = t[1]; sel.appendChild(o); }); sel.value = s.type; sel.className = "t-" + s.type; sel.addEventListener("change", function(){ s.type = sel.value; sel.className = "t-" + s.type; renderSummary(true); }); var inp = document.createElement("input"); inp.type = "number"; inp.min = "0"; inp.step = "5"; inp.value = s.min; inp.setAttribute("aria-label", "Minutes for: " + s.t); inp.addEventListener("input", function(){ s.min = parseFloat(inp.value) || 0; renderSummary(true); }); var c1 = document.createElement("span"); c1.setAttribute("role","cell"); c1.appendChild(sel); var c2 = document.createElement("span"); c2.setAttribute("role","cell"); c2.appendChild(inp); row.appendChild(a); row.appendChild(c1); row.appendChild(c2); box.appendChild(row); }); renderSummary(true); } function renderSummary(pushToRoi){ var id = $("hm-proc").value, t = totals(id); var all = t.move + t.process + t.judge + t.approve; var bars = document.querySelectorAll(".hm-split i"); ["move","process","judge","approve"].forEach(function(k, i){ bars[i].style.width = (all ? t[k] / all * 100 : 0) + "%"; }); var lg = $("hm-legend"); lg.innerHTML = ""; TYPES.forEach(function(k){ var li = document.createElement("li"); li.className = "t-" + k[0]; li.innerHTML = k[1] + " "; li.querySelector("b").textContent = t[k[0]] + " min"; lg.appendChild(li); }); var share = all ? Math.round(t.move / all * 100) : 0; var v = $("hm-verdict"); if (!all) v.textContent = "Add minutes to see the split."; else if (share >= 40) v.textContent = share + "% of this process is moving information. That is the part to automate first."; else if (share >= 20) v.textContent = share + "% of this process is moving information. Worth automating once the bigger ones are done."; else v.textContent = "Only " + share + "% of this process is moving information. Most of it is judgment, which is where a person should be."; if (pushToRoi) { $("i-move").value = t.move; roi(); } } function num(id){ var v = parseFloat($(id).value); return isNaN(v) ? 0 : v; } function roi(){ var runs = num("i-runs"), mv = num("i-move"), rate = num("i-rate"); var cut = Math.min(Math.max(num("i-cut"), 0), 90) / 100, build = num("i-build"); var nowH = runs * mv / 60; var back = nowH * 12 * cut; var value = back * rate; var net = value - build; $("o-now").textContent = (Math.round(nowH * 10) / 10).toLocaleString("en-US"); $("o-hours").textContent = Math.round(back).toLocaleString("en-US"); $("o-value").textContent = money(value); $("o-net").textContent = money(net); $("o-pay").textContent = value > 0 ? (build / (value / 12)).toFixed(1) + " months" : "\u2014"; var note = $("o-note"); if (value <= 0) note.textContent = "No moving minutes, no case. Pick another process."; else if (value < build) note.textContent = "The first year does not cover the build. Automate a process with more runs, or start with the cheapest connection route."; else note.textContent = "The hours pay for the build inside a year. The bigger win is often coverage: every owner gets their report, on time, every month."; } ["i-runs","i-move","i-rate","i-cut","i-build"].forEach(function(id){ $(id).addEventListener("input", roi); }); $("hm-proc").addEventListener("change", renderSteps); var ans = {api:"", exp:"", mfa:""}; function renderRoute(){ var r = $("hm-rec"), k, h, p, p2; if (ans.api === "1") { k = "Recommended"; h = "Connect directly"; p = "Use the approved connector or API, read-only at first. It is the most reliable route and the easiest to keep running."; } else if (ans.exp === "1") { k = "Recommended"; h = "Automate the export"; p = "Schedule the export to a fixed folder and let a workflow tool pick it up. Simple, cheap, and nobody uploads anything."; } else if (ans.api === "0" && ans.exp === "0") { k = "Recommended"; h = "Screen agent"; p = "A browser agent can log in and download the report the way a person does. Give it read-only access and a clear stop rule."; } else { k = "Start here"; h = "Ask IT two questions"; p = "Is there an approved connector or API, and can the system schedule an export? The answers decide the route. Do not assume a connector exists until someone confirms it."; } if (ans.mfa === "1") p2 = "Because every login asks for a code, a person stays in the loop for sign-in. Plan for the agent to pause and ask, not to work around it."; else p2 = "Whatever the route, write down what happens when the file is missing, late or in the wrong format."; r.innerHTML = '

'; r.querySelector(".k").textContent = k; r.querySelector("h3").textContent = h; r.querySelector(".a").textContent = p; r.querySelector(".b").textContent = p2; } Array.prototype.forEach.call(document.querySelectorAll(".hm-yn"), function(g){ var q = g.getAttribute("data-q"); Array.prototype.forEach.call(g.querySelectorAll("button"), function(b){ b.setAttribute("aria-pressed", "false"); b.addEventListener("click", function(){ Array.prototype.forEach.call(g.querySelectorAll("button"), function(x){ x.setAttribute("aria-pressed", "false"); }); b.setAttribute("aria-pressed", "true"); ans[q] = b.getAttribute("data-v"); renderRoute(); }); }); }); function mountForm(){ var wrap = $("hm-form"); if (!wrap) return; if (!FORM_ID || FORM_ID.charAt(0) === "{") { wrap.innerHTML = '

The workbook is sent by email. While the request form is being set up, ask for it on a 30-minute call and I will send it the same day.

Book a 30-minute call
'; $("hm-form-note").textContent = ""; return; } var f = document.createElement("iframe"); f.src = FORM_URL + "?cgx_source_page=" + encodeURIComponent("handoff-map") + "&cgx_lead_magnet=" + encodeURIComponent("Handoff Map workbook"); f.id = "inline-" + FORM_ID; f.title = "Send me the Handoff Map workbook"; f.style.cssText = "width:100%;min-height:420px;border:0"; f.setAttribute("data-layout", '{"id":"INLINE"}'); f.setAttribute("data-trigger-type", "alwaysShow"); f.setAttribute("data-activation-type", "alwaysActivated"); f.setAttribute("data-deactivation-type", "neverDeactivate"); f.setAttribute("data-form-name", "CGX - Handoff Map workbook"); f.setAttribute("data-layout-iframe-id", "inline-" + FORM_ID); f.setAttribute("data-form-id", FORM_ID); wrap.appendChild(f); if (!document.getElementById("ghl-embed-js")) { var sc = document.createElement("script"); sc.id = "ghl-embed-js"; sc.src = "https://link.msgsndr.com/js/form_embed.js"; document.body.appendChild(sc); } } renderGrid(); renderCount(); renderSelect(); renderSteps(); renderRoute(); mountForm(); })(); } if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',run);}else{run();}})();