[% PROCESS account_type_description account=line %]
+
+ [% line.checkout.library.branchname %]
+
[%- IF line.description %][% line.description | html %][% END %]
[% IF line.itemnumber %]([% line.item.biblio.title | html %])[% END %]
@@ -117,16 +121,16 @@
-
Total due:
+
Total due:
[% total | $Price %]
[% IF outstanding_credits.total_outstanding < 0 %]
-
Outstanding credits could be applied:
+
Outstanding credits could be applied:
-
Total due if credit applied:
+
Total due if credit applied:
[% total + outstanding_credits.total_outstanding | $Price %]
[% END %]
--- a/members/pay.pl
+++ a/members/pay.pl
@@ -39,6 +39,7 @@ use C4::Stats;
use C4::Koha;
use C4::Overdues;
use Koha::Patrons;
+use Koha::Checkouts;
use Koha::Patron::Categories;
use URI::Escape;
--- a/t/db_dependent/Koha/Checkouts.t
+++ a/t/db_dependent/Koha/Checkouts.t
@@ -19,7 +19,7 @@
use Modern::Perl;
-use Test::More tests => 7;
+use Test::More tests => 9;
use C4::Circulation;
use Koha::Checkouts;
@@ -50,6 +50,9 @@ my $new_checkout_2 = Koha::Checkout->new(
}
)->store;
+is( $new_checkout_1->library->id, $library->{branchcode}, 'Got correct library for checkout1' );
+is( $new_checkout_2->library->id, $library->{branchcode}, 'Got correct library for checkout2' );
+
like( $new_checkout_1->issue_id, qr|^\d+$|, 'Adding a new checkout should have set the issue_id' );
is( Koha::Checkouts->search->count, $nb_of_checkouts + 2, 'The 2 checkouts should have been added' );
@@ -125,5 +128,6 @@ subtest 'patron' => sub {
$retrieved_checkout_1->delete;
is( Koha::Checkouts->search->count, $nb_of_checkouts + 1, 'Delete should have deleted the checkout' );
+
$schema->storage->txn_rollback;
--