Commit 4523cce
Dong Lin
Fix stale account balances and grand total during transaction import
The bug:
After importing transactions from an existing account, the grand total net assets is updated to N,
and the ending balance of the imported account is X.
Quit and restart gnucash, the net assets changes to N+X.
on_matcher_ok_clicked invokes gnc_resume_gui_refresh before the account is fully commited.
xaccAccountRecomputeBalance skips an account if it has pending edits.
The fix:
Invoke gnc_resume_gui_refresh after all accounts have fully commited.
Tests:
make check
reran the above test, the net assets balance is updated to N+X without restarting gnc.1 parent 01f0d25 commit 4523cce
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | 593 | | |
597 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| |||
0 commit comments