Commit Graph

11897 Commits

Author SHA1 Message Date
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
Christian Stimming
eda7dccb73 Bug #347274: Add option for selecting particular numbers of the budget report for display.
Patch by C.Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17675 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-29 21:18:23 +00:00
Derek Atkins
792bbae98d Remove duplicate report installation
Reorder reports alphabetically for easy listing

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17672 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-28 15:01:28 +00:00
Derek Atkins
d4448d19aa Fix gcc warning from qof's lookup macro
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17671 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-28 14:58:15 +00:00
Phil Longstaff
98373d0ccb If qof commit part2 fails, have error routine call engine to trigger
callback to show an error dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17668 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-28 01:07:02 +00:00
Phil Longstaff
2d151f9fcf Add a callback to gnc-engine which will be called when a qof commit
fails.  Most engine objects catch the qof commit but then just log the 
problem to the trace log.  Now, the engine objects will invoke this 
callback.  gnc-main-window registers a callback and opens a dialog box 
to inform the user.  This is necessary because with an sql backend, 
commits happen whenever an object is created or modified, not just 
synchronously when the user selects to save the file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17667 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-27 23:42:01 +00:00
Phil Longstaff
64ce50fc64 Copy job-report.scm to the install area
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17666 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-27 23:39:29 +00:00
Derek Atkins
3561a6cbca The update to business-urls.c requires dialog-job.h
dialog-job.h requires some additional changes

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17665 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-27 11:20:55 +00:00
Christian Stimming
d8443c7585 Bug #551858: Add Job Report for the business module
The contributor writes:
I need a report which shows me all invoices of a job. This is similar to the
owner-report, e.g. Customer Report. I took the file of owner-report.scm,
changed it so it does the desired and saved it as job-report.scm. I also had to
patch business-core.i to export the right symbols and business-urls.c to have
access to a link to the Job in the header. A patch is attached and I would be
very pleased if this could make it into gnucash. It could be possible to unify
owner-report and job-report, but I didn't put too much effort in it.

Patch by Stefan Wolf.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17664 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-26 22:12:14 +00:00
Christian Stimming
e7c97f06da Bug #436920: Fix crash on loading OFX data for a commodity that exists without cusip field
Original patch included also the fix of r16884, which was applied earlier already.

Patch by David Osguthorpe.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17663 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-26 22:01:58 +00:00
Christian Stimming
b6c3ac3f4d Bug #506856: Add Budget Bar Chat Report
The contributor writes: This report display the budgeted vs actual budget
in a barchart.

Patch by "tbic".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17662 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-26 21:53:11 +00:00
Christian Stimming
1367aa95da Bug #483108: Add Budget Flow report
The contributor writes: I created the report to help create a "zero-based"
budget for a class I was taking. I could use the totals at the bottom to
make sure every dollar was allocated some ware. I know virtually nothing
about accounting, the reason I named the report "Budget Flow" is because
it was based off from the "Cash Flow" report.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17661 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-26 21:48:59 +00:00
Christian Stimming
d8b263cb40 Bug #492417: Fix currency code of Israeli Shekel back to ILS, reverting r10331.
New Israeli Shekel: The informal abbreviation may be "NIS", but its
iso-4217 code is clearly ILS and only this! Incorrectly changed due to
bug#152755 (Nov 2004), r10331, and changed back again by bug#492417
(Oct 2008).

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17660 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-26 21:38:10 +00:00
Christian Stimming
10b83bac05 Bug #532889: When showing sx from txn preview dense cal, choose correct starting month.
When creating a scheduled transaction from a given transaction, the
first occurence from the transaction date onwards is found by
calculating the first occurence after the day before that date.  OTOH,
that "yesterday" should not be used as start date of the dense calendar.

Patch by Andreas Köhler <andi5.py@gmx.net>.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17659 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-26 14:38:15 +00:00
Christian Stimming
5ca984954c Bug #557604: Fix date-utilities.scm typos.
src/app-utils/date-utilities.scm has a few typos ("set:tm-month" instead of
"set:tm-mon" and a few misplaced parens). This is at least as old as 2.2.6 and
still exists on trunk.

Patch by Wolfgang Schnerring, but the first hunk had one parentheses too many; fixed by me.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17658 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:31:13 +00:00
Christian Stimming
47a9693ce6 Bug #432457 – Security/stock import should follow tutorial regarding Account Name
The help files suggest that the user assign the stock ticker symbol as the
account name. There isn't any strong guidance in the tutorial about what the
description should be, but I think a good default is the full name of the
security. This patch accomplishes my proposal, as long as one navigates
to the right Stock parent account before Clicking New Account.

Patch by David Reiser.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17657 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:31:06 +00:00