Skip to content

Bug: Bank Rule Creation with Payee Field #854

@liltimtim

Description

@liltimtim

Given

Conditions that lead me to bug:

  • Have multiple bank accounts
  • Have account A that has a transaction denoting a transfer of money from Account A to Account B
  • Have imported the transactions all to account A
  • Have multiple uncategorized transactions

Steps:

  1. From the side menu select banking -> rules
Image
  1. Select "+ New Bank Rule"

  2. Create a bank rule where text is matching against "Payee" field. (see screenshot)

Image
  1. Press Save
Image

An error occurs

The following is the request body response 422 from the browser's console logs.

[Error] U

code: "ERR_BAD_REQUEST"

config: {transitional: {silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false}, adapter: ["xhr", "http", "fetch"], transformRequest: Array, transformResponse: Array, timeout: 0, …}

message: "Request failed with status code 422"

name: "AxiosError"

request: XMLHttpRequest

listeners: {loadend: Array, abort: Array, error: Array, timeout: Array}

onabort: function()

onerror: function()

onload: null

onloadend: function()

onloadstart: null

onprogress: null

onreadystatechange: null

ontimeout: function()

readyState: 4

response: "{\"status_code\":422,\"error\":\"Unprocessable Entity\",\"message\":\"Unprocessabl…"

responseText: "{\"status_code\":422,\"error\":\"Unprocessable Entity\",\"message\":\"Unprocessabl…"

responseType: ""

responseURL: "http://mac-studio.home.localnet/api//banking/rules"

responseXML: null

status: 422

statusText: "Unprocessable Entity"

timeout: 0

upload: XMLHttpRequestUpload {onloadstart: null, onprogress: null, onabort: null, onerror: null, onload: null, …}

withCredentials: false

XMLHttpRequest Prototype

response: {data: Object, status: 422, statusText: "Unprocessable Entity", headers: Se, config: Object, …}

stack: "Me@http://mac-studio.home.localnet/static/js/main.bcc8a165.js:602:188810…"

U Prototype

	(anonymous function) (main.bcc8a165.js:602:1494744)

Expectation

As a user, I expect to be able to create a new banking rule that allows matching other fields besides Description.

Outcome

As a user currently, I'm only able to create bank rules that match Description only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions