Skip to content

v0.23.0

Choose a tag to compare

@bisand bisand released this 19 Nov 20:09
· 12 commits to main since this release

The agent can now do bank reconciliation, and importing a bank statement no longer counts a payment twice.

New

  • Bank tools for the agent (#297). Eight tools over the existing bank endpoints. Reading: bank_kontoer, bank_avstemming (unreconciled lines with suggestions), bank_poster_sok and bankkoblinger. Acting: bank_importer (a camt.053 or CSV statement from disk), bank_hent (fetch now, optionally from a date, as far back as the bank gives), bank_koble (match a bank line to an entry) and bank_bokfor_linje (post a fee or interest straight from its line). Undoing a match has no tool on purpose: a wrong match is fixed by a human.
  • The bookkeeper prompt has a bank procedure, and the accountant's reconciliation step includes the bank. The rule is the same as for the inbox: a bank line is not a voucher. Only fees and interest are posted from a line; anything else comes back as a question.

Fixed

  • A statement file no longer imports payments that are already there (#296). Uploading the same file twice was already refused, but a different file covering the same days (an overlapping export, or days the bank connection had fetched) imported every payment again. Each line already on the account, same day and same amount, is now skipped one for one, and the import message says how many. A second payment of the same amount on the same day still comes in.

Migrations: none.

API: POST /companies/{id}/bank/statements answers with a new field skipped; transactions now counts only the lines imported.