From: Jason Boyer Date: Thu, 19 Jul 2018 18:29:32 +0000 (-0400) Subject: LP1782631: Stop Styling Grocery Bills as Overdues X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=70120afae4774cafdd6362c517237808a49d5145;p=working%2FEvergreen.git LP1782631: Stop Styling Grocery Bills as Overdues 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 Signed-off-by: Dan Wells --- diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js index 63a7121172..8f4157fc12 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js @@ -223,7 +223,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, // 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') { @@ -240,7 +240,7 @@ function($scope , $q , $routeParams , egCore , egConfirmDialog , $location, 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") {