From c4ff90e9eb3bb748b23613036dfa8accb30156d4 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 30 Sep 2009 20:17:12 +0000 Subject: [PATCH] when we check in a circ, flesh the billing summary data on the billable_transaction link off the circ object git-svn-id: svn://svn.open-ils.org/ILS/trunk@14236 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm index bd9ef48f66..ecadcdb0b4 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ/Circulate.pm @@ -2482,6 +2482,16 @@ sub checkin_flesh_events { $hold->notes($self->editor->search_action_hold_request_note({hold => $hold->id})); } + if($self->circ) { + # if we checked in a circulation, flesh the billing summary data + $self->circ->billable_transaction( + $self->editor->retrieve_billable_transaction([ + $self->circ->id, + {flesh => 1, flesh_fields => {mbt => ['summary']}} + ]) + ); + } + for my $evt (@{$self->events}) { my $payload = {}; -- 2.11.0