Commit Graph

16102 Commits

Author SHA1 Message Date
Christian Stimming
9e0e6e1f69 Fix aqbanking handling of transaction templates.
Also, make the unittest less verbose.
2014-09-08 21:16:25 +02:00
John Ralls
e210f8cdfb Fix bad getter for account-trans-retrieval
For timespecs we need a Timespec** to pass to qof_instance_get.
2014-09-07 16:12:50 -07:00
Christian Stimming
671551585e Add failing unittest for aqbanking lookup of trans_retrieval date.
The lookup of the "ab-trans-retrieval" property somehow fails to
return the correct value. This is somewhat surprising as this
property is already checked in the test-engine-kvp-properties.c and
there it works fine. What's the problem here...?
2014-09-07 23:03:03 +02:00
Alex Aycinena
80aa327ab2 Merge branch 'maint' 2014-09-06 16:50:58 -07:00
Alex Aycinena
9ea36d7e96 Correct txf output to use a minus sign, rather than parenthesis, for debits, without regard to locale settings, as is required by the txf pseudo-standard; was previously incorrectly using parenthesis for negatives in Windows environments, for example. 2014-09-06 16:15:34 -07:00
John Ralls
1141e9a9b8 Merge branch 'maint' 2014-09-05 12:06:16 -07:00
lmat
3363a2c572 Replace C++ reserved words for future compatibility with C++ 2014-09-05 11:56:48 -07:00
John Ralls
1df569e98c Merge branch 'maint' 2014-09-04 17:01:12 -07:00
John Ralls
29f6c08ae6 SQL: Save commodity namespace changes from template
When loading commodities erroneously made in namespace template,
gnc_commodity_table_insert changes the namespace to User. This
change wasn't being committed, requiring that it be changed every
time.

The obvious immediate commit didn't work because the SQL backend
suppresses commits during load for performance, so create a list
of changed commodities to commit later, then do so.

Thanks to Geert for noticing the problem and to Derek for suggesting
the list workaround.
2014-09-04 16:26:32 -07:00
hawk-lord
d088f4df35 Missing translation 2014-09-04 15:19:37 -07:00
hawk-lord
4612773d47 Added Swedish association accounts. 2014-09-04 15:19:32 -07:00
hawk-lord
784f38ae68 Added Swedish account files 2014-09-04 15:19:12 -07:00
John Ralls
3cc4dc00e6 Fix build on OSX, which doesn't allow linking shared modules. 2014-09-04 12:25:36 -07:00
hawk-lord
10ab13ebdc Missing translation 2014-09-04 09:40:35 -07:00
hawk-lord
84719841d2 Added Swedish association accounts. 2014-09-04 09:40:35 -07:00
hawk-lord
ab41545afe Added Swedish account files 2014-09-04 09:40:35 -07:00
Jethro Beekman
07ebd9b979 Bug 733186 - [PATCH] Extend account tree view search function 2014-09-03 22:56:54 +02:00
Geert Janssens
a90fbcb21b Bug 689489 - Be able to show file location
The file location is now visible in the status bar
while hovering over the recent file list of the File menu.
The currently open file is the top-most file in this list so its
location can be seen by hovering over it with the mouse.
2014-09-03 22:23:08 +02:00
Geert Janssens
4ecc4cb7d0 Merge branch 'maint'
* Bug 711440 - Tab labels have different background colour than containing gui element
* Bug 434462 - register color don't work correct with system theme color
* Add scrub function for (business) lots to eliminate unneeded lot links
* Rewrite invoice payment logic to use lot links only when absolutely needed
* Bug 684719 - Man pages for gnc-fq-* perl scripts
2014-09-02 22:59:41 +02:00
Frank H. Ellenberger
afa2cc4feb Bug 684719 - Man pages for gnc-fq-* perl scripts 2014-09-02 22:59:02 +02:00
Geert Janssens
6114a960a9 Add business lot scrubbing to Check & Repair->All/This transaction(s) 2014-09-02 22:45:12 +02:00
Geert Janssens
1015a43090 Make scrub in lot viewer scrub business lots using the new scrub functions. 2014-09-02 18:26:24 +02:00
Geert Janssens
9ca4649e6a Rewrite invoice payment logic to fix lot link proliferation
- most payments will behave is it did in 2.4.x
- when two or more documents are involved in the payment
  a lot link between those document lots will be created
2014-09-02 18:26:24 +02:00
Geert Janssens
afc790d3cf Refactor get_pay_split into gncOwnerFindOffsettingSplit
In this form it can be used both for scrubbing lot links and for adding new payments
2014-09-02 18:26:23 +02:00
Geert Janssens
e44bb5ffac Refactor gncOwnerReduceSplitTo out of reduce_biggest_split
It can now be used both for scrubbing and when applying payments
2014-09-02 18:26:23 +02:00
Geert Janssens
7b642081a3 Refactor gnc_doc_doc_link into gncOwnerSetLotLinkMemo and move it
It can now be used both for scrubbing and when applying payments
2014-09-02 18:26:23 +02:00
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