Bug 9346 - acqui/neworderempty.pl ignores exchange rates and destroys user data on...
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 3 Jan 2013 22:38:17 +0000 (23:38 +0100)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Tue, 8 Jan 2013 01:47:38 +0000 (20:47 -0500)
commit5ee56934108b8681aaa50b4f13676c872e5a8ed0
tree694b0f350f5f0b2c1fae1bdf8a99c16bed62adef
parent1005ad9b5f4d74cd0d6bbf5e1bba95d618385450
Bug 9346 - acqui/neworderempty.pl ignores exchange rates and destroys user data on page load

This restores behaviour of new order form before BugĀ 5335 merge

Test scenario:

1. load Receipt summary for existing customer
2. take note of Unit cost and Order cost
3. open existing order line and verify that Replacement cost,
   Budgeted cost and Total are not re-calculated on page load
4. change currency and verify that costs are updated
   (change currency to system default and all values should become
   same as vendor price)
5. change Quantity, get alert "You can't add a new item, please create a new order line"
   and verify that Total still reflects correct value

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Elliott Davis <elliott@bywatersolions.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
acqui/neworderempty.pl
koha-tmpl/intranet-tmpl/prog/en/js/acq.js
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt