Category

What kind of seller are you?

Published:

Every sale on PivoHub involves three tasks: taking the order, invoicing and delivering. This guide covers the 7 seller scenarios (direct sale, 3PL delivery, invoicing seller with a delegated catalog, buy-and-resell distributor, external seller, external seller with distributor, brand taking orders for its distributor) and helps you find yours in 3 questions.

<!--pivohub-embed:seller-scenarios-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<base target="_blank">
<title>PivoHub Seller Scenarios</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Geologica:wght@400;500;600;700&family=Heebo:wght@400;500;700&display=swap">
<style>html{color-scheme:light}body{margin:0}

:root{
--bg:#F4F6F7; --surface:#FFFFFF; --ink:#31363A; --muted:#5D666B; --line:#DFE4E5;
--accent:#1680CF; --yellow:#FFE655; --yellow-line:#E3C832; --on-yellow:#31363A;
--c-order:#1680CF; --c-ship:#1E8E5A; --on-flow:#FFFFFF;
--node:#FFFFFF; --node-line:#BFC9CD; --edge:#9AA6AC;
--buyer:#31363A; --buyer-ink:#FDFDFD; --soft:#EAF3FA; --warn:#9A5B00; --warn-bg:#FFF4DE;
--display:"Geologica", "Segoe UI", system-ui, sans-serif;
--body:"Heebo", "Segoe UI", system-ui, sans-serif;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.6}
.wrap{max-width:920px;margin:0 auto;padding-inline:24px;padding-block:40px 72px;display:flex;flex-direction:column;gap:56px}
@media (max-width:520px){.wrap{padding-inline:16px;padding-block:24px 48px;gap:40px}}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0;line-height:1.2}
h1{font-size:clamp(30px,5vw,42px);font-weight:700;letter-spacing:-.01em}
h2{font-size:24px;font-weight:600}
h3{font-size:20px;font-weight:600}
p{margin:0}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.eyebrow{font-family:var(--display);font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.lede{font-size:18px;max-width:64ch;color:var(--ink)}
.muted{color:var(--muted)}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

header{display:flex;flex-direction:column;gap:16px}
.brandbar{width:72px;height:6px;border-radius:3px;background:linear-gradient(138deg,#FFE655 18%,#1692CF 89%)}
.gestes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:8px}
.geste{display:flex;gap:12px;align-items:flex-start;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.geste b{font-family:var(--display);font-weight:600;display:block}
.geste span{font-size:14px;color:var(--muted)}
@media (max-width:640px){.gestes{grid-template-columns:1fr}}
.dot{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none}
.dot .ico{width:18px;height:18px;stroke-width:2}
.f-order{background:var(--c-order);color:var(--on-flow)}
.f-invoice{background:var(--yellow);color:var(--on-yellow)}
.f-ship{background:var(--c-ship);color:var(--on-flow)}

.finder{background:var(--soft);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:16px}
.steps{display:flex;flex-direction:column;gap:12px}
.done{font-size:14px;color:var(--muted)}
.done b{color:var(--ink);font-weight:500}
.q{font-family:var(--display);font-weight:600;font-size:17px}
.opts{display:flex;flex-wrap:wrap;gap:8px}
.opt{font:500 15px var(--body);color:var(--ink);background:var(--surface);border:1px solid var(--node-line);border-radius:999px;padding:8px 16px;cursor:pointer}
.opt:hover{border-color:var(--accent);color:var(--accent)}
.opt[aria-pressed="true"],.opt[aria-pressed="true"]:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.opt:disabled{opacity:.5;cursor:default;border-color:var(--node-line);color:var(--ink)}
.result{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}
.result .num{font-family:var(--display);font-weight:700;background:var(--yellow);color:var(--on-yellow);border-radius:8px;padding:4px 10px}
.result strong{font-family:var(--display);font-weight:600}
.linkbtn{font:500 15px var(--body);background:none;border:0;color:var(--accent);cursor:pointer;padding:4px 0;text-decoration:underline;text-underline-offset:3px}

.section{display:flex;flex-direction:column;gap:20px}
.roles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:780px){.roles{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.roles{grid-template-columns:1fr}}
.role{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:8px;min-width:0}
.role-h{display:flex;align-items:center;gap:10px}
.role-h b{font-family:var(--display);font-weight:600}
.role p{font-size:14px}
.role .acc{font-size:13px;color:var(--muted)}
.role.buyer{background:var(--buyer);color:var(--buyer-ink);border-color:var(--buyer)}
.role.buyer .acc{color:inherit;opacity:.8}
.callout{font-size:15px;color:var(--muted);max-width:70ch}

.family{display:flex;flex-direction:column;gap:20px}
.family-h{display:flex;flex-direction:column;gap:6px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:20px;scroll-margin-top:24px;transition:box-shadow .3s}
.card.flash{box-shadow:0 0 0 3px var(--accent)}
@media (max-width:520px){.card{padding:16px}}
.card-h{display:flex;flex-direction:column;gap:6px}
.card-h .summary{font-size:17px;max-width:66ch}
.dia{overflow-x:auto;margin-inline:-8px;padding-inline:8px}
.dia svg{display:block;width:100%;min-width:600px;height:auto}
.who{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (max-width:560px){.who{grid-template-columns:1fr}}
.cell{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}
.cell small{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:500}
.cell b{font-family:var(--display);font-weight:600}
.meta{display:grid;grid-template-columns:max-content 1fr;gap:6px 20px;margin:0;font-size:15px}
.meta dt{color:var(--muted)}
.meta dd{margin:0;min-width:0}
@media (max-width:520px){.meta{grid-template-columns:1fr;gap:2px}.meta dd{margin-bottom:8px}}
.note{font-size:15px;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}
.note b{color:var(--ink);font-weight:500}

.n rect{fill:var(--node);stroke:var(--node-line);stroke-width:1.2}
.n .lbl{font:600 14px var(--display);fill:var(--ink)}
.n .sub{font:400 11.5px var(--body);fill:var(--muted)}
.n .ic{fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.n.you rect{fill:var(--yellow);stroke:var(--yellow-line)}
.n.you .lbl,.n.you .sub{fill:var(--on-yellow)}
.n.you .ic{stroke:var(--on-yellow)}
.n.buyer rect{fill:var(--buyer);stroke:var(--buyer)}
.n.buyer .lbl,.n.buyer .sub{fill:var(--buyer-ink)}
.n.buyer .ic{stroke:var(--buyer-ink)}
.edge{stroke:var(--edge);stroke-width:2;fill:none}
.rel{stroke:var(--muted);stroke-width:1.5;fill:none}
.rel.dash{stroke-dasharray:5 4}
.rl{font:500 11px var(--body);fill:var(--muted)}
.pill{fill:var(--surface)}
.chip circle{stroke:var(--surface);stroke-width:2}
.chip path,.chip rect,.chip circle.i{fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.chip.o circle.b{fill:var(--c-order)} .chip.o .g{stroke:var(--on-flow)}
.chip.i circle.b{fill:var(--yellow)} .chip.i .g{stroke:var(--on-yellow)}
.chip.s circle.b{fill:var(--c-ship)} .chip.s .g{stroke:var(--on-flow)}

.legend{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:720px){.legend{grid-template-columns:1fr}}
.legend div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 16px;font-size:14px;min-width:0}
.legend b{font-family:var(--display);font-weight:600;display:block;margin-bottom:4px;font-size:15px}
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
table{border-collapse:collapse;width:100%;font-size:14px}
th,td{text-align:left;padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
thead th{font-family:var(--display);font-weight:600;font-size:13px;color:var(--muted);white-space:nowrap}
thead tr.grp th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;padding-bottom:4px;border-bottom:0}
thead tr.grp th.g{border-bottom:2px solid var(--line)}
th.sep,td.sep{border-left:1px solid var(--line)}
tbody tr:last-child td{border-bottom:0}
.th-ic{display:inline-flex;align-items:center;gap:6px}
.th-ic .dot{width:22px;height:22px}.th-ic .dot .ico{width:13px;height:13px}
.sc a{font-family:var(--display);font-weight:600;text-decoration:none;color:var(--ink)}
.sc a:hover{color:var(--accent);text-decoration:underline}
.sc .n{display:block;font-size:12px;color:var(--muted);font-weight:500}
.sc{min-width:210px;max-width:250px}
.sc .short{display:block;margin-top:4px;font-size:14px;line-height:1.45}
.sc .you-is{display:block;margin-top:8px;font-size:12.5px;line-height:1.5;color:var(--muted)}
.sc .you-is b{color:var(--ink);font-weight:500}
.actor{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:14px;padding:3px 10px 3px 7px;font-weight:500;line-height:1.3}
.actor .ico{width:15px;height:15px}
.actor.you{background:var(--yellow);border-color:var(--yellow-line);color:var(--on-yellow)}
.where{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.role-c{font-size:13px}
@media (max-width:760px){
.tablewrap{border:0;background:none;overflow:visible}
table,tbody,tr,td{display:block;width:100%}
thead{display:none}
tbody tr{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px 14px;margin-bottom:12px}
td{display:grid;grid-template-columns:96px 1fr;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
td.sep{border-left:0}
td::before{content:attr(data-label);font-size:12px;color:var(--muted);font-weight:500}
td.sc{display:block}td.sc::before{content:none}
tbody tr td:last-child{border-bottom:0}
.sc{max-width:none}
td > .actor, td > div{justify-self:start}
}
ul.tips{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;max-width:70ch}
@media (prefers-reduced-motion:reduce){.card{transition:none}}
</style>
</head>
<body>
<div class="wrap">
<header>
<div class="brandbar" aria-hidden="true"></div>
<span class="eyebrow">Help center · Selling on PivoHub</span>
<h1>What kind of seller are you?</h1>
<p class="lede">Every sale on PivoHub involves three tasks. Depending on your business model, you handle them yourself or a partner does. Find your scenario to know which role to set up.</p>
<div class="gestes" id="gestes"></div>
</header>
<section class="finder" id="trouver" aria-labelledby="trouver-h">
<h2 id="trouver-h">Find your scenario in 3 questions</h2>
<div class="steps" id="steps" aria-live="polite"></div>
</section>
<section class="section" id="acteurs" aria-labelledby="acteurs-h">
<h2 id="acteurs-h">Who’s who</h2>
<div class="roles" id="roles"></div>
<p class="callout">The producer and the supplier are often the same company: a <b>producer-seller</b>. A producer can also hand the selling of its catalog to a supplier, a distributor or an agent.</p>
</section>
<div id="scenarios" class="section" style="gap:48px"></div>
<section class="section" id="recap" aria-labelledby="recap-h">
<h2 id="recap-h">Summary</h2>
<div class="legend">
<div><b><span class="actor you">You</span></b>Your company, in the role shown under each scenario (producer, distributor, agent…).</div>
<div><b>Brand</b>Who owns the product itself: the brand and its catalog (product sheets).</div>
<div><b>Inventory</b>Who owns the physical goods in stock, because they produced or bought them. We also show where the goods are stored.</div>
</div>
<div class="tablewrap"><table id="table"></table></div>
</section>
<section class="section" id="savoir" aria-labelledby="savoir-h">
<h2 id="savoir-h">Good to know</h2>
<ul class="tips">
<li><b>You can combine scenarios.</b> A brewery can sell direct in its home region (scenario 1) and through a distributor elsewhere (scenario 4).</li>
<li><b>Supplier responsibilities can be delegated</b> to a reseller or an agent. This is catalog delegation.</li>
<li><b>The supplier can keep control of prices.</b> A distributor that buys and resells can hand price management back to the supplier.</li>
<li><b>A 3PL never sells.</b> It stores and delivers on behalf of the supplier. The sale and the invoice stay with the supplier.</li>
<li><b>“External seller” means an independent agent.</b> A broker or agent who is not on the payroll, is paid on commission, and takes orders for a brand or a distributor. On PivoHub, this is the Broker / Agent role. A sales rep employed by a company counts as that company: the brand or the distributor.</li>
<li><b>An external seller can invoice.</b> If they issue the invoice to the customer, scenario 3 applies.</li>
<li><b>A brand can take orders for its distributor.</b> The distributor buys, stocks, invoices and delivers, but the brand enters some orders itself, for example for a retail chain it manages directly. This is scenario 7. If you are the distributor, this setup lets the brand enter orders without seeing your other brands.</li>
<li><b>A reseller can have a distributor deliver for it.</b> A company that buys and resells follows scenario 4, even when another distributor stores and delivers the goods for it: that distributor then acts as a 3PL. If the brand also takes some orders for this reseller, it combines with scenario 7.</li>
</ul>
</section>
</div>
<script>
const ICON = {
factory:'<path d="M3 21h18"/><path d="M4 21V11l5 3v-3l5 3V5h5v16"/>',
tag:'<path d="M3 12V4h8l10 10-8 8z"/><circle cx="7.5" cy="7.5" r="1.5"/>',
person:'<circle cx="12" cy="8" r="4"/><path d="M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7"/>',
warehouse:'<path d="M3 21V9l9-5 9 5v12"/><path d="M7 21v-8h10v8"/><path d="M7 17h10"/>',
pallet:'<rect x="3" y="11" width="8" height="7" rx="1"/><rect x="13" y="11" width="8" height="7" rx="1"/><rect x="8" y="3" width="8" height="7" rx="1"/><path d="M2 21h20"/>',
shop:'<path d="M4 10v11h16V10"/><path d="M3 10l2-6h14l2 6z"/><path d="M10 21v-6h4v6"/>',
order:'<rect x="5" y="4" width="14" height="17" rx="2"/><path d="M9 3h6v3H9z"/><path d="M9 11h6M9 15h6"/>',
invoice:'<path d="M6 3h12v18l-3-2-3 2-3-2-3 2z"/><path d="M9 8h6M9 12h6M9 16h3"/>',
ship:'<path d="M2 6h12v10H2z"/><path d="M14 10h4l3 3v3h-7"/><circle cx="6" cy="18" r="2"/><circle cx="17" cy="18" r="2"/>'
};
const svgIcon = (k, cls='ico') => `<svg class="${cls}" viewBox="0 0 24 24" aria-hidden="true">${ICON[k]}</svg>`;
const FLOW = {
C:{name:'Order', icon:'order', cls:'f-order', chip:'o', desc:'Who receives the customer’s order'},
F:{name:'Invoice', icon:'invoice', cls:'f-invoice', chip:'i', desc:'Who bills the customer and collects payment'},
L:{name:'Delivery', icon:'ship', cls:'f-ship', chip:'s', desc:'Who brings the goods'}
};
const ROLES = [
{icon:'factory', name:'Producer', line:'Owns the brand. Manages the product catalog.', acc:'On PivoHub: product catalog.'},
{icon:'tag', name:'Supplier', line:'Manages prices and available quantities, and sells.', acc:'On PivoHub: data and the full sales module (online store, EDI, reps, manual entry).'},
{icon:'warehouse', name:'Reseller / Distributor', line:'Buys the goods and resells them. Stores them itself or hands storage and delivery to a 3PL or another distributor.', acc:'On PivoHub: the same features as a supplier.'},
{icon:'person', name:'Broker / Agent', line:'Takes orders for the brands it represents, for a commission.', acc:'On PivoHub: data, a unified catalog of all its producers and the full sales module.'},
{icon:'pallet', name:'3PL distributor', line:'Stores and delivers on behalf of the supplier or the reseller. Does not sell or invoice.', acc:'On PivoHub: logistics for the supplier or the reseller.'},
{icon:'shop', name:'Buyers', line:'Retailers (grocery, convenience, corporate), restaurants and hotels, institutions (hospitals, schools, governments).', acc:'They order from whoever sells to them.', buyer:true}
];
const FAMILIES = [
{id:'A', title:'You sell your own products', intro:'You own the brand and you do the selling.'},
{id:'B', title:'You sell and invoice other brands’ products', intro:'You are the customer’s seller of record, without owning the brand.'},
{id:'C', title:'You take orders without invoicing', intro:'You are an external seller or the brand itself. You take the order; someone else invoices and delivers.'}
];
const SCEN = [
{id:1, short:'You sell your products and handle everything yourself.', fam:'A', title:'Direct sale',
summary:'You take the order, invoice and deliver yourself.',
example:'A microbrewery that delivers its cases to convenience stores and restaurants in its region.',
nodes:[{id:'v',col:1,icon:'factory',label:'You',sub:'Producer-seller',you:true}],
flows:[{from:'v',f:'CFL'}], rels:[],
who:{C:'You',F:'You',L:'You'}, youAre:'Producer-seller', brand:'You', inv:'You', invWhere:'With you', role:'Producer + Supplier',
pivo:'You manage your catalog, prices and quantities. Orders come in through the online store, EDI, your reps or manual entry.'},
{id:2, short:'You sell your products. A partner warehouse delivers them for you.', fam:'A', title:'Direct sale, 3PL delivery',
summary:'You sell and invoice. A logistics partner (3PL) stores your goods and delivers on your behalf.',
example:'A winery that hands storage and Montreal deliveries to a partner warehouse.',
nodes:[{id:'v',col:1,icon:'factory',label:'You',sub:'Producer-seller',you:true},
{id:'t',col:1,icon:'pallet',label:'3PL',sub:'Non-seller'}],
flows:[{from:'v',f:'CF'},{from:'t',f:'L'}],
rels:[{from:'v',to:'t',label:'Delivery\non your behalf',dash:true}],
who:{C:'You',F:'You',L:'The 3PL'}, youAre:'Producer-seller', brand:'You', inv:'You', invWhere:'At the 3PL', role:'Producer + Supplier, linked to a 3PL',
pivo:'You sell as in scenario 1. The 3PL only handles logistics: it does not sell or invoice.'},
{id:3, short:'You sell and invoice a brand’s products. The brand delivers.', fam:'B', title:'Invoicing seller, delegated catalog',
summary:'The brand delegates its catalog to you. You manage prices, take the order and invoice. The brand (or its 3PL) keeps the goods and delivers.',
example:'An agency that sells and invoices products from several small producers without holding inventory. An invoicing agent works this way too.',
nodes:[{id:'v',col:1,icon:'tag',label:'You',sub:'Delegated catalog',you:true},
{id:'m',col:1,icon:'factory',label:'The brand',sub:'or its 3PL'}],
flows:[{from:'v',f:'CF'},{from:'m',f:'L'}],
rels:[{from:'m',to:'v',label:'Catalog\ndelegation',dash:true}],
who:{C:'You',F:'You',L:'The brand or its 3PL'}, youAre:'Invoicing seller', brand:'The brand', inv:'The brand', invWhere:'At the brand or its 3PL', role:'Supplier (catalog delegated by the producer)',
pivo:'The producer keeps managing its brand. You receive its catalog and use the sales module as if the products were yours.'},
{id:4, short:'You buy a brand’s products, store them and resell them.', fam:'B', title:'Distributor (buy and resell)',
summary:'You buy the goods from the supplier, store them, then resell them. You invoice and deliver.',
example:'A regional distributor that buys from several breweries and delivers to restaurants and grocery stores.',
nodes:[{id:'f',col:0,icon:'tag',label:'Supplier',sub:'The brand'},
{id:'v',col:1,icon:'warehouse',label:'You',sub:'Distributor',you:true}],
flows:[{from:'v',f:'CFL'}],
rels:[{from:'f',to:'v',label:'B2B purchase'}],
who:{C:'You',F:'You',L:'You'}, youAre:'Distributor', brand:'The brand', inv:'You', invWhere:'With you (bought from the supplier)', role:'Reseller / Distributor',
pivo:'You get the same features as a supplier. The supplier can keep control of prices: you invoice, but at its prices.'},
{id:5, short:'You take the order. The supplier invoices and delivers.', fam:'C', title:'External seller',
summary:'You take the order on behalf of the brand. The supplier invoices and delivers, itself or through its 3PL. You earn a commission.',
example:'A rep who covers grocery stores in the Eastern Townships for five producers.',
nodes:[{id:'v',col:1,icon:'person',label:'You',sub:'External seller',you:true},
{id:'f',col:1,icon:'tag',label:'Supplier',sub:'or its 3PL'}],
flows:[{from:'v',f:'C'},{from:'f',f:'FL'}],
rels:[{from:'f',to:'v',label:'Mandate\ncommission',dash:true}],
who:{C:'You',F:'The supplier',L:'The supplier or its 3PL'}, youAre:'External seller', brand:'The brand', inv:'The supplier', invWhere:'At the supplier or its 3PL', role:'Broker / Agent',
pivo:'You see every brand you represent in one catalog, with sales data and the full sales module.'},
{id:6, short:'You take the order. A distributor invoices and delivers.', fam:'C', title:'External seller with distributor',
summary:'You take the order. A distributor that bought the goods from the supplier invoices and delivers to the customer.',
example:'An agent who places an imported brand in hotels, while the brand’s distributor invoices and delivers.',
nodes:[{id:'f',col:0,icon:'tag',label:'Supplier',sub:'The brand'},
{id:'v',col:1,icon:'person',label:'You',sub:'External seller',you:true},
{id:'d',col:1,icon:'warehouse',label:'Distributor',sub:'Buys and resells'}],
flows:[{from:'v',f:'C'},{from:'d',f:'FL'}],
rels:[{from:'f',to:'v',label:'Mandate\ncommission',dash:true},{from:'f',to:'d',label:'B2B sale'}],
who:{C:'You',F:'The distributor',L:'The distributor'}, youAre:'External seller', brand:'The brand', inv:'The distributor', invWhere:'At the distributor', role:'Broker / Agent, linked to the distributor',
pivo:'You work with the catalog of the brands you represent. The distributor that holds the stock fulfills the order.'},
{id:7, short:'You take orders for your own products. Your distributor invoices and delivers.', fam:'C', title:'Brand taking orders for its distributor',
summary:'You sell your products to a distributor, which buys and stocks them. You keep some customer accounts yourself: you take their orders, and the distributor invoices and delivers.',
example:'A specialty food brand that places its products in a supermarket chain itself, while its distributor invoices and delivers to the stores.',
nodes:[{id:'v',col:1,icon:'factory',label:'You',sub:'The brand',you:true},
{id:'d',col:1,icon:'warehouse',label:'Distributor',sub:'Buys and resells'}],
flows:[{from:'v',f:'C'},{from:'d',f:'FL'}],
rels:[{from:'v',to:'d',label:'B2B sale\n+ orders passed on'}],
who:{C:'You',F:'The distributor',L:'The distributor'}, youAre:'Producer (order taker)', brand:'You', inv:'The distributor', invWhere:'At the distributor', role:'Producer, linked to the distributor',
pivo:'Your brand profile is delegated to the distributor. Your team enters orders there and only sees your catalog, never the distributor’s other brands. Orders go straight to the distributor, which applies its prices, invoices and delivers.'}
];

document.getElementById('gestes').innerHTML = Object.values(FLOW).map(f =>
`<div class="geste"><span class="dot ${f.cls}">${svgIcon(f.icon)}</span><div><b>${f.name}</b><span>${f.desc}</span></div></div>`).join('');

document.getElementById('roles').innerHTML = ROLES.map(r =>
`<div class="role${r.buyer?' buyer':''}"><div class="role-h">${svgIcon(r.icon)}<b>${r.name}</b></div><p>${r.line}</p><p class="acc">${r.acc.replace(' : ',' : ')}</p></div>`).join('');

const COL = {0:{x:10,w:140}, 1:{x:270,w:170}};
const BUY = {x:574,w:134,cy:115,h:72};
const NH = 58;
function nodeSvg(x,y,w,h,n,cls){
const cy = y + h/2;
return `<g class="n ${cls}">
<rect x="${x}" y="${y}" width="${w}" height="${h}" rx="10"/>
<g class="ic" transform="translate(${x+12},${cy-12})">${ICON[n.icon]}</g>
<text class="lbl" x="${x+46}" y="${cy-3}">${n.label}</text>
<text class="sub" x="${x+46}" y="${cy+14}">${n.sub}</text></g>`;
}
function chip(x,y,k){
const f = FLOW[k];
return `<g class="chip ${f.chip}"><circle class="b" cx="${x}" cy="${y}" r="13"/>
<g class="g" transform="translate(${x-7.2},${y-7.2}) scale(.6)">${ICON[f.icon]}</g></g>`;
}
function relLabel(x,y,text,anchor){
const lines = text.split('\n');
const w = Math.max(...lines.map(l=>l.length))*6 + 14, h = lines.length*13 + 8;
const y0 = y - (lines.length-1)*6.5;
let bg = '';
if(anchor==='middle') bg = `<rect class="pill" x="${x-w/2}" y="${y-h/2}" width="${w}" height="${h}" rx="6"/>`;
return bg + `<text class="rl" text-anchor="${anchor}">${lines.map((l,i)=>`<tspan x="${x}" y="${y0+i*13+4}">${l}</tspan>`).join('')}</text>`;
}
function diagram(s){
const has0 = s.nodes.some(n=>n.col===0);
const off = has0 ? 0 : -110;
const c1 = s.nodes.filter(n=>n.col===1);
const pos = {};
s.nodes.forEach(n=>{
const c = COL[n.col];
let cy = 115;
if(n.col===1 && c1.length===2) cy = c1.indexOf(n)===0 ? 55 : 175;
pos[n.id] = {x:c.x, w:c.w, y:cy-NH/2, cy};
});
let rels='', edges='', chips='', nodes='';
s.rels.forEach(r=>{
const a = pos[r.from], b = pos[r.to];
const dash = r.dash ? ' dash' : '';
if(a.x === b.x){ // vertical in same column
const x = a.x + a.w/2;
const top = Math.min(a.cy,b.cy) + NH/2 + 4, bot = Math.max(a.cy,b.cy) - NH/2 - 4;
rels += `<line class="rel${dash}" x1="${x}" y1="${top}" x2="${x}" y2="${bot}"/>`;
rels += relLabel(x-12,(top+bot)/2,r.label,'end');
} else {
const x1 = a.x + a.w, y1 = a.cy, x2 = b.x, y2 = b.cy;
rels += `<line class="rel${dash}" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"/>`;
rels += relLabel((x1+x2)/2,(y1+y2)/2,r.label,'middle');
}
});
s.flows.forEach(fl=>{
const p = pos[fl.from];
const x1 = p.x + p.w, y1 = p.cy, x2 = BUY.x, y2 = BUY.cy + (p.cy-BUY.cy)*0.3;
edges += `<line class="edge" x1="${x1}" y1="${y1}" x2="${x2}" y2="${y2}"/>`;
const ks = fl.f.split(''), mx = (x1+x2)/2;
ks.forEach((k,i)=>{
const x = mx + (i-(ks.length-1)/2)*30;
const y = y1 + (x-x1)/(x2-x1)*(y2-y1);
chips += chip(x,y,k);
});
});
s.nodes.forEach(n=>{ const p=pos[n.id]; nodes += nodeSvg(p.x,p.y,p.w,NH,n,n.you?'you':''); });
nodes += nodeSvg(BUY.x,BUY.cy-BUY.h/2,BUY.w,BUY.h,{icon:'shop',label:'Customer',sub:'B2B buyer'},'buyer');
const alt = `Diagram: ${s.title}. Order: ${s.who.C}. Invoice: ${s.who.F}. Delivery: ${s.who.L}.`;
const vb = c1.length===2 ? '0 0 720 230' : '0 62 720 106';
return `<svg viewBox="${vb}" role="img" aria-label="${alt}"><g transform="translate(${off},0)">${rels}${edges}${nodes}${chips}</g></svg>`;
}

const nb = t => t;
document.getElementById('scenarios').innerHTML = FAMILIES.map(fam => {
const cards = SCEN.filter(s=>s.fam===fam.id).map(s => `
<article class="card" id="s${s.id}" aria-labelledby="s${s.id}-h">
<div class="card-h">
<span class="eyebrow">Scenario ${s.id}</span>
<h3 id="s${s.id}-h">${s.title}</h3>
<p class="summary">${nb(s.summary)}</p>
</div>
<div class="dia">${diagram(s)}</div>
<div class="who">${Object.keys(FLOW).map(k=>`
<div class="cell"><span class="dot ${FLOW[k].cls}">${svgIcon(FLOW[k].icon)}</span>
<div><small>${FLOW[k].name}</small><b>${s.who[k]}</b></div></div>`).join('')}
</div>
<dl class="meta">
<dt>Example</dt><dd>${s.example}</dd>
<dt>You are</dt><dd>${s.youAre}</dd>
<dt>Brand</dt><dd>${s.brand==='You'?'You own it':'Owned by the brand (the producer)'}</dd>
<dt>Inventory</dt><dd>${s.inv==='You'?'Owned by you':'Owned by '+s.inv.toLowerCase()} · stored ${s.invWhere.toLowerCase()}</dd>
<dt>PivoHub role</dt><dd><b>${s.role}</b></dd>
</dl>
<p class="note"><b>On PivoHub.</b> ${nb(s.pivo)}</p>
</article>`).join('');
return `<section class="family" aria-labelledby="fam-${fam.id}">
<div class="family-h"><h2 id="fam-${fam.id}">${fam.title}</h2><p class="muted">${nb(fam.intro)}</p></div>
${cards}</section>`;
}).join('');

function actorIcon(t, s){
if(t.startsWith('You')) return s.nodes.find(n=>n.you).icon;
if(/3PL/.test(t) && !/brand|supplier/i.test(t)) return 'pallet';
if(/distributor/i.test(t)) return 'warehouse';
if(/supplier/i.test(t)) return 'tag';
return 'factory';
}
const short = t => { const x = t.replace(/^The /,'').replace(/ its /,' '); return x.charAt(0).toUpperCase()+x.slice(1); };
const actor = (t,s) => `<span class="actor${t.startsWith('You')?' you':''}">${svgIcon(actorIcon(t,s))}${short(t)}</span>`;
const fh = k => `<span class="th-ic"><span class="dot ${FLOW[k].cls}">${svgIcon(FLOW[k].icon)}</span>${FLOW[k].name}</span>`;
document.getElementById('table').innerHTML =
`<thead>
<tr class="grp"><th></th><th colspan="2" class="g sep">Who owns what</th><th colspan="3" class="g sep">Who does what</th></tr>
<tr><th>Scenario</th><th class="sep">Brand</th><th>Inventory</th><th class="sep">${fh('C')}</th><th>${fh('F')}</th><th>${fh('L')}</th></tr>
</thead><tbody>` +
SCEN.map(s=>`<tr>
<td class="sc"><span class="n">Scenario ${s.id}</span><a target="_self" href="#s${s.id}" data-go="${s.id}">${s.title}</a><span class="short">${s.short}</span><span class="you-is">You are: <b>${s.youAre}</b><br>PivoHub role: <b>${s.role}</b></span></td>
<td class="sep" data-label="Brand">${actor(s.brand,s)}</td>
<td data-label="Inventory"><div>${actor(s.inv,s)}<span class="where">${s.invWhere}</span></div></td>
<td class="sep" data-label="Order">${actor(s.who.C,s)}</td>
<td data-label="Invoice">${actor(s.who.F,s)}</td>
<td data-label="Delivery">${actor(s.who.L,s)}</td></tr>`).join('') +
`</tbody>`;

const WHO = [['The brand','M'],['The distributor','D'],['A reseller (buy and resell)','R'],['The external seller','A']];
const SHIP = [['The brand','M'],['The distributor','D'],['The external seller','A'],['A logistics partner (3PL)','T']];
const MATCH = {MMM:1,MMT:2,MMD:2,AAM:3,AAT:3,DDM:3,DDD:4,DDT:4,AMM:5,AMT:5,AMD:5,ADD:6,ADT:6,MDD:7,MDT:7,RRM:3,RRD:4,RRT:4,MRD:7,MRT:7,ARD:6,ART:6};
const Q = [
{q:'Who takes the orders?', hint:'Select all that apply.', opts:WHO, multi:true},
{q:'Who invoices the customer?', opts:WHO},
{q:'Who delivers to the customer?', opts:SHIP}
];
let ans = [], pick = [];
function go(id){
const el = document.getElementById('s'+id);
if(!el) return;
el.scrollIntoView({behavior: matchMedia('(prefers-reduced-motion: reduce)').matches ? 'auto' : 'smooth', block:'start'});
el.classList.remove('flash'); void el.offsetWidth; el.classList.add('flash');
setTimeout(()=>el.classList.remove('flash'),2200);
}
const nameOf = (opts,c) => opts.find(o=>o[1]===c)[0];
function renderFinder(){
const box = document.getElementById('steps');
let html = '';
ans.forEach((a,i)=>{ html += `<p class="done">${Q[i].q} <b>${[].concat(a).map(c=>nameOf(Q[i].opts,c)).join(', ')}</b></p>`; });
if(ans.length === Q.length){
const [cs,f,l] = ans, found = [], none = [];
cs.forEach(c=>{ const id = MATCH[c+f+l]; if(id){ if(!found.includes(id)) found.push(id); } else none.push(nameOf(WHO,c)); });
if(found.length > 1) html += `<p class="q">You combine ${found.length} scenarios:</p>`;
found.forEach(id=>{
const s = SCEN.find(x=>x.id===id);
html += `<div class="result"><span class="num">Scenario ${s.id}</span><div style="flex:1;min-width:200px"><strong>${s.title}</strong><br><span class="muted">PivoHub role: ${s.role}</span></div><button class="opt" type="button" data-see="${s.id}">See the scenario</button></div>`;
});
if(f==='R' && (l==='D'||l==='T')) html += `<div class="result"><div style="flex:1;min-width:200px"><strong>Reseller with a distributor that delivers</strong><br><span class="muted">The reseller buys the goods from the brand, resells them and invoices: scenario 4 applies. The distributor that delivers acts as a 3PL for the reseller: it stores and delivers, without selling or invoicing. If the brand also takes orders, scenario 7 applies to the brand: its orders are passed on to the reseller, which invoices.</span></div></div>`;
if(none.length && f==='A') html += `<p class="done">Tip: if the company that invoices buys the goods to resell them, choose “A reseller (buy and resell)” instead.</p>`;
if(none.length) html += `<div class="result"><div style="flex:1;min-width:200px"><strong>${found.length ? 'No standard scenario for: '+none.join(', ') : 'No standard scenario matches'}</strong><br><span class="muted">You may be combining several scenarios. Open a support ticket and our team will help you set up your account.</span></div></div>`;
html += `<div><button class="linkbtn" id="resetBtn" type="button">Start over</button></div>`;
} else {
const t = Q[ans.length];
html += `<p class="q">${t.q}</p>`;
if(t.multi) html += `<p class="done">${t.hint}</p>`;
html += `<div class="opts">${t.opts.map(([l,c])=>`<button class="opt" type="button" data-c="${c}"${t.multi ? ` aria-pressed="${pick.includes(c)}"` : ''}>${l}</button>`).join('')}</div>`;
if(t.multi) html += `<div><button class="opt" id="nextBtn" type="button"${pick.length ? '' : ' disabled'}>Continue</button></div>`;
if(ans.length || pick.length) html += `<div><button class="linkbtn" id="resetBtn" type="button">Start over</button></div>`;
}
box.innerHTML = html;
const focusFirst = () => { const first = box.querySelector('.opt'); if(first) first.focus(); };
box.querySelectorAll('[data-c]').forEach(b=>b.addEventListener('click',()=>{
const c = b.dataset.c;
if(Q[ans.length].multi){
pick = pick.includes(c) ? pick.filter(x=>x!==c) : pick.concat(c);
renderFinder();
const k = box.querySelector(`[data-c="${c}"]`); if(k) k.focus();
} else { ans.push(c); renderFinder(); focusFirst(); }
}));
const n = document.getElementById('nextBtn');
if(n) n.addEventListener('click',()=>{ ans.push(WHO.map(w=>w[1]).filter(c=>pick.includes(c))); renderFinder(); focusFirst(); });
const r = document.getElementById('resetBtn');
if(r) r.addEventListener('click',()=>{ ans = []; pick = []; renderFinder(); focusFirst(); });
box.querySelectorAll('[data-see]').forEach(b=>b.addEventListener('click',()=>go(+b.dataset.see)));
}
renderFinder();
document.getElementById('table').addEventListener('click',e=>{
const a = e.target.closest('[data-go]'); if(!a) return; e.preventDefault(); go(+a.dataset.go);
});
</script>
<script>
(function(){
function h(){ return Math.ceil(document.documentElement.scrollHeight); }
function send(){
var v=h();
try{ if (window.frameElement){ window.frameElement.style.height = v + 'px'; return; } }catch(e){}
try{ parent.postMessage({type:'pivohub-embed-height', height:v}, '*'); }catch(e){}
}
window.addEventListener('load', send);
if (window.ResizeObserver) new ResizeObserver(send).observe(document.body);
setInterval(send, 1500);
})();
</script>
</body>
</html>
Access denied
Access denied
Access denied
Access denied

No articles or sections found
No articles or sections found