]> git.koha-community.org Git - koha.git/commit
Bug 6894: Order from suggestion defaulting to wrong currency
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Tue, 25 Oct 2011 15:38:04 +0000 (17:38 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Fri, 2 Dec 2011 20:47:24 +0000 (15:47 -0500)
commit1dffe0750b93e60e7d35ca1c28ee25eef5b37ed3
treee33b5ed3646192d645de0ff6a1e6d69bc8e5b73c
parent6b185b5e55770ddfc1287d188daa543921d6dac1
Bug 6894: Order from suggestion defaulting to wrong currency

This problem turned out to be a bit different, than I initally thought.

This patch fixes the currency selections for new orders created in staff.
Before this patch, the first currency in the list was selected instead
of the active currency. So you needed to change it explicitly.

After patch it should work like this:

1) Suggestion created in OPAC - currency defaults to NULL in database
2) Editing a suggestion created in OPAC will default to active currency.
3) Creating a new suggestion in staff will default to active currency.
4) When ordering, the currency will default to the vendor currency, if no
currency is set in the suggestion. (still happens, when suggestions are accepted
in batch from the list.

I hope this is right - comments and testing appreciated.

Signed-off-by: Liz Rea <lrea@nekls.org>
Verified that in the above places, active currency was displayed or selected. Tested both suggestions entered from the OPAC and from the intranet.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Verified the existence of the bug, and that the fix works as advertised.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
(cherry picked from commit 624b1562d8567dabd23cb4e1ac7e34615e604edc)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
suggestion/suggestion.pl