Page 1 of 1

OBBLM - Negative Treasury Change

Posted: Sat Mar 14, 2015 11:27 pm
by Vanguard
As I understand it, if a team spends petty cash on Inducements this has to be recorded on the match report in the Treasury Change field. Essentially, it's the sum of winnings minus petty cash spent, spiralling expenses etc.
However, I'm having issues when I try to record a negative value. It pops up a warning saying 'Numerical values only'

Digging into the javascript on the site, I think the issue is down to the IsNumeric() function in /lib/misc_functions.js
The function checks that all characters in the field are in the set 0-9, so it's failing on a negative sign. Think it should just be case of adding a special case check for the first character to accept a negative sign.

Re: OBBLM - Negative Treasury Change

Posted: Sat Apr 11, 2015 2:51 am
by dodger
I fixed that on our site by just removing the call for that check.