fix: Atrasados lists production stages and real orders only (front 11)
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 4m27s
Build and deploy / Publish images (push) Successful in 1m6s
All checks were successful
Build and deploy / Validate source (push) Successful in 5s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 4m27s
Build and deploy / Publish images (push) Successful in 1m6s
A delivery is done when it leaves and a test card is not production. Only pickup orders waiting in Finalizado can be late, and the top strip now shows working columns; the finished pickup keeps its card colour and its place in Números.
This commit is contained in:
@@ -846,7 +846,10 @@ let phoneCol='rec';
|
||||
// responsible for that column, above the board.
|
||||
function renderLatebar(){
|
||||
const bar=$('latebar');
|
||||
const late=board.orders.filter(o=>!o.cancelled_at&&o.late)
|
||||
// The top strip is for production delays. A pickup waiting in Finalizado
|
||||
// keeps its yellow/red card and is counted in Números; it does not push
|
||||
// every historical finished order across the top of the board.
|
||||
const late=board.orders.filter(o=>!o.cancelled_at&&!isTest(o)&&o.late&&o.state!=='fin')
|
||||
.sort((a,b)=>(b.state_hours||0)-(a.state_hours||0));
|
||||
if(!late.length){bar.hidden=true;bar.replaceChildren();return;}
|
||||
bar.hidden=false;
|
||||
@@ -2545,6 +2548,8 @@ function calendar(){
|
||||
}
|
||||
async function loadStats(){
|
||||
const data=await api('/stats?'+(statsRange?'start='+statsRange.start+'&end='+statsRange.end:'days='+statsDays));
|
||||
const editLimits=$('edit-stage-limits');
|
||||
if(editLimits){editLimits.hidden=!may('manage');editLimits.onclick=()=>stageLimitsDialog();}
|
||||
statsData=data;statsPeriod();
|
||||
$('stats-note').textContent='Pedidos pagos de '+dayLabel(data.start)+' a '+dayLabel(data.end)+', sem testes e cancelados';
|
||||
const hk=(label,value,unit,note)=>{const k=node('div',undefined,'hk');const b=node('b',value);if(unit)b.append(node('small',unit));
|
||||
|
||||
Reference in New Issue
Block a user