Commit Graph

11662 Commits

Author SHA1 Message Date
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
Christian Stimming
0c5e9709d9 Bug #529494: Fix wrong fractional precision in register with multi-currency transactions
This patch replaces the function gnc_split_value_print_info, which returns the
print info for the currency of the split's transaction, with a new function,
gnc_split_register_print_info, which returns the print info for the split
register's default account.  That way the amounts displayed in the register use
the fraction of the register's account, rather than the fraction of the
transaction's currency.

Patch by Daniel Harding.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17656 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:30:58 +00:00
Christian Stimming
60c32fd16b Bug #514043: Use AM_CPPFLAGS instead of AM_CFLAGS.
AM_CFLAGS is passed both to the compiler (.c -> .o) and to the linker, so it
should only have flags that are appropriate for both steps. AM_CPPFLAGS is
passed only to the compiler, so flags that are only appropriate for that step
(-I and -D flags, for example), should be in _CPPFLAGS instead of _CFLAGS.
Every gnucash-2.2.3 Makefile.am that passes -I flags gets it wrong, placing
them in _CFLAGS. It's not a functional bug (the linker ignores -I flags), but a
ton of superfluous flags makes the build output pretty verbose and hard to
debug when things do go wrong.

To make matters more confusing as a developer, the FOO_CFLAGS variable set by
PKG_CHECK_MODULES(FOO) is actually for _CPPFLAGS in the Makefile.am
('pkg-config --cflags' returns the -I flags).

A related -I bug (one that *is* functionally broken) is that sometimes a local
(build dir) -I flag is passed after a global (installed dependent library) one.
If my system happens to have a header installed from some unrelated thing,
compiler will find *that* one instead of the expected one in the source
directory. Should always pass all local -I before any global ones.

Patch by andi5 plus one manual addition in src/gnome-utils/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17655 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:30:47 +00:00
Christian Stimming
e5886453cb Bug #128774: Try to fix "edit exchange rate" context menu disfunctionality
Patch by andi5: The logic to determine whether there is an exchange rate
dialog to be showed is complex and should not run when you user traverses
her register. This patch adds a bit more information for the user where
this logic previously silently returned without action.

Comment from i18n maintainer (cstim): The bug in question is severe enough to
justify new strings here. Just go ahead and add more explanatory messages
as needed.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17654 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:05:20 +00:00
Christian Stimming
f10533f2c6 Bug #554042: Fix configure fail on checking 'unsigned long is at least as big as guint32'
This is new patch including fix checking 'unsigned long is at least as big as
guint32' and 'guile long_long is at least as big as gint64'

Patch by Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17653 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 19:58:52 +00:00
Christian Stimming
e8feb39e8d Bug #557848: Fix uninitialized variable.
gcc gives a correct warning about a possibly uninitialised variable.
This stops compilation.

Patch by joslwah@gmail.com.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17651 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 19:48:40 +00:00
Christian Stimming
8c72f4c01b Fix Tax-related inconsistency in UI
Changes the 'Sensitive' Property to 'No' from 'Yes' in 'account.glade'
for the 'tax_related_button' widget so that the setting is displayed but
cannot be changed in the account edit dialog. Sets the Tooltip
property to "Use Edit->Tax Options to set the tax-related flag and assign
a tax code to this account." in 'account.glade'.

