Commit Graph

11730 Commits

Author SHA1 Message Date
Andreas Köhler
7506663f91 Use = instead of := for GNC_TEST_DEPS and TESTS_ENVIRONMENT.
Both variables are only evaluated once away.  Even worse, when used as
simply-expanded variables, the gnc-test-env script is called multiple times,
because of make re-reading the Makefile when called by make in the check-am
target.  Those variable definitions are not portable and thus automake spit
warnings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17797 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-05 09:51:33 +00:00
Phil Longstaff
a6f9a6381c Add check that account != NULL when inserting lot
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17796 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-04 03:14:46 +00:00
Andreas Köhler
f61fca01d1 Add ChangeLog.2008.
Used branches:
- aqbanking3
- csv-import
- reshuffle-modules
- deprecated-cleanup
- gobject-engine-dev-warlord
- remove-group2
- sx-cleanup


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17794 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-02 10:46:27 +00:00
Andreas Köhler
ce1b5d7b44 Bug #566198: Add Slovak koruna to EURO support.
Patch from Herbert Thoma.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17792 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-02 10:32:47 +00:00
Phil Longstaff
333c9a68ec When loading a budget, set the recurrence so that it has the correct date info.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17791 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-01 23:12:38 +00:00
Andreas Köhler
4d80cc8d03 Svn-Ignore *.tar.bz2 and *.tar.lzma files in the top-level directory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17790 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-01 18:17:56 +00:00
Andreas Köhler
e4cd1cdd60 Add a make rule for gnucash_core_c.py.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17789 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 20:42:29 +00:00
Andreas Köhler
45e652f1f2 Add dist-bzip2 to dist.
Automake-1.10 also supports dist-lzma but adding it to AM_INIT_AUTOMAKE
would require us to assume Automake 1.10 which might not yet be
available on each developer os.  When dist'ing I will probably add a
short line to the dist target to tar up the same directory instead of
running dist-lzma manually.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17788 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 20:41:15 +00:00
Andreas Köhler
ded37fbe7e Beautify python-bindings/Makefile.am.
* Remove gnucash_core.i from _SOURCES, because automake probably does not use it
  anyway.
* Put flags into separate lines.
* Add gnucash_core.c to maintainer-clean target and wrap it in
  BUILDING_FROM_SVN, so that timestamps in tarballs do not try to regenerate it.
