To ensure that they all have a begin/commit and mark the instance
dirty so that the change is immediately written to the DB.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23167 57a11ea4-9604-0410-9ed3-97b8803252fd
The first attempt to commit when creating the invoice failed because
the commodity had not yet been set. Wrapped the creation routine in
begin/commit to allow the invoice to be fully populated before trying
to write the DB.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23166 57a11ea4-9604-0410-9ed3-97b8803252fd
Yet another corner where forgetting to run a edit-commit cycle when
changing state breaks database save.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23164 57a11ea4-9604-0410-9ed3-97b8803252fd
The core issue is that open reports are using a new restore function in 2.6,
which doesn't exist in 2.4 and older. The restore code now checks for the
existence of this new function and falls back to the old one if necessary.
The (mild) side effect is that in 2.4 any link to a custom template is lost.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23159 57a11ea4-9604-0410-9ed3-97b8803252fd
Apply the new function gnc:account-get-total-flow for the "Withdrawal" calculation.
Depends on the patches for
- report-utilities.scm
- report-system.scm
Author: Carsten Rinke <carsten.rinke@gmx.de>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23158 57a11ea4-9604-0410-9ed3-97b8803252fd
To be run after the patch for report-utilities.scm
Export the new function gnc:account-get-total-flow from report-utilities.scm.
Author: Carsten Rinke <carsten.rinke@gmx.de>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23157 57a11ea4-9604-0410-9ed3-97b8803252fd
Add function gnc:account-get-total-flow to report-utilities.scm
This function filters the splits from the source to the target accounts
and returns a commodity collector.
It does NOT do currency exchanges.
Author: Carsten Rinke <carsten.rinke@gmx.de>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23156 57a11ea4-9604-0410-9ed3-97b8803252fd
When [locale objectForKey: NSLocaleCountryCode] returns nil
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23150 57a11ea4-9604-0410-9ed3-97b8803252fd
Change menu entry for the single transaction Account Report
from
"Accout Transaction Report"
to
"Account Report - Single Transaction"
Author: Carsten Rinke <carsten.rinke@gmx.de>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23147 57a11ea4-9604-0410-9ed3-97b8803252fd
Add calls to gnc:substring-replace-from-to to procedure gnc:report-run.
Filter out all occurances of jquery.min.js and jquery.jqplot.js except for the first occurances.
Author: Carsten Rinke <carsten.rinke@gmx.de>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23144 57a11ea4-9604-0410-9ed3-97b8803252fd
Add new procedure gnc:substring-replace-from-to
Similar to gnc:substring-replace, but offers the possibility to replace substrings in a range of occurances.
Author: Carsten Rinke <carsten.rinke@gmx.de>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23143 57a11ea4-9604-0410-9ed3-97b8803252fd
Includes putting the message-handler cleanup in teardown.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23140 57a11ea4-9604-0410-9ed3-97b8803252fd
New functions to simplify creating log handlers for expected log
messages, especially fatal message handlers. Handlers are tracked in the
Fixture and automatically freed during teardown.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23138 57a11ea4-9604-0410-9ed3-97b8803252fd
Change the register name to "Accout Transaction Report" when the register
type is GENERAL_LEDGER, INCOME_LEDGER, or default in function gnc_reg_get_name().
Patch by Carsten Rinke.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23131 57a11ea4-9604-0410-9ed3-97b8803252fd
Minor change to check for and return None in method_function_returns_instance
Author: Tom Lofts <dev@loftx.co.uk>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23116 57a11ea4-9604-0410-9ed3-97b8803252fd
Alters the gnucash account matching code to search a second time if
the original search fails and the account ID has a trailing space. The second
search tries with the trailing space removed.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23114 57a11ea4-9604-0410-9ed3-97b8803252fd
Undefined symbols 'timezone' and 'daylight'
These are declared extern globals in time.h on most Unices, but not
on some BSDs. Since they're not used anywhere in Gnucash, just delete
setting them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23106 57a11ea4-9604-0410-9ed3-97b8803252fd