View | Details | Raw Unified | Return to bug 23049
Collapse All | Expand All

(-)a/Koha/Account.pm (-6 / +6 lines)
Lines 444-451 my $debit_line = Koha::Account->new({ patron_id => $patron_id })->add_debit( Link Here
444
);
444
);
445
445
446
$debit_type can be any of:
446
$debit_type can be any of:
447
  - account
447
  - ACCOUNT
448
  - account_renew
448
  - ACCOUNT_RENEW
449
  - hold_expired
449
  - hold_expired
450
  - lost_item
450
  - lost_item
451
  - sundry
451
  - sundry
Lines 709-716 our $offset_type = { Link Here
709
    'lost_item_return' => 'Lost Item',
709
    'lost_item_return' => 'Lost Item',
710
    'payment'          => 'Payment',
710
    'payment'          => 'Payment',
711
    'writeoff'         => 'Writeoff',
711
    'writeoff'         => 'Writeoff',
712
    'account'          => 'Account Fee',
712
    'ACCOUNT'          => 'Account Fee',
713
    'account_renew'    => 'Account Fee',
713
    'ACCOUNT_RENEW'    => 'Account Fee',
714
    'RESERVE'          => 'Reserve Fee',
714
    'RESERVE'          => 'Reserve Fee',
715
    'PROCESSING'       => 'Processing Fee',
715
    'PROCESSING'       => 'Processing Fee',
716
    'lost_item'        => 'Lost Item',
716
    'lost_item'        => 'Lost Item',
Lines 740-747 our $account_type_credit = { Link Here
740
=cut
740
=cut
741
741
742
our $account_type_debit = {
742
our $account_type_debit = {
743
    'account'          => 'ACCOUNT',
743
    'ACCOUNT'          => 'ACCOUNT',
744
    'account_renew'    => 'ACCOUNT_RENEW',
744
    'ACCOUNT_RENEW'    => 'ACCOUNT_RENEW',
745
    'hold_expired'     => 'HE',
745
    'hold_expired'     => 'HE',
746
    'lost_item'        => 'LOST',
746
    'lost_item'        => 'LOST',
747
    'sundry'           => 'M',
747
    'sundry'           => 'M',
(-)a/Koha/Patron.pm (-2 / +1 lines)
Lines 887-893 sub add_enrolment_fee_if_needed { Link Here
887
    my ($self, $renewal) = @_;
887
    my ($self, $renewal) = @_;
888
    my $enrolment_fee = $self->category->enrolmentfee;
888
    my $enrolment_fee = $self->category->enrolmentfee;
889
    if ( $enrolment_fee && $enrolment_fee > 0 ) {
889
    if ( $enrolment_fee && $enrolment_fee > 0 ) {
890
        my $type = $renewal ? 'account_renew' : 'account';
890
        my $type = $renewal ? 'ACCOUNT_RENEW' : 'ACCOUNT';
891
        $self->account->add_debit(
891
        $self->account->add_debit(
892
            {
892
            {
893
                amount     => $enrolment_fee,
893
                amount     => $enrolment_fee,
894
- 

Return to bug 23049