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.
From #234
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