* Add example_scripts/*.py, tests/*.py and *.i to EXTRA_DIST.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17787 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 20:06:14 +00:00
Andreas Köhler
a8b49ec984 Add python-bindings/gnucash_core.c to po/POTFILES.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17786 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 19:13:50 +00:00
Andreas Köhler
bfd2260d51 Ignore some generated files in accounts/.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17785 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-31 18:53:15 +00:00
Christian Stimming
2c97097037 Fix typo (incomplete sentence) as pointed out by Bob Lewis.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17784 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-28 20:30:02 +00:00
Christian Stimming
ea7c0f21bb Bug #563565: Reconcile Window: Add new action for balancing entry
Add a new action "Balance" to reconcile window. It is only sensitive if the
difference is != 0.
If activated, it creates a new transaction in the account register to adjust
the difference. The corresponding account defaults to the orphan account.
Jump to the new transaction in the register window.

Patch by C. Ernst.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17782 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-20 21:21:47 +00:00
Christian Stimming
7baf9f5c75 Bug #564928: Fix segfault when closing a invoice tab (r17747 regression)
This reverts one hunk of r17747: It's not necessary because the hash
table keys are freed up in gnucash_sheet_cleer_styles.

Patch by Jonathan Kamens.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17781 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-20 21:16:23 +00:00
Phil Longstaff
c8e30f6b6b Fix Bug 559772 – SQL backend not non-ascii-safe
Sqlite3 uses utf8 encoding for all char fields, so it is non-ascii-safe.  
For postgresql, the default encoding can be set on a per-db basis.  
Since the database is not created by gnucash (the tables are, but not 
the database), it is for the user to set utf8 encoding when the database 
is created.  For mysql, a default encoding can be set on a per-db, 
per-table or per-field basis.  Since there are char fields which do not 
need to be utf8 (e.g. guids), encoding is set on a per-field basis.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17780 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-20 03:06:17 +00:00
Andreas Köhler
ad23fcfa5a Win32: Install italian documentation.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17778 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-15 23:55:47 +00:00
Christian Stimming
6d146440b6 Fix test whose compile broke with r17725.
Sorry for that.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17777 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-14 21:12:42 +00:00
Andreas Köhler
edf665855e Update latest stable version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17776 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-14 07:47:18 +00:00
Andreas Köhler
968975adb8 Win32: In dist.sh, cp redirect.exe from installation directory instead of build dir.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17771 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-14 03:10:54 +00:00
Christian Stimming
3e33c77dad Bug #564033: Fix undefined WEXITSTATUS on FreeBSD
Patch by G. Paul Ziemba.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17765 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-10 21:13:05 +00:00
Andrew Sackville-West
03f528d3c6 implement customizable invoice title in all three invoices
where previously the user had to hand edit scheme files to change
"Invoice" to "Tax Invoice" and the like, there is now an option to
enter a custom string. This string will override the word "Invoice"
(or "Bill" and "Expense Voucher") in all locations in the report.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17764 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-09 23:50:04 +00:00
Andrew Sackville-West
c32d9b75ef clean up a really ugly piece of scheme code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17763 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-08 22:57:23 +00:00
Phil Longstaff
9cc57ed6b8 Fix #559771 – user and password shown in menu in the clear
In gnc_history_generate_label() and gnc_main_window_generate_title(), replace
the username and password with an equal-length string of asterisks.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17760 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-07 22:13:44 +00:00
Phil Longstaff
60afa42460 Commit r17686 "Bug 559783 - SQL-related menu entry only when
--enable-dbi is given" introduced a Gtk critical warning because an 
action was removed from the compilation, but still referenced from the 
ui xml file.  This commit changes this so that the database connection 
action is still created, but the add_to_window() function is overriden 
to set that action insensitive if --enable-dbi is not given.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17759 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-07 16:58:10 +00:00
Christian Stimming
5c25bb7557 Revert r17730 and re-apply r17725, "Bug #106401: Add SX weekend occurence to be shifted to weekdays"
This time, the XML element handler for the "weekend adjustment" is optional
so that old files without that element are read without error.

Patch (well, kind of) by Simon Arlott.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17751 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:54:16 +00:00
Christian Stimming
9301a8cd9c Revert accidental removal of the since-last-run druid pop-up window in r17725.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17750 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:54:08 +00:00
Christian Stimming
c98d539cd8 Bug #563160: Fix confusing order of "Column span" and "Row span"
The report options of multicolumn reports show in the Selected Reports the
attributes "Rows" and "Cols". If choose "Size" to edit these values a dialog
opens with "Column span" and "Row span" - just the other way around. I always
confuse this. This patch swaps the order in the dialog.

Patch by C.Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17749 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:33:28 +00:00
Christian Stimming
832751c8c2 Bug #348860: Fix missing sub-report options when saving a multicolumn report
When writing the report options to saved-reports the embedded reports (if any
exist) are stored too. This is important for saving multicolumn reports.

Patch by C. Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17748 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:33:21 +00:00
Christian Stimming
f83575371e Bug #563273: Fix crash on startup
Here's the problem... GnuCash uses a hash table with int keys to store
dimensions, and the key value is the number of rows in the dimension being
stored.  The problem is that this key value is stored in a static int inside
the style_get_key function, which means that the key always has the same
address, and the hash functions in glib2 store the *address*, not the *value*
of the key.  Unfortunately, the hash algorithm changed some time between
glib2-2.18.2 and glib2-2.19.2, such that there's a hash conflict between the
key value 1 and the key value 2, but since the value of the already hashed key
was swiped out from under it when style_get_key "created" a new key, the hash
table entry that's already there matches even when it shouldn't have.

The attached patch cleans this up by allocating memory to hold the key when
inserting it into the hash table.  It also changes the way the hash table is
created to ensure that the memory is freed when a hash table entry or hash
table is destroyed.  And while I was at it, I made the same fix for the cursors
hash table, which was also leaking memory when entries were removed or the
table was destroyed.

Patch by Jonathan Kamens.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17747 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-06 21:33:14 +00:00
Andreas Köhler
957fab389d Put gnc_print_session_fontsel_cb() inside #ifndef GTKHTML_USES_GTKPRINT.
This resolves a compilation error about GtkButton*.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17745 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-12-01 22:10:40 +00:00
Christian Stimming
68161930f0 Bug #347274: Add individual column selection to be displayed in the budget report
This patch introduces a new option tab "Display" with boolean options for each
column, as proposed in comment 31. The default behaviour was (and is now again)
to display only Budget and Actual.

Patch by C. Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17743 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-30 21:44:13 +00:00
Christian Stimming
4b28001459 Bug #137017: Add flag to book-closing transactions to distinguish them from manually entered ones.
This seems to be a prerequisite for fixing the timezone issues discussed
in #137017 and references therein.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17731 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-27 10:30:17 +00:00
Christian Stimming
ca2aa589d5 Partly revert r17725, "Bug #106401: Add SX weekend occurence to be shifted to weekdays"
The original patch doesn't seem to deal with backward compatiblity in the
XML parser well enough. This commit reverts the GUI- and XML-related
parts of r17725.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17730 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 22:42:29 +00:00
Christian Stimming
cac1f0e6a7 Unify option name lookup of stylesheet option in reports.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17729 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 22:16:27 +00:00
Christian Stimming
593f3fd03b Bug #345980: Fix changed stylesheet option that isn't saved in saved reports
Patch by andi5.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17728 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 22:16:20 +00:00
Christian Stimming
413a1a9280 Bug #350408: Fix incorrect fonts in reports and their print preview
Patch originally provided by Paul Andreassen, in bugzilla by Paul Gear.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17727 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 21:41:04 +00:00
Christian Stimming
3fbbde7215 Bug #405472: Fix saving files opened over FUSE and sshfs
This patch disables hardlinks on sshfs filesystems.

Patch by dhx <bugzilla@dhx.it>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17726 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 21:23:30 +00:00
Christian Stimming
8cecfea8da Bug #106401: Add SX weekend occurence to be shifted to weekdays
The RFE wanted to specify the date of a scheduled transaction like this:
At the 15th of each month but if that is a saturday or a sunday then
at the next monday after that (or the friday before)

This patch implements this. The contributer writes:
Aside from some combinations being possible that don't make sense (because I
haven't looked at how to hide the extra combo boxes for them), and some awful
code in recurrenceNextInstance to stop it trying to go backwards (it may make
more sense to store the date that was going to be used next before it's changed
back/forward, so that that can be compared instead), it seems to work ok.

Patch by Simon Arlott.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17725 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 21:17:30 +00:00
Christian Stimming
35129a333c Bug #539957: Replace struct named assignments by C99 "designated initializers"
Patch by Halton Huo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17724 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 14:35:36 +00:00
Christian Stimming
4bae54afac Bug #536299 Fix underlinking issue: Conditionally add -lX11 to gnome-utils
Follow-up to r17683. Patch by Andi5.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17723 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 14:22:17 +00:00
Christian Stimming
9285d7b575 Fix missing correct CPPFLAGS when compiling qofmath test program.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17722 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 13:40:02 +00:00
Christian Stimming
3eafd15ed2 Bug #506251: Fix test-date failure on systems with a timezone east of UTC
This patch removes all the calls to check_conversion which test zero
seconds (the epoch) and it changes the check_time function to skip
any timestamps that are before noon on January 1, 1970, UTC.

Patch by Daniel Harding.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17721 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 13:39:54 +00:00
Christian Stimming
31b25c1d6e Bug #548218: Unify command substitution shell pattern
The command substiturion by $(expression) causes configure error on solaris.
Command substitution via $() is even part of
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
, which I regard as POSIX definition of a shell, i.e. the absolute minimum I
think a shell should be able to do. From that document, backticks are
"just as standarized" as the $() form. In that sense, this patch is simply
unifying the command substitution pattern in our scripts.

Patch by Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17720 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 13:32:31 +00:00
Christian Stimming
6346583aaf Multicurrency business features: Handle invoice/bill line items
This patch is the last in the multicurrency set : it deals with
conversions where individual invoice/bill line item accounts are
different from the "owner" currency (aka, the invoice/bill currency).

The original plan was to also have a checkbox to allow the user to use
an account that isn't usually in the owner currency, in the owner
currency, but that's more ornate and requires more time and code than I
have time for right now, so, it's a feature for future :)

I tested out "invoice currency matches the default books currency and
has some accounts that use other currencies" and "invoice currency does
not match default currency and has some stuff that does and some stuff
that doesn't".. it could probably stand to also be tested by some other
folks, but what I tried worked :)

Patch by Jamie Campbell.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17719 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 13:06:44 +00:00
Christian Stimming
e82a3a4b41 Move "Fetch price" button next to the exchange rate.
Patch by Jamie Campbell.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17718 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 10:50:04 +00:00
Christian Stimming
66782318a1 Bug #514455: Adding Dutch (Netherlands) translation of account template
This translation has been reviewed by one of the gnuchash translators for
Dutch nl_NL. There is no need for an extra translation for Belgium, this
version aims to be 'as Dutch as possible'. This file can now be used to
translate the other templates English to Dutch.

Translation by Pander <pander@users.sourceforge.net>.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17716 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-25 11:12:56 +00:00
Phil Longstaff
f694f96e21 Load account balances at startup. Load splits for an account as
required.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17713 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-23 18:04:16 +00:00
Phil Longstaff
ed0548c6e3 Fix bug where gnc_account_set_cleared_balance() and
gnc_account_set_reconciled_balance() were setting the wrong field.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17712 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-22 01:16:05 +00:00
Christian Stimming
360425f8b1 Fix compiler warning/error about incompatible function pointer type, fixing r17709
This is fixed by inserting a wrapper function whose pointer has the
correct type as needed by g_list_find_custom.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17711 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-20 17:11:47 +00:00
Christian Stimming
294176f40d Add support for mixed currency for invoice payment
This patch extends the payment dialog to allow paying foreign-currency
AP with local currency, or local-currency AP with foreign currency (I
don't know if there's a use-case for the latter, but it would have been
harder to code to NOT support it).

Patch by Jamie Campbell.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17710 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-20 17:00:53 +00:00