Fix penalty generation during billing creation collab/phasefx/penalty_generation_after_billing_creation
authorJason Etheridge <jason@esilibrary.com>
Fri, 19 Aug 2011 22:22:28 +0000 (18:22 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 19 Aug 2011 22:22:28 +0000 (18:22 -0400)
by passing the editor object referencing the database transaction to xact_org

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Money.pm

index f8fdb80..1058e8c 100644 (file)
@@ -700,7 +700,7 @@ sub billing_items_create {
     $billing->amount($amt);
 
     $e->create_money_billing($billing) or return $e->die_event;
-    my $evt = OpenILS::Utils::Penalty->calculate_penalties($e, $xact->usr, $U->xact_org($xact->id));
+    my $evt = OpenILS::Utils::Penalty->calculate_penalties($e, $xact->usr, $U->xact_org($xact->id,$e));
     return $evt if $evt;
     $e->commit;