@@ -, +, @@ --- acqui/neworderempty.pl | 7 ++++++- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) --- a/acqui/neworderempty.pl +++ a/acqui/neworderempty.pl @@ -94,6 +94,7 @@ use Koha::MarcSubfieldStructures; use Koha::ItemTypes; use Koha::Patrons; use Koha::RecordProcessor; +use Koha::Subscriptions; our $input = new CGI; my $booksellerid = $input->param('booksellerid'); # FIXME: else ERROR! @@ -383,7 +384,11 @@ if ( defined $from_subscriptionid ) { $basket = GetBasket( $input->param('basketno') ); } - $template->param( subscriptionid => $from_subscriptionid ); + my $subscription = Koha::Subscriptions->find($from_subscriptionid); + $template->param( + subscriptionid => $from_subscriptionid, + subscription => $subscription, + ); } # Find the items.barcode subfield for barcode validations --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt @@ -321,6 +321,16 @@ [% END %] + + [% IF subscription %] +
+ + Frequency: [% subscription.frequency.description | html %] | + [% IF subscription.numberlength %]Number of issues: [% subscription.numberlength | html %][% END %] + [% IF subscription.weeklength %]Number of weeks: [% subscription.weeklength | html %][% END %] + [% IF subscription.monthlength %]Number of months: [% subscription.monthlength | html %][% END %] + + [% END %]
  • [% IF ( close ) %] --