Lines 72-79
C4::Accounts::chargelostitem( $borrowernumber, $issue->{itemnumber}, '1.00');
Link Here
|
72 |
|
72 |
|
73 |
my $accountline = Koha::Account::Lines->search( { borrowernumber => $borrowernumber, accounttype => 'PF' } )->next(); |
73 |
my $accountline = Koha::Account::Lines->search( { borrowernumber => $borrowernumber, accounttype => 'PF' } )->next(); |
74 |
|
74 |
|
75 |
is( int($accountline->amount), int($itemtype->{processfee}), "The accountline amount should be precessfee value " ); |
75 |
is( int($accountline->amount), int($itemtype->{processfee}), "The accountline amount should be processfee value " ); |
76 |
is( $accountline->itemnumber, $itemnumber1, "The accountline itemnumber should the linked with barcode '0101'" ); |
76 |
is( $accountline->itemnumber, $itemnumber1, "The accountline itemnumber should be linked with barcode '0101'" ); |
77 |
is( $accountline->note, C4::Context->preference("ProcessingFeeNote"), "The accountline description should be 'test'" ); |
77 |
is( $accountline->note, C4::Context->preference("ProcessingFeeNote"), "The accountline description should be 'test'" ); |
78 |
|
78 |
|
79 |
my $lost_ao = Koha::Account::Offsets->search( { type => 'Lost Item' } ); |
79 |
my $lost_ao = Koha::Account::Offsets->search( { type => 'Lost Item' } ); |
Lines 81-83
is( $lost_ao->count, 1, 'Account offset of type "Lost Item" created' );
Link Here
|
81 |
|
81 |
|
82 |
my $processing_fee_ao = Koha::Account::Offsets->search( { type => 'Processing Fee' } ); |
82 |
my $processing_fee_ao = Koha::Account::Offsets->search( { type => 'Processing Fee' } ); |
83 |
is( $processing_fee_ao->count, 1, 'Account offset of type "Processing Fee" created' ); |
83 |
is( $processing_fee_ao->count, 1, 'Account offset of type "Processing Fee" created' ); |
84 |
- |
84 |
|
|
|
85 |
$schema->storage->txn_rollback; |