Commit Graph

13382 Commits

Author SHA1 Message Date
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
Geert Janssens
641de9593b Fix GtkSpinButton with page-size deprecated warning in gnucash.trace
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19881 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-24 18:45:33 +00:00
Frank H. Ellenberger
0882ec4722 Add "discount" to all glossary files because some languages use different translations in billing terms and invoices.
Additional the german translation is added to glossary/de.po.
This change does not break the string freeze as it is not user visible.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19874 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-24 02:52:06 +00:00
Christian Stimming
32416a5d15 Bug #635469: Add bindings for running a qofquery on invoices.
This adds a new typedef "GncInvoiceList" with the corresponding typemap,
and adds two new functions qof_query_create_for_invoices and
qof_query_run_for_invoices, which are trivial wrappers around
qof_query_create_for and qof_query_run respectively.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19863 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-22 20:17:18 +00:00
Christian Stimming
d9a658ed4b Bug #635355: Add public declaration of gnc_info_dialog.
Patch by Manfred Usselmann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19862 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-22 19:42:16 +00:00
Mike Evans
5c7784abf1 Bug #635439: Patch to autoset owner in the payment dialog
Patch by Matthijs Kooijman <matthijs@stdin.nl>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19861 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-22 15:13:26 +00:00
Mike Evans
bc3f36698f Revert "Bug #635439: Patch to autoset owner in the payment dialog"
This reverts commit 232ae4064952cb65e9703d61778cb1531d2e4f56.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19860 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-22 13:45:43 +00:00
Christian Stimming
8f69e17094 Update German translation.
(This includes the 14 new strings which are already there but not yet being used.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19858 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:44:58 +00:00
Christian Stimming
2d8e27ad6a Merge German translation with latest pot template.
This is merged using msgmerge --no-location de.po gnucash.pot -o de.new.po
and we use "--no-location" to make the updates actually readable.
(Unfortunately this doesn't prevent the strings from changing ordering anyway. Oh well.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19857 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:44:38 +00:00
Christian Stimming
5cad4d5a19 Remove superfluous whitespace at end of string. Incidentally, this way the string already exists and no broken translation results.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19856 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:37:57 +00:00
Christian Stimming
1643a19f72 When extracting the translation strings from the scheme files, sort the scheme files to obtain a stable ordering of the output.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19855 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:37:43 +00:00
Christian Stimming
8f7e2aeb39 Bug #635439: Fix "Pay invoice" while the invoice dialog is open.
Patch by Matthijs Kooijman <matthijs@stdin.nl>:

    If you use "Pay invoice", normally a new payment dialog is opened which
    is completely filled in. However, when there was already a dialog open,
    it was reused but only the owner would be filled in. This patch makes
    sure that the invoice and amount are filled in as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19854 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:17:41 +00:00
Christian Stimming
8129860609 Bug #635439: Patch to autoset owner in the payment dialog
Patch by Matthijs Kooijman <matthijs@stdin.nl>:

    In the payment dialog, set the owner when an invoice is selected

    Before, you would always need to select an owner manually. If you would
    just select an invoice (which was possible, since the invoice selection
    is not disabled when no owner has been selected yet), pressing OK would
    error out because no owner was selected.

    This patch makes sure that when an invoice is selected, but no owner is
    selected yet, the right owner is filled into the owner selection box
    automatically.

    This also happens when the wrong owner is selected, which can happen
    because the invoice autocompletion is not limited to invoices from the
    selected owner, but always completes all invoices. This could cause
    weird behaviour: Select an owner, then use completion to select an
    invoice by another owner and press ok. This would cause the amount for
    the invoice by the other owner to be charged against the first owner.
    This patch prevents that by replacing the first owner by the other owner
    in the dialog.

    This patch also changes gnc_invoice_set_owner to no longer reset the
    invoice selection to NULL. Instead, this is now handled by

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19853 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 20:17:29 +00:00
Phil Longstaff
789f42e134 Update release to 2.3.17
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19851 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-21 02:14:21 +00:00
John Ralls
a608c337ce Correct patch submission instructions to direct patches to bugzilla rather than the mailing list.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19849 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-20 18:28:38 +00:00
Cristian Marchi
a3d344cb92 Updated Italian Translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19848 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-20 13:56:59 +00:00
John Ralls
88e16264dd Bug #589954: No blank split after creating a new account "on the fly" while editing a transaction.
Cause was that gnc_split_register_get_account_by_name() turned of "full_refresh" if the account didn't already exist and turned it back on only if the name of the account actually created in the new account dialog box differed from the one originally entered in the transaction.

Since "full_refresh" isn't manipulated much, that effectively shut down the ledger for further editing. Probably not what the original author intended!



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19847 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-19 22:22:01 +00:00
John Ralls
89a3d07b20 Fix error in r19822 which prevented creation of postgres databases.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19832 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 21:21:57 +00:00
Geert Janssens
29414038fe Splash screen: minor code cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19831 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 20:39:57 +00:00
Geert Janssens
c3effeb228 Bug #634906 - Re-enable splash screen preference option
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19828 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 17:17:32 +00:00
Geert Janssens
ac654c607b Bug #633550 - Help and concepts guide are missing from the prebuilt binary (because xsltproc chokes on undefined entities)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19827 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-18 15:33:53 +00:00
Geert Janssens
5b180dec10 Bug #609581 - Gnucash 2.3.8 offers to create db and then fails to do so
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19824 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 21:38:28 +00:00
John Ralls
fb53d8a463 Bug 628409: SQL coerces identifiers to lowercase, but postgres's C interface is case sensitive.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19822 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 02:14:13 +00:00
John Ralls
115e0aeaa6 Bug 592643: Set standard_conforming_strings on postgresql databases.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19821 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 01:31:37 +00:00
John Ralls
24b4493e2b Bug 634964: Crash in pgsql_error_fn. The dbi_conn isn't set if the server refuses the connection, so protect dereferences from null pointers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19820 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-17 00:10:16 +00:00
John Ralls
1b26fa2bcb Fix python samples to work with reordered Session.__init__() args
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19819 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 22:07:58 +00:00
Christian Stimming
150c3dae48 Fixed aqbanking transaction type on importing DTAUS online transfers.
Patch by Manfred Usselmann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19818 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 20:55:50 +00:00