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

(-)a/Koha/Account.pm (-1 / +3 lines)
Lines 519-525 sub lines { Link Here
519
519
520
$account->reconcile_balance();
520
$account->reconcile_balance();
521
521
522
Find outstanding credits and use them to pay outstanding debits
522
Find outstanding credits and use them to pay outstanding debits.
523
Currently, this implicitly uses the 'First In First Out' rule for
524
applying credits against debits.
523
525
524
=cut
526
=cut
525
527
(-)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 / +7 lines)
Lines 238-244 __PACKAGE__->belongs_to( Link Here
238
238
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
243
sub koha_objects_class {
244
    'Koha::Account::Lines';
245
}
246
sub koha_object_class {
247
    'Koha::Account::Line';
248
}
242
249
243
# You can replace this text with custom content, and it will be preserved on regeneration
244
1;
250
1;
(-)a/t/db_dependent/Koha/Account.t (-2 / +1 lines)
Lines 269-275 subtest 'reconcile_balance' => sub { Link Here
269
        $schema->storage->txn_rollback;
269
        $schema->storage->txn_rollback;
270
    };
270
    };
271
271
272
    subtest 'same debit than credit' => sub {
272
    subtest 'same debit as credit' => sub {
273
273
274
        plan tests => 6;
274
        plan tests => 6;
275
275
276
- 

Return to bug 21896