Two unrelated user-visible errors appeared after a successful wizard run: 1. 'Hesab Növü: 2 tapılmadı' (×5, one per non-closed bank) Bank Account.account_type is a Link to the Bank Account Type doctype, which is empty on a fresh install. We were stuffing the e-taxes raw numeric 'type' code (e.g. '2' for card) into it. Field is optional — stop populating it, the validation error goes away. 2. 'Hesab 223.1 - AZN AZXX… ilə əlaqəli olduğu üçün silinə bilməz' (×1) ERPNext's setup_company → set_default_accounts picks the first Bank- typed Account and writes it to Company.default_bank_account. On the AZ chart that's a placeholder (223.1 - AZN AZXX… - JS), so when _delete_bank_placeholders later tries to delete it, Frappe blocks the delete with LinkExistsError pointing back at Company. Two-part fix: before the placeholder sweep, repoint Company.default_bank_account to the first real bank GL we just materialized (only when the current value is unset or a placeholder). And as a defensive fallback, _delete_bank_placeholders now catches LinkExistsError, clears the queued popup message, and disables the account instead of leaving the user with a scary error. |
||
|---|---|---|
| jey_wizard | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| CLAUDE.md | ||
| README.md | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Jey Wizard
Jey Wizard
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 jey_wizard
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/jey_wizard
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense