From 0400e3f88e490b78ee116c0924e9a3cba73423d0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 29 Mar 2013 09:41:44 -0400 Subject: [PATCH] LP1076411 Return updated circ object from checkin Retrieve an updated copy of the circulation object to return to the caller during checkin. This ensures the data in the circ object, in particular date fields, are consistent with the database. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- .../perlmods/lib/OpenILS/Application/Circ/Circulate.pm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm index e696934cdc..badfe5c82f 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -3477,11 +3477,17 @@ sub checkin_flesh_events { } if($self->circ) { - # if we checked in a circulation, flesh the billing summary data - $self->circ->billable_transaction( - $self->editor->retrieve_money_billable_transaction([ - $self->circ->id, - {flesh => 1, flesh_fields => {mbt => ['summary']}} + # update our copy of the circ object and + # flesh the billing summary data + $self->circ( + $self->editor->retrieve_action_circulation([ + $self->circ->id, { + flesh => 2, + flesh_fields => { + circ => ['billable_transaction'], + mbt => ['summary'] + } + } ]) ); } -- 2.11.0