Commit Graph

13458 Commits

Author SHA1 Message Date
Mike Evans
5d1e22bf92 Adds checking of gnc_commodity_namespace in glists
In src/base-typemaps.i check for return type gnc_commodity_namespace is added
so that it is returned instead of gnc_type_monetary.
Thanks to Christoph Holtermann for the patch.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19944 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-15 15:17:59 +00:00
Mike Evans
22089df099 Move price_database_example.py to the correct place and remove incorrect path/file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19943 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-15 12:07:41 +00:00
Mike Evans
a44d515bbb Change indent to 4 sp
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19942 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-15 12:07:14 +00:00
Christian Stimming
71f53a5940 Implement prerequisites for full auto-completion in the entry ledger.
Added a cached quickfill for GncEntry description lines. Extend QuickFillCell
interface to be able to use a common cached quickfill.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19941 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-14 21:25:52 +00:00
Christian Stimming
0ede4fcda9 Remove doubled include files.
(Also, QuickFill.h doesn't depend on gdk.h)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19940 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-14 20:32:56 +00:00
Christian Stimming
88cb0b1b20 Replace more obsolete #define'd function names by their current names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19939 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-14 20:22:48 +00:00
Christian Stimming
50d6165239 Mark erroneous translation as fuzzy because it doesn't have the correct c-format.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19938 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-14 19:50:17 +00:00
Christian Stimming
d773789dd8 Add gitignore for backup files from make check.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19937 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 21:00:40 +00:00
Christian Stimming
febe74e6c0 Replace more obsolete #define'd function names by their current names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19936 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 21:00:23 +00:00
Mike Alexander
75d71c93a3 Make "make check" work when run from "make distcheck".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19935 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 17:08:41 +00:00
Geert Janssens
111554e6f7 Use proper decimal separator for monetary amounts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19934 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 16:05:29 +00:00
John Ralls
7036b9267d Add messages to backend errors, ensuring that qof_session_backend_get_message() will actually get a useful message, or that there will be a descriptive warning immediately before in the trace file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19933 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-13 00:44:57 +00:00
Christian Stimming
c8a1ebb93a Replace obsolete <QueryNew.h> #defines by the current <qof.h> function names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19932 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 21:30:59 +00:00
Christian Stimming
d9b311efb1 Implement (but currently deactivated) auto-completion in the invoice ledger using all entries from the current book.
Eventually, this will enable drawing the auto-completion from all entries in
the previous invoices (i.e. book-wide), but in order to give the user a
good enough feedback during typing we additionally need a quick-fill object
over those book-wide entries. Currently, the user cannot see whether the
current description would result in an auto-completion from another invoice,
and that's not yet enough.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19931 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 21:30:40 +00:00
Christian Stimming
906672a40d Cutecash: Add generation of dummy gnc-version.h file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19930 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 12:04:00 +00:00
Christian Stimming
5465b72489 Add missing newline at end of file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19929 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 11:58:42 +00:00
Mike Alexander
8adaf9d132 Move gnc-version.h and gnc-svninfo.h from gnome-utils to core-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19928 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:48:20 +00:00
Mike Alexander
0288b5f69b If the build directory is not the source directory and the source directory
is read only, the build fails.  Fix by only making guile-strings.c if 
building from SVN.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19927 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:45:37 +00:00
Mike Alexander
6eb32d9d50 Get rid of the rest of the gnc-prices man page, r19921 is incomplete
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19926 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:33:50 +00:00
Mike Alexander
40bcdca2ca If you have a parent account with a subaccount whose commodity allows more
decimal places in the amount field than the parent account does things
don't work right if you open a register for the parent account and all
subaccounts.  This situation can occur if you have a broker account with
subaccounts for the securities held in that broker account. If you open a
register for the top account and all subaccounts, it is impossible to enter
a transaction to buy or sell a fractional share of the security where there
are more digits after the decimal point than the parent account allows.
This change fixes this if the subaccount allows no more than six digits
after the decimal point.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19925 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 04:26:56 +00:00
Mike Evans
356d51060d Remove variable names that conflict with Python keywords. Relevent when using SWIG autodoc feature for python bindings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19924 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-10 13:09:50 +00:00
Mike Evans
3879292cc6 Add %feature("autodoc", "1"); to gnucash_core.i to pass C documentation through to python interface.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19923 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-10 13:09:46 +00:00
Mike Evans
26b16be5ba New example script for prices dababase. Thanks to Christoph Holtermann for contributing to this.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19922 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-10 12:53:21 +00:00
Christian Stimming
5c8663189a Remove obsolete gnc-prices man page
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19921 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-10 10:25:33 +00:00
John Ralls
ccba29be5e Add Gnucash svn version to sql versions table.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19920 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-10 00:05:30 +00:00
Christian Stimming
d33ac38371 Bug #629446: TRY is now called plain Turkish Lira.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19919 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-09 10:16:02 +00:00
Mike Evans
56fe25cb63 Insert missing space
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19918 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-09 08:16:51 +00:00
Mike Evans
30bb2d28fa Re-enable -Werror in Makefile.am and remove %feature("autodoc", "1"); from gnucash_core.i
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19917 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-08 14:56:07 +00:00
Mike Evans
e1fcfe0269 Add commodity price functions to bindings.
See Bug 636457 for more details.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19916 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-08 11:52:22 +00:00
Mike Evans
0607593792 Add PriceList to typemap for Python bindings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19915 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-08 11:52:18 +00:00
Christian Stimming
83a23d7986 Bug #454109: Online banking: grey out online actions when there is no online account
Patch by Manfred Usselmann:
Online actions are disabled for accounts which have no bankcode and account id
assigned

This fix does not require initialization of the AB_BANKING object.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19914 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-08 10:26:04 +00:00
John Ralls
7354518d3d Patch by Matthijs Kooijman.
In r19863, some qofquery bindings were added. For those to compile,
business-core.i now includes qofquery.h. However, this causes the
bindings for qofquery.h to be generated twice: Once through engine.i and
once through business-core.i. The latter generated broken versions of
the bindings, breaking (at least) the receivable aging report.

This commit changes the %include to an %import, so the new bindings
still compile but the query bindings don't get generated twice.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19913 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-08 00:33:29 +00:00
John Ralls
0ebb92e19e Bug #635926: Lower-case the name of the lock table to avoid confusing Postgres. Also abstract it to a static variable instead of repeating the string everywhere.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19912 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-07 23:49:19 +00:00
John Ralls
a1d2172eff Bug #635967: Slots didn't correctly read the path semantics stored by
2.3.15 and earlier.

Corrected, but note that 2.3.15 and earlier didn't write lists to the
database, so users should re-save from XML using 2.3.17 or later.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19911 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-07 21:41:17 +00:00
Christian Stimming
b734b2ac41 Bug #635355: Partly implement the correct "DTAUS import and send" feature again.
Patch by Manfred Usselmann.

The main part of the feature is delayed until the string freeze is lifted.
This part (without adding strings) implements the infrastructure for sending
only the correctly imported transactions to the bank later.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19909 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-05 13:27:02 +00:00
John Ralls
8ed5d9f005 Bug #636459: Recursively delete slots contained in slots of type KVP_TYPE_FRAME or KVP_TYPE_LIST.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19908 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-05 01:57:08 +00:00
Christian Stimming
6dfd0f28f4 Re-indentation of source code.
This re-indentation was done using astyle-1.24 using the following options:

  astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19907 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-04 21:09:57 +00:00
John Ralls
40c293bd24 Reverse inadvertent mods to po/POTFILES.in in r19904
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19905 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-03 23:33:57 +00:00
John Ralls
e11c537bbe Bug #635859: Strip all trailing '/'es from kvp_slot paths when loading.
This changes round-tripping slightly (because the resulting slot key
won't have the trailing slash when it's re-saved as xml). It may also
change the behavior of the facility using the slot, because the key is
changed. So far, the only known instances which trip this bug are
import-map-bayes, because descriptions may have '/'es in them (and why
shouldn't they).

Unfortunately, fixing this right (so that key values can have embedded
'/''es and be saved/retrieved from sql databases will require changing
the slot architecture in ways that impact the engine. Since we don't
have adequate unit tests to be confident of not introducing a
regression, I'm applying this instead.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19904 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-03 23:24:34 +00:00
Christian Stimming
9cdbe69e0f Bug #609472: Fix translation of displayed style sheet names in the style sheet editor.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19903 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-03 21:14:54 +00:00
Christian Stimming
8b43258ac6 When creating a new style sheet, make sure the name for it is non-empty.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19902 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-03 21:14:39 +00:00
Geert Janssens
a3d0888ed7 Bug #635911 GnuCash crashes out when trying to save-as MySQL
Disclaimer: This fix attempt is purely based on the information given in
the bug report and code reading. I never could reproduce this bug
but the code suggests an unitialized pointer may be the the cause.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19901 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-01 17:07:11 +00:00
Cristian Marchi
8ad9a908ca Updated Greek translation provided by Nikos Charonitakis.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19894 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-29 18:46:49 +00:00
Cristian Marchi
9b9cdb5cbc Updated Japanese translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19892 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-28 12:53:14 +00:00
Christian Stimming
2eec10f6c2 Bug #635469: Add a (typemap for a) QofQueryParamList typedef.
Patch by Matthijs Kooijman:

This is a typedef for a GSList, that is used to identify the path from
an object to one of its parameters in search queries and sorting.

This typedef replaces GSList everywhere where it's applicable. This
relieves the need to special case a few functions in the swig bindings
and makes the bindings for a bunch of other functions work as well.

Note this is (still) only an in typemap, since no useful functions that
return a QofQueryParamList are exposed in the bindings right now anyway.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19890 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-27 21:57:00 +00:00
Christian Stimming
c7cba6884e Bug #635632: Update existing eguile reports to use new for syntax.
Patch by Matthijs Kooijman <matthijs@stdin.nl>:

    This makes use of the new for syntax introduced in the previous
    commit, making these reports and templates a bit easier to read and
    modify.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19889 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-27 21:54:29 +00:00
Christian Stimming
626f8dfe7a Bug #635632: Add custom for loop syntax for eguile templates
Patch by Matthijs Kooijman <matthijs@stdin.nl>:

    The built-in for-each loop construct is a bit cumbersome: It always
    requires an explicit lambda and the list to loop over is the last
    argument. Especially the latter makes it very hard to read when the
    lambda is big and multiple for-each'es are nested.

    For hashes, this prevents the need of the cumbersome hash-fold and
    slightly better hash-for-each (which still suffers from the same
    problems as for-each and is not available in guile 1.6).

    This new syntax allows for three distinct syntaxes:

     * Looping over a single list:
	 (for a in lst do (display a))
     * Looping over multiple lists:
	 (for (a b) in (lsta lstb) do (display (+ a b)))
     * Looping over a hash:
	 (for key => value in hash do (display (* key value)))

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19888 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-27 21:54:18 +00:00
Christian Stimming
578e9e2f55 Implement auto-completion in the invoice/bill entry ledger.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19887 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-27 21:01:15 +00:00
Christian Stimming
2bf78f0e8e Take a first shot at adding auto-completion in the business ledger, but currently it doesn't do anything yet.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19884 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-25 21:34:36 +00:00
Christian Stimming
88356f97d2 Make prototype for gnc_entry_ledger_get_entry public. Add documentation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19883 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-25 21:34:25 +00:00