Commit Graph

16618 Commits

Author SHA1 Message Date
Geert Janssens
48b30271e0 Rewrite gnc-test-env in perl
This eliminates another guile dependency in the build chain

Conflicts:
	src/backend/dbi/test/Makefile.am
2015-01-31 08:19:26 +01:00
Geert Janssens
87520cdde4 Switch from guile to xml to manage our iso-currencies source file 2015-01-31 08:16:32 +01:00
Geert Janssens
7581436e79 Bug 743609 - Add configure options to disable libsecret detection 2015-01-29 17:55:23 +01:00
Robert Fewell
13303eb38e Remove Account Tree filter as not really required.
By removing the filter options it makes it much easier to select
different types of accounts for export at the same time.

https://bugzilla.gnome.org/show_bug.cgi?id=739188
2015-01-28 18:51:16 +01:00
Geert Janssens
483091e996 Fix small spelling error 2015-01-28 18:33:15 +01:00
Robert Fewell
2233736265 Bug 738462 Part 2 - Change CSV Transaction Export.
Add a couple of fields to CSV Export that make the import easier
and remove duplicate transactions.
2015-01-28 17:42:23 +01:00
Robert Fewell
e12c7f7514 Bug 738462 Part 1 - Add search for strings equal.
Add the ability to search for strings that are equal in queries.
2015-01-28 17:42:22 +01:00
Geert Janssens
0ff9eba94f Bug 727647 - "gncInvoiceGetTotal" is not read-only function?
The root cause is in gncRecomputeValues. This function
only alters runtime cached values so it should not
trigger a book dirty action (mark_entry).
2015-01-28 17:00:21 +01:00
Mike Evans
5e60a23400 Bug 721196 - Use a regex for checking for a valid numeric value.
Just testing for an empty field will miss the cases where there are
spaces or decimal separators present.
2015-01-25 11:14:53 +00:00
Mike Evans
564b987457 Numeric values with more than commodity smallest fraction get silently dropped.
If there are more DPs than the commodity smallest fraction they get
lost when calling gnc_numeric_convert().  Removed the call.
2015-01-25 11:08:05 +00:00
Geert Janssens
2494bfc63f Bug 742624 - [patch] Scheduled Transaction Editor results in immediate segfault 2015-01-24 17:33:39 +01:00
Geert Janssens
d5da59331f Bug 731889 - guile 2 exports different autoconf macros than what is expected
The problem is mainly a poorly chosen error message. The user
should generally only rerun autogen.sh, so I have added this
in the error message.
2015-01-24 16:10:58 +01:00
gnucash-dev
5727413ad2 Merge branch 'maint'
Update US Income Tax data to reflect minor changes for 2014
2015-01-20 17:36:11 -08:00
gnucash-dev
4149aa2d25 Update US Income Tax data to reflect minor changes for 2014 2015-01-20 17:10:12 -08:00
Mike Alexander
2493cebbb8 Merge branch 'maint' 2015-01-20 00:59:14 -05:00
Mike Alexander
383d16609c Advanced portfolio should respect report date when looking for other income/expense. 2015-01-20 00:58:54 -05:00
Christian Stimming
a615606f33 Update German translation to recent pot template. Very minor translation update. 2015-01-19 21:12:51 +01:00
Mike Alexander
da1384e20d Merge branch 'maint' 2015-01-19 00:29:08 -05:00
Mike Alexander
79ad39095c book.not_saved should be book.session_not_saved 2015-01-19 00:22:06 -05:00
Mike Alexander
67edea72ca Bug 739228 - Advanced Portfolio report: wrong calculation of Value
Correctly convert the value into the report's currency.
2015-01-18 23:16:09 -05:00
Mike Alexander
13abe849e5 Improve income and expense reporting in advanced portfolio report
Look for transactions from the parent account to an income or expense
account whose name matches the name of the stock account.
2015-01-18 23:16:03 -05:00
Mike Alexander
80d65c8efc Accept prices of the form n.nnne[+-]nn, i.e. with an exponent.
An example requiring this is currency conversion from IDR to USD.
2015-01-18 23:13:45 -05:00
Geert Janssens
219a06b5f7 Merge branch 'maint'
* Revert one patch for bug 740471 - it caused a different segmentation fault
* Bug 738749 - Broken account template en_GB/uk-vat.gnucash-xea
* Bug 721196 - Fixed for locales where decimal point is a comma
* Bug 672760 - Postponed transaction applied invalid date
* Added Lithuanian language business accounts
* Bug 742332 - German tax report uses US tax quarters and not real quarters
2015-01-18 16:07:14 +01:00
Geert Janssens
d9900a7b4f Use the enum name instead of a number for GDateMonth
This is needed for c++, not really for c.
2015-01-18 16:05:15 +01:00
John Ralls
46a3c5fb89 More dithering with Clang error messages.
This reverts the bits in qof that were originally changed in 02acf2b
because those changes applied to the C version of the messages but
not to the C++ version.
2015-01-17 17:22:07 -08:00
John Ralls
60b86ce80f Adjust gtest config & make for shared library use.
Because that's how Fedora packages it.
Also make it a default-if-found so there's no extra config required
on Debian and Fedora work-alikes.
Note that it won't work on Fedora18 because they provide a library for
gmock and it's a different version from gtest.
2015-01-17 17:07:57 -08:00
Geert Janssens
128bfb6bda One more nodist_ fix in qof
The source file in the nodist definition shouldn't
be included in the normal source definition
2015-01-17 22:27:03 +01:00
John Ralls
3d9258216e Restore nodist_test_kvp_value_SOURCES inadvertently removed in 97a689a. 2015-01-17 13:19:11 -08:00
John Ralls
f20140b774 Fix __func__ workaround for Clang 3.5.
So that make check works correctly; also affects Xcode 6, as Apple
Clang 6 is based on normal Clang 3.5.
2015-01-17 13:04:46 -08:00
John Ralls
7b5ae715e6 Make string lengths equal in test print of time zone name.
Windows uses a long time zone name which over-runs the buffer in
gnc_timespec_to_iso8601_buff(). Truncate the test string so that
it compares correctly.
2015-01-16 11:43:38 -08:00
John Ralls
1d3f486751 Minor fixups for tests in Windows. 2015-01-16 11:43:37 -08:00
John Ralls
97a689a83f Consolidate gtest tests in libqof/qof/test/Makefile.am. 2015-01-16 11:41:07 -08:00
Geert Janssens
98fe336430 Fix make distcheck
- make the Google Test Suite really optional (for now)
- add some missing scm files to POTFILES.skip
- add missing c++ header files in qof
2015-01-16 20:13:19 +01:00
Markus Blatt
a3cf7f2868 [Bug 742332] - German tax report uses US tax quarters and not real quarters.
Due a copy and paste the German tax report was still using the
US quarters. This wrong as the latter are not real quarters as in
Germany. To fix this we simply set  tax-qtr-real-qtr-year to 0 to
force real quarters. Thus changes to taxtxf.scm can be easily ported
to taxtxf-de_DE.scm
2015-01-16 17:49:54 +01:00
Romas
1b227b1abc Added Lithuanian language business accounts 2015-01-16 15:51:07 +01:00
John Ralls
1348d5b92a Remove deleted file qofmath128.c from EXTRA_DIST. 2015-01-16 06:48:56 -08:00
John Ralls
afaec37037 Bug 672760 - Postponed transaction applied invalid date
Part 2: GDate can represent a wider range that GDateTime, so make
sure that GDates outside of the range are clamped. The GDateTime
range is 1 - 9999 CE, more than wide enough for most purposes. GDate
can represent out to 65535CE, but the significant difference is that
a freshly-cleared GDate is 0CE, which GDateTime won't accept. That we
set to the Unix Epoch 0, 1970-Jan-1.

