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 <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
}
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']
+ }
+ }
])
);
}