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)
committerChris Cormack <chris@bigballofwax.co.nz>
Sat, 12 Jan 2013 19:17:25 +0000 (08:17 +1300)
commitc4dd065c675eb9d11ec66b96689f62debc268e6f
tree87f0f4bc75664ec34bb310b68902ff7d34e57b9b
parentf5a0297f0cbcfccf9cce42696f416c0630f44130
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>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
acqui/neworderempty.pl
koha-tmpl/intranet-tmpl/prog/en/js/acq.js
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt