Bug 30067 - Create a template plugin for currencies
Summary: Create a template plugin for currencies
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-09 22:10 UTC by Fridolin Somers
Modified: 2022-02-14 22:03 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2022-02-09 22:10:39 UTC
A select for currencies exists in several places :
 > git grep 'select name=".*currency"'
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/addorderiso2709.tt:                                            <select name="all_currency" id="all_currency">
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/duplicate_orders.tt:                  <select name="all_currency" id="all_currency">
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt:            <select name="currency" id="currency" onchange="updateCosts();">
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt:                <select name="currency">
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt:                <select name="list_currency" id="list_currency">
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt:                <select name="invoice_currency" id="invoice_currency">
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt:                            <select name="currency" id="currency">

We should add a template plugin with a 'all' method like for libraries :
Koha/Template/Plugin/Branches.pm

Maybe add a show_inactive option, by default false.