From 04bc4825f5e7ce8ad5630c813055078a662f82a0 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 16 Aug 2007 21:06:21 +0000 Subject: [PATCH] fixing weird edge case of pushing out the due date after fines start to acrue git-svn-id: svn://svn.open-ils.org/ILS/trunk@7697 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm index fc125dca50..fb2afebd10 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm @@ -528,7 +528,9 @@ sub generate_fines { "\tItem was due on or before: ".localtime($due)."\n"); my @fines = money::billing->search_where( - { xact => $c->id, billing_type => 'Overdue materials' }, + { xact => $c->id, + billing_type => 'Overdue materials', + billing_ts => { '>' => $c->due_date } }, { order_by => 'billing_ts DESC'} ); -- 2.11.0