Commit Graph

14131 Commits

Author SHA1 Message Date
Geert Janssens
dca63c72b3 Bug #612562 - Transfer Funds dialog - 'Show Income/Expense' checkboxes
are not working
Subaccounts of income and expense are not always shown.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21268 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-18 17:28:03 +00:00
Geert Janssens
899b78ed28 Bug #657596 - Migrate Scheduled Transactions from GladeXML to Builder
Add destroy object for GncFrequency
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21267 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-17 17:40:53 +00:00
Geert Janssens
fbe3c73827 Business import: add a note about the quoting differences
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21266 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-17 17:20:01 +00:00
Geert Janssens
ef751285f7 Opening new bills / invoices made configurable from UI.
Patch by Rafał Krzewski

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21265 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-17 17:19:52 +00:00
Geert Janssens
1b05840f0f Tweaked alignment of import type radio button group for better consistency and dialog resize behavior.
Patch by Rafał Krzewski

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21264 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-17 17:19:42 +00:00
Geert Janssens
a16a27616d Normalized regexps. Non quoted regexp require complete match (no trailing garbage allowed). Default regexp was brought in sync with GUI option 1 (selected by default). Now a complete set of fields (possibly empty) on each line is required.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21263 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-17 16:50:39 +00:00
Geert Janssens
661ea3fb4f Improved regexps for CSV files with quotes - quotes are allowed but not required on all fields.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21262 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-17 16:50:30 +00:00
Geert Janssens
298aa3787d Change default post date:
* customer invoices: post at the current date
* bills/vouchers: post at the last date on the bill/voucher
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21257 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-14 12:29:59 +00:00
Christian Stimming
c3f2b14470 Bug #658851: [Cutecash] Sort the dashboard from latest to earliest.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21256 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-13 18:49:27 +00:00
Geert Janssens
6f5756c178 Bug #651175 - Script to export invoices to LaTeX
Patch by Christoph Holtermann

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21255 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:54:07 +00:00
Geert Janssens
acad985837 The previous seven patches were by Rafał Krzewski.
Adding his coordinates to the AUTHORS file for proper attribution.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21254 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:32:58 +00:00
Geert Janssens
a1070561fe minor formating fix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21253 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:24:49 +00:00
Geert Janssens
312397fa79 Changed 3rd import regexp to actually accept quotes on all fields, and 4rd to accept commas and quotes, as advertised in the UI.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21252 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:24:40 +00:00
Geert Janssens
e6b68e8516 Open invoice in a new tab only if it has not been posted yet.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21251 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-11 14:24:31 +00:00
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