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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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