Lines 290-296
subtest 'add_debit() tests' => sub {
Link Here
|
290 |
description => 'amount validation failure', |
290 |
description => 'amount validation failure', |
291 |
library_id => $patron->branchcode, |
291 |
library_id => $patron->branchcode, |
292 |
note => 'this should fail anyway', |
292 |
note => 'this should fail anyway', |
293 |
type => 'rent', |
293 |
type => 'RENT', |
294 |
user_id => $patron->id, |
294 |
user_id => $patron->id, |
295 |
interface => 'commandline' |
295 |
interface => 'commandline' |
296 |
} |
296 |
} |
Lines 316-322
subtest 'add_debit() tests' => sub {
Link Here
|
316 |
description => 'Rental charge of 25', |
316 |
description => 'Rental charge of 25', |
317 |
library_id => $patron->branchcode, |
317 |
library_id => $patron->branchcode, |
318 |
note => 'not really important', |
318 |
note => 'not really important', |
319 |
type => 'rent', |
319 |
type => 'RENT', |
320 |
user_id => $patron->id |
320 |
user_id => $patron->id |
321 |
} |
321 |
} |
322 |
); } 'Koha::Exceptions::MissingParameter', 'Exception thrown if interface parameter missing'; |
322 |
); } 'Koha::Exceptions::MissingParameter', 'Exception thrown if interface parameter missing'; |
Lines 330-336
subtest 'add_debit() tests' => sub {
Link Here
|
330 |
description => 'Rental charge of 25', |
330 |
description => 'Rental charge of 25', |
331 |
library_id => $patron->branchcode, |
331 |
library_id => $patron->branchcode, |
332 |
note => 'not really important', |
332 |
note => 'not really important', |
333 |
type => 'rent', |
333 |
type => 'RENT', |
334 |
user_id => $patron->id, |
334 |
user_id => $patron->id, |
335 |
interface => 'commandline' |
335 |
interface => 'commandline' |
336 |
} |
336 |
} |
Lines 344-350
subtest 'add_debit() tests' => sub {
Link Here
|
344 |
); |
344 |
); |
345 |
is( |
345 |
is( |
346 |
$line_1->debit_type_code, |
346 |
$line_1->debit_type_code, |
347 |
$Koha::Account::account_type_debit->{'rent'}, |
347 |
$Koha::Account::account_type_debit->{'RENT'}, |
348 |
'Account type is correctly set' |
348 |
'Account type is correctly set' |
349 |
); |
349 |
); |
350 |
|
350 |
|
Lines 357-363
subtest 'add_debit() tests' => sub {
Link Here
|
357 |
description => 'Rental charge of 37', |
357 |
description => 'Rental charge of 37', |
358 |
library_id => $patron->branchcode, |
358 |
library_id => $patron->branchcode, |
359 |
note => 'not really important', |
359 |
note => 'not really important', |
360 |
type => 'rent', |
360 |
type => 'RENT', |
361 |
user_id => $patron->id, |
361 |
user_id => $patron->id, |
362 |
interface => 'commandline' |
362 |
interface => 'commandline' |
363 |
} |
363 |
} |
Lines 371-377
subtest 'add_debit() tests' => sub {
Link Here
|
371 |
); |
371 |
); |
372 |
is( |
372 |
is( |
373 |
$line_2->debit_type_code, |
373 |
$line_2->debit_type_code, |
374 |
$Koha::Account::account_type_debit->{'rent'}, |
374 |
$Koha::Account::account_type_debit->{'RENT'}, |
375 |
'Account type is correctly set' |
375 |
'Account type is correctly set' |
376 |
); |
376 |
); |
377 |
|
377 |
|
378 |
- |
|
|