From f04b5bd4c83a6f69b54d1fea30359778febfd104 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 --- .../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 273978eb96..ef2b361b9b 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm @@ -3556,11 +3556,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.43.2