From: Bill Erickson Date: Fri, 29 Mar 2013 13:41:44 +0000 (-0400) Subject: LP1076411 Return updated circ object from checkin X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f04b5bd4c83a6f69b54d1fea30359778febfd104;p=evergreen%2Fmasslnc.git 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 --- 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'] + } + } ]) ); }