Commit Graph

14117 Commits

Author SHA1 Message Date
Geert Janssens
7c6047e717 Check correct field when testing if date_opened was set for a document.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21250 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:24:23 +00:00
Geert Janssens
f279678958 Inverted conditions for gnc_search_bill_on_id / gnc_search_invoice_on_id. g_ascii_strcasecmp returns 0 when arguments are equal.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21249 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:24:13 +00:00
Geert Janssens
f1e7aa4c03 Pass document type to gnc_bi_import_fix_bis function and use it to perform correct document owner check: vendor for bill, customer for invoice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21248 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:24:04 +00:00
Geert Janssens
e80d9aed13 Use billing_id consistently (fixed billing_id/billingid/biing_id mixup)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21247 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:23:55 +00:00
Geert Janssens
8f6e8391eb Bug #658244 - Custom css stylesheet and logo in Tax Invoice report
require protocol in exported HTML
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21245 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 13:44:22 +00:00
Geert Janssens
38057707d4 Bug #655901 - Fix build with guile 2.0, part 2
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21244 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 10:58:14 +00:00
Geert Janssens
24e195d7d0 Bug #657596 - Migrate Scheduled Transactions from GladeXML to Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21243 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 10:58:01 +00:00
Christian Stimming
b2e8c5d2de GSoC Cutecash project by Nitish Dodagatta (last half)
Summary of the project by the GSoC student, copied
from http://wiki.gnucash.org/wiki/GSoC2011#Student_Summaries :

A new user interface for Gnucash core using Qt/C++ was started by one
of the Gnucash developers in 2010. [1] The idea is to create a
lightweight user friendly UI, reusing the backend core API of
Gnucash. During the project, I created a widget to allow a user to add
two split transaction to/from different accounts. After that I worked
on adding an overview widget showing a list of recent transactions
entered. It consists of two report views containing income and
expense. This view also called as First Person Overview provides an
easy to browse list of transactions. The idea is to integrate common
handy features with these views. The present view lists four entries
for each transaction: date of the transaction, transaction
description, split account name and split amount. Each of the entries
are inside their own QWidget, so as to allow interactive features to
be coded on each of the entries.

The already existing code had some C++ wrappers to convert the return
values of C functions to Qt data types. I made use of them whenever
possible. And at some parts of the code I used the C functions
directly where it made things easier for me. The FPO consists of one
or more viewlets. A viewlet is nothing but a list of transactions, a
slightly minified version of General Journal, to easily browse
transactions sorted by date. The viewlet generator function works such
that there is no date entry or account name entry, if it is the same
as the previous (above) one. This information is then used by
ViewletView to generate the UI part. To make the views visually
appealing and readable, QStyleSheets are used which distinguishes the
various types of entries in the viewlet.

Overall, it was a rewarding experience, I learned a lot of new things,
common pitfalls, handy tips and tricks, and a better understanding of
the Gnucash core API . The project was observed only by myself and my
mentor. During the course I also generated windows builds for two of
my friends who were interested to have a look at the features
implemented. I received positive feedback from them and couple of
feature requests from them. Working on this project within GSoC was a
rewarding experience. I thank my mentor Christian Stimming for guiding
me along and giving very helpful advices and hints during the
summer. I definitely would like to continue contributing to Gnucash
community in future.

[1] http://wiki.gnucash.org/wiki/Cutecash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21241 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-07 18:03:20 +00:00
Christian Stimming
3ac46f5572 GSoC Cutecash project by Nitish Dodagatta (first half)
- Use system icons, fallback icon theme included
 - Prototype of unified transaction entry widget

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21240 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-07 18:03:07 +00:00
Mike Alexander
5f980c8d1a Use the correct #define for the number of account types instead
of assuming that ACCT_TYPE_CREDITLINE is the last one.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21239 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-06 07:21:04 +00:00
Christian Stimming
898f07776d (cppcheck) Fix several memory leaks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21233 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:51:19 +00:00
Christian Stimming
7c1d4a91b3 (cppcheck) Fix mismatching allocation and deallocation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21232 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:51:06 +00:00
Christian Stimming
df19c62b8d (cppcheck) Fix a possible memory leak: data
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21231 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:50:56 +00:00
Christian Stimming
62fa222c27 (cppcheck) Fix mismatching allocation and deallocation: namespace
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21230 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:50:45 +00:00
Christian Stimming
bd57ef050a (cppcheck) Remove several redundant null checks
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21229 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-01 06:50:32 +00:00
Geert Janssens
9440dbf8b7 Add some warnings to help tracing file loading issues
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21223 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-27 11:21:06 +00:00
John Ralls
ee913abb61 Delete the often-conflicting and occasionally unsafe Gnucash local
variables which have leaked in over the years.

Emacs users should add the following to their .emacs files:
(c-add-style "gnucash"
                '("k&r"
                  (c-basic-offset . 4)
                  (c-offsets-alist . ((case-label . +)) )
                  (c-hanging-braces-alist . ((substatement-open before after)
                                              (block-close before after)) )
                  ))

Users with Emacs version 23 and later can add this as well:

(dir-locals-set-class-variables 'gnucash-project
                                '((indent-tabs-mode . nil)
                                  (fill-column . 80)
                                  (c-mode . ((c-file-style . "gnucash")))
                                  (c++-mode . ((c-file-style . "gnucash")))))
