Commit Graph

14154 Commits

Author SHA1 Message Date
Geert Janssens
ba89a190b7 Bug #365928 - Jobs do not stick in Expense Vouchers
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21376 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-06 20:19:06 +00:00
John Ralls
d896abaf4a Add gnucash-setup-env-osx.in to EXTRA_DIST so that it will be in the
tarball.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21373 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-04 23:37:36 +00:00
Geert Janssens
ea7aa8eb2d Bug #660369 - Migrate Report dialogs to Builder from GladeXML
Patch by Robert Fewell with minor tweaks

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21372 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-03 19:17:35 +00:00
Geert Janssens
cd1d55faa5 Ignore some autogenerated files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21371 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-03 18:15:57 +00:00
Geert Janssens
88c14d6b1b Bug 651645 - Windows SVN trunk nightly builds fails to open compressed
xml files

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21369 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-03 16:52:00 +00:00
Christian Stimming
65b871611d Need to rename enum symbols to not conflict with those from gnc-split-reg.h.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21368 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-30 18:48:07 +00:00
Christian Stimming
588ccc145f Refactor gncOwnerApplyPayment() so that the second part is available as separate function gncOwnerAssignPaymentTxn().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21367 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-30 18:47:56 +00:00
Christian Stimming
c8ecb4d937 Add some const where applicable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21366 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-30 18:47:43 +00:00
Christian Stimming
7ca4a0bb26 I18n: Use ngettext for translation string with plural form.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21365 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 14:22:19 +00:00
Geert Janssens
746d4b52b3 Added test for Employee name (uses GncOwner*Name).
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21364 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 11:00:31 +00:00
Geert Janssens
ff9ddda750 Completed mapping for owner types and added tests.
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>

 * Include gncOwner later, to use typemap.
 * Add gncOwner functions to GnuCashBusinessEntity.
 * Removed Owner, since it's basically GnuCashBusinessEntity.
 * Included test for some business classes.
 * Added currency to tests to reduce complaining.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21363 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 11:00:19 +00:00
Geert Janssens
698a1dc6ac Added bindings for Employee, Job and Owner types.
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21362 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 11:00:06 +00:00
Christian Stimming
e84d64f303 Win32 build: Update version numbers of aqbanking, gwenhywfar, ktoblzcheck.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21361 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-29 10:06:11 +00:00
Geert Janssens
24269aab8a Added gncVendor and gncCustomer to base-typemap.i.
Patch by Hendrik van Antwerpen <hendrik@van-antwerpen.net>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21359 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-28 13:29:19 +00:00
Geert Janssens
f9ff7a9c2c Bug #659504 - Migrate Register and reconcile from GladeXML to Builder
Patch by Robert Fewel

Note: this patch is limited to the conversion of widgets found in
the libglade files. Both the Register and the Reconcile features still
depend on deprecated Gtk/Gnome widgets (like GtkCList), which are added
programmatically. Eventually these widgets still have to be replaced
with supported alternatives.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21358 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-28 13:00:11 +00:00
Mike Alexander
35ae5e34a8 Don't include core-utils/gnc-gconf-utils.c in the source file list.
It's already part of one of the libraries the tests are linked with.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21303 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 21:06:51 +00:00
Mike Alexander
8d51acd247 The build fails if python bindings are requested and parallel build is on.
The make file knows how to build libgncmod-app-utils.la but doesn't realize that
${top_builddir}/src/app-utils/libgncmod-app-utils.la is the same file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21302 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 21:04:51 +00:00
Mike Alexander
5307ca5ab3 Find the python libraries and includes even if the path to them includes a symlink.
When python is installed using MacPorts there is a symlink in the path.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21301 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 21:02:44 +00:00
Christian Stimming
bdd46d7c38 Glibmm: Add the final important engine objects as glibmm wrappers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21300 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 20:14:59 +00:00
Christian Stimming
e2fbc55ad8 Glibmm: Add the common QofInstance methods by using an additional base class.
Not yet complete, but at least compiles fine.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21294 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 10:50:26 +00:00
Christian Stimming
cd916aeb51 Add Glibmm C++ wrappers of GObject objects to the optional gtkmm module.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21293 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-22 10:50:12 +00:00
John Ralls
b38dbe7e6b Make sure that exiting conn_test_dbi_library on a failure doesn't leave the locale at "C".
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21270 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-18 17:57:38 +00:00
John Ralls
b2e7182d0c [Bug #645216] Wrong permissions on server result in bogus error message
Author: John W. O'Brien <john@saltant.com>
In gnc-backend-dbi.c, accept enumerated result from conn_test_dbi_library(),
then throw ERR_SQL_DBI_UNTESTABLE if the test setup failed, or ERR_SQL_BAD_DBI
if at least one test case failed.

Define ERR_SQL_DBI_UNTESTABLE error code and message.
Define GncDbiTestResult enumerated type.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21269 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-09-18 17:57:28 +00:00
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