Geert Janssens
ac55c953ad
Handle the case of scrubbing a lot link between two non-document lots
2014-09-02 18:26:22 +02:00
Geert Janssens
b5fa7ee380
Tweak the get_pay_split function to prefer the best possible match
2014-09-02 18:26:22 +02:00
Geert Janssens
85b910acc3
Refactor scrub_doc_pay_link into scrub_other_link and make it more generic
...
It can now be used both to
- move a payment to a document lot (its original use case)
- move a refund to a payment lot or the other way around
2014-09-02 18:26:22 +02:00
Geert Janssens
434b7f6ebb
Add scrub function to reduce the amount of lot links used.
...
Only lot links between two or more document lots must remain.
All lot links between document and payment lots can be scrubbed.
2014-09-02 18:26:21 +02:00
Geert Janssens
413eb69707
Widen the scope of the subsplit merge scrub function
...
When used in a strict sense it will only merge splits
that are marked as subsplits of each other.
In relaxed mode it will merge any split two splits that
are both in the same lot and the same transaction.
2014-09-02 18:26:21 +02:00
Geert Janssens
da9071fe49
Move account type checking functions into the engine
2014-09-02 18:26:21 +02:00
Geert Janssens
58b5a8e1f9
Remove superfluous include statements
2014-09-02 18:26:20 +02:00
Geert Janssens
9cfc22f4f9
Small corrections in doxygen comments
2014-09-02 18:26:20 +02:00
Geert Janssens
f8a27b7140
More ENTER/LEAVE corrections at function exit points
2014-09-02 18:26:20 +02:00
John Ralls
0e7011665a
Balance ENTER with a LEAVE for all exit points.
...
For xaccLotFill and xaccLotScrubDoubleBalance, anyway.
2014-09-02 18:26:19 +02:00
Geert Janssens
87654e69f6
Bug 434462 - register color don't work correct with system theme color - Part 2
...
This commit fixes this for (business) entry ledgers.
2014-09-02 15:17:48 +02:00
Geert Janssens
ac1990fc9d
Bug 434462 - register color don't work correct with system theme color - Part 1
...
This commit fixes this for ordinary registers. Entry ledgers (business) aren't handled yet.
2014-09-02 15:17:47 +02:00
Geert Janssens
61cd3f1106
Rename enum elements to make room for foreground equivalents
2014-09-02 15:17:47 +02:00
Geert Janssens
904afd8bd5
Refactor register color functions to reduce duplication
2014-09-02 15:17:46 +02:00
Geert Janssens
0a394c5bba
Bug 711440 - Tab labels have different background colour than containing gui element
2014-09-02 15:05:26 +02:00
Mike Alexander
48c24d9936
Merge branch 'maint'
2014-09-02 00:21:24 -04:00
Mike Alexander
8d9b3c7c5d
Bug 735769: Enable price and shares cells in a split if it is not in the trans currency.
...
The label for the cells are changed to "Exch. Rate" and "Oth. Curr." in this case.
2014-09-02 00:18:10 -04:00
Mike Alexander
668aab4a2b
If the cursor moves from one register cell to another, refresh the register headers.
...
If trading accounts are on and the transaction is expanded then the headers
depend on the type of split the cursor is in.
2014-09-02 00:16:06 -04:00
Christian Stimming
8edb303143
Aqbanking transfer: Make IBAN and BIC text entry fields filter digits or alphas correctly as needed.
2014-09-01 20:58:42 +02:00
Mike Alexander
18666f1ed2
Merge branch 'maint'
2014-08-31 18:49:35 -04:00
Mike Alexander
483302aba0
Use guint64 instead of uint64_t with G_GUINT64_FORMAT to avoid warnings.
2014-08-31 18:34:24 -04:00
Mike Alexander
67f84774e9
Change gncOwnerGetBalanceInCurrency to only cosider lots that contain an invoice.
...
This function is currently only used in the owner tree code and this change
will cause payments not properly linked to invoices to be ignored when computing
owner balances.
2014-08-31 18:20:52 -04:00
Mike Alexander
a028ae0f98
Finish implementing the "Show zero balance owners" filter option.
...
It always showed nothing before.
2014-08-31 18:20:42 -04:00
Mike Alexander
95816477e4
The sense of the "Only show active customers" checkbox was inverted.
2014-08-31 18:20:26 -04:00
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