[open-ils-commits] r15346 - branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 20 10:28:33 EST 2010
Author: erickson
Date: 2010-01-20 10:28:30 -0500 (Wed, 20 Jan 2010)
New Revision: 15346
Modified:
branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
Log:
update circ xact_finish value after all billing for the transactions have been assessed. In particular, after lost item handling. Thanks to Dan Wells for identifying the bug
Modified: branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm 2010-01-20 15:28:16 UTC (rev 15345)
+++ branches/rel_1_6_0/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm 2010-01-20 15:28:30 UTC (rev 15346)
@@ -2118,12 +2118,6 @@
$circ->stop_fines_time($self->backdate) if $self->backdate;
}
- # see if there are any fines owed on this circ. if not, close it
- ($obt) = $U->fetch_mbts($circ->id, $self->editor);
- $circ->xact_finish('now') if( $obt and $obt->balance_owed == 0 );
-
- $logger->debug("circulator: ".$obt->balance_owed." is owed on this circulation");
-
# Set the checkin vars since we have the item
$circ->checkin_time( ($self->backdate) ? $self->backdate : 'now' );
@@ -2158,6 +2152,13 @@
$self->update_copy;
}
+
+ # see if there are any fines owed on this circ. if not, close it
+ ($obt) = $U->fetch_mbts($circ->id, $self->editor);
+ $circ->xact_finish('now') if( $obt and $obt->balance_owed == 0 );
+
+ $logger->debug("circulator: ".$obt->balance_owed." is owed on this circulation");
+
return $self->bail_on_events($self->editor->event)
unless $self->editor->update_action_circulation($circ);
More information about the open-ils-commits
mailing list