(dir-locals-set-directory-class "/path/to/gnucash-svn" 'gnucash-project)

Users with earlier versions should at least add
(setq indent-tabs-mode nil)
and should consider adding
(c-default-style ('((c-mode . "gnucash"))))

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21221 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-25 21:38:33 +00:00
Christian Stimming
79a731c87d Include refactored ui related balance functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21218 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-25 07:57:55 +00:00
Geert Janssens
7adb5fe5ff When posting an invoice it warns of no post-to account selected.
This bug was introduced by the patch of bug #653109

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21217 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-24 20:56:54 +00:00
Geert Janssens
14b5d38115 Move ui related balance calculation functions to separate file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21216 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 21:20:27 +00:00
Geert Janssens
56441aabda Add qof queries to python bindings and set PYTHON_PATH in gnucash-env
Patch by Hendrik van Antwerpen

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21215 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 21:20:15 +00:00
Geert Janssens
31a79474df contrib: add license information for style sheets
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21214 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 12:01:29 +00:00
Geert Janssens
46b04ee5ec contrib: update/add README files for style sheets
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21213 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 12:01:19 +00:00
Geert Janssens
81a411b880 contrib: add a style sheet to create an account hierarchy template from a GnuCash file
Add an XSLT style sheet that takes an existing (uncompressed) GnuCash
file and creates an account hierarchy template from it. Takes
parameters for the account hierarchy name, short, and long
description.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21212 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 12:01:08 +00:00
Geert Janssens
ce8222acb9 contrib: add an XSLT style sheet to create an account list
Add a simple XSLT style sheet that takes an (uncompressed) GnuCash
file or template, and generates a comma-separated list of account
numbers, names, and types.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21211 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 12:00:54 +00:00
Geert Janssens
7595b840af Bug #656786 - Allow splits to be added to/removed from lots in lotviewer
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21210 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-23 08:26:14 +00:00
John Ralls
40c50a3672 Fix tab-indent in gnc-main-window.c, reverting r21207
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21209 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 23:45:30 +00:00
John Ralls
9d9db4cc40 [Decruftification] Combine xaccCloneAccountSimple and
xaccCloneAccountCommon into a single xaccCloneAccount

Since removing the qofinstance-gemini xaccCloneAccount means that the
only user of xaccCloneAccountCommon is xaccCloneAccountSimple, which
adds only one line beyond calling xaccCloneAccountCommon, combine them
into a single function, called xaccCloneAccount (no need to make it
simple since it's the only one.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21208 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 18:19:03 +00:00
John Ralls
699271afb3 Missed a free in main_window_update_page_name
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21207 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 18:18:53 +00:00
Christian Stimming
ad1daba095 Remove Period.[hc] file also from cmake files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21206 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 07:12:37 +00:00
Christian Stimming
1961766c99 Re-indentation of source code.
As usual, 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@21205 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 07:10:56 +00:00
John Ralls
2e9e5ac9e0 Missed a free in main_window_update_page_name
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21204 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 03:58:20 +00:00
John Ralls
c318a112a5 Delete qofinstance_gemini and all related functions; they were left over from the clone-the-book-when-closing code abandoned in 2005
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21203 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-22 03:58:10 +00:00
Christian Stimming
b8fdfb834b (cppcheck) fix two possible memory leaks
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21202 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:55 +00:00
Christian Stimming
e256168765 (cppcheck) Fix "error: Memory leak: bufp"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21201 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:44 +00:00
Christian Stimming
8b3650e07f (cppcheck) Fix a possible memory leak
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21200 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:34 +00:00
Christian Stimming
73e9f51253 (cppcheck) Remove redundant null check
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21199 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:23 +00:00
Christian Stimming
4c643a3435 (cppcheck) Fix "error: Memory leak: gea"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21198 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:10 +00:00
Christian Stimming
6f1b6a5fcd (cppcheck) Fix "error: Memory leak: msg"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21197 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:42:00 +00:00
Christian Stimming
1f9daad76f (cppcheck) Fix "error: Mismatching allocation and deallocation: symbol"
Patch by Aurimas Fišeras.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21196 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-21 19:41:49 +00:00
Geert Janssens
23a8ad4194 Bug #656752 - Migrate Budgets from GladeXML to Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21195 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-20 13:29:03 +00:00
John Ralls
f212fcbc7e Delete unused Period.c and ifdeffed-away call to it
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21194 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-20 03:45:17 +00:00
John Ralls
71cd886e99 Remove unused functions from kvp_frame
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21193 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-20 03:45:08 +00:00
John Ralls
b3c49d4514 Delete unused functions from qofinstance.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21192 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-20 03:44:59 +00:00
John Ralls
8d53e67560 Delete unused functions from qofbook.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21191 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-20 03:44:50 +00:00
John Ralls
0ac8f02da4 Delete unused QofInstance copy functions from qofsession.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21190 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-20 03:44:40 +00:00
Geert Janssens
98f42d2ecd Owner balances: flip sign
Now a positive balance means, amount still due, a negative balance
means overpayment. This aligns with other uses of balances like in the
"Bills Due Reminder" dialog

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21186 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-17 10:54:41 +00:00
Geert Janssens
5e02450258 Fix crash in invoice payment introduced in commit 21181
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21185 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-17 10:54:27 +00:00
Geert Janssens
1b7bd7b3e9 Implement a balance for owners and show it on the owners view page
The Balance column is not visible by default, but can be activated
with the blue arrow in the top-right of the page.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21182 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-13 15:33:42 +00:00
Geert Janssens
49a02f99ae Move some functions to better locations
- two functions in business-gnome-utils weren't gui related functions
- invoice payment should be in gncOwner as already stated in the sourcefile

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21181 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-08-13 15:33:27 +00:00