Comment 6 for bug 1175400

Revision history for this message
Liam Whalen (whalen-ld) wrote :

I have some code that displays a message prompting the user if they are sure they want to over allocate. If they do not have a new perm (ACQ_OVERRIDE_OVER_ALLOCATION) then it also displays a message letting them know they need that perm before they can override the over allocation.

This code is here:

http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/ldw/lp1175400_over_allocation

In the process of testing, I noticed an issue where the value being allocated is not always updated in the Balance, Total Credits, and Total Debits fields. However, upon a reload of the page the value is corrected to however many times I tried to allocate funds before hitting reload. The fields seem to update the first 2 times on my VM, but after that I need to click reload to see the changes.

For example, if the balance is $60.00, and I allocate $10 5 times, I will see the Balance go to $50.00, then to $40.00. After that it stays at $40.00. If, after the 5th $10.00 allocation, I hit reload then the balance changes to $10.00.

I reverted my code and noticed this happening with the original code as well.

When I check the Javascript Console after this occurs, I see a number of errors like this:

Timestamp: 11/06/2015 11:14:43 AM
Error: Error: assertion failed in ItemFileWriteStore
Source File: oils://remote/js/dojo/dojo/dojo.js
Line: 42

I still need to add the SQL that will insert the new perm to my working branch, but it would be good to see if anyone else can replicate the need to hit reload to get the UI to display with the original code.