fix: a machine transfer shows in the order history, and its test runs in CI (Rodada 5, D4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1316,6 +1316,9 @@ function historyView(order,rows,view){
|
||||
};
|
||||
for(const r of [...rows].reverse())list.append(entry(r.back?'Voltou para '+stateName(r.to_state):stateName(r.to_state),
|
||||
r.operator+(r.machine?', na '+r.machine:''),r.created_at,r.reason));
|
||||
// Machine transfers in Imprimindo (D4), newest first.
|
||||
for(const t of [...(order.transfers||[])].reverse())
|
||||
list.append(entry('Transferido · '+t.from_name+' → '+t.to_name,t.created_by,t.created_at,t.reason));
|
||||
// The Redesenho previews (D2), newest first, like the moves above.
|
||||
for(const p of [...previewsOf(order)].reverse()){
|
||||
if(p.decided_at)list.append(entry('Prévia '+p.number+(p.result==='approved'?' aprovada':' reprovada'),p.decided_by,p.decided_at,p.reason));
|
||||
|
||||
Reference in New Issue
Block a user