Cesar, I think what we need here is for Long Overdue items to always be included in the sidebar Items Out tally, regardless of the Long Overdue setting referenced. So, basically, keep the stats.checkouts.total_out += Number(stats.checkouts.long_overdue); but lose the if (!egCore.env.aous['ui.circ.items_out.longoverdue'])
For reference, the XUL client does this for its running total in the summary sidebar:
Though it's using open-ils.actor.user.checked_out.count.authoritative more directly instead of open-ils.actor.user.opac.vital_stats.authoritative (which also calls the same method).
Cesar, I think what we need here is for Long Overdue items to always be included in the sidebar Items Out tally, regardless of the Long Overdue setting referenced. So, basically, keep the stats.checkouts .total_ out += Number( stats.checkouts .long_overdue) ; but lose the if (!egCore. env.aous[ 'ui.circ. items_out. longoverdue' ])
For reference, the XUL client does this for its running total in the summary sidebar:
robj.out tally_claims_ returned ? 0 : robj.claims_ returned)
+ robj.overdue
+ (do_not_
+ robj.long_overdue
+ (do_tally_lost ? robj.lost : 0)
Though it's using open-ils. actor.user. checked_ out.count. authoritative more directly instead of open-ils. actor.user. opac.vital_ stats.authorita tive (which also calls the same method).