Commit Graph

11712 Commits

Author SHA1 Message Date
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
Christian Stimming
1de131ed1b Fix compiler warning/error about incompatible function pointer type
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@17709 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-20 17:00:45 +00:00
Christian Stimming
a7764502b0 Add a new account selection filter, disallowing bill post to wrong commodity account
This patch adds a new account selection filter allowing valid commodity
to be restricted, and makes use of it for bill posting.  This filter is
allowed to be NULL (just as with the 'account type' filter) and when
NULL, isn't used.  The patch also fixes a bug where gnc commodity copy
wasn't copying mnemonic, thus erroneously making a copy not equal to the
original when comparison happens.  The behaviour is that the user isn't
able to select a post account in the wrong currency.  If there is no
possible account (aka, EVERYTHING gets filtered out) they get a blank
combo box.  This is consistent with what the account type filter does
when there are no valid account-type accounts.

Patch by Jamie Campbell and Mark Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17708 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-20 17:00:37 +00:00
Christian Stimming
24cdd1e73e Add a button to get the latest rate in transfer dialog
It's part of the Gnucash multicurrency extensions project I'm working
through, see also emails Nov 4th 16:42; Nov 4 16:46; Oct 31 16:14 , as
well as the original proposal email oct 23 16:34  (It seems like we're
mostly a 16:00 kind of group)

Patch by Jamie Campbell (with one urgency_hint removed from the glade file)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17707 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-20 09:49:00 +00:00
Christian Stimming
e71577ce3b Change libaqbanking4 version check to look for >= 3.99.x
Martin Preuss pointed out that 3.9.x might be used as a number for a stable
libaqbanking3 release sometime in the future.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17706 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-17 21:24:41 +00:00
Christian Stimming
0b5de42bc5 Bug #115066: Enable "Search For" dialog that matches all.
Allow to remove all elements which results in an "empty" new/refinement/...
search matching all available items.  In that case grey out the match-type
combo in the upper right corner and add a label "Match all entries" where the
criteria list used to sit.

Patch by andi5.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17705 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-16 21:44:49 +00:00
Christian Stimming
8f3d1df0de Bug #435427: Enable sorting in import matcher dialog by clicking on column header
Patch by Shawn Faucher.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17704 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-16 21:29:55 +00:00
Christian Stimming
9d9bb37765 Fix libaqbanking4 version number range.
Patch by David Reiser. Needed in addition to r17620.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17703 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-16 20:49:15 +00:00
Christian Stimming
f14bd06e9a Bug #543332: Fix severe performance regression in Average Balance report
Patch by Boris Zbarsky.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17690 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-13 09:18:07 +00:00
Rolf Leggewie
bc3f809e8b SKR04: make sure the wording is consistent for all travel expense accounts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17688 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-10 16:55:17 +00:00
Christian Stimming
89955bcb9b Bug #560043: Fix crash after changing the budget option in the budget report.
This was caused by changing the internal structure name of the GncBudget,
in r17369 and originally in r17352. From a quick glance, the gda-dev branch
didn't introduce any further structure name changes, but those should be
reviewed in any case.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17687 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-09 18:11:22 +00:00
Phil Longstaff
7d039a0133 Bug #559783 – SQL-related menu entry only when --enable-dbi is given
Conditionally compile menu entry only if HAVE_DBI_DBI_H is defined.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17686 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-09 03:40:58 +00:00
Christian Stimming
5d12065d64 Add line charts for reports
The contributor writes:
I needed a line chart for a custom report and was surprised to find
that it is currently not supported by Gnucash. Line charts are
supported by the GOffice library, so I implemented line charts based
on the bar charts implementation (and added some new parameters for
markers and grid).

Patch by Sven Henkel <shenkel@gmail.com>.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17685 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-08 13:40:33 +00:00
Christian Stimming
d1f8fee5ee Replace bitwise-ior with + because the former is not available on all systems.
See bug #347274 for discussion of this.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17684 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-07 21:59:09 +00:00
Christian Stimming
01535b8bdd Bug #536299 – Fix missing explicit linking of libz
Patch by andi5.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17683 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-07 21:21:15 +00:00
Christian Stimming
3ff34c4f12 Bug #339433: FIx price quote dates off by one day
This bug is related to all the rest of the date-time issues, but has an
additional twist because of finance-quote.

Somewhere between the fq-helper and the price db, gnucash rolls the quote
through timespecCanonicalDayTime(), wherein it first runs localtime_r(), to
produce, presumably, "2008-11-03 19:00:00" for my Eastern US location. Having
now screwed up the date, gnucash runs gnc_tm_set_day_middle() on it to enter
the price in the pricedb as of noon on the wrong date.

Patch by David Reiser.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17680 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-07 21:02:43 +00:00
Christian Stimming
d27ea9a863 Bug #559012: Fix recent reports committed without a guid
Gnucash trunk (r17677) hangs on launch under Mac OS X 10.5.5. The progress bar
says "gnucash/report/standard-reports". Adding a report guid to
budget-flow.scm, budget-barchart.scm, and job-reports.scm fixes the hang.

Patch by David Reiser.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17679 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-07 20:59:11 +00:00
Christian Stimming
187d04a3d3 Bug #347274: Fix r17675 to calculate correct differences
In the patch committed in r17675 the proposed calculation of differences
was wrong for income and liabilities. This patch should fix this issue.
When back-porting, please make sure to apply this one too.

Patch by C.Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17678 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-02 20:51:12 +00:00
Christian Stimming
a9a95bb9d4 Fix uninitalized variable that was introduced by an extra scope added in r17654.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17677 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-31 10:28:40 +00:00