Commit Graph

15261 Commits

Author SHA1 Message Date
Geert Janssens
77ff603655 Bug #622778 Miscalculation in cashflow reports - Step 03
Introduce solution and some minor modifications to save some function calls.

Solution:

- Save the current split value
- Calculate the parent total transaction value
- Calculate the ratio of the split to the transaction value
- only consider splits of opposite sign for the flow colletion
- only consider the split value multiplied with the calculated
  ratio of those splits with opposite sign

Author:    Carsten Rinke <carsten.rinke@gmx.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22971 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-10 19:06:37 +00:00
Geert Janssens
8a95c0f0b7 Bug #622778 Miscalculation in cashflow reports - Step 02
- functional change within the cash flow calculation:
Instead of using a recursive call to (define (calc-money-in-out-internal ...))
to loop through the list of selected accounts a for-each loop is introduced.

- functional correction:
As the cash flow result data has been turned to global objects with the previous patch,
these objects need to be reset before the call to the cash flow calculator.
This is now added in the document renderer.

- further comments introduced
This is used to help identifying the function change that will be
introduced with the next patch for fixing 622778.

Author:    Carsten Rinke <carsten.rinke@gmx.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22970 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-10 19:06:28 +00:00
Geert Janssens
77340591a9 Bug #622778 Miscalculation in cashflow reports - Step 01
Restructure code to achieve following blocks

- options generator
- global objects
- cash flow calculator
- document renderer

Reason: Preparation for better change tracability.

No functional change of code.

Author:    Carsten Rinke <carsten.rinke@gmx.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22969 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-10 19:06:12 +00:00
Geert Janssens
4f7f776395 Bug #584869 net change line in general journal report broken
Do not show any totals in the General Journal report.

According to

http://www.accountingtools.com/general-journal
and
http://accountophobia.blogspot.de/2012/06/general-journal.html

it is not the idea of the General Journal to show totals but
only list transactions.

This patch makes use of the ledger-type? flag and suppresses
the output of the Net Changes accordingly.

By that, the General Journal will not show Totals, but the
Account Report still does.

Author:    Carsten Rinke <carsten.rinke@gmx.de>

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22968 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-10 19:05:59 +00:00
Geert Janssens
e1270620e8 Bug #589865 In the report "Budget flow" period it doesn't work ok
change the report head line to show the period date for (- period 1).
Author : Carsten Rinke <carsten.rinke@gmx.de>

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22967 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-10 19:05:50 +00:00
Geert Janssens
56bb7be8f5 Bug #589865 In the report "Budget flow" period it doesn't work ok
Author: Mikhail TSaplin <tsmisher@gmail.com>

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22966 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-10 19:05:38 +00:00
Christian Stimming
ab0cfdce5a Add ZMW currency
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22965 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 20:47:18 +00:00
Christian Stimming
b3ea9556dc Update German translation a bit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22964 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 20:38:36 +00:00
Christian Stimming
0b807c6df1 Minor user message fixes: Spelling fix, Capitalization fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22963 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 20:38:26 +00:00
Christian Stimming
85ce377a8a Update German glossary (a bit).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22962 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 20:38:16 +00:00
Christian Stimming
4f2a2cd120 Fix glossary table that was mistakently using spaces instead of tabs. Update all glossary po files with the new terms.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22961 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 20:38:04 +00:00
Cristian Marchi
9ef0cce3bd Fix some typos.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22960 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 12:18:30 +00:00
Cristian Marchi
5c3fc62d69 Update Italian Translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22959 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-08 11:04:29 +00:00
Christian Stimming
a79905dcc7 Merge latest pot template from trunk into po files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22958 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-07 10:25:01 +00:00
Christian Stimming
0f5999e481 Copy program translations from 2.4 branch to trunk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22957 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-07 10:17:39 +00:00
Christian Stimming
d0bc0ea91a Copy glossary translations from 2.4 branch to trunk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22956 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-07 10:17:10 +00:00
Mike Alexander
d9d56620f5 Quote the python path in case it has blanks in it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22953 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-05 21:57:35 +00:00
John Ralls
efb0939b71 Update ChangeLog and NEWS for 2.5.1 Release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22949 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-04 22:45:29 +00:00
John Ralls
2d15a1bc73 Allow svnlog2ul.sh to run on the current working copy
And from the root directory instead of having to cd to util/svnlog2ul


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22948 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-04 22:28:35 +00:00
John Ralls
c156d17be3 Bump version to 2.5.1 for release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22947 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-04 20:52:54 +00:00
Mike Alexander
f655797fac Fix test for Python to avoid error message
Getting error like
../../gnucash/configure: line 23573: x/opt/local/bin/python: No such file or directory

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22946 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-04 18:38:41 +00:00
Geert Janssens
f0626e5ec9 Register rewrite Update, change the default for the new register and rename old one.
This update changes the default for double click on the accounts page to open with the new register layout. Also the menu options have been renamed / re-arranged to reflect this. Have also done the same on the general ledger options.
Author: Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22945 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-04 07:49:09 +00:00
Geert Janssens
1b80da7f94 Bug #698781 can't build with glib 2.36: error: 'g_type_init' is deprecated
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22944 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:04:03 +00:00
Geert Janssens
84b2428192 Tests: harmonize test initialization
In particular, use qof_init instead of g_type_init. The former
calls the latter by default. Also our current engine code is
heavily dependent on gobject, so it makes sense to initialize it
as early on as possible. Having once central place to do so
will make it easier to fix this if ever we move away from gobject.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22943 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:03:53 +00:00
Geert Janssens
eb409ecd35 Refactor file backend settings to no longer depend on gconf
This affects many other components as well, including the
python bindings

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22942 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:03:38 +00:00
Geert Janssens
5a26e65e6c Move gnc-gconf-utils to app-utils
This breaks the build, but this makes it easier to read the
commit history. The build will be fixed in the next commit.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22941 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:03:23 +00:00
Geert Janssens
9c65cb20b4 Add new core prefs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22940 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:03:12 +00:00
Geert Janssens
f4872f6e6c Rename gnc-main to gnc-core-prefs
And add proper namespace prefixes to its functions

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22939 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-03 12:03:00 +00:00
John Ralls
4cf7b1f045 Mac: Add -framework Cocoa to GTK_MAC_LIBS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22938 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 21:01:30 +00:00
Geert Janssens
d14662fe32 make distcheck altered POTFILES.in
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22937 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 16:34:13 +00:00
Geert Janssens
48cceb51e6 REST API Example for Python Bindings
Initial version of REST API allowing minimal information about accounts, invoices and customers to be accessed in JSON format. Includes modifications to gnucash_core.py  to add additional functions.

