The documentation is clear on how we can read a company wide setting but there is no information on how we can set them from javascript. Is there a javascript function similar to this ? rbv_api.setFieldValue("$SETTINGS", {!#SETTINGS.id}, "price", 99.99);
I think your code should work fine.
You are right, the code is working.
It is working in trigger, but unfortunately not in templates or reports...
Either, the formula or the token {!#SETTINGS.id} would be a nice addition to the template helper.