]> git.koha-community.org Git - koha.git/commit
Bug 11680: (follow-up) fix unexpected tax rate changes on edit
authorJacek Ablewicz <abl@biblos.pk.edu.pl>
Mon, 10 Feb 2014 09:09:21 +0000 (10:09 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 13 Aug 2014 15:33:03 +0000 (11:33 -0400)
commit0a3c26f58a0783013d43c72fed2ca155166e87f5
treea3beb97fd57fd8c60c19fb9300475b086e9e43fd
parentb73417876316c978b62a3bc73f38dbaf47f37f45
Bug 11680: (follow-up) fix unexpected tax rate changes on edit

Follow-up to fix similar issue on vendor edit.

If the tax rates in Acquisitions -> gist system preference
are entered with trailing zeroes, given vendor tax rate value
may not be correctly handled on vendor edit.

Test plan for this follow-up:

1) insert some tax rates with trailing zeroes in gist
system preference (e.g: '0|0.080|0.12|0.20|0.23')
2) add some vendors, choosing 8.0% 12.0% 20.0% 23.0%
as gst rate
3) try to modify them
4) note that vendors with 12.0% and 23.0% tax rates are
preserving previously choosen rates on edit, while
the ones with 8.0% and 20.0% do not (they are defaulting
to the first defined tax rate)
5) apply the patch
6) repeat 2) and 3)
7) all tax rates configured in system prefrence shall now
behave properly while editing vendors

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit f3cb186de5d60395d5d681dc5e83971d0717592a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit ff077e30d3c519377966e0e4715e46a2f75765d3)
acqui/supplier.pl