Author: Tom Lofts <dev@loftx.co.uk>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22936 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 16:34:03 +00:00
Geert Janssens
216bb3263c Fix chart positioning on multi-column report
This is a follow-up on bug #638971

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22935 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 14:43:09 +00:00
Geert Janssens
24ad9c3fc4 Register rewrite Update, this adds some preference options and fixes a tab issue.
This update adds four new preferences to Register Defaults, these are for auto-complete, show entered date, calendar buttons and jump to blank split on expand. There are also some changes to the reconcile tests, a dialog warning popup for accounts recievable / payable registers, auto tab over non editable cells, change the cell background to that of the row when in edit mode and the ability to change the column order.
Author: Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22934 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 14:42:48 +00:00
Geert Janssens
e4f54dcdc8 Register rewrite Update, this fixes some leaks and renames some functions.
This update fixes some leaks found with valgrind and renames some functions to a standard way.
Author: Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22933 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 14:42:28 +00:00
Geert Janssens
933983191c This update fixes the schedule of share purchase.
In testing the schedule, I found I could schedule a share purchase just like a currency transaction but when on the sinse last run dialog, both allowed me to specify the price/rate but only the currency transaction would get added using the specified value. This patch fixes this.
Author: Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22932 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 14:42:11 +00:00
Geert Janssens
4229695e81 Register rewrite Update, this adds the schedule option with some other changes.
This update adds the schedule option. The schedule editor files have been duplicated and used to edit the schedule with the template displaying in the tree view. This is accessed from additional menu options on the Scheduled Transactions plugin page under Schedule, New 2 and Edit 2.
Other changes are to the date renderer, FuturePostedDate function, fix the split collapse option and move some functions around.
Author: Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22931 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-05-02 14:41:56 +00:00
Christian Stimming
96f660eeb1 Finally fix the maddening long waiting times after clicking "Ok" in the import matcher window.
Turns out we were simply missing a suspend_gui_refresh call before actually
processing the results. Sigh.

(Can go into 2.4 because the bugfix is so surprisingly simple.)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22929 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-24 09:08:31 +00:00
Geert Janssens
0980a2e815 Fix compiler warning
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22928 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-22 19:23:05 +00:00
Geert Janssens
9197062afe Register rewrite Update, this adds the trading accounts option with some other changes.
This update adds the trading accounts option. Also included is a fix for the way the model is loaded and changes the way it the view gets refreshed. There are also some minor changes to transaction confirmation. Two new files have been added and some functions moved to these with more to follow.
Author: Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22920 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-20 16:45:56 +00:00
Christian Stimming
d98f1ef194 String improvements: For singular form of ngettest, the %d conversion specifier can be skipped.
See e.g. this thread http://article.gmane.org/gmane.comp.version-control.git/221583

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22914 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-18 07:24:21 +00:00
Christian Stimming
0f8d8eb058 Win32 build: Update libofx to version 0.9.8
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22911 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-17 20:15:07 +00:00
Geert Janssens
cca4745e2b Fix indirect libguile dependency in bi_import plugin
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22910 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-15 20:03:08 +00:00
Geert Janssens
30730f8b08 Fix indirect libguile dependency in customer import
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22909 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-15 20:02:57 +00:00
Geert Janssens
cb9ede4b5c Fix indirect libguile dependency in business ledger
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22908 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-15 20:02:43 +00:00
Christian Stimming
20f468ca0c Adapt to latest split of engine-helpers.h, r22902.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22906 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-14 20:04:46 +00:00
Christian Stimming
ddffb67011 Adapt to latest split of engine-helpers.h, r22902.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22904 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-14 19:41:04 +00:00
Geert Janssens
940554293b Commit nex file (missed it in previous commit)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22903 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-13 17:07:59 +00:00
Geert Janssens
4ae129fb39 Prevent engine's guile dependency from leaking to modules not directly
using guile

For this I have split engine-helpers.h in two headers
- one for conversion functions to and from guile
- one with guile-independent helper functions

The appropriate headers are then included depending on which functions
are required.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22902 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-13 10:40:55 +00:00
Geert Janssens
9a4eb83e17 Remove unused guile-mappings.h include instead of adding GUILE_INCS
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22901 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-13 10:40:37 +00:00
Christian Stimming
de238cb984 Add probably missing GUILE_INCS to CPPFLAGS because table-gnome.c includes "guile-mappings.h" that includes <libguile.h>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22900 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-04-12 19:08:21 +00:00