==Edit==
The problem persists in the Plugin too, I suspect something is weird with the relationship of quotes and quote details.
==Original==
Hello Community, thanks for having me.
I come with a big issue which I can't explain to myself.
When my code executes a synchronous jquery ajax update call due to an onChange event, it only updates the field with the value of a previous update call. I can see it get's the correct value right before the execution, but what is stored in CRM is the wrong one.
i.e.
When I expect 1, I get whatever was before.
Then, when I want to set it to 2, It becomes the 1 I wanted in the line above.
then for 4, it's 2,
for 8 it's 4,
etc...
I hadn't this issue at first, but it suddenly cropped up after rearranging code and events.
I have screenshots and can show the relevant part of code, and explain in what context it runs.
This piece is overdue, so I am going to do this bit with a .net plugin instead, but it is very vexing and assume it to be a bug in Dynamics CRM.