Commit Graph

15222 Commits

Author SHA1 Message Date
John Ralls
38f1cc6479 Fix up state-changing business functions
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
2013-09-13 23:36:36 +00:00
John Ralls
818c00630d Bug #682280 - bill/invoice importer fails to save imported bills/invoices
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
2013-09-13 23:36:22 +00:00
John Ralls
c7f6d0e6e0 Bug 684670 - Interest amount calculation is wrong in Sqllite3 format
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
2013-09-12 23:29:42 +00:00
John Ralls
568cfd730e Prepare 2.5.5 release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23161 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-09 17:08:46 +00:00
John Ralls
1009505831 Bug 704056 - Online Banking (Online Actions) does not appear in Action menu
Ensure that all functions are exported to the dll

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23160 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-09 03:01:14 +00:00
Geert Janssens
745afb94dd Prevent 2.4 from crashing when loading a book that was opened with 2.6 before.
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
2013-09-04 12:55:49 +00:00
Geert Janssens
6ee4202fca Bug 603183 - Equity statement shows incorrect changes
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
2013-09-03 14:02:35 +00:00
Geert Janssens
609b60bea3 Bug 603183 - Equity statement shows incorrect changes
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
2013-09-03 14:02:21 +00:00
Geert Janssens
c5adac66c3 Bug 603183 - Equity statement shows incorrect changes
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
2013-09-03 14:02:02 +00:00
Geert Janssens
2eaf1a5586 Bug #704039 time zone is not respected on windows
Author: Kuang-che Wu <kcwu@csie.org>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23155 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-03 13:35:03 +00:00
Geert Janssens
47e89eff6b Add appdata description file to be used in Gnome's App store
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23153 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-03 10:59:19 +00:00
John Ralls
df4f6a321c Handle exception in set_mac_locale()
When [locale objectForKey: NSLocaleCountryCode] returns nil

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23150 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-26 17:02:54 +00:00
Cristian Marchi
757a1ef120 Revert Persian translation update while Persion translators coordinates the translation effort.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23149 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-22 18:59:41 +00:00
Cristian Marchi
ffd3dc2deb Update traditional Chinese translation thanks to Kuang-che Wu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23148 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-20 20:08:51 +00:00
Geert Janssens
61b79aa231 Bug 334939 - Account Report and Account Transaction Report are apparently the same, but different
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
2013-08-20 13:49:46 +00:00
John Ralls
4774967890 Fix pointer conversion warnings on 64-bit builds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23146 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-18 22:55:39 +00:00
Geert Janssens
a04cf371e5 Add comment to document the hack for multicolumn multi-chart reports
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23145 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-18 21:22:15 +00:00
Geert Janssens
28de0f4c78 Bug 704525 - When you have a mix of chart types (bar charts and pie charts)
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
2013-08-18 21:22:07 +00:00
Geert Janssens
cc51bcf7c0 Bug 704525 - When you have a mix of chart types (bar charts and pie charts)
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
2013-08-18 21:21:57 +00:00
John Ralls
299b6c4b4d Add Lithuanian translators to AUTHORS
Per request of Tae Wong <seotaewong40@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23142 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-18 00:03:47 +00:00
John Ralls
155223d487 Set mime-type property on AUTHORS and DOCUMENTERS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23141 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-17 23:23:18 +00:00
John Ralls
48901c39f0 Testing: Split.c: Filter out expected error message.
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
2013-08-16 16:44:45 +00:00
John Ralls
6aa2cb9deb Unit test Transaction.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23139 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-16 16:44:28 +00:00
John Ralls
6379a23b87 [Testing] Create log handlers in one step, clean up in teardown
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
2013-08-16 16:44:08 +00:00
John Ralls
7ae9ebc69a Protect split-iterator from NULL split
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23137 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-16 16:43:58 +00:00
John Ralls
bb5d1751d2 Protect xaccTransIsBalanced against crashing if passed a NULL Transaction
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23136 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-16 16:43:39 +00:00
John Ralls
6c49aad96e Transaction.c: Note a bug discovered in testing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23135 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-16 16:43:30 +00:00
John Ralls
4ac2182cce Guard xaccTransGetRateForCommodity against NULL arguments
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23134 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-16 16:43:12 +00:00
John Ralls
6f93931df5 Split: Ignore fatal message
It's checked already as a normal message.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23133 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-16 16:43:01 +00:00
Christian Stimming
29facc54c6 Bug #629136: Move the code that updates the sensitivity of immutable page actions from gnc_main_window_switch_page to gnc_main_window_generate_title.
Patch by Guilherme Salgado.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23132 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-15 19:44:32 +00:00
Christian Stimming
bbf7c34f98 Bug #696492: Change report name in menu or in report output to be consistent
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
2013-08-15 19:44:20 +00:00
Cristian Marchi
2d845cae0d Update Persian translation, copied from the translation project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23129 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-12 12:20:28 +00:00
Cristian Marchi
63bf8578c8 Update Lithuanian translation thanks to Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23128 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-04 19:12:06 +00:00
Cristian Marchi
2765b3137b Improve a tooltip. Patch thanks to Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23127 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-04 19:10:51 +00:00
Cristian Marchi
b436673a52 Change po files for previous patch removing double spaces. Patch thanks to Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23126 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-04 19:08:29 +00:00
Cristian Marchi
6bf62a3679 Remove double spaces from translatable strings. Patch submitted by Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23125 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-04 19:04:39 +00:00
John Ralls
a96929969c Fix some uninitialized variable warnings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23124 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-03 21:47:35 +00:00
John Ralls
2b2838c834 Bump for 2.5.4 release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23122 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-03 14:42:21 +00:00
Cristian Marchi
852c3ed568 More consistency for UI strings. Patch by Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23120 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-02 18:34:40 +00:00
John Ralls
9918d767b0 Revert "Support for querying Bitcoin/Litecoin prices via F::Q's MtGox module"
This reverts commit r22988.
See https://bugzilla.gnome.org/show_bug.cgi?id=698769#c8

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23119 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-02 18:33:25 +00:00
Cristian Marchi
0d04bb4b70 Update Italian translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23118 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-02 18:32:52 +00:00
John Ralls
b1fb99d211 - Functions which can return null always return a Python object
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
2013-08-02 18:08:55 +00:00
John Ralls
abe3440291 Bug 704183 - ofx file import tries to match online_id against ACCTID[space]ACCTKEY even when ACCTKEY is empty
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
2013-08-02 17:55:52 +00:00
John Ralls
ab3d8086be Register rewrite Update, add delete transaction up/down function. This update corrects a mistake in the removal of previous gui update. Author: Robert Fewell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23113 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-02 17:55:40 +00:00
John Ralls
530bcd446d Register rewrite Update, change to using original query. This update changes the model to drop the filter and sort models to use the qof query to do these parts. This is in response to the slowness of large transaction lists with the intention to load only a subset of them. This is the start and this update should result in the same out put as using the filter and sort model. Author: Robert Fewell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23112 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-02 17:55:26 +00:00
John Ralls
d97086e260 Register rewrite Update, added extra dates and cursor changes. This update fixes the following, allow the cursor to move between cells and make active, changed the preference for showing date entered to include reconcile date and added another option to show when transaction selected. Also added menu option to show these extra dates. Author: Robert Fewell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23111 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-02 17:55:10 +00:00
Cristian Marchi
c1da48fb46 Make CSV account import table header translatable. Patch by Aurimas Fišeras.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23110 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-01 20:06:57 +00:00
Cristian Marchi
d3569e6709 Update Catalan translation copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23109 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-01 19:10:16 +00:00
John Ralls
c4736ea79a Fix report tests which fail in OSX
Because of too-small stack sizes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23108 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-08-01 18:42:19 +00:00
John Ralls
41b99bb87c Bug #704185: GnuCash 2.5 doesn't build on FreeBSD
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
2013-07-14 17:10:03 +00:00