If you change the shipping cost in an existing invoice, the page reloads on saving and gives you a success message, but the amount stays the same. Tested so far in 16.11.13 and 3.22.18. To test: - Search for an existing invoice - Show details - Changing shipping cost - Save - Verify the old amount is still shown, although there is a success message on top
Created attachment 69922 [details] [review] Bug 19694: Force scalar context for output_pref called with billingdate If no string is passed to output_pref, it needs to be called in scalar context (to avoid a shift in the hash elements). Here we have billingdate that is not defined yet (NULL) Test plan: - Search for an existing invoice - Show details - Changing shipping cost - Save - Verify the new amount is shown
And it has the side-effect to set billingdate to 0000-00-00
The logs displayed: Odd number of elements in hash assignment at /home/vagrant/kohaclone/C4/Acquisition.pm line 2773.
Created attachment 69962 [details] [review] Bug 19694: Force scalar context for output_pref called with billingdate If no string is passed to output_pref, it needs to be called in scalar context (to avoid a shift in the hash elements). Here we have billingdate that is not defined yet (NULL) Test plan: - Search for an existing invoice - Show details - Changing shipping cost - Save - Verify the new amount is shown Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>
Created attachment 70001 [details] [review] Bug 19694: Force scalar context for output_pref called with billingdate If no string is passed to output_pref, it needs to be called in scalar context (to avoid a shift in the hash elements). Here we have billingdate that is not defined yet (NULL) Test plan: - Search for an existing invoice - Show details - Changing shipping cost - Save - Verify the new amount is shown Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to master for 18.05, thanks to everybody involved!
*** Bug 18793 has been marked as a duplicate of this bug. ***
Awesome work all! Pushed to stable for 17.11.02
Pushed to 17.05.x for v17.05.08