Go to file
Ali 048ab04d7a Repurpose CoA bank placeholders in place + polish defaults
Three small wins for the post-setup chart of accounts:

1. Replace placeholders, don't sit beside them
   The AZ chart ships with 223.1 - AZN AZXX… - JS, 223.2 - USD AZXX…,
   etc. Previously we created our real banks with auto-generated names
   ("AZN AZ96AIIB… - JS") and deleted the placeholders, so the chart
   format flipped between numbered and unnumbered rows. Now we index
   placeholders by leading-3-letter currency before the loop, and for
   each materialized bank we rename the matching placeholder in place
   (account_name + account_currency updated, then frappe.rename_doc to
   "<account_number> - <CUR> <IBAN> - <abbr>"). Real banks inherit the
   223.X numbering. Leftover placeholders (extra currencies, the Kart
   row) get the same delete-or-disable treatment as before. As a bonus,
   frappe.rename_doc auto-fixes Company.default_bank_account when the
   AZN placeholder it pointed at is repurposed.

2. Prefer AZN for Company.default_bank_account
   _repoint_company_default_bank now picks AZN → USD → EUR → RUB → GBP
   → first-created instead of always taking the first GL out of the
   e-taxes response order (which was landing on RUB).

3. Set Stock Settings.default_warehouse
   ERPNext's update_stock_settings looks the warehouse up by
   `_("Stores")`, which at language=az is "Anbarlar" — but the warehouse
   was created with the English name, so the lookup misses and the field
   stays None. The Stock Settings save block in materialize_after_setup
   now resolves the warehouse directly against the new Company.
2026-04-28 11:36:56 +00:00
jey_wizard Repurpose CoA bank placeholders in place + polish defaults 2026-04-28 11:36:56 +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