]> git.koha-community.org Git - koha.git/commit
Bug 24158: Convert actual cost in an other currency when receiving
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 Dec 2019 16:40:17 +0000 (17:40 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 25 Mar 2020 13:52:05 +0000 (13:52 +0000)
commitfe9be399815eaa15675b41f181a54ee4c5d15bf0
tree2b1f9ba3d397393ce91c4f8a3f5c434b4d0c3f0b
parentb772d1fd3ddd44ac79e44a9fdd39431b45e3b398
Bug 24158: Convert actual cost in an other currency when receiving

This patch adds a currency dropdown list to the Actual cost field when
receiving items in the acquisition module.
The idea is to let the librarian entered a price in a foreign currency
that will automatically be converted in the local currency ('active').
This converted value will be use as the actual cost once the form is
submitted.

Test plan:
- Create several currencies with different rates
- Create an order, close the basket and receive
- On the receipt page you will notice a new "change currency" checkbox
right close to the 'Actual cost' input.
- Check it
=> The 'Actual cost' input is readonly and a new line appears at the
bottom.
- Enter a number and select a currency
=> The 'Actual cost' input is automatically filled with the converted
value
- Save
=> The converted Actual cost has been inserted in the database.

Sponsored-by: Athlone Institute of Technology
Signed-off-by: Devinim <nazli@devinim.com.tr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
acqui/orderreceive.pl
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt