OBBLM - Negative Treasury Change

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

OBBLM - Negative Treasury Change

Post 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.

Reason: ''
Image
Image
dodger
Rookie
Rookie
Posts: 13
Joined: Mon Oct 21, 2013 10:39 pm

Re: OBBLM - Negative Treasury Change

Post by dodger »

I fixed that on our site by just removing the call for that check.

Reason: ''
Post Reply