Has anyone come across an issue with using the client side API and negative numbers? We have a custom integer field under the quote entity which can contain either positive or negative numbers. However the following code:
var margin = parseInt(crm.fields("quot_c_margin").value());
seems to remove the signage so if the value of the field is -87 then 87 is returned. The strange thing is that when the quote is in read mode the signage is removed, however when the quote is in edit mode (by selecting the Change Summary button) the value is returned as expected with the correct signage.
I have tried removing parseInt but this seems to make no difference.