- Always show "Select ƏMAS Organization" dialog after MyGovID re-auth in
the Employee → Load from AMAS flow. Previously auto-picked the first
cert, which on multi-cert users was the personal cert without rights
to the employee report — caused permission_error.
- humanize_amas_error() translates raw codes ('permission_error',
unknown) into user-facing messages. Permission failures return
permission_error: True so the frontend can offer a Reconnect button
that runs full re-auth + org selection.
- make_amas_request: drop the eager /core.dashboard fetch before every
call. Use the cached CSRF token + cookies (already updated from
Set-Cookie on each response). On real CSRF rejection (HTTP 419 or
response code CSRF/TOKENS_ARE_NOT_SAME/CSRF_TOKEN_MISMATCH), refresh
once and retry. Same simplification in get_amas_accounts.
- _process_bulk_employees_import: commit once after the loop instead of
per row, per CLAUDE.md guidance.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| invoice_az | ||
| test_invoice.git | ||
| .editorconfig | ||
| .eslintrc | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| BUGFIX_STATUS_201.md | ||
| BUGFIX_TAX_TYPE.md | ||
| BUGS_VAT_OPERATIONS.md | ||
| CLAUDE.md | ||
| IMPLEMENTATION_COMPLETE.txt | ||
| IMPLEMENTATION_SUMMARY.md | ||
| MIGRATION_GUIDE.md | ||
| PLASTIC_DISPOSAL_IMPLEMENTATION.md | ||
| PROJECT_OVERVIEW.md | ||
| QA_SEND_INVOICE.md | ||
| README.md | ||
| README_TAX_TYPE_FEATURE.md | ||
| TECHNICAL_SPEC_TAX_TYPE.md | ||
| TIRE_DISPOSAL_IMPLEMENTATION.md | ||
| USER_GUIDE_TAX_TYPE.md | ||
| classification_codes.txt | ||
| invoice asan.txt | ||
| invoice.txt | ||
| item_group_codes.txt | ||
| item_group_codes_service.txt | ||
| license.txt | ||
| pyproject.toml | ||
README.md
Invoice Az
This application uploads and downloads invoices from e taxes gov az
Installation
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch develop
bench install-app invoice_az
Contributing
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/invoice_az
pre-commit install
Pre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
License
unlicense