Commit Graph

16740 Commits

Author SHA1 Message Date
John Ralls
a1c7f6456c Release 2.6.10 2015-12-19 12:32:54 -08:00
John Ralls
cf6a5755e1 Clean log files in report-system/test.
Fixes a distcheck complaint about them being left behind.
2015-12-19 12:31:59 -08:00
John Ralls
571803ae6c Update the po files from the Translation Project. 2015-12-19 11:22:12 -08:00
Pedro Albuquerque
cc765b053b Add new Portugal-Portuguese Translation. 2015-12-19 09:57:43 -08:00
John Ralls
0a56146728 Fix test failure due to trying to parse nanoseconds, which we don't actually use. 2015-12-18 13:44:20 -08:00
Geert Janssens
9d07650077 Bug 746155 - Reports: html-acct-table prepend-row! & prepend-col! unknown variables
Fixed following the suggestions by Tony Kerns.
In addition the function names have been made more consistent -
they all end with a ! now as they change data.

Note these functions aren't used anywhere in the gnucash
code, but may affect custom reports by some users.
2015-12-18 18:12:03 +01:00
John Ralls
2f2d1d91a8 Bug 756335 - When importing, date selection causes exit crash
Second crash, when the field doesn't have a string.
2015-12-17 16:44:42 -08:00
John Ralls
8d904c1209 Correct detection of marker commodity splits.
The splits don't have an amount until after the formula is parsed, so
use the absence of both a credit and debit formula to indicate a marker.
2015-12-17 16:38:35 -08:00
John Ralls
5f0cb0731f Use @SHELL@ instead of hardcode /bin/sh in test shell scripts.
This is a workaround for MacOS X 10.11's System Integrity Protection,
aka SIP, which among other things prevents system binaries from passing
linker environment variables to children. Anything in /bin or /usr/bin
qualifies as a system binary, and that includes /bin/sh and /bin/bash.
Not being able to pass linker paths breaks all of our guile tests which
need to tell Guile where to look for the libraries being tested.

To apply the workaround one needs to first have a shell outside of /bin
and /usr/bin. Simply copying /bin/sh to your home direcory works, as
does building a suitable shell somewhere. Just pass the path to that
shell in $CONFIG_SHELL to configure and all of the shell scripts and
libtool .la files will be created with it in the shebang line and the
linker environment variables will be passed in.

