Lines 245-255
subtest 'cashup' => sub {
Link Here
|
245 |
'Koha::Cash::Register->outstanding_accountlines should always return the correct number of accountlines' |
245 |
'Koha::Cash::Register->outstanding_accountlines should always return the correct number of accountlines' |
246 |
); |
246 |
); |
247 |
|
247 |
|
248 |
# add_cashup should not happen simultaneously with any other action |
|
|
249 |
# that results in an accountline attached to the same cash register. |
250 |
# In testing, we need to sleep for a second after each action that |
251 |
# adds to the database. (We cannot use Time::Fake as timestamps are |
252 |
# being added at the DB level, not in perl. |
253 |
my $accountline1 = $builder->build_object( |
248 |
my $accountline1 = $builder->build_object( |
254 |
{ |
249 |
{ |
255 |
class => 'Koha::Account::Lines', |
250 |
class => 'Koha::Account::Lines', |
256 |
- |
|
|