Commit Graph

16253 Commits

Author SHA1 Message Date
Christian Stimming
85c74fbeaa Get the Aqbanking transfer action to work again: Revert part of 7faed65401.
As discussed in
https://lists.gnucash.org/pipermail/gnucash-devel/2014-July/037868.html
as an exception the direct access to the kvp is enabled again in
import-export/aqb/gnc-ab-kvp.c because the way aqbanking transfer templates
are stored cannot be mapped directly on the properties mechanism.
With this implementation, at least the read access to the templates
works again, which means the aqbanking transfers can be used again (they
crashed immediately up until now).

However, writing a changed template to the kvp seems to not work - the
changed values seem not to be saved. This would be a bug, but not as severe
as the previous one. The unittest verifies both reading and writing,
though, and there also writing works fine. Well, this can be worked
on later.
2014-08-31 22:48:56 +02:00
Christian Stimming
1ee4210b5f Make aqbanking kvp test really working.
It now contains the part that is failing since 7faed65401 which
is disabled at the moment but can be seen by setting test-kvp:c:94 to
if (1).
2014-08-30 21:18:35 +02:00
Christian Stimming
5b653811f8 Add some initial aqbanking test with example file that should demonstrate the hbci template kvp problem.
Not yet working, though - the test, I mean.
2014-08-29 23:33:01 +02:00
Geert Janssens
c9af8269fa Bug 707243 - Hard-coded font colors in account tree? 2014-08-29 22:48:16 +02:00
Christian Stimming
0871df5628 Gtkmm wrappers: Adapt to setting qof_instance_set_dirty as private functions. 2014-08-29 21:55:32 +02:00
Christian Stimming
c37fa6f8b0 CMake: Update build system to build again. 2014-08-29 21:55:12 +02:00
Geert Janssens
b69fe381df Improve messages in account hierarchy assistant.
Inspired on a proposal by Jeff Kletsky <gnucash@allycomm.com> from 2010...
2014-08-25 17:03:20 +02:00
John Ralls
dd10aab53a Balance ENTER with a LEAVE for all exit points.
For xaccLotFill and xaccLotScrubDoubleBalance, anyway.
2014-08-22 16:30:12 -07:00
John Ralls
3f8718ea3b Divide the value by the rate to get the amount.
Avoids overflowing the amount and is anyway much more realistic:
Value = Amount * price, so a large "rate" means a small price. Since
get_random_rate() is biased to producing large rates (denom is fixed
at 100), it was effectively testing infinitesimal prices.
2014-08-22 16:30:12 -07:00
John Ralls
bad092a46d Prevent assigning capital gains splits to lots.
They're generated by lots, and when xaccSplitComputeCapGains sees one it grabs the originating lot which naturally doesn't balance.
2014-08-22 16:30:11 -07:00
Mike Alexander
1134d64a35 Merge branch 'maint' 2014-08-14 17:18:51 -04:00
Mike Alexander
5db0cb98d4 Bug 722140: Add option to control inclusion of trading accounts in cash flow report. 2014-08-14 17:17:18 -04:00
Mike Alexander
f4d2cc2863 Remove an AC_MSG_CHECKING/AC_MSG_RESULT that is redundant and confusing. 2014-08-14 17:11:49 -04:00
Mike Evans
7015cf9edf Bug 734168 - Tax invoice can be a bill too. 2014-08-12 13:15:14 +01:00
John Ralls
e25c2a34b9 POTFILES.in resulting from previous make-gnucash-potfiles changes. 2014-08-08 15:15:23 -07:00
John Ralls
063b9c57f4 Remove a bunch of no-longer-existing files from POTFILES.skip. 2014-08-08 15:14:31 -07:00
John Ralls
10cd33f9f5 Add *.cpp to the search pattern for files to translate.
Exclude the files in src/gnc and src/optional/gtkmm; they shouldn't have
any user-visible strings.
2014-08-08 13:37:38 -07:00
John Ralls
0ddd9db0a2 Use perl instead of grep to scan POTFILES.ignore and POTFILES.skip
No point in shelling out of perl to do what perl does best; besides, grep
has environment settings that can break our parsing of the result.
2014-08-08 13:31:29 -07:00
John Ralls
367b608fad Fix problem with gcc-4.9 failing to compile gfec.c.
The error, first reported in email, was that cc1 didn't recognize
the flag. Solution is to make it a CPPFLAG so that cc1 doesn't see it.
2014-08-07 13:28:10 -07:00
John Ralls
d20dcb4648 Merge branch 'guidcpp'
Incorporate Aaron Laws's reimplementation of gncguid with boost::guid.
2014-08-07 13:09:57 -07:00
John Ralls
959251265a Add gnc-date.cpp to POTFILES.in
Because make check complained. Dunno what changed...
2014-08-07 13:09:34 -07:00
John Ralls
4e7e52a311 Merge branch 'maint' 2014-08-07 11:47:27 -07:00
John Ralls
e4d97f6d74 Fix test-backend-dbi segfault with libdbi-0.9.0.
dbi_inst must be initialized before it can be used.
2014-08-07 11:46:17 -07:00
John Ralls
551e5c6093 Fix uninitialized variable warning. 2014-08-07 11:45:40 -07:00
John Ralls
c286448fdb Add note about automake 1.14 to configure.ac
The note has the details, but I wasn't able to get gnucash to build with
automake 1.14 without passing --disable-dependency-tracking regardless of
whether I used the subdir-objects option. If I could figure out a good way
to poison configure with automake 1.14 I would.
2014-08-07 11:44:47 -07:00
John Ralls
46455c7518 Revert "Fix broken test-backend-dbi with libdbi 0.9."
This reverts commit 321a159af2.
Got two unrelated changes into a single changeset.
2014-08-07 10:23:50 -07:00
John Ralls
321a159af2 Fix broken test-backend-dbi with libdbi 0.9.
Segfaulted for an uninitialized dbi_instance.
2014-08-07 10:12:52 -07:00
Mike Evans
b465fef9ac Bug 734183 - Set all of the denominators correctly on the currency values. 2014-08-07 16:00:38 +01:00
Mike Evans
56af86c0a2 Bill invoice importer crashing when invoice has multiple lines.
Move the final g_free(s) outside the while loop.
2014-08-07 15:39:59 +01:00
Geert Janssens
d5fa5486f4 Merge branch 'maint'
- Revert "Bug #622778 Miscalculation in cashflow reports" and follow-up patches
- Updated Swedish translation
2014-08-06 23:23:33 +02:00
John Ralls
163acb863d Two minor tweaks to pass make check. 2014-08-04 15:06:02 -07:00
John Ralls
1e5b14b54f Merge branch 'guidcpp' of https://github.com/limitedAtonement/gnucash
into guidcpp
2014-08-04 14:35:23 -07:00
John Ralls
28e1d1a8c2 Add gnc-date.cpp to POTFILES.in
Because make check complained. Dunno what changed...
2014-08-04 14:18:39 -07:00
John Ralls
c146e21043 Replace built-in md5 hashing with GChecksum
Prepare for removing it when we replace the GncGUID implementation with Boost.
2014-08-04 14:09:22 -07:00
Michalis Kamprianis
edad186789 Bug 120199 - Incorrect sort order in "Sort by Statement Date"
modified:   src/gnome/gtkbuilder/gnc-plugin-page-register.glade
2014-08-02 11:24:06 +02:00
lmat
9711ae2446 Added new tests.
Added tests for string_to_guid and guid_replace.
2014-08-01 10:23:30 -04:00
Geert Janssens
11698f4824 Revert "Bug #622778 Miscalculation in cashflow reports - Step 01"
This reverts commit 77340591a9.
See bug 622778 and bug 722140 for more details.
2014-08-01 11:59:12 +02:00
Geert Janssens
66dd0cc7c8 Revert "Bug #622778 Miscalculation in cashflow reports - Step 02"
This reverts commit 8a95c0f0b7.
See bug 622778 and bug 722140 for more details.
2014-08-01 11:58:51 +02:00
Geert Janssens
f086c18714 Revert "Bug #622778 Miscalculation in cashflow reports - Step 03"
This reverts commit 77ff603655.
See bug 622778 and bug 722140 for more details.
2014-08-01 11:38:03 +02:00
Geert Janssens
f0abc2c014 Revert "Round properly when computing fraction of the transaction's value due to a given split."
This reverts commit d339141394.
See bug 622778 and bug 722140 for more details.
2014-08-01 11:37:20 +02:00
Geert Janssens
f34c4e0f2f Revert "The cash flow report should ignore splits in trading accounts."
This reverts commit 15e9bde7c3.
See bug 622778 and 722140 for more details.
2014-08-01 11:35:47 +02:00
Erik Johansson
13ef7eec6e Update Swedish translation
Copied from the Translation Project
2014-08-01 10:36:29 +02:00
lmat
726ab02d65 Simplified some of the GUID code.
This change applies some recommendations from jralls. It better utilizes for loops,
and usage of swap. We also try to make sure the null guid is not freed since it's
reused, and catch a c++ exception to make sure it doens't escape into C code when
parsing a GUID.
2014-07-28 17:03:07 -04:00
lmat
ce94872ec8 Cleaned up some code and comments.
There should be no impacting changes in this commit.
2014-07-28 16:52:22 -04:00
lmat
cbc292cc91 Removed the md5 file and updated the build system.
We no longer need md5.h or md5.c because all that work is done in the boost
uuid implementation.
2014-07-28 11:15:28 -04:00
John Ralls
2f189c38e9 Fix a couple of minor issues noticed by Robert Frewell. 2014-07-27 17:11:34 +01:00
lmat
f40a93c6e1 Remove guid_init and guid_shutdown
They no longer do anything, and it's not probable that they ever will.
2014-07-25 17:38:33 -04:00
lmat
30fac05e35 Corrected uses of guid_to_string.
Previously, guid_to_string had been marked deprecated with a note about
it not being thread-safe. It was much worse than "not thread safe", it
was only safe in a particular situation, and its safety was being violated
throughout the code. It was clear that users of guid_to_string did not
understand what it was purporting to do because of its varied uses. Most
uses simply treated it like a Garbage-Collected Java String (use and forget).
I actually found at least one instance where the string was being freed. (!!!)

I made the method have a particular easy-to-understand semantic: it returns
a pointer to a string which must be freed by the caller. I then tried to
track down all uses of this function and correct them. Mostly, I just changed
the usage to guid_to_string_buff with a stack-allocated string to avoid the
the malloc/free cycle.
2014-07-25 17:30:55 -04:00
lmat
2a408ab9ef Cleared up GUID construction and allocation
To allocate a GUID, use guid_malloc. To allocate and construct a guid
(which is actually unique), use guid_new (and be sure to free it using
guid_free).
2014-07-25 14:14:09 -04:00
lmat
9c82a1e9bc Rename guid_new to guid_replace
`new` implies some allocation. Since guid_new was actually constructing
a guid in place rather than allocating it, it makes much more sense to
call it guid_replace (or guid_construct). We went with guid_replace.
2014-07-25 08:26:54 -04:00