Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision eb20d26f

Von Andreas Rudin vor etwa 1 Jahr hinzugefügt

  • ID eb20d26f6d3bd3af800f4a9cb4b1004fb4c563ea
  • Vorgänger 6870b656

Test für Jahresabschlussbuchungen nochmals angepasst

Unterschiede anzeigen:

t/year_end/year_end.t
my $controller = SL::Controller::YearEndTransactions->new();
$controller->_year_end_bookings( start_date => $start_date,
cb_date => $cb_date,
);
cb_date => $cb_date,
);
is(SL::DB::Manager::AccTransaction->get_all_count(where => [ cb_transaction => 1 ]), 14, 'acc_trans cb_transactions created ok');
is(SL::DB::Manager::AccTransaction->get_all_count(where => [ ob_transaction => 1 ]), 10, 'acc_trans ob_transactions created ok');
......
# second and third run should be no-ops, at least while no further bookings where
# made
SL::Controller::YearEndTransactions::_year_end_bookings( start_date => $start_date,
cb_date => $cb_date,
);
$controller->_year_end_bookings( start_date => $start_date,
cb_date => $cb_date,
);
is(SL::DB::Manager::AccTransaction->get_all_count(where => [ cb_transaction => 1 ]), 14, 'acc_trans cb_transactions created ok');
is(SL::DB::Manager::AccTransaction->get_all_count(where => [ ob_transaction => 1 ]), 10, 'acc_trans ob_transactions created ok');

Auch abrufbar als: Unified diff