feat(Bank Transaction): auto-book included bank fees#346
feat(Bank Transaction): auto-book included bank fees#346barredterra wants to merge 5 commits intoversion-15-hotfixfrom
Conversation
Add bank fee account configuration and create fee Journal Entries on bank transaction submission so included fees are recognized immediately and reconciled correctly. Co-authored-by: Cursor <cursoragent@cursor.com>
Guard included-fee Journal Entry creation behind a Banking Settings flag so existing sites without bank fee account setup continue to work until the feature is explicitly enabled. Co-authored-by: Cursor <cursoragent@cursor.com>
Update the DocType JSON modified timestamp so the controller change is picked up reliably during model sync. Co-authored-by: Cursor <cursoragent@cursor.com>
…included-bank-fees
Reject withdrawal transactions where included fee exceeds withdrawal amount, while still allowing fee handling when deposit is not set. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Proposed fixes: 1) Cancel only fee JEs created by this featureDepends on frappe/erpnext#52760 Use first-class JE row references to mark ownership, not
2) Make guard clauses feature-aware and migration-friendlyProblem Fix
Compatibility choice
Test to add
3) Stop overwriting allocation totals manuallyProblem Fix
Why this is best Test to add
4) Avoid partial cancel by failing if fee JE cancellation failsProblem Fix
Why this is best Test to add
|
|
"Unreconcile Transaction" in the Bank Transaction should not unlink the fee entry. |
Summary
Bank Account.bank_fee_accountconfiguration, including UI filtering and server-side currency validation.Bank Transactionsubmission and update allocation/status values accordingly.Banking Settingsflag (enable_automatic_journal_entries_for_bank_fees) so existing sites can opt in safely.Bank Transactionis canceled.Co-author
Test plan
bench --site test_site run-tests --app banking --module banking.overrides.test_bank_accountbench --site test_site run-tests --app banking --module banking.overrides.test_bank_transaction_included_fees