Commit Graph

12215 Commits

Author SHA1 Message Date
Christian Stimming
f1036b4d16 Bug #602062: Fix hard-coded gcc program name
Patch by Halton Huo.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18417 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-16 21:42:55 +00:00
Christian Stimming
06dd5634b9 Bug #540452: Remove inline from function declaration/definition because it contradicts the C99 standard.
Patch by Halton Huo: Remove inline from qofmath128.c and qofmath128.h.

Cstim notes: The way the code is written (.h/.c) we should not have
any "inline" there. If the functions are intended to be used inline
only (and they are, in gnc-numeric.c), the definitions should be moved
into gnc-numeric.c anyway and the declarations removed.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18416 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-16 21:42:40 +00:00
Christian Stimming
8fea558f9a Bug #602069: Fix build on Solaris for different gmp header locations
Patch by Halton Huo:

Since solaris ship gmp header files under /usr/include/gmp rather than
/usr/include, so this bug only happens on those systems which does not ship gmp
headers into /usr/include.

Actually this is aware during configure time through "guile-config compile". My
GUILE_INCS is -I/usr/include/gmp. So adding GUILE_INCS for AM_CPPFLAGS in
src/gnc-module/Makefile.am will fix this bug.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18415 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-16 21:42:23 +00:00
Phil Longstaff
dd53e78f27 Fix bug 598213 - Selecting "Account Report" causes gnucash to crash
After resolving a report module, add it to the list of used modules.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18414 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-16 01:05:22 +00:00
Christian Stimming
b5e09a6685 Bug #554394: Income Tax Enhancements
Patch by J. Alex Aycinena. Patch does the following:

