Commit Graph

12363 Commits

Author SHA1 Message Date
Christian Stimming
7e9642aa88 Improve original register running balance implementation.
Patch by Tim M:

The attached patch is an enhancement to the original reg_run_balance patch
that was implemented.  This patch has been created off of a recent trunk (in
the last week).  It makes the following changes:

1. Add a gboolean to the argument list of the gnc_split_register_get_rbaln()
function.  If the new boolean value is set to TRUE, then the function will
return the running balance for the parent account and all subaccounts.  If
set to FALSE, the function will only return the running balance of the
parent account and will not include the subaccounts.  The function has been
modified also to accomodate this change.

2. Update existing calls to the function to add the boolean value.

This patch does not actually implement a runtime balance for single account
register view or normal balance column because of potential issues that will
need to be addressed, but it opens up the possibility for easy
implementation of such a change.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18355 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-28 20:32:05 +00:00
Christian Stimming
6bcb76e93a Fix bug when register running balance column appears in template transaction.
Patch by Tim M:

I noticed yesterday a bug in the reg run balance patch that was applied,
there is now a "Balance" column displayed in the template transaction
register.  If you open the scheduled transaction editor, then open a
scheduled transaction and go to the "Template Transaction" tab, there is a
"Balance" column displayed on the far right side of the register.

The attached patch fixes this defect so that the RBALN column is not
displayed in template registers.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18354 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-28 20:31:42 +00:00
Christian Stimming
3a01c28043 Bug #593906: Fix crash at creating account report
Patch by Mike Alexander: I tracked it down to the set of changes made in
r18253 to automatically load all the reports in the standard-reports directory.
This changed standard-reports.scm to use resolve-module instead of use-modules
to load reports.  One difference between these two is that resolve-module
doesn't make the interface for the loaded module available to the module
containing the call to resolve-module.  This causes a crash when
gnc:register-report-create in standard-reports.scm tries to call
gnc:register-report-create-internal which is located in register.scm (one of
the modules loaded using resolve-module).  I fixed it by explicitly defining
that interface using the "@" guile function after the modules are loaded.  You
could also probably just add back a call to use-module for that module, but
this seems to work and makes it explicit what interface is needed.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18352 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-28 17:32:04 +00:00
Christian Stimming
b2ee808ba6 Updated Slovak translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18351 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-28 17:28:27 +00:00
Phil Longstaff
e73288c91f If webkit chosen as html engine, don't bother looking for gtkhtml.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18350 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-26 02:21:05 +00:00
Phil Longstaff
d5a4c757ff Fix enhancement bug 101456 - 'Find' dialog cumbersome for Business functions
When opening an invoice search dialog from a specific company, list is populated by all invoices.

Patch by Geert Janssens


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18349 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-26 00:07:49 +00:00
Phil Longstaff
5ee9dcade2 Enhancement bug 589787 - Multi-line up/down scroll for register transaction Notes field text
Patch by James Raehl


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18348 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-25 23:36:56 +00:00
Christian Stimming
2e3290c1f8 Win32 build: Add forgotten dist_ktoblzcheck step to dist creation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18347 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-25 19:43:22 +00:00
Phil Longstaff
f0036b8a12 Use GtkFunction instead of obsolete GtkDestroyNotify for argument type
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18346 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-25 01:32:27 +00:00
Christian Stimming
2b6e0f5f8d Win32 build: gwenhywfar needs another patch
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18345 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-24 20:45:21 +00:00
Christian Stimming
19962e096c Win32 build: Fix stupid typo in aclocal call (also it is not needed ATM)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18344 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-24 20:12:41 +00:00
Christian Stimming
f4090dcfc3 Gwenhywfar-3.11.1 also needs a patch to not crash at startup.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18343 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-24 20:06:58 +00:00
Christian Stimming
4fe14d413b Updated Danish translation by Joe Hansen, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18342 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-24 18:49:10 +00:00
Christian Stimming
12cf585b45 Updated German translation, inspired by Raffael Luthiger's contribution on 2008-12-31.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18341 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 20:19:21 +00:00
Christian Stimming
911b43fae5 Win32 build: Update file names with newer aqbanking version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18340 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 10:32:22 +00:00
Christian Stimming
9936b8662c Update gwenhywfar+aqbanking packages - Martin has just released new versions including our patches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18339 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 09:37:17 +00:00
Christian Stimming
51b10820b1 Fix another forgotten i18n include.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18338 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 09:37:03 +00:00
Christian Stimming
6f9d1350aa Win32 build: Remove gwenhywfar configure option which has been removed before gwenhywfar-3.8.2.
Also, add aclocal call because the patch has modified configure.ac.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18337 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 09:26:51 +00:00
Christian Stimming
308e2a4390 Win32 build: Add patch for gwenhywfar-3.11.0 so that this compiles correctly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18336 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 08:31:49 +00:00
Christian Stimming
8c8278889e Fix forgotten i18n includes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18335 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 08:27:58 +00:00
Christian Stimming
401effd9d9 Clarify documentation: Preference tab names must be translated everywhere.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18334 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 08:15:05 +00:00
Christian Stimming
cb9d84e691 I18n fix: Markup preference tab name "Online Banking" for translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18333 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-23 08:14:54 +00:00
Christian Stimming
95021bcfcf Win32 installer: Really fix path of qt3-wizard.exe.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18332 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-22 21:38:31 +00:00
Christian Stimming
28782604d3 Bug #595920: Fix missing ca-bundle.crt in windows installer.
Also, fix the plugin number path of qt3-wizard.exe.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18331 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-22 21:23:59 +00:00
Christian Stimming
f26fc24690 Minor version update for online banking packages.
The libofx patch was originally intended to be committed to the libofx CVS
so that the code would be included in a potential 0.9.2 release sometime in
the future, only until I discovered that I'm a developer there but
without CVS write access. Duh!

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18330 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-22 20:33:59 +00:00
Cristian Marchi
3059179273 Update of Polish translation by Jacek Baszkiewicz
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18329 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-22 17:12:56 +00:00
Phil Longstaff
eb5b4f7bb4 Add "file://" URL type to images in invoices. On win32, this at least allows the exported
invoice html to load in firefox.  It still doesn't fix it in webkit, for some reason.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18328 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-21 00:51:20 +00:00
Christian Stimming
41042912b1 Merge latest pot template into all .po translation files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18327 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-20 20:24:16 +00:00
Christian Stimming
6d25869147 Update German translation with latest string changes: 10 new strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18326 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-20 20:23:46 +00:00
Christian Stimming
8eeb08b4cf Bug #107929: Register window with running balance including all subaccounts
Adds a balance column to the "Open Subaccounts" register with the running
balance.

This patch adds a Balance column (similar to the single account register) which
provides a total running balance of the parent account and all subaccounts.

Patch by Tim M, modified by cstim to take r18320 / Bug#585784 into account:
We need to should use gnc_account_print_info() instead of the removed
gnc_split_register_print_info().

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18325 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-20 20:03:20 +00:00
Cristian Marchi
ad1c481aed Update of Lithuanian translation by Tadas Masiulionis
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18323 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-19 08:10:20 +00:00
Christian Stimming
90f23afec6 Bug #589804: Additions to register transactions Action pulldown list
Register transaction Action pulldown lists are currently oriented to stock
transactions.  Expense Action options, for example, are Buy and Sell.  The
enclosed patch adds a small number of items for those using Gnucash for
personal checking accounts.  Also, ATM is split into ATM Deposit and ATM Draw
(withdrawal).

This patch adds actions to the register transaction Action pulldown lists

Patch by James Raehl.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18322 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-18 19:57:52 +00:00
Christian Stimming
6cc28474be Bug #572938: Fix OFX Mutual fund buys that are imported as sells
When I try to import a downloaded OFX from Fidelity NetBenefits, my mutual fund
purchases become sales. I looked at the code and it seemed like a pretty simple
fix, it seems as if it was treading all non-income investing transactions as sales.
I wrote and tested this patch to fix the problem.

Patch by Matt Lavin, signed-off by Benoit Grégoire.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18321 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-18 19:51:43 +00:00
Christian Stimming
03585ce69e Bug #585784: Fix wrong fractional precision in stock/mutual fund registers Bug 585784 - Wrong fractional precision displayed in stock/mutual fund registers
The original patch attempted to fix bug #529494 by replacing the
gnc_split_value_print_info function with gnc_split_register_print_info, which
instead of using the print info of the transaction's commodity, used the print
info of the commodity of the register's account.  However, this was not the
correct behavior in all cases either.  This patch eliminates the
gnc_split_register_print_info and instead puts the logic for selecting the
appropriate print info into the functions which previously called it.

* In gnc_split_register_get_balance_entry, the print info of the account of
the split is used (xaccSplitGetAccount); if the split doesn't have an account,
the print info of the register's default account
(gnc_split_register_get_default_account) is used

* In gnc_split_register_get_debcred_entry, if there is no split, the account
info of the register's default account (gnc_split_register_get_default_account)
is used.  Otherwise, if the register is a Stock/Mutual Fund register or an
(obsolete) Currency register, the print info of the transaction's currency is
used (xaccTransGetCurrency).  Finally in all other cases, the print info of the
register's default account (gnc_split_register_get_default_account) is used.

* In gnc_template_register_get_debcred_entry, there is no account to reference,
so the default print info (gnc_default_print_info) is used.

Patch by Daniel Harding.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18320 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-18 19:50:48 +00:00
Christian Stimming
c5077e259f Re-indentation of source code, first try, only in the libqof directory so far.
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.23 using the following options:

astyle --indent=spaces=4 --brackets=break --pad-oper

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18319 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-18 19:40:57 +00:00
Phil Longstaff
49d62ad506 Add GNC_DBD_DIR definition for libdbi on mac
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18318 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-16 00:24:04 +00:00
Phil Longstaff
1df9789ef1 Fix bug 590386 - Always use today for reconciliation statement date
Patch by Simon Arlott


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18317 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 23:58:07 +00:00
Phil Longstaff
da8ef1797b Fix bug 591117 - Cash Flow Report's "Depth: All" Option is Broken
Patch by David Eisner


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18316 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 23:52:56 +00:00
Phil Longstaff
64677e9b90 Fix bug 595014 - MacOSX 10.6 (Snow Leopard) fails configure.in check
Patch by David Reiser


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18315 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 23:44:49 +00:00
Phil Longstaff
41950b6070 Fix bug 595015 - compiler warnings for missing printf format specs, gcc 4.2.1
Patch by David Reiser


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18314 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 23:38:56 +00:00
Phil Longstaff
dcd5d8253e Fix bug 595017 - compiler complaints about incompatible pointer types in gnc-gwen-gui.c
Patch by David Reiser


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18313 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 23:28:12 +00:00
Phil Longstaff
166a48c12d Fix bug 589673 - need to patch libdbi source for win32 problem.
The patch exists in libdbi source, but not in 0.8.3.  The problem is that "errno" is used
as a routine parameter name.  The parameters are accessed incorrectly leading to a segmentation
violation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18312 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-14 01:00:47 +00:00
Phil Longstaff
3cb697a9eb Fix bug 594048 - gnucash will not compile with most recent goffice versions
Patch by Jean Brefort


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18311 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-11 23:18:38 +00:00
Christian Stimming
358bf9fe89 Remove trailing whitespace from lines. Patch by Geert Janssens.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18310 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-11 16:48:13 +00:00
Phil Longstaff
f85972c85f Move gnc_account_get_full_name() from app-utils to engine and remove xaccAccountGetFullName
in engine.  The old routine in app-utils just called the one in engine.  There isn't even the
excuse that the one in app-utils was just there for SCM, because there were SCM calls to
xaccAccountGetFullName.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18309 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-11 02:11:38 +00:00
Phil Longstaff
f110ce2c68 If an object is loaded with a reference to an invoice, order, tax table or bill term which
has not been loaded yet, print a warning message into the trace file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18308 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-11 02:09:08 +00:00
Phil Longstaff
ca6a78b89d If an object is being loaded that has a reference to a transaction, and the transaction
hasn't been loaded yet, load it.

If an object has a reference to an account, commodity, budget or lot that hasn't been loaded
yet, print a warning message in the trace file.  The difference in handling is that these
object types are always loaded at init time, whereas transactions are not.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18307 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-11 02:08:09 +00:00
Phil Longstaff
2bc336a874 Replace some calls to (deprecated) xaccAccountGetGUID() with calls to qof_entity_get_guid()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18306 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-10 01:52:42 +00:00
Phil Longstaff
bdd957950a Fix svn:ignore property to ignore Makefile/Makefile.in
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18305 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-10 00:27:13 +00:00
Christian Stimming
c8432fac4c Minor updates to HACKING, by Geert Janssens.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18304 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-09-09 18:33:06 +00:00