Commit Graph

13543 Commits

Author SHA1 Message Date
Christian Stimming
6af446e0d7 Fix r19985, r19986 for guile-1.6.8.
The return value of guile-1.6's SCM_STRING_CHARS must not be freed, as
opposed to the return value of guile-1.8's scm_to_locale_string. So we
must wrap the free() into a macro that is defined appropriately (or maybe
we should refactor this into a function returning a g_malloc'd g_char anyway.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19999 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-30 11:33:31 +00:00
Christian Stimming
ddfa713ab3 Fully implement auto-completion in the invoice entries on the description field, separately for bills or invoices.
The quickfill is obtained from the global cache of the GncEntry's
descriptions, one for invoices, one for the rest.
The auto-completion is a simple query to get the newest entry with the
same description, but limited to invoices or bills, respectively.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19998 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-30 11:02:13 +00:00
Christian Stimming
82a37347ea Re-apply r19993: Add a new report: Customer Summary.
This report shows a table of all customers and the sales, profit, and markup
in that table.

(The crash at startup wasn't caused by this patch.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19997 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-30 11:00:27 +00:00
Christian Stimming
bfc3c0b484 Revert r19993, "Add a new report..." - not yet working due to errors in the loading process.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19994 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 21:41:51 +00:00
Christian Stimming
6d44330b71 Add a new report: Customer Summary.
This report shows a table of all customers and the sales, profit, and markup
in that table.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19993 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 21:40:21 +00:00
Christian Stimming
0a156be0ce Add a new report: Future Scheduled Transaction Summary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19992 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 21:31:40 +00:00
Christian Stimming
15db554a3f Bug #637346: A second step towards doxygen python-bindings docs; add file missing in r19981
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19991 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 20:54:22 +00:00
Micha Lenk
6e71c239d9 Add facility to force BUILDING_FROM_SVN=no from outside the Gnucash build system
Needed by packagers that maintain the packaging code in svn, svk or git too


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19990 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 13:54:58 +00:00
Mike Evans
2fcc850c98 Adds percentages to piecharts. See bug #343449 for details. Patch is derived from a patch submitted by Alexander Weiss
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19989 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 12:30:13 +00:00
Phil Longstaff
e8a6ef4673 Fix earlier checkins to ensure that strings returned from routines or whose addresses are kept have been allocated from g_malloc(.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19988 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 03:03:10 +00:00
Phil Longstaff
af2e6b3fa4 When a book is closed, all of the memory for the objects should be freed.
Free budgets and invoices.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19987 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 01:43:28 +00:00
Phil Longstaff
c42190fb11 Fix more memory leaks. scm_to_locale_string() returns a string which must be freed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19986 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 01:39:49 +00:00
Phil Longstaff
4295b043f7 Patch some memory leaks. scm_to_locale_string() returns a string which must be freed
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19985 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-29 01:36:26 +00:00
Phil Longstaff
b171a32cc8 Plug some memory leaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19984 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-28 20:44:25 +00:00
Christian Stimming
81eea9dded Improve GncEntry quickfill to create separate quickfills for invoices and bills
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19983 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-27 21:07:58 +00:00
Christian Stimming
e0e8300c54 Bug #637346: A second step towards doxygen python-bindings docs
Patch by Christoph Holtermann

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19981 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-27 15:36:15 +00:00
John Ralls
67f2798d17 Revert r19965: It wasn't the problem after all.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19974 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-21 20:05:10 +00:00
Cristian Marchi
a75f8d6cae Complete the translation of a string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19973 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-21 20:03:06 +00:00
Cristian Marchi
cbdebe69d4 Updated Italian translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19972 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-21 19:41:30 +00:00
Phil Longstaff
4eb66e27cc Update configure.ac to 2.4.0
Update gnucash-bin.c to indicate stable version is 2.4.0, next stable version 2.6

Here we go...


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19970 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-20 17:59:25 +00:00
Phil Longstaff
bb26bf6577 Updated POTFILES.in
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19969 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-20 17:57:29 +00:00
Phil Longstaff
c86cdf6d12 Update copyright notice dates to include 2010
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19968 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-20 17:54:17 +00:00
Phil Longstaff
4c8de43cd7 Add gnc-backend-dbi-priv.h to list of header files so that 'make distcheck' passes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19967 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-20 17:53:15 +00:00
John Ralls
1f65a1dfe9 Bug #637331: Cancelling quit crashes on OSX Leopard. Turns off handling shortcuts by OSX, everything goes through Gtk.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19965 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-20 00:48:06 +00:00
John Ralls
64d245d365 Fixed date problem in MySql backend
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19964 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-20 00:26:16 +00:00
Mike Evans
36f60b88b3 Removed accidentally created directory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19963 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-19 21:26:43 +00:00
John Ralls
c05e35f9a1 Add enumeration of indexes in sql backends.
This is a first step to rewriting databases in a safe way. Indexes are 
named entities in sql databases and so need to be renamed along with the 
tables before creating and populating a new set.

This change also introduces a unit test of the new enumeration, and that 
test has to be able to see data structures which are private to 
gnc-backend-dbi.c, so those data structures are moved to a new file, 
gnc-backend-dbi-priv.h, which both gnc-backend-dbi.c and 
tests/test-stuff.c can include.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19959 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 23:50:25 +00:00
Christian Stimming
a0e8430b3e Improve the cached quickfill for GncEntry description lines of r19941.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19958 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 21:31:22 +00:00
Christian Stimming
6accd9a09a Add debug helper function qofeventid_to_string.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19957 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 21:31:11 +00:00
Christian Stimming
7c76425cbf Bug #637346: Adding python-bindings to doxygen documentation
Patch by Christoph Holtermann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19956 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 20:36:40 +00:00
Mike Evans
81a4a8108c Support for GncCommodityNamespace, better support for GncCommodity, and example
enhancements.
Patch supplied my Mark Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19955 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 14:00:52 +00:00
Mike Evans
94c55fef95 Changes to example Script to include added namespace functionality
This patch changes the example script to reflect the capability of reading all
namespaces.
Patch provided by Christoph Holtermann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19954 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 13:39:49 +00:00
Christian Stimming
300284f8e5 Follow-up to r19928: Include gnc-version.h with directory path to avoid picking the wrong file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19952 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-16 22:01:48 +00:00
Christian Stimming
c94ee4dd31 Bug #637041: Revert r19861 as the patch from bug#635439 causes a crash.
The patch can be re-applied after the 2.4.0 release is out, but for now
I prefer to defer it until after the release.

To be precise, this patch reverts all parts of bug#635439: r19861, r19860,
r19854, r19853.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19951 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-16 21:43:21 +00:00
Derek Atkins
3f70c99002 Add APIs to get/set a flag signifying that a transaction is a book-closing txn.
This is necessary for Bug #570042 but doesn't completely solve it until
the reports are updated to use the new API.  This is backwards-compatible
with the slot data inserted by the book closing since 2010-03-02.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19945 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-16 02:11:53 +00:00
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