Fix penalty generation during billing creation
authorJason Etheridge <jason@esilibrary.com>
Fri, 19 Aug 2011 22:22:28 +0000 (18:22 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 22 Aug 2011 17:19:55 +0000 (13:19 -0400)
by passing the editor object referencing the database transaction to xact_org

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.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;