Commit Graph

20414 Commits

Author SHA1 Message Date
Christopher Lam
952ac9c7f4 [category-barchart] compact functions 2018-10-29 09:03:43 +08:00
Christopher Lam
f27ea2d4bc [category-barchart] *reindent/untabify/delete-trailing-whitespace* 2018-10-29 09:03:43 +08:00
Christopher Lam
6c59cd15cd [category-barchart] Deoptimize category-barchart
This aims to partially undo commit 8aed5c3f66, and removes dependency
unto collectors and report-collectors.
2018-10-29 09:03:43 +08:00
Christopher Lam
c13f076a33 [report-utilities] modify gnc-account-get-balances-at-dates
instead of returning a list of numbers e.g. (list 200 400 600), return
a list of gnc-monetary objects (list $200 $400 $600) to be more
meaningful.
2018-10-29 09:03:43 +08:00
Christopher Lam
1444a58c0e [report-utilities] upgrade (gnc:account-get-balances-at-dates)
(gnc:account-get-balances-at-dates) is upgraded to
report-utilities. this function is slightly different to its
single-account counterpart because it does not retrieve subaccount
amounts.
2018-10-29 09:03:43 +08:00
Christopher Lam
c94db1ac34 [report-utilities] deprecate flawed function.
I think this (gnc:account-get-balance-at-date) is flawed in sub-acct handling.
Consider account structure:
Assets [USD] - bal=$0
   Bank [USD] - bal=$100
   Broker [USD] - bal=$200
      Cash [USD] - bal=$800
      Funds [FUND] - bal=3 FUND @ $1000 each = $3000
