Commit Graph

11639 Commits

Author SHA1 Message Date
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
Andreas Köhler
cb5b3ab59c Bug #539947: Replace __FUNCTION__ by G_STRFUNC.
Patch from Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17585 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-21 15:18:50 +00:00
Charles Day
461d7b3c69 Revision to simplify r17555 (no functional change).
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17576 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 20:51:53 +00:00
Charles Day
d3929697c8 Bug #549738: Set the default start and end dates to "start of accounting period" and "today", respectively, on customer, vendor, and employee reports.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17575 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 20:45:23 +00:00
Andreas Köhler
cc11148399 Further update .gitignore.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17572 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 17:43:09 +00:00
Andreas Köhler
4861002965 Update .gitignore.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17571 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 17:35:48 +00:00
Andreas Köhler
886f9f669b Do not treat -Wstrict-aliasing warnings as errors in files using G_LOCK.
See http://bugzilla.gnome.org/show_bug.cgi?id=316221 for information why G_LOCK
breaks strict-aliasing.  GCC 4.2 introduced diagnostic pragmas and the error
seems to be most prominent on GCC >= 4.3, so a compilation with -Werror should
succeed now on most systems, at least on those it worked on before.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17567 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 16:25:57 +00:00
Andreas Köhler
f0cb946f0c Add a variable initialization to bal_accountinfo_cb().
That initialization is not strictly necessary, because best_time is used only if
best is non-NULL and but both variables are set in the same block.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17566 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 16:09:23 +00:00
Andreas Köhler
9fb68915e1 In some files, do not disable -Waddress completely but keep it as warning instead.
surely avoids problems with -Werror in those files, but "warning" will
make sure that the warnings are still showed, but not treated as errors.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17565 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 16:09:12 +00:00
Andreas Köhler
f47e84116d Add new source files to POTFILES.in.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17557 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-19 02:14:45 +00:00
Charles Day
018473e855 Price Editor: Set the correct source for new, user-entered prices. This builds on r17525 to fix this problem, which was introduced in r17444.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17556 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-18 22:21:54 +00:00
Charles Day
3d67fcd62f Fix printing of fractions when parentheses are shown for negative values.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17555 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-18 20:49:01 +00:00
Charles Day
ad6df218a0 gnc_numeric: Support reciprocals (negative denominators) in gnc_numeric_to_decimal().
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17554 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-18 08:33:27 +00:00
Charles Day
a7e8bd5499 GNCAmountEdit: Put the text through the expression parser once instead of twice. This caused a problem in locales that print negative numbers in parentheses. For example, if you entered "-4/3", after the first parse the displayed text would change to "(1 + 1/3)", meaning negative one and one-third. Parsing that text a second time changes the text to "1 + 1/3" since, to the expression parser, parentheses indicate grouping rather than sign.
The reason the GNCAmountEdit was putting the text through the parser twice was that it was setting gae->need_to_parse FALSE, but then immediately calling gtk_entry_set_text(), which issues a "changed" signal. The callback for that signal was setting gae->need_to_parse back to TRUE. So I simply changed the order of the statements.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17553 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-18 02:26:51 +00:00
Andreas Köhler
dd1fe84980 In price and commodity tree views, restore gconf settings after initialization.
Previously, gconf settings like sort column and order for price and commodity
dialogs were read in while creating the main tree view objects themselves,
i.e. before a model has been set.  In this early stage of initialization, these
properties cannot always be set and are ignored subsequently.

Instead, apply the properties after the view has been built and set default
sorting column only if no column has been found in gconf.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17535 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-17 04:17:43 +00:00
Andreas Köhler
44a07ec81c Optimize gnc_numeric_check() by G_LIKELY-fying that the denominator is non-zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17534 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 23:00:01 +00:00
Andreas Köhler
609533e88d When printing negative quotients, use a minus between the integer and fraction part.
Previously: print g_n_c(-4, 3) => "-1 + 1/3", now "-1 - 1/3".
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17533 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 22:59:52 +00:00
Andreas Köhler
96e3da5b76 UTF-8-ize AUTHORS.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17532 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 14:05:12 +00:00
Andreas Köhler
0a83e50de8 Correct amount print infos in transfer dialogs.
When initializing an exchange rate dialog, the debit and credit amounts
are not printed with the correct print info, as they are not set at all.

When changing the debit account, the debit amount is not printed with
the correct print info, as it is set after the amount has been updated.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17531 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 13:25:39 +00:00
Andreas Köhler
d9bba3325a Bug #506265: Hide the right-most register column by unsetting the sample text.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17530 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 00:57:08 +00:00
Andreas Köhler
9bec639663 Correct specified numbers of columns of AP/AR and STOCK/CURRENCY registers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17529 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 00:57:00 +00:00
Andreas Köhler
8c50c35016 Hide the sx from txn dialog und show it only when the txn is valid.
There is no reason for popping up a window under a modal error dialog and close
it once the user acknowledged the error.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17528 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 18:24:48 +00:00
Andreas Köhler
d7cad46659 Negate amount in exchange rate dialog when swapping accounts.
This is the case when entering an amount for a split with an account whose base
commodity equals the register's one, but differs from the transaction currency.
Then, debit and credit accounts in the transfer dialog are swapped, so the
amount should be negated as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17527 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 17:36:59 +00:00
Andreas Köhler
afdb73a911 In check_one_price_date(), replace an strcmp() by safe_strcmp().
When there is no source string set on a price, do not crash on it.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17526 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 13:13:57 +00:00