Go to file
Ali 1bc9fd6b13 Silence two post-setup popups from bank materialization
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.
2026-04-28 10:19:41 +00:00
jey_wizard Silence two post-setup popups from bank materialization 2026-04-28 10:19:41 +00:00
.editorconfig feat: Initialize App 2026-04-22 10:00:16 +00:00
.eslintrc feat: Initialize App 2026-04-22 10:00:16 +00:00
.gitignore feat: Initialize App 2026-04-22 10:00:16 +00:00
.pre-commit-config.yaml feat: Initialize App 2026-04-22 10:00:16 +00:00
CLAUDE.md Add FIFO/Moving Average picker; add CLAUDE.md 2026-04-24 13:01:18 +00:00
README.md feat: Initialize App 2026-04-22 10:00:16 +00:00
license.txt feat: Initialize App 2026-04-22 10:00:16 +00:00
pyproject.toml feat: Initialize App 2026-04-22 10:00:16 +00:00

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