- update the tax information in 'txf.scm', which is based on V037 of
the TXF Spec,  to V041, the last version issued (bug #554394)
- provide support for multiple copies of certain tax Forms/Schedules
(e.g., Schedule C(1), Schedule C(2), etc.)
- support multiple types of tax entities: partnerships, corporations
and S corporations, in addition to individual tax payers
- support balance sheet accounts, required for these new tax entity types
- add the term 'Income' in several places to avoid confusion with
sales or VAT style taxes in the business features (e.g., change the
menu from 'Tax Options' to 'Income Tax Options')

The following files were changed, as follows, to implement these changes:

1. src/engine/Account.c and
2. src/engine/Account.h: add copy number capability (define
'xaccAccountGetTaxUSCopyNumber' and 'xaccAccountSetTaxUSCopyNumber');
modify 'xaccAccountSetTaxUSCode' to remove KVP when no tax-code
assigned, clean up tax-source descriptions

3. src/gnome/gnc-plugin-basic-commands.c: change 'Tax Options' to
'Income Tax Options'

4. src/app-utils/gnc-ui-util.c and
5. src/app-utils/gnc-ui-util.h: add setter and getter functions for
book tax name and book tax type which are stored in a book KVP, show
copy information in accounts page, tax column, show error messages for
various conditions

6. src/app-utils/app-utils.i: add 'gnc_get_current_book_tax_name' and
'gnc_get_current_book_tax_type' functions

7. src/gnome/dialog-tax-info.c: add copy number and tax entity name
and type, and balance sheet account handling capability

8. src/gnome/glade/tax.glade: add tax entity name, tax entity type,
asset, liability/equity and copy number widgets

9. src/tax/us/txf.scm: update to V041 for individuals, add V041
support for multiple additional tax entity types and balance sheet
accounts and related tax codes, add tax form line data

10. src/tax/us/us.scm: export new functions defined in txf.scm

11. src/report/locale-specific/us/taxtxf.scm: add support for multiple
copies of Forms/Schedules, add support for Format 6, use Form/Schedule
line #'s to sort report, update from "V037" to "V041", add support for
taxpayer types other than F1040, add warning messages if there are
some inconsistent codes assigned and list

12. src/tax/us/txf-de_DE.scm: make functions called from outside (e.g., from
dialog-tax-info.c) have a consistent signature with those same
functions in txf.scm (define tax-entity-type , define getters/setters,
add tax-entity-type as an argument to existing functions)

13. src/tax/us/de_DE.scm: export new functions added to txf-de_DE.scm

14. src/report/locale-specific/us/taxtxf-de_DE.scm: add "" as
tax-entity-type argument to functions
called on txf-de_DE.scm (which defaults to existing codes)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18413 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-15 20:35:50 +00:00
Christian Stimming
127638e440 In the "Save As" dialog, set XML as default, not sqlite3.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18412 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-11 21:17:32 +00:00
Christian Stimming
ffa2c6ed89 Fix compile error on current ubuntu by clashing symbol declarations in goffice and regex.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18411 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-11 21:07:50 +00:00
Christian Stimming
1e767585c8 Revert r18409, "Bug #554394:...". Needs to be applied after other patches are applied as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18410 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-11 20:55:52 +00:00
Christian Stimming
951479c6e7 Bug #554394: Fix (incomplete) German tax report with latest txf.scm changes.
Patch by J. Alex Aycinena.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18409 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-11 20:13:48 +00:00
Phil Longstaff
f8a887df76 Bug 600947 - Gnucash-2.3.7 crashes when doing reports with webkit-1.1.15
Handle the "navigation requested" callback correctly.  It was being called with
the uri "base-uri" when a page was being loaded.  This needed to be accepted.
Then, when clicking on an account name, the correct register needs to be
opened and the navigation status needs to be IGNORE.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18408 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-09 23:35:25 +00:00
Phil Longstaff
f693c0e8bc When creating an account selector and a commodity list if provider, just duplicate
the list rather than making a copy of each commodity.  When a copy is made, this
copy is stored in the db, but is never deleted.  This causes problems (loss of
reference from account/tx to commodity) when the file is reloaded.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18407 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-08 18:59:39 +00:00
Phil Longstaff
5d95e03573 Bug 599324 - Patch: Add double click behaviour to account list in payment dialog
Patch by Geert Janssens


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18406 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-01 22:16:30 +00:00
Phil Longstaff
e405df93be Bug 599322 - Patch: Minor gui tweak for invoice window
Fix widget spacing.

Patch by Geert Janssens


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18405 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-11-01 21:49:00 +00:00
Christian Stimming
4b9981e127 Bug #599953: Let gnc:make-[complex|simple]-boolean-option store its value as a string
Patch by Mike Alexander (plus documentation comment by me):

Neither gnc:make-complex-boolean-option nor gnc:make-simple-boolean-option
(which calls it) correctly stores its result in the KVP that it is using.
This is because it calls kvp-frame-get-slot-path-gslist and
kvp-frame-set-slot-path-gslist to get and set the value.  Both of these are
implemented in C and the code in kvp-scm.c can't convert a Scheme boolean value
to or from a KvpValue since there is no boolean type in KvpValue.  There are
already a few places that have comments suggesting that there should be a
KVP_TYPE_BOOLEAN type, but adding this would be non-trivial.  For now I'll
supply a patch that will store the boolean value as a string (which is what
code in xaccAccountSetAutoInterestXfer in Account.c does).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18404 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-31 21:03:40 +00:00
Christian Stimming
189b1186bd Remove forgotten printf in r18402 which shouldn't have been committed to SVN.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18403 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-31 21:03:25 +00:00
Christian Stimming
06eeaebb2a Fix amount sign of imported bank transfers (e.g. from DTAUS file).
Usually an imported DTAUS file describes debit notes, which means "our
account" is credited (and the other debited). But DTAUS can also contain
transfers, which means "our account" is debited. In the DTAUS case, the
value would still be positive, so we have to query the transaction type
for this case as well. This is now fixed. (Needs aqbanking-4.1.10 though
because the earlier versions forgot to set the TypeTransfer.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18402 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-31 19:58:49 +00:00
Christian Stimming
eac59d32d1 Fix GCC pointer strictness compiler errors/warnings and remove duplicate code
Patch by Matt Lavin <matt.lavin@gmail.com> (with const added by myself).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18401 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-30 20:07:25 +00:00
Christian Stimming
c2111f45f5 Revert r18396, "Bug #593906: Fix crash at account report"
This change will crash the Windows version at startup, unfortunately
with unknown reason.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18400 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-30 19:50:59 +00:00
Cristian Marchi
470150ae29 Update of Japanese translation by KUSANO Takayuki
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18399 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-28 17:21:28 +00:00
Christian Stimming
e49ee473e8 Add polish account templates, contributed by Jacek Baszkiewicz <jbaszkiewicz@o2.pl>.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18398 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-27 21:12:10 +00:00
Christian Stimming
0376d434a2 Fix compile error related to uninitialized value.
Patch by Matt Lavin <matt.lavin@gmail.com>.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18397 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-26 20:36:43 +00:00
Christian Stimming
9f31693c7e Bug #593906: Fix crash at account report
Patch by Mike Alexander.

This is the fixed version of r18352 which was reverted in r18360.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18396 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-26 20:15:47 +00:00
Christian Stimming
750d8af4cc Bug #582985, #585022: Add missing currencies Armenian Dram (AMD) and RSD.
Patch by Frank H. Ellenberger.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18395 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-26 20:15:34 +00:00
Christian Stimming
bfc432b050 Bug #593070: Budget Report: Omit accounts with no budget and zero balance
Patch contributed by Luke Duncan:

I would like to have an option for the budget report that allows it to omit
accounts that have zero balance and no budget value specified over the entire
budget term. This avoids showing entire rows of blank cells without the user
having to manually select which accounts have a budget value or balance for the
term of the budget. The user can select all expense and income accounts and it
only shows the accounts that have actual (nonzero) data to display.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18394 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-26 20:15:18 +00:00
Christian Stimming
990592d496 Bug #567090: Fix erroneous password length comparison.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18393 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-26 19:30:32 +00:00
Christian Stimming
7f486984a9 Update German translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18392 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-25 21:02:17 +00:00
Christian Stimming
dea9fb98fe Introduce disambiguation prefix for "Deposit" action to distinguish it from the noun.
The Dutch translator wrote:
Would it be possible to differentiate between the instance of the _verb_
"Deposit" in src/register/ledger-core/split-register.c:2184 (the verb) and
the occurrances of the _noun_ "Deposit" in src/app-utils/prefs.scm (via
intl-scm/guile-strings.c:6732) and
src/import-export/csv/gnc-csv-model.c:37? This would help me
tremendously with my efforts.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18391 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-25 20:34:27 +00:00
Christian Stimming
eb18d3d8f5 Make one register function more const correct to avoid compiler warnings when passing const strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18390 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-25 20:34:14 +00:00
Christian Stimming
14a9b7e562 Update Dutch translation by Mark Haanen, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18389 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-25 20:06:49 +00:00
Phil Longstaff
564903ca9d Fix typo: scm_catch_body_t -> scm_t_catch_body
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18386 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-18 23:48:37 +00:00
Phil Longstaff
acdecdedb8 Allow m4 1.4.11 and 1.4.13 as well as 1.4.7. Should really parse the version
number to ensure it is higher than some minimum value.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18385 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-18 21:57:19 +00:00
Phil Longstaff
9d61ff898a Fix 598491: Remove use of guile's deprecated GH interface
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18384 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-17 17:47:56 +00:00
Christian Stimming
5f7d71dbdc Updated Dutch translation by Mark Haanen, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18383 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-16 20:15:11 +00:00
Christian Stimming
ad35fcdb2b Win32: Assert there is only one aqbanking plugin directory before accessing the qt3-wizard.exe.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18381 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-16 19:53:57 +00:00
Christian Stimming
f599184b62 Updated Dutch translation by Erwin Poeze, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18380 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-16 19:06:26 +00:00
Phil Longstaff
0b2cfbdc35 gnc-module doesn't need to compile/link with guile
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18379 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-15 23:21:23 +00:00
Christian Stimming
78d68b9f61 Win32: Minor version update of aqbanking.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18378 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-13 19:37:18 +00:00
Christian Stimming
8ca1487a21 Add new option in register "Tab order includes Transfer field".
Patch by Colin Law:
Patch that provides a new option in the Register preferences to
specify whether, when tab is hit after entering the description for a
memorised transaction in Basic Ledger view, that the cursor skips to
the value field (as at present) or just tabs to the Transfer field.
The option defaults to include the Transfer field so gnucash operation
is unaffected unless user modifies the option.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18377 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-08 21:04:14 +00:00
Christian Stimming
018c467160 Partly fix broken data file backward compatibility where SX recurrence would disappear.
In r17725 and r17751, I introduced the extra XML child element
<recurrence:weekend_adj>, but this means a gnucash-2.2.x cannot read
the SX recurrence of a >=2.3.x file anymore, which is bad. In order
to improve this broken backward compatibility for at least the common
case, we don't write out this XML element as long as it is only "none".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18376 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-07 20:45:00 +00:00
Phil Longstaff
0ed35e5489 Change version number to 2.3.7
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18371 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-06 00:03:06 +00:00
Phil Longstaff
d026fe291a Retrieve new packaged pgsql binary which has msvcr71.dll included. Also, win32
packaged webkit is retrieved from sourceforge.net, not gnucash.org.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18370 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-04 23:31:37 +00:00
Christian Stimming
03ee117b5e Revert r18366, "Bug #596248: Disable pgsql in libdbi build"
The current build doesn't even start. We revert this change so that
we go back to the previous behaviour where we at least started the
main window.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18369 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-04 20:25:43 +00:00
Christian Stimming
952632d89f Partly revert r18363, "Minor windows version updates: Newer gmp, newer slib."
The newest build doesn't even start the gnucash main window (only the
splash screen). Hence, we revert the changed slib version because this might
affect that behaviour.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18368 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-04 20:25:32 +00:00
Christian Stimming
19503887fc Win32: Build gwenhyfar without openssl because it doesn't need it anyway.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18367 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 20:11:46 +00:00
Christian Stimming
664ae299b9 Bug #596248: Disable pgsql in libdbi build because the available pgsql binaries depend on Visual Studio C runtime.
This can be enabled again as soon as we pgsql binaries available
which do not depend on MSVCR71.DLL anymore.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18366 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 14:06:28 +00:00
Christian Stimming
06f89503cc Follow-up to r18354: Patch for balance column displayed in template register
Patch by Tim M: The attached patch is an improvement to the original patch
which supplies the correct number of columns to gnucash for the
general_ledger register view if the register is a template.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18365 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 14:01:28 +00:00
Christian Stimming
52fdf3ea53 I18n: Fix forgotten string markup for translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18364 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 13:59:15 +00:00
Christian Stimming
43cb79ca27 Minor windows version updates: Newer gmp, newer slib.
(Note: The newer slib version doesn't yet fix the issue which caused r18360)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18363 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 11:48:32 +00:00
Christian Stimming
0e21cecfd8 Updated Polish translation by Jacek Baszkiewicz.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18362 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 11:43:00 +00:00
Christian Stimming
19e02f6dea Fix compiler warnings.
Patch by Colin Law: Attached is a patch to fix compiler warnings in
split-register-model.c.  In fact for me they prevent compilation,
possibly because I have specified --enable-compile-warnings.  I have
inspected the code and it appears that the warnings are unfounded, the
code appears to be safe, though I can see why the warnings were
generated.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18361 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-10-03 11:37:52 +00:00