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

(-)a/Koha/Account.pm (-1 / +3 lines)
Lines 496-502 sub non_issues_charges { Link Here
496
496
497
$account->reconcile_balance();
497
$account->reconcile_balance();
498
498
499
Find outstanding credits and use them to pay outstanding debits
499
Find outstanding credits and use them to pay outstanding debits.
500
Currently, this implicitly uses the 'First In First Out' rule for
501
applying credits against debits.
500
502
501
=cut
503
=cut
502
504
(-)a/Koha/Account/Line.pm (+8 lines)
Lines 241-244 sub _type { Link Here
241
    return 'Accountline';
241
    return 'Accountline';
242
}
242
}
243
243
244
=head3 object_class (internal)
245
246
=cut
247
248
sub object_class {
249
    return 'Koha::Account::Line';
250
}
251
244
1;
252
1;
(-)a/Koha/Schema/Result/Accountline.pm (-1 / +6 lines)
Lines 239-244 __PACKAGE__->belongs_to( Link Here
239
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-16 17:00:24
239
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-05-16 17:00:24
240
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pygYYKxFDRLX97PyeUeLvg
240
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pygYYKxFDRLX97PyeUeLvg
241
241
242
sub koha_objects_class {
243
    'Koha::Account::Lines';
244
}
245
sub koha_object_class {
246
    'Koha::Account::Line';
247
}
242
248
243
# You can replace this text with custom content, and it will be preserved on regeneration
244
1;
249
1;
(-)a/t/db_dependent/Koha/Account.t (-2 / +1 lines)
Lines 235-241 subtest 'reconcile_balance' => sub { Link Here
235
        $schema->storage->txn_rollback;
235
        $schema->storage->txn_rollback;
236
    };
236
    };
237
237
238
    subtest 'same debit than credit' => sub {
238
    subtest 'same debit as credit' => sub {
239
239
240
        plan tests => 6;
240
        plan tests => 6;
241
241
242
- 

Return to bug 21896