Better sanitization of inputs

Feature Request:

Before committing currency values into relevant fields (a journal entry in this case), trim whitespace characters (GIGO).

What I was doing:

  1. Creating a new account (OK)
  2. Copied balance of old account from Summary screen to clipboard (* this is important later)
  3. Make a new Journal Entry to move the entire balance of old account to new account:
    1. Set narration field (OK)
    2. Selected CR account (OK)
    3. Selected DR account (OK)
    4. Set DR/CR values (showed up visually OK)
    5. Journal entry “draft” balanced (no “out of balance” notice)
    6. Click “Create” (OK)

What happened:

The journal entry was created, but with no actual DR/CR of either account resulted.

What I troubleshot:

  • I tried editing the journal entry by adding the DR/CR values again and updating. No change.
  • I pasted the value of my clipboard (from step 2) into a text editor. A ‘tab’ whitespace char was clearly present.
  • I updated the journal entry and carefully copy/pasted the same value as before without the ‘tab’ char. Success.

Edit:

P.S. - my usual appreciation for the great software. This is one of very few bugs I’ve ever encountered. Great work!

P.P.S. - Manager Desktop 26.10.10.0 on Windows 11.

Hello @jamesaepp,

Glad you are enjoying Manager.

Indeed, I noticed this behavior recently.

Text strings used to be sanitized previously, but I don’t think this was removed.

I also noticed that the built in javascript sanitizing function string.trim() is now failing to catch some whitespace characters, it could be due to a change in standard or due to software padding their text with non-standard characters.

I can see how this can be a nuisance to deal with but I think that users should be mainly responsible for data sanitization first and foremost.

Still, I think I will still add this to ideas and the development team will decide on whether it’s technically feasible.

I don’t think I agree with this part because we use computers to reduce toil like this, plus it’s a currency field. I’m not aware of any currencies that use anything but numerals so trimming all characters seems like an obvious QoL improvement.

If there are currencies where trimming chars and “forcing” them into numbers is a problem, then … sure.

I can relate to how you – and possibly many other users – stand on this and that’s why I added this to ideas.