- Calling (gnc:account-get-balance-at-date BANK TODAY #f) returns 100
- Calling (gnc:account-get-balance-at-date BROKER TODAY #f) returns 200
- Calling (gnc:account-get-balance-at-date BROKER TODAY #t) returns 1000
  this is because although it counts all subaccounts bal $200 + $800 + 3FUND,
  it retrieves the parent account commodity USD $1000 only.
It needs to be deprecated.
2018-10-29 09:03:25 +08:00
John Ralls
ab1070ebca Adjust no-register CXXFlag.
To account for different flag on some versions of Clang.
2018-10-28 13:23:38 -07:00
Christopher Lam
b59e209618 [test-extras] gnc-pricedb-create skips if commodity = currency 2018-10-28 09:09:03 +08:00
Christopher Lam
d0bbb5a2a8 [report-utilities] deprecate gnc:account-get-balance-at-date.
I think (gnc:account-get-balance-at-date) is flawed. It is actually
unused, so, it should be safe to remove. It needs to be deprecated.
Reports use xaccAccountGetBalanceAsOfDate instead, which does not
retrieve sub-acct balances.

I think this (gnc:account-get-balance-at-date) is flawed in sub-acct handling.
Consider account structure:
Assets [USD] - bal=$0
   Bank [USD] - bal=$100
   Broker [USD] - bal=$200
      Cash [USD] - bal=$800
      Funds [FUND] - bal=3 FUND @ $1000 each = $3000

- Calling (gnc:account-get-balance-at-date BANK TODAY #f) returns 100
- Calling (gnc:account-get-balance-at-date BROKER TODAY #f) returns 200
- Calling (gnc:account-get-balance-at-date BROKER TODAY #t) returns 1000
  this is because although it counts all subaccounts bal $200 + $800 + 3FUND,
  it retrieves the parent account commodity USD $1000 only.
2018-10-28 09:09:03 +08:00
Christopher Lam
0fc84ddbcb Bug 796914 - Customer Summary is giving error
Bugfix. div/0 was not producing an error previously. This is probably
caused by changes to gnc_numeric_div.
2018-10-28 09:09:03 +08:00
Christopher Lam
a603ea3380 [invoice] bugfix img url must have file:/// prefix 2018-10-28 09:09:03 +08:00
Christopher Lam
a832600182 [test-transaction] test for display/enable links? feature 2018-10-28 09:09:03 +08:00
Christopher Lam
f1e8de6886 [transaction] add option Display/Enable links to toggle hyperlinks
This option is often requested.
2018-10-28 09:09:03 +08:00
yo
3d9628746e French translation update 2018-10-26 17:18:22 +02:00
yo
541e5ff117 French translation update 2018-10-25 14:05:51 +02:00
Frank H. Ellenberger
dddc278851 Bug 775580 - Inaccurate information provided for "Common Accounts" ...
when using "New Account Hierarchy Setup"

Suggestion by Dr. David Kirkby
applied to all english and german common templates
2018-10-23 00:00:32 +02:00
John Ralls
45097001aa Uncomment the deb-src urls in /etc/apt/sources.list in the Ubuntu docker. 2018-10-19 10:58:29 -07:00
John Ralls
15cd3596a9 Fix docker command from previous. 2018-10-19 10:29:57 -07:00
John Ralls
24cf5a206b Cat the ubuntu sources.list to see why apt-get is failing. 2018-10-19 09:52:54 -07:00
Frank H. Ellenberger
b80e5d04c6 Fix translation of button labels
reported as section 2 of
https://lists.gnucash.org/pipermail/gnucash-de/2018-October/010480.html
2018-10-18 22:52:03 +02:00
U-IXION\christoph
fe99b0a702 Fix syntax error 2018-10-17 19:27:03 +02:00
U-IXION\christoph
218f16c6ef Doing some german translations 2018-10-17 19:04:38 +02:00
Frank H. Ellenberger
544fd31c48 Reverse author list of de.po and use it in translator_credits 2018-10-17 10:01:33 +02:00
Frank H. Ellenberger
93981f2758 msgmerge de.po to version 3.3 2018-10-17 08:19:24 +02:00
Frank H. Ellenberger
295f8e38d8 Update LINGUAS explanation to the last version we had in autotools 2018-10-17 07:33:38 +02:00
John Ralls
d9ed847595 Merge Christoph Holterman's 'PR-python2to3fixes' into maint. 2018-10-16 09:37:25 -07:00
John Ralls
9f5c60deaa Merge Christ Lam's 'maint-commodity-utils-cache-splits' into maint. 2018-10-16 09:26:31 -07:00
John Ralls
1244ebb396 Merge branch Chris Lam's 'maint-net-charts' into maint. 2018-10-16 09:15:12 -07:00
John Ralls
08e28bfc81 Merge Di Mang's Double-semicolon fix into maint. 2018-10-16 08:57:31 -07:00
Frank H. Ellenberger
e374da8a6c Remove unset color slot from wohnungsw 2018-10-16 01:50:46 +02:00
Christoph Franzen
bba63c079f Bug 795237 - Update of "wohnungsw" template
Diese Version von 2012 berücksichtigt die BGB-Änderungen von 2010 und
das Bilanzrechtsmodernisierungsgesetz.
2018-10-15 18:48:16 +02:00
Geert Janssens
981caf3fa0 Reword the language section in environment once more 2018-10-15 10:21:14 +02:00
Geert Janssens
0b7c9826bc Refer to Locale Settings wiki to change language 2018-10-15 10:15:40 +02:00
Christopher Lam
f214467670 [commodity-utilities] create internal fn to bypass expensive call
This commit creates an internal
function (gnc:get-commodity-totalavg-prices-internal) which bypasses
a call to (gnc:get-match-commodity-splits-sorted) which creates a
query for the price-commodity.
2018-10-15 10:37:12 +08:00
Geert Janssens
24c6b3b43c Slightly reword language instructions
Hopefully this is even less ambiguous.
2018-10-15 00:39:58 +02:00
Christopher Lam
0c02db729e [commodity-utilities] compact functions
and convert (gnc-numeric-*) to scheme number functions
2018-10-12 17:02:29 +08:00
Christopher Lam
4d22890d16 [commodity-utilities] optimize weighted-average price calculator
(get-commoditylist-totalavg-prices) will generate a whole-book
splitlist. This is then filtered to 'interesting' splits only, and
sorted by posted date.

This sorted, filtered list is then filtered to each commodity, and
passed down as argument to (gnc:get-commodity-totalavg-prices) to be
used immediately, rather than calling the expensive function
(gnc:get-match-commodity-splits-sorted) which eventually creates a
query for each commodity.
2018-10-12 17:02:29 +08:00
Frank H. Ellenberger
e23ce385e1 Remove unset color slot from SKR49
See Bug 796887
2018-10-11 10:10:34 +02:00
Christoph Franzen
116ea7a46d Bug 795425 - Version 2018 of german account template SKR49 ...
Datev-Kontenrahmen SKR49 für Vereine, Stiftungen und gemeinnützige GmbHs
2018-10-11 10:10:34 +02:00
Pedro Albuquerque
a777666c2e updated pt.po
5238 translated messages, 1 untranslated message.
2018-10-11 08:58:58 +02:00
Frank H. Ellenberger
c713540def Merge recent changes in pt.po
5082 translated messages, 114 fuzzy translations, 43 untranslated
messages.
2018-10-11 02:03:13 +02:00
Pedro Albuquerque
17ff6aa0a3 updated po/glossary/pt.po 2018-10-09 09:49:08 +01:00
Pedro Albuquerque
b1e96f5e40 Updated pt.po 2018-10-09 09:08:50 +01:00
Christopher Lam
23d2ed708e [net-charts] remove doubles. send pure numbers to charts. 2018-10-09 08:53:00 +08:00
Christopher Lam
b1f03ecd9e [net-charts] rename variables to mathematical terms
This report seems to have evolved from a pure asset-liability
chart. It handles income-expense too, so rename to minuend-subtrahend
to be generic.

Also report percentages done.
2018-10-09 08:53:00 +08:00
Christopher Lam
3f2a9022bf [net-charts] simplify date-list variables
dates-list is now a list of time64 for both inc-exp and net-worth
therefore we can combine the strings.
2018-10-09 08:53:00 +08:00
Christopher Lam
a86d17e77d [net-charts] modify process-datelist to cycle balancelist once
This will deconstruct process-datelist to not call the utility
(gnc:accounts-get-comm-total-*) functions which are still slow,
because they will cycle through the balancelist for each account. In a
large enough report, the balance list may be thousands of entries
long, and we don't want to cycle through them every time.

This commit will loop all so that the balances are cycled once only.
2018-10-09 08:53:00 +08:00
Christopher Lam
ab97eed979 [net-charts] modify process-datelist to use account-balances
This will retrieve the cached balances in account-balances, rather
than calling (gnc:account-get-comm-balance-interval)
or (gnc:account-get-comm-balance-at-date) which are very expensive
because they will call xaccAccountGetBalanceAsOfDate which will scan
the account splitlist every time.
2018-10-09 08:53:00 +08:00
Christopher Lam
cacb15c3f3 [net-charts] create account->balancelist
This function will scan the splitlist for account, and build a list of
balances at the dates specified in the dates-list variable.
2018-10-09 08:53:00 +08:00
Christopher Lam
53cab269f4 [test-charts] add basic test for net-charts amounts & dates
This is similar to test-standard-net-linechart but designed to test
date boundaries. Creates book with following entries in bank accounts,
and calculates amounts at each date boundary.

             Bank1 Bank2 Bank3

    05/05/69               $25

01/01/1970

    05/01/70               $25
    12/01/70   $10
    18/01/70   $15   $50

01/02/1970

    18/02/70         $50

01/03/1970

    03/03/70  $200

01/04/1970

15/04/1970
2018-10-09 08:53:00 +08:00