$apputils->commit_db_session($session);
+
+
return $transid;
}
}
$e->create_money_billing($billing) or return $e->event;
-
$e->commit;
+
+ # ------------------------------------------------------------------------------
+ # Update the patron penalty info in the DB
+ # ------------------------------------------------------------------------------
+ $U->update_patron_penalties(
+ authtoken => $login,
+ patronid => $xact->usr,
+ );
+
return $billing->id;
}
my $evt = _check_open_xact($e, $bill->xact);
return $evt if $evt;
- $e->finish;
+ $e->commit;
+
+ # ------------------------------------------------------------------------------
+ # Update the patron penalty info in the DB
+ # ------------------------------------------------------------------------------
+ my $xact = $e->retrieve_money_billable_transaction($bill->xact)
+ or return $e->event;
+ $U->update_patron_penalties(
+ authtoken => $authtoken,
+ patronid => $xact->usr,
+ );
+
return 1;
}