Build standard: never take a fiber dark under a customer's wave; the intern no longer skips leased pairs and IRUs
The build standard's Apply could swap the line system on a fiber that carries a sold alien wave or a Lambda Bazaar managed wave, taking those customers dark for a day with no warning. The intern refused any fiber with any customer on it, leased pairs and IRUs included, though a line-system swap cannot touch them. One helper next to fiberOk(), dfWaveCust(), says whether a customer rides the fiber's line system (every fiber type but glass: dfpair, pairs, capfib), and both bstdDarkOk() and opsDarkPre() use it. bstdPlan() holds such a fiber (J.held) and lists it in J.wv; the sheet and the MCP quote give that reason. The link panel's own upgrade button (ACT.upSys) still swaps with a warning toast.
This commit is contained in:
parent
1f76639b8f
commit
286ae48207
14 changed files with 102 additions and 24 deletions
|
|
@ -28,7 +28,7 @@ function bstdModal(msg){if(!S||pzOn())return;const D=bstd(),q=bstdQuote(false),h
|
|||
const n={pop:q.pops,port:q.ports,fiber:q.links},w=q.held.length;
|
||||
h+=`<section><h3>${tr('bstd.below')}</h3>${q.n||w?BSTD_GRP.map(([g,lab])=>`<div class="kv"><span>${tr(lab)}</span><b>${n[g]}</b></div>`).join('')
|
||||
+`<div class="kv"><span>${tr('bstd.cost_now')}</span><b>${fmt$(q.cost)}</b></div><div class="kv"><span>${tr('bstd.cost_mo')}</span><b>${tr('common.price_mo',{price:opsMo$(q.mo)})}</b></div>`
|
||||
+(w?`<p class="meta">${trn('bstd.held',w)}</p>`:'')
|
||||
+(q.wait.length?`<p class="meta">${trn('bstd.held',q.wait.length)}</p>`:'')+(q.wv.length?`<p class="meta">${trn('bstd.held_wave',q.wv.length)}</p>`:'')
|
||||
:`<p class="meta">${S.popStd?tr('bstd.all_up'):tr('bstd.none_set')}</p>`}</section>`;
|
||||
// The intern keeps it there: the order's switch and budget, or a word on hiring one.
|
||||
h+=`<section><h3>${tr('ops.o_std')}</h3>${hired?`<div class="ops-o${on?' on':''}"><div class="ops-h"><span class="ops-i" aria-hidden="true">${INTERNS[S.ops.intern].i}</span><div class="grow"><div class="nm">${esc(tr('bstd.intern_keeps',{name:opsName()}))}</div><div class="meta">${tr('ops.o_std_around_d')}</div></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue