{
usr => $self->editor->requestor->id,
balance_owed => {'!=' => 0},
- (ref $id_list eq 'ARRAY' ? ("id" => $id_list) : ()),
+ ($id_list && @$id_list ? ("id" => $id_list) : ()),
},
{
flesh => 4,
[%
pay_total = 0.0;
FOR f IN ctx.fines.circulation;
- NEXT UNLESS CGI.param('xact').grep(f.xact.id).size;
+ NEXT IF CGI.param('xact').size &&
+ !CGI.param('xact').grep(f.xact.id).size;
attrs = {marc_xml => f.marc_xml};
IF f.marc_xml;
PROCESS get_marc_attrs args=attrs;
[%
END;
FOR f IN ctx.fines.grocery;
- NEXT UNLESS CGI.param('xact').grep(f.xact.id).size;
+ NEXT IF CGI.param('xact').size &&
+ !CGI.param('xact').grep(f.xact.id).size;
# XXX use fixed point math
pay_total = pay_total + f.xact.balance_owed; %]
<tr>