Added
- Bank Guarantee-BG doctype: Providing/Receiving bank guarantees with Issue, Extend, Return, Close, and Re-Open actions, posting raw
GL Entryrows against the per-company accounts configured on Optima Payment Setting. Includes a Bank Guarantee-BG Report. - Letter of Credit doctype: Providing/Receiving LCs that book cash-margin collateral via system-generated Payment Entries (Internal Transfer), with Extend, Return, Close, and Re-Open actions. Includes a Letter of Credit Report.
- Tier-4 integration test suites for both doctypes — GL-row assertions for Bank Guarantee, generated-Payment-Entry assertions for Letter of Credit — decoupled from site-specific (WTS) logic so they run on standard ERPNext; both are auto-discovered by CI via a
test_*.pyrglob across the whole package. - Full documentation overhaul: domain-organized
docs/(cheque, bank-guarantee, letter-of-credit, setup, development) with Mermaid state/flow/entity diagrams, accountant/implementer user guides for all three features, a testing guide documenting the KSA test-environment assumptions, and an app-levelCLAUDE.md. - First-time onboarding checklist in the README (EN/AR) covering the setup required before using Bank Guarantees or Letters of Credit.
Changed
- Cheque Action Log validation refactored for clarity; Payment Entry frontend JS modularized; Optima Payment Setting lifecycle hooks reorganized; the setup framework's
__init__orchestration layer was removed in favor of an explicit per-feature file list. - CI bumped to Node 24-native GitHub Actions.
Fixed
- Bank Account query filters for providing/receiving Letter of Credit accounts corrected (root_type filtering).
- Rename patch made self-contained, removing a dependency on the
bankingmodule. sync_banking_account_fieldsnow includes the Bank Guarantee and Letter of Credit fields.- Test factory (
tests/utils.py) now back-fills Bank Guarantee accounts on a pre-existing Optima Payment Setting and satisfies KSA site customizations (Arabic name fields), so the Bank Guarantee and Letter of Credit suites run on customized sites. - Assorted custom-field JSON schema fixes.
Full Changelog: v15.1.1...v15.2.0