when we check in a circ, flesh the billing summary data on the billable_transaction...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Sep 2009 20:17:12 +0000 (20:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Sep 2009 20:17:12 +0000 (20:17 +0000)
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

index bd9ef48..ecadcdb 100644 (file)
@@ -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         = {};