In order to build GnuCash in the first place you'll also need to edit
guild to use the alternate shell.
2015-12-14 13:11:12 -08:00
John Ralls
9f3d6fc83c Bug 759224 - illegal dates in stock transactions cause corrupt file.
Work around FreeBSD strptime bug.
2015-12-14 13:00:13 -08:00
Mechtilde
e08d7ac6c1 update de.po via gnucash.pot after building myself 2015-12-12 18:37:45 +01:00
Mechtilde
eb7a143c14 update de.po via gnucash.pot after building myself 2015-12-12 18:33:08 +01:00
Mechtilde
c8e77b4c7a some more German translation 2015-12-12 18:20:39 +01:00
Mechtilde
a765e8b47f add more German Translation 2015-12-12 10:33:11 +01:00
Mechtilde
34c1fc5213 add German Translation 2015-12-12 10:33:11 +01:00
Mechtilde
07c77f42d9 remove some fuzzy 2015-12-12 10:33:11 +01:00
Geert Janssens
e1b77aad87 Fix uninitialized warning in previous commit 2015-12-11 15:42:51 +01:00
Geert Janssens
f46ab3b98b Improve the revert action
- Move it's implementation to gnc-file with the rest of the file actions
- Ask user confirmation
- Don't ask to save before reverting
2015-12-11 12:06:55 +01:00
Geert Janssens
bfce5d840d Have a more generic mechanism to set Save action's sensitivity and use it for Revert action as well
So far the Save actions was more or less treated as an exception.
The new code enables/disables selected actions based on the dirty
state of the book.
2015-12-11 12:06:52 +01:00
Geert Janssens
38c0cc9451 Remove a couple of obsolete FIXME comments 2015-12-11 12:06:50 +01:00
Geert Janssens
cb0ae9ee8d Make dirty handling as currently defined by qof_alt_dirty_mode the only dirty handling mode 2015-12-11 12:06:49 +01:00
Mike Evans
35b5d94484 Bug 759294 - New the billing term are not saved during invoice editing.
Prevent editing the terms from the invoice view. This has to be edited
via the edit invoice button or menu Edit->Edit Invoice. The dropdown
in the invoice view has been replaced with an edit text box set to
non-editable in the glade file.
2015-12-11 10:11:41 +00:00
Geert Janssens
b2ced3d719 Bug 745101 - No warning when quitting with unsaved file
Improved fix: mark session dirty in qof_commit_edit_part2
instead of delegating this to the backends. This way
a session is also properly marked dirty (and hence the
save button enabled) when no backend is chosen yet
(that is, when in a new file that's never saved yet).

For the xml backend this means there's nothing to do anymore
at commit time, so the xml_commit_edit callback is removed.
2015-12-10 20:47:36 +01:00
Geert Janssens
a3cb28a2fe Disable a couple of debug tests in python
They would trigger a file save during start up on the temporary new session that's
created and destroyed after the following commit.
2015-12-10 20:23:21 +01:00
Geert Janssens
c559d28139 Revert "Bug 745101 - No warning when quitting with unsaved file"
This reverts commit 568bfa0282.
2015-12-10 19:47:00 +01:00
Geert Janssens
568bfa0282 Bug 745101 - No warning when quitting with unsaved file
Current workaround is to force-use a default backend on new sessions.
This works pretty well as the backend to use is retested when a file
is opened anyway, dropping the default backend. The default backend
should be able to handle the case where no real file/db is specified yet.
I think so far only the xml backend can do this, so I have chosen that one
as default.

For this to work I also had to prevent the python integration from querying
the current root account at startup. This query does create a root account
if it doesn't exist yet in the new session, triggering a dirty state. As
a result gnucash would ask to save the new session right before loading the
real file/db (the one that was open in the previous gnucash session).

This will probably still happen when python is initialized with the 'noisy'
flag (which is when --debug is set).
2015-12-10 18:44:51 +01:00
John Ralls
243bfd1e72 Fix broken exchange rate edits when using trading accounts.
Reverts an erroneous change that was part of 6e14137.
2015-12-08 15:26:39 -08:00
Bob-IT
7e7b02af6d Correct Spelling Mistake
On line 217 ASSET is spelt as ASSSET
2015-12-06 21:50:08 +01:00
Geert Janssens
e410e05da7 Followup on bug 682800 to fix row balances in register reports
Due to the changes done for bug 682800 the row balances for the account report
no longer matched the row balances of the original register. This commit
should fix that for a consistent experience.
2015-12-04 18:50:49 +01:00
Peter Broadbery
5a381125ae Some fixes to the previous commit so that it works on both guile-1.8 and 2.0 2015-12-01 14:52:03 +01:00
John Ralls
7cf84db859 Revert the Language-Team in ar.po.
Submitter incorrectly set it to the Translation Project.
2015-11-19 09:44:57 -08:00
Mike Alexander
d4bbede08f Set val_imbalance in gnc_transaction_balance_trading.
When the code was refactored in 61973a8 the return value from the new
function gnc_transaction_get_commodity_imbalance was ignored.  This had
the effect of using an uninitialized variable to set the value in a new
trading account split that is not for the transaction's currency.  That
means that multicommodity transactions created with this bug and trading
accounts on will not be balanced.
2015-11-17 19:07:45 -05:00
Mike Alexander
9b3711533f Remove the code in on_matcher_ok_clicked that builds refs_list.
The use and release of refs_list was removed 7358bcc in August 2012 and
since then on_matcher_ok_clicked has been leaking a GSList on every call.
2015-11-17 19:07:37 -05:00
Mike Alexander
104de59519 Avoid assert in gnc_split_register_balance_trans if default_account is null. 2015-11-17 19:07:19 -05:00
Peter Broadbery
3e7c8fa45a Move test-account and test-split into engine/test directory 2015-11-13 21:12:48 +00:00
Peter Broadbery
13c7abc978 Moved test-extras.scm to engine directory. 2015-11-13 20:33:20 +00:00
Peter Broadbery
c26b81bff8 cash-flow.scm: Use hashtables for accounts as well 2015-11-12 20:46:14 +00:00
Peter Broadbery
eb600c79a4 engine-utilities.scm: Add a couple of hashtable functions. 2015-11-12 20:43:58 +00:00
Peter Broadbery
cca9cc7c22 cash-flow.scm: Use a hashtable instead of a list.
This removes O(n^2) behaviour in the number of splits.
2015-11-12 20:39:02 +00:00
Peter Broadbery
5ff205d41f engine-utilities.scm: Add a specialised hashtable. 2015-11-12 20:38:49 +00:00
Peter Broadbery
526fd82ca8 cashflow: use the much faster gnc:account-get-trans-type-splits-interval
This retrieves all the splits we need, and much faster.
2015-11-12 20:29:27 +00:00
Peter Broadbery
8d12338244 Add cashflow test 2015-11-12 20:29:27 +00:00
Peter Broadbery
516b3025b1 report-utilities: Add a very small test to show that splits are unique
for account-get-trans-type-splits-interval
2015-11-12 20:29:26 +00:00
Peter Broadbery
6a8e97600f cashflow: Further separate work into a per-split section. 2015-11-12 20:29:26 +00:00
Peter Broadbery
5d98d4af9d standard-reports/cash-flow.scm: break out main calculation part
This adds a function cash-flow-calc which does most of the donkey work and
can be tested independently of report generation.
2015-11-12 20:29:23 +00:00
Peter Broadbery
b47f04539e Move account & split.scm to engine-utilities 2015-11-12 20:26:18 +00:00
Peter Broadbery
8dfea02da7 reports: Add account and split module, plus tests.
Remove common functions from the budget and cashflow reports.
Add into separate modules, plus some tests for these newly exposed
functions.
2015-11-12 18:17:32 +00:00
Peter Broadbery
f9ab945cad Add and use a macro for loading modules. 2015-11-12 18:17:32 +00:00
John Ralls
fa4532b603 Updated Arabic Translation by Abdulsalam Alshilash. 2015-11-11 08:44:35 -08:00
Bill Nottingam
1a92dad9d0 Bug 742321 - Reset temporary prefs on application startup 2015-11-10 21:54:38 +01:00