Patch by "J. Alex Aycinena" <alex.aycinena@gmail.com>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17646 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 09:32:03 +00:00
Christian Stimming
1401b066bd Add account defaulting for posting vendor bill
In the post screen for vendor bills, in trunk, the account combo box
initially has no entry and the user needs to pick one.  This isn't a
bug, but is an extra step for the user, so the trunk patch does
defaulting.  I tested the "memory" function to make sure the defaulting
doesn't smash the account the user picked for this vendor the last time
through, and it works (doesn't conflict).

Patch by aradzak <aradzak@oracleatbelfry.com>.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17644 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 08:59:40 +00:00
Christian Stimming
631c045e11 Fixed a bug in AqBanking import code (don't use GWEN's buffered io here).
Patch by Martin Preuss.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17638 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-22 20:40:50 +00:00
Christian Stimming
ea51e73965 Update pointer to translation documentation. By Zhang Weiwu.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17635 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-21 08:32:18 +00:00
Christian Stimming
a3e6a7d3c9 Updates to translation howto, by Zhang Weiwu.
Note that the up-to-date text about this should be in the wiki,
http://wiki.gnucash.org/wiki/Translation
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17633 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-20 19:41:44 +00:00
Charles Day
b7af977eb4 Bug #393383, #426111: Stop the register from thinking that brand-new transactions are being edited in multiple registers. This appears to have been a special case that was being missed.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17628 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-17 02:50:36 +00:00
Charles Day
425ec8eb68 Reporting: Fix the Average Cost price source computation for a certain case. As this is a signed computation with the sign indicating the direction of buy/sell, it is necessary to flip the sign if you ever flip the sense of buy or sell.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17627 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-16 03:02:20 +00:00
Charles Day
78ab3222ba Register: Add a couple of missing calls to functions that use gnc_suspend_gui_refresh() so that they cannot exit without calling gnc_resume_gui_refresh(). Also add a gnc_suspend_gui_refresh()/gnc_resume_gui_refresh() pair around a commit that was missing it.
This partially fixes bug #393383 and bug #426111, as it resolves the problem of being unable to enter new transactions after the message box appears. (The message box should still not appear in the first place, however.)
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17623 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-12 16:51:54 +00:00
Andreas Köhler
7a6eee68e3 Win32: LT_PROG_RC seems to be internal as well, use AC_CHECK_TOOL instead.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17621 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 22:14:42 +00:00
Christian Stimming
184a50a771 Allow source-code compatibility to upcoming libaqbanking4 in parallel to libaqbanking3.
Patch contributed by Martin Preuss, modified by CS.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17620 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 20:54:34 +00:00
Andreas Köhler
9a20ff377d Win32: Add AC_LIBTOOL_WIN32_DLL to libdbi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17618 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 17:15:49 +00:00
Andreas Köhler
89e5ea2bc8 Win32: Replace AC_LIBTOOL_RC by LT_PROG_RC in aqbanking's configure.ac file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17617 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 17:08:50 +00:00
Andreas Köhler
6e70b91430 Win32: Improve cross-compiling by making aclocal fail less often and adding a few ${HOST_XCOMPILE}.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17616 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 16:55:19 +00:00
Andreas Köhler
d88730e816 Win32: Untabify install.sh.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17615 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 13:49:48 +00:00
Andreas Köhler
7f879614fe Win32: Improve cross-compiling of aqbanking.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17614 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-05 13:48:57 +00:00
Andreas Köhler
0c84bd20a4 Win32: Add initial support for compiling against AqBanking v3.
Patch from Shawn Faucher with little modifications.
This still needs a lot of testing and improvements still.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17612 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-30 21:50:11 +00:00
Andreas Köhler
235db3e5a1 Bug #531871: Add a page setup dialog.
Save the page setup in a static variable in print-session.c and use it when
initializing a GtkPrintOperation.  Add gnc_ui_page_setup() and offer access to
it from a File > Pa_ge Setup... menu entry.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17611 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-28 15:32:02 +00:00
Andreas Köhler
b8aeba4079 Unite report and check print settings.
If Gtk+ includes GtkPrint support, i.e. HAVE_GTK_2_10 is defined, and GtkHTML
uses it, i.e. GTKHTML_USES_GTKPRINT, then we currently save and restore print
settings in two different locations, namely static variables in gnc-html.c and
dialog-print-check.c.

Instead, add the function gnc_print_operation_{save,restore}_print_settings() to
print-session.[ch] to have a unique global location for them.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17610 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-28 15:31:50 +00:00
Andreas Köhler
374231d301 Update latest stable version.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17609 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-28 15:31:39 +00:00
Christian Stimming
da10304b58 Add Finnish account templates.
One template is the default one (common accounts), the other ("ry") is for a
finnish non-profit organisation.

Tuomo Kohvakka <tuomo.kohvakka@iki.fi>
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17607 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-27 19:50:32 +00:00
Phil Longstaff
d1198d026f Improve error handling. If an SQL command fails, set the qof backend error
code.  Unfortunately, at this time, the front end seems to ignore the error
(other than logging it).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17606 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-27 17:31:23 +00:00
Christian Stimming
810bb601a6 Fix incomplete r17604; fix wrong title and add root account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17605 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-27 12:18:24 +00:00
Christian Stimming
be53833076 Added German account template for a Wohnungswirtschaft business, by Christoph Franzen.
Originally proposed here
http://lists.gnucash.org/pipermail/gnucash-de/2005-December/003651.html

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17604 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-27 12:07:30 +00:00
Christian Stimming
7b50ae0abc Heavily improved Tax Report & TXF export by Alex Aycinena.
Prints tax information sorted by Form/Schedule, tax code, account,
transaction and date instead of by account hierarchy. Allows any tax
code to be assigned to multiple accounts. No longer double counts
transactions when a parent account is not a placeholder and has
transactions posted to it. Converts non-USD accounts and transactions
to USD instead of adding across currencies. Provides an error dialog
instead of crashing gnucash when exporting a file without write
permission. Provides additional options to adjust the level of detail
shown on the report.

Patch by J. Alex Aycinena <alex.aycinena@gmail.com>.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17602 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-27 11:28:20 +00:00
Charles Day
6c0dc2d7fc QIF Import: Remove the changes for bug #141003 but leave the fix to bug #141002 intact. A reworked fix for bug #141003 will be committed separately.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17598 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-26 23:32:07 +00:00
Christian Stimming
f9fe85f6e2 Add Finnish translation by Tuomo Kohvakka.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17595 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-26 13:15:11 +00:00
Andreas Köhler
39d6cf985f Win32: Ship the correct redirect.exe.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17592 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-26 02:46:09 +00:00
Andreas Köhler
36ec2ece9c Win32: Make intltool-merge usable.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17590 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-25 23:21:50 +00:00
Charles Day
63b33d5cec GNCDateEdit: Eliminate the need to click the button twice to pop the calendar down in some cases.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17588 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-22 21:10:30 +00:00
Christian Stimming
08c615e1f1 [17586] Fix compiler warning about potentially uninitialized variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17587 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-21 19:29:14 +00:00