my $new_amount = $args->{override_amount};
my $new_btype = $args->{override_btype};
+ my $new_note = $args->{override_note};
# grab the last circulation
my $circ = $e->search_action_circulation([
# optional processing fee.
my $evt = OpenILS::Application::Circ::CircCommon->create_bill(
- $e, $new_amount, $new_btype, 'Damaged Item Override', $circ->id);
+ $e, $new_amount, $new_btype, 'Damaged Item Override', $circ->id, $new_note);
return $evt if $evt;
} else {
sub create_bill {
- my($class, $e, $amount, $btype, $type, $xactid) = @_;
+ my($class, $e, $amount, $btype, $type, $xactid, $note) = @_;
$logger->info("The system is charging $amount [$type] on xact $xactid");
+ $note ||= 'SYSTEM GENERATED';
# -----------------------------------------------------------------
# now create the billing
$bill->amount($amount);
$bill->billing_type($type);
$bill->btype($btype);
- $bill->note('SYSTEM GENERATED');
+ $bill->note($note);
$e->create_money_billing($bill) or return $e->die_event;
return undef;