gnc_sx_incr_temporal_state can invalidate the gdate, so make sure that a
valid date is stored.

Adding the inst->temporal_state ptr to the sx->deferredList is wrong, it's
freed shortly after adding, causing later access to the freed ptr.
Add a clone instead.
2015-01-13 11:26:05 -08:00
John Ralls
7963421dd2 Bug 672760 - Postponed transaction applied invalid date
Part 2: GDate can represent a wider range that GDateTime, so make
sure that GDates outside of the range are clamped. The GDateTime
range is 1 - 9999 CE, more than wide enough for most purposes. GDate
can represent out to 65535CE, but the significant difference is that
a freshly-cleared GDate is 0CE, which GDateTime won't accept. That we
set to the Unix Epoch 0, 1970-Jan-1.
2015-01-11 13:57:32 -08:00
John Ralls
609ca72553 Bug 672760 - Postponed transaction applied invalid date, causing segfault
upon opening data file.
Part 1: Prevent the crash by skipping instances with invalid dates.
2015-01-11 10:27:16 -08:00
Mike Evans
403fdd30f0 Bug 721196 - Fixed for locales where decimal point is a comma. 2015-01-11 15:47:39 +00:00
Tom Lofts
c27bea6031 - REST API Example for Python Bindings #2
Enhancements include:
- manipulation of transactions, splits, vendors and bills
- add and edit functionality customers and invoices

Author: Tom Lofts <dev@loftx.co.uk>
2015-01-05 19:13:08 -08:00
Christian Stimming
39b4034e83 Update cmake build system with recent file additions. 2015-01-04 09:34:14 +01:00
Ralf Habacker
16a8ff5332 Bug 738749 - Broken account template en_GB/uk-vat.gnucash-xea.
Fix missing parent of first level accounts by comparing to the last correct kmymoney template import.
2015-01-03 16:40:10 +00:00
John Ralls
ca75bd9a17 Change comment to reflect kvp->properties. 2015-01-02 13:12:39 -08:00
John Ralls
94fbf97f90 Clean out a couple of unused variables left over from direct KVP. 2015-01-02 13:12:08 -08:00
John Ralls
09e8e245c4 Fix a couple of string leaks. 2014-12-30 16:50:18 -08:00
Geert Janssens
ad09bcfd4a Revert "Bug 740471 - Applying payment to invoice Segmentation fault"
This reverts commit a6d7184d83.
The patch had no effect on the bug at all and needlessly clutters the code.
2014-12-29 16:30:51 +01:00
John Ralls
9b1d8d150f Merge branch 'maint' 2014-12-26 13:32:57 -08:00
John Ralls
d5ade4cbc0 Fix typo in Transaction.c.
Thanks to Christoph Holterman for catching this.
2014-12-26 13:28:22 -08:00
Geert Janssens
24dff85985 Revisit "Bug 741810 - Compilation fails because of creating .gnucash"
Use the temp dir as base dir for .gnucash
in all cases where the home dir fails. This
is more than just if the home directory doesn't exist.

Also don't attempt to create the home directory.
2014-12-24 12:50:21 +01:00