Root cause: get_statement_transactions() used fcyAmount (foreign currency amount) but tagged it with account_currency. For AZN-to-USD exchanges on AZN accounts, this picked the USD amount (e.g. 400) but labelled it as AZN, causing wrong BT amounts and cascading JE errors. Fix: parse acCcy from API and use lcyAmount (always AZN per API docs) when acCcy differs from account_currency. Also revert txn_currency fallback in JE creation from kb_currency back to bank_txn.currency so the amount and currency stay consistent throughout the pipeline. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| birbank_docs | ||
| kapital_bank | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| CLAUDE.md | ||
| README.md | ||
| api_endpoints.txt | ||
| license.txt | ||
| pyproject.toml | ||
| www.kapitalbank.az_Archive [26-03-12 17-06-17].har | ||
README.md
Kapital Bank
Kapital Bank Integration
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch main
bench install-app kapital_bank
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/kapital_bank
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense