Commit Graph

11902 Commits

Author SHA1 Message Date
Phil Longstaff
aa73788d85 When loading a scheduled transaction, load the transactions associated with it.
Otherwise, the scheduled transaction won't be created.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17916 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 23:22:18 +00:00
Andreas Köhler
3b8fc6c0a6 Bug #571161: Fix r17036 and free every column type only once.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17900 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 19:05:29 +00:00
Andreas Köhler
1449197182 Add missing encoding information to the french business account template files.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17899 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 19:05:17 +00:00
Andreas Köhler
041af0cde6 Update copyright year in about dialog.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17898 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-14 16:46:57 +00:00
Charles Day
bb05a6957c Bug #570166: Update win32 packaging to use GTK version 2.14.7
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17897 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-12 17:00:50 +00:00
Charles Day
c2d0851b5f Engine: Update the documentation of xaccTransDestroy().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17896 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-12 05:47:34 +00:00
Charles Day
94c6d61fdd Register: Fix a memory leak by adding a "commit" step (if needed) when destroying the blank transaction as the register closes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17895 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-12 05:18:14 +00:00
Charles Day
98fe842ae2 Bug 426111: Register: Fix a bug that caused the blank split GUID to be nulled even if the split wasn't actually being committed. This would cause the bottom transaction of the register to be treated like an existing transaction instead of a new one. I've fixed that and reorganized the logic to combine two sections and make it harder to get them out of sync.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17894 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-11 23:07:51 +00:00
Charles Day
1ea8e0f8bf Register: Add one new debugging message and tweak some others.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17893 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-11 22:11:30 +00:00
Charles Day
4c09bec1f9 Register: Another tweak to doxygen documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17892 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-11 22:03:39 +00:00
Christian Stimming
1cb6fc32d8 Bug #552275, #434944: Fix generic import skipped transactions
gnc_import_TransInfo_delete() was defined but never called!
This led to a memory leak, and erroneous behaviour.

 Bug 552275 - Cancelling OFX Import Still Adds Entries
 Bug 434944 - Refused transactions from import appear in register

Patch by Alan Jenkins <alan-jenkins@tuffmail.co.uk>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17891 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:35 +00:00
Christian Stimming
386a42bfe4 Fix typos in comments
Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17890 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:29 +00:00
Christian Stimming
6fa80db27e Bug#139310: Store online_id in split instead of transaction to avoid import conflicts
Affects all users of the generic import: OFX, HBCI and AqBanking.

Suggested by <http://bugzilla.gnome.org/show_bug.cgi?id=139310>.
"
 Assume you have a transaction that transfers money from account 1 to account 2.
 Import an OFX statement from account 1 that matches the transaction.  Then
 import an OFX statement from account 2 that matches the same transaction.
 Because each transaction can only store one online_id, when you import from
 account 1 again it doesn't remember that it's already been imported.

 If online_id was stored in a split slot instead of a transaction slot, it would
 allow tracking the online_id of both accounts without being overwritten.
"

For backwards compatibility, we still check for online_id in transactions.
This is more of a convenience than a critical feature, however.
The compatibility code could be removed in future versions if desired.

Patch by Alan Jenkins <alan-jenkins@tuffmail.co.uk>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17889 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:22 +00:00
Christian Stimming
04797563b9 Correct english in generic-import-design.txt
Fix typos and use of apostrophes.
Also make the status of the document clearer.

Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17888 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 21:16:14 +00:00
Rolf Leggewie
d31564dc80 SKR04: sed s/Kap.\ Ges/Kap.Ges/ so that it is the same everywhere
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17887 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 08:17:05 +00:00
Rolf Leggewie
d3452fcc1c SKR04: replace some double with single spaces
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17886 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-10 08:10:17 +00:00
Andreas Köhler
b400b1b59e Bug #570894: Fix an else clause in budget->guid.
Scheme is not common lisp, so rather use 'else', t might be unbound.
Found by Forest Bond.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17885 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-09 00:18:00 +00:00
Andreas Köhler
a0eb2e89ae [Win32] Bug #542382: Assign .gnucash file name extension to GnuCash.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17884 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 14:56:16 +00:00
Andreas Köhler
0f1d97b4b6 Bug #462148: Fix multi-page printing on Win32 by using gtk_html_print_operation_run().
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17883 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 14:06:28 +00:00
Andreas Köhler
3db749b2e9 [Win32] Update gtkhtml to version 3.24.2.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17882 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 13:13:48 +00:00
Andreas Köhler
7cbdac8fa0 [Win32] Rename *.bat to *.cmd.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17881 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-08 13:02:56 +00:00
Christian Stimming
f27f419d88 ofx_proc_account() already works. Remove "WRITEME".
Patch by Alan Jenkins.

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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17880 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-07 16:49:13 +00:00
Christian Stimming
5754cb3ae7 Fix use of "=" in if statement where "==" was intended
This fixes the default currency and description in the new account dialog.

Patch by Alan Jenkins.

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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17879 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-07 16:49:07 +00:00
Christian Stimming
59f5711250 Convert source documentation to UTF8
Most of the source tree is UTF8, but there are some latin-1 hangovers.
Apply "iconv --from-code ISO_8859-1" to these files.

This affects bullet point characters in src/optional/xsl/README, and
Benoit Grégoire's name in source files (and hence the Doxygen output).

E.g. it should fix <http://svn.gnucash.org/docs/HEAD/reference.html>
which claims to be UTF8, but encodes Benoit's name in latin-1.

Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17877 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-03 21:19:39 +00:00
Christian Stimming
b6f7e0fcfc Fix typos in comments
Patch by Alan Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17876 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-03 21:19:31 +00:00
Christian Stimming
35e6699d41 Bug #569735: Don't create a new nested template root account when a file is opened
Whenever an XML file is opened, Gnucash creates a new template root account and
makes the old one a child of it.  My main accounts file had them nested over
540 deep before I got annoyed enough to fix this.  The problem is that
sxtg_book_begin creates a root account when the book is opened.  Then
add_template_transaction_local tries to replace this new root account with the
one read from the file.  However the code that does this is rather badly broken
and the result is that the one read from the file becomes a child of the one
created in sxtg_book_begin.

This patch avoids creating any more nested root accounts, but it doesn't get
rid of the ones that are already there.  This is slightly more tricky than just
deleting them since, although most of them have no children (other than the
next root account), some do.  Accounts created for template transactions will
be children of whatever root account happens to be at the top of the tree then.
 As the file is saved and reopened, this will get pushed down into the tree of
accounts.  In my case about 5 of the 540 or so root accounts had other
children.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17868 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-31 19:50:08 +00:00
Christian Stimming
f5f0ecf016 Bug #569734: Give the template root account a name
The template root account created as part of the scheduled transaction
infrastructure should have a name.  Various parts of the Gnucash engine get
upset if an account doesn't have a name.
Perhaps this name should be localized, but the name of the main root account is
not localized.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17867 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-31 19:50:01 +00:00
Christian Stimming
e6e4a8f9b8 Bug #438132: Fix warning about commodity being NULL for root account on save
This patch doesn't write the commodity, the commodity SCU, or the non-standard
SCU setting for an account that has no commodity.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17866 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-31 19:49:55 +00:00
Christian Stimming
297cff347a Bug #569628: Fix failed assertion 'str' when saving
Whenever I saved my Gnucash file I would get a number of errors like

  CRIT <gnc.backend.xml> text_to_dom_tree: assertion `str' failed

I tracked this down to the fact that the weekend adjust field in recurrences
read from the file was not initialized properly if a recurrence didn't have a
weekend adjustment.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17865 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-31 19:49:49 +00:00
Christian Stimming
efc19c85eb Add shell script to easily back-port commits in git-svn from trunk to other branches.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17856 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-31 10:24:34 +00:00
Derek Atkins
ec886fd223 Bug #568473 – Add option to average-balance report.
It allows transactions that go from one selected account
to another to be ignored.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17855 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-29 15:35:21 +00:00
Charles Day
90af51c3e3 Register: Add a lot of doxygen documentation, add/revise some commenting inside functions, and massage a few debugging messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17854 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-29 11:42:39 +00:00
Christian Stimming
6cc9146e13 Bug #435642: Fix crash when editing results of a find
I finally got around to looking into this some more.  I think the problem is a
result of an interaction between gnc_split_register_redraw and
gnc_split_register_find_split when called from gnc_split_register_move_cursor
in split-register-control.c.  As the comment says, "redrawing the register can
muck everything up".  In particular calling gnc_split_register_redraw may
change the "transaction split" for some or all of the transactions if the
register is a "ledger" style register such as the one for find results.  This
causes the subsequent call to gnc_split_register_find_split to find the wrong
register row if the cursor class being found is CURSOR_CLASS_TRANS.  Whether
this causes a crash seems to depend on circumstances I haven't quite figured
out, but I have one test file that crashes 100% of the time in r17804.

This patch changes the way gnc_split_register_find_split works when asked to
find the transaction split for a transaction.  It assumes that any transaction
can only have one such split and returns as soon as it finds a row containing
it.  If you think this is wrong, let me know and I'll try something else.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17853 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-28 21:08:44 +00:00
Christian Stimming
2d851151df Bug #568653: Add German account template SKR49 for non-profit organizations
By Michael Braun and Frank H. Ellenberger.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17852 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-28 21:05:44 +00:00
Christian Stimming
71c0fe98d9 Bug #568327: Budget reports without a budget will crash
Fixes crashes and also improves error message when no budgets exists (for all
budget reports).

Patch by Forest Bond.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17851 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-28 20:59:57 +00:00
Christian Stimming
feacb16b54 Bug #568945: gnc_pricedb_convert_balance_* should look for the reciprocal of the exchange rate
If the price DB contains the reciprocal of the exchange rate which
gnc_pricedb_convert_balance_nearest_price,
gnc_pricedb_convert_balance_latest_price, and
gnc_pricedb_convert_balance_latest_before need to do their conversion they
don't find it and return zero.

Patch by Mike Alexander.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17850 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-28 20:55:11 +00:00
Christian Stimming
0a5b20fdc8 Bug #564450: HUF currency can be divided into 100 "fillers" even though there are no coins for it
In Hungary the smallest Forint (HUF) coin is 5 forints, but formally we had 1,2
forint coins, and dividing FILLER coins (like cents for US, EUR, ...). They are
simply not circulated in cash usage, but the banking system still using it.
Such as the smallest transferable amount is 0.01 FORINTs (1 FILLER), and with
business it is normal to use it (as result of foreign exchange, incoming
interest rate, or many other reason).

Patch by Frank H. Ellenberger.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17849 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-28 20:55:05 +00:00
Christian Stimming
04b1d97e5f Bug #459493: "Cleared" column in account overview should also sum up values of sub-accounts
The contributer, Chad V, writes:
My reason being that if you like to keep track of different
"virtual" accounts within one bank account, it is nice to see the cleared
balance for the whole bank account.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17848 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-28 20:54:56 +00:00
Charles Day
375be2acaf Register: Add doxygen documentation for some register functions. Fix and reorganize of some of the existing documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17844 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-24 12:16:00 +00:00
Charles Day
53c47c1ad6 Register: Adjust some debugging messages to be more clear.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17843 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-24 12:12:41 +00:00
Charles Day
a0a034f2ce Documentation: Fix a wide range of small mistakes in doxygen comments, including a few spots where .c and .h function declarations didn't agree on parameter names.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17841 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-22 21:14:08 +00:00
Charles Day
47aee550b3 Register: Add additional debugging output during register cleanup. Also rename a variable for clarity and to match typical usage in the rest of the ledger code.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17840 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-21 18:58:21 +00:00
Charles Day
d9ef69a973 Register: Add a few more debugging lines to the gnome code.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17838 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-21 10:53:22 +00:00
Charles Day
74e3640504 Register: Add additional debugging output to several ledger modules.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17837 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-20 23:15:30 +00:00
Andreas Köhler
526ee85f93 Bug #566352: Remove printf("%s", NULL) in xaccTransSetDateInternal() when val=={-1,0}.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17836 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 23:43:02 +00:00
Andreas Köhler
5e77b501b4 Do not determine and waste memory for {base,dir}name when sqlite3 driver cannot be loaded.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17835 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 22:57:34 +00:00
Andreas Köhler
575645f032 Bail out when opening a non-existing file as sqlite3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17834 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 22:51:32 +00:00
Andreas Köhler
3f05768191 Bug #526775: Remove printf("%s", NULL) in generic importer as called from ofx.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17832 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 21:50:03 +00:00
Christian Stimming
a071ca3038 Remove obsolete mentioning of Guppi.
Not for back-port because it would break existing translations and the fix
isn't really important.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17831 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 20:17:22 +00:00
Andreas Köhler
3558853ed5 Budget report improvements.
* Moves budget-related reports to a "Budget" sub-menu.
* Implements a Budget Balance Sheet report.  This is a projected future balance
  sheet using budget data.
* Adds Budget Income Statement and Budget Profit & Loss reports.  These are
  projected future IS/PNL reports using budget data.

Patch by Forest Bond.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17829 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-18 17:19:08 +00:00