Only checking for the lack of a value in the
checkin_time field causes grocery bills to still
trigger the bill colorizing feature, but because
they have no stop_fines reason they're colored
the same as an overdue item.
This patch requires the presence of a due_date
field before coloring a bill row.
Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
// Apply coloring to rows based on fines stop reason
$scope.colorizeBillsList = {
apply: function(item) {
- if (!item['circulation.checkin_time']) {
+ if (item['circulation.due_date'] && !item['circulation.checkin_time']) {
if (item['circulation.stop_fines'] == 'LOST') {
return 'lost-row';
} else if (item['circulation.stop_fines'] == 'LONGOVERDUE') {
isEnabled: true,
template: function(item) {
var icon = '';
- if (!item['circulation.checkin_time']) {
+ if (item['circulation.due_date'] && !item['circulation.checkin_time']) {
if (item['circulation.stop_fines'] == "LOST") {
icon = 'glyphicon-question-sign';
} else if (item['circulation.stop_fines'] == "LONGOVERDUE") {