Lines 76-84
my $issues;
Link Here
|
76 |
$issues = C4::Circulation::GetIssues({biblionumber => $biblionumber1}); |
76 |
$issues = C4::Circulation::GetIssues({biblionumber => $biblionumber1}); |
77 |
my $issue=$issues->[0]; |
77 |
my $issue=$issues->[0]; |
78 |
$issue->{'processfee'} = $processfee; |
78 |
$issue->{'processfee'} = $processfee; |
79 |
my $accountlineId = C4::Accounts::chargelostitem($issue, 'test'); |
79 |
C4::Accounts::chargelostitem($issue, 'test'); |
80 |
|
80 |
|
81 |
my @accountline = C4::Accounts::getcharges($borrowernumber, $accountlineId); |
81 |
my @accountline = C4::Accounts::getcharges($borrowernumber); |
82 |
|
82 |
|
83 |
is( scalar(@accountline), 1, 'accountline should have 1 row' ); |
83 |
is( scalar(@accountline), 1, 'accountline should have 1 row' ); |
84 |
is( int($accountline[0]->{amount}), $processfee, "The accountline amount should be precessfee value " ); |
84 |
is( int($accountline[0]->{amount}), $processfee, "The accountline amount should be precessfee value " ); |
Lines 86-89
is( $accountline[0]->{accounttype}, 'PF', "The accountline accounttype should be
Link Here
|
86 |
is( $accountline[0]->{borrowernumber}, $borrowernumber, "The accountline borrowernumber should be the exemple borrownumber" ); |
86 |
is( $accountline[0]->{borrowernumber}, $borrowernumber, "The accountline borrowernumber should be the exemple borrownumber" ); |
87 |
my $itemnumber = C4::Items::GetItemnumberFromBarcode('0101'); |
87 |
my $itemnumber = C4::Items::GetItemnumberFromBarcode('0101'); |
88 |
is( $accountline[0]->{itemnumber}, $itemnumber, "The accountline itemnumber should the linked with barcode '0101'" ); |
88 |
is( $accountline[0]->{itemnumber}, $itemnumber, "The accountline itemnumber should the linked with barcode '0101'" ); |
89 |
is( $accountline[0]->{description}, 'test', "The accountline description should be 'test'" ); |
89 |
is( $accountline[0]->{description}, 'test ' . $issue->{itemnumber}, "The accountline description should be 'test'" ); |
90 |
- |
|
|