Commit Graph

11769 Commits

Author SHA1 Message Date
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
Andreas Köhler
dff8d7b22d Correctly set price sources in price editor dialog by reading it from the gui.
On trunk, the price tied to a price editor dialog is not initialized with a
source string anymore, so correctly read it from the gui before
committing the price.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17525 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 13:13:48 +00:00
Andreas Köhler
d8c11a7c02 Bug #549595, #552306: Correct retval of gnc_int_link_or_make_backup(), add ENOSYS and ENOTSUP.
The return value of link(2) on files residing on sshfs will be ENOSYS, on
network hfsplus file systems on mac ENOTSUP, so add them to the list of those
errnos that trigger copy_file as fallback in gnc_int_link_or_make_backup() or
are allowed in gnc_file_be_get_file_lock() showing that hardlinks are not
supported.

To avoid silent data loss in the case of an unexpected errno in
gnc_int_link_or_make_backup(), correctly set the backend error.

Patches from Micha Lenk and Boris Zbarsky.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17524 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-15 13:13:40 +00:00
Charles Day
e803ad8245 Bug #141003: Revise r17489 to escape the British Pound symbol in Scheme with "\xa3" (for strings) or #\243 (for characters).
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17509 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-14 20:03:48 +00:00
Charles Day
8e9551af98 Bug #551038: Don't destroy the options database before destroying the options dialog that depends on it.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17508 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-14 17:48:58 +00:00
Charles Day
6f4cecf48e Bug #340041, #436342: Make the register keep track of whether the exchange rate has been reset. This prevents a zero exchange rate from being ambiguous: previously the register could not tell the difference between "the user has not specified an exchange rate" and "the user has specified a rate of zero".
Much of this patch consists of new ENTER(), DEBUG() and LEAVE() calls for debugging. Nearly all of the rest is refactoring. The code that detected and acted on changes to the account cell has been placed into its own function, gnc_split_register_check_account(). The several calls needed to checking a cell for changes have been combined in gnc_split_register_check_cell().

About 15 lines represent actual changes in functionality. Specifically, the code does a better job of recognizing when an exchange rate needs to be requested from the user, and when it does not. When an account cell is changed in the register, and the new account is denominated in the same commodity as the original, the original exchange rate is used. On the other hand, if the commodity differs, the rate is reset to zero. The register remembers that the zero exchange rate is due to the reset (i.e. was not user-entered) so that the the exchange rate dialog can be presented. Finally, the cell contents are checked before doing a save; previously the checks were missed in certain cases, e.g. if the user pressed "Enter" or clicked the close button.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17507 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-14 16:52:34 +00:00
Charles Day
a22d84c1a2 Register: Log some debugging information just before crashing because of g_assert_not_reached(). This should hopefully provide some new information to help track down the underlying cause of bug #414407, #420409, #468106, and #551643.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17506 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-14 16:05:53 +00:00
Phil Longstaff
633c1a75d1 If current lots version has account_guid constraint that it can't be null,
remove it and bump table version number.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17505 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-13 18:49:57 +00:00
Andreas Köhler
a80da3764d Win32: Always try to install Date-Manip and as fallback DateManip.
It seems that the PPM repositories for ActivePerl v5.6 and v5.8 have been
changed so that DateManip cannot be found anymore.  Keep it for second try
nonetheless.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17504 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-13 14:45:41 +00:00
Phil Longstaff
6b62aa321e Remove constraint that lot.account_guid must not be null. Unfortunately,
sqlite doesn't support ALTER TABLE which modifies column constraints, so
existing databases can't be modified programmatically.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17503 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-13 02:05:09 +00:00
Andreas Köhler
693f93c0f4 Treat AB_Job_StatusPending as a good status, do not ask the user to repeat.
According to Martin Preuss a lot of banks set the status of a
transaction job to pending, signifying that they accepted the job but
have not yet executed it.  This also means that we cannot detect whether
the account is actually overdrafted.

Instead, ignore the return value of AB_Banking_ExecuteJobs() (it will
almost always be 0) and only check the job's status against
AB_Job_StatusFinished and AB_Job_StatusPending.  If the status is
different, ask the user whether he wants to repeat, as usual.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17502 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-11 06:58:23 +00:00
Derek Atkins
7ac1d9f1e1 export the various QOF_PARAM_* settings to guile
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17500 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-10 17:52:16 +00:00
Andreas Köhler
18676dd579 Bug #506873, Win32: Add support for Finance-Quote with ActivePerl 5.10.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17499 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-10 16:16:50 +00:00
Derek Atkins
1d32da84d5 Use G_GINT64_FORMAT instead of %lld for x86_64
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17498 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 18:13:32 +00:00
Derek Atkins
38d8ce62aa Add SQL glade file so "make check" succeeds
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17497 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 18:12:45 +00:00
Andreas Köhler
10f0a34355 Bug #539962: Remove return value from some void functions.
Patch from Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17496 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 17:22:36 +00:00
Andreas Köhler
64720faaa1 Bug #548601: Do not import unawaited zero balances from aqbanking.
Check whether an unawaited balance is zero and simply ignore it in this case.
Unawaited here means that the user asked the application to fetch transactions,
issue a transaction or anything else not resembling the fetching of account
balances.

Patch from Micha Lenk.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17495 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 17:21:00 +00:00
Andreas Köhler
641625844e Bug #540148: Allow building against libgoffice-0.8, i.e. goffice >= v0.7.0.
Patch from Halton Huo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17494 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-06 17:20:52 +00:00
Charles Day
737473bce4 Bug #378734, #520570, #545316, #549115: Fix GNCDateEdit widget popup calendar problems.
-Fix popup button behavior (sometimes non-responsive)
-Make calendar clickable in modal dialogs
-Update design to be more like GtkComboBox, less like GtkCombo
-Adjust a few signal names, e.g. "focus-out-event" vs. "focus_out_event"
-Lose the GtkFrame shadowing; perhaps the GtkFrame is no longer needed 
-Add comments
-Add a few ENTER() and LEAVE() calls for debugging
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17493 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-05 05:08:33 +00:00
Andreas Köhler
ad9d3c7747 Bug #546064: Make gnucash.desktop survive a desktop entry specification 1.0 verification.
Patch from Saïvann Carignan.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17492 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-03 20:43:17 +00:00
Charles Day
da0415bfb5 Bug #141002: QIF Import: Allow minus signs at the end of numeric values, e.g. "$10.00-".
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17490 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-03 00:11:32 +00:00