Skip to content

Import Transactions - 16 Char Limit #235

@funnylookinhat

Description

@funnylookinhat

From #234

The code/reference character limit is 16 chrs, my bank does not provide a unique transaction code in a single column, so I had to concatentate two columns in a CSV and select that as a code. The resulting column was over 16 characters. During import this was caught as an error and displayed but I noticed that the table column type for transactions.code and transactions.reference is varchar(255).
Changing the validation to 255 chrs max in the import method allowed the transactions to be imported without issue.
Additionally, I noticed there are no keys on those two columns which could cause some performance issues when looking up transactions by code.

Should be able to just substr($code,0,16) on this line: https://github.com/system76/beansbooks/blob/master/application/classes/controller/accounts/json.php#L270

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions