actual icon indicating copy to clipboard operation
actual copied to clipboard

[Bug]: Trailing whitespace in Schedule name causes budget template to not be applied

Open LarsStegman opened this issue 11 months ago • 3 comments

Verified issue does not already exist?

  • [X] I have searched and found no existing issue

Is this related to GoCardless, Simplefin or another bank-sync provider?

  • [X] I have checked my server logs and could not see any errors there
  • [X] I will be attaching my server logs to this issue
  • [X] I will be attaching my client-side (browser) logs to this issue
  • [X] I understand that this issue will be automatically closed if insufficient information is provided

What happened?

I created a schedule that accidentally had a trailing space as name "Wegenbelasting ". This caused the budget template

#template schedule Wegenbelasting

to not match and no money was budgeted.

What error did you receive?

No response

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Safari

Operating System

Mobile Device

LarsStegman avatar Feb 29 '24 19:02 LarsStegman

I have had a similar issue. See: #2404. One with wrong capitalisation and the other with a leading space.

Kidglove57 avatar Feb 29 '24 19:02 Kidglove57

Hi all - I'm not sure if this should be reported as a separate issue, but I think it goes along nicely.

My understanding is that the Check templates functionality only validates the #template string parses correctly, not that the schedule actually exists. I think we could cover this issue by adding a validation to make sure any schedule included in a #template is a real, future dated, schedule.

Let me know if this should be created as a separate bug/feature!

slimslickner avatar Apr 04 '24 13:04 slimslickner

@LarsStegman Have you tried other browsers? I am not able to recreate this issue, but I don't have safari to try

youngcw avatar Apr 26 '24 03:04 youngcw