Christopher Lam
c38740fcd9
[report-utilities] more dump data functions
...
Two API to dump splits in whole book:
* gnc:dump-book - splits grouped by account
* gnc:dump-all-transactions - splits grouped by transaction
* gnc:dump-split - dumps single split
Example output -- note (gnc:dump-book) dumps each account followed by
its splits, then account balance. (gnc:dump-all-transactions) dumps all
transactions in date order, each followed by its splits.
(gnc:dump-book)
Account 8e56ef54: <Expense> Comm<USD> Type<Expense>
n Split 5dd1c0a9: 05/11/19 Amt<$200.00> $200.00 Desc<vend1> Memo<AP>
n Split f9cb052f: 05/11/19 Amt<$20.00> $20.00 Desc<emp1> Memo<vouch1>
n Split daafc64b: 05/11/19 Amt<$69.00> $69.00 Desc<vend1> Memo<job-bill>
n Split 5e6af9fe: 14/11/19 Amt<$86.00> $86.00 Desc<emp1> Memo<emp-voucher>
n Split 6d636ea2: 14/11/19 Amt<$46.00> $46.00 Desc<vend1>
n Split e618644b: 14/12/19 Amt<-$100.00> -$100.00 Desc<Vend-USD>
n Split 8be19fbd: 25/12/19 Amt<-$46.00> -$46.00 Desc<Vend-USD> Memo<CN$100-desc>
n Split ee4fe250: 01/04/20 Amt<$32.00> $32.00 Desc<Cell phone>
n Split 2cb02dac: 09/05/20 Amt<-$307.00> -$307.00
Balance: $0.00 Cleared: $0.00 Reconciled: $0.00
Account 6f39f557: <Closing> Comm<USD> Type<Equity>
n Split 13916652: 09/05/20 Amt<$307.00> $307.00
Balance: $307.00 Cleared: $0.00 Reconciled: $0.00
Account fa6507e1: <Closing:GBP> Comm<GBP> Type<Equity>
n Split 34ce3c03: 09/05/20 Amt<-£1,293.00> -£1,293.00
Balance: -£1,293.00 Cleared: £0.00 Reconciled: £0.00
(gnc:dump-all-transactions)
Trans cfbbc2a4: 12/07/19 Curr GBP Desc<Customer-GBP>
n Split d12f74b2: 12/07/19 Acc<AR-GBP> Amt<£120.00> £120.00 Desc<Customer-GBP> Memo<due 91+>
n Split 3880e99c: 12/07/19 Acc<Standard Sales> Amt<-£20.00> -£20.00 Desc<Customer-GBP> Memo<due 91+>
n Split 6bd9c7e4: 12/07/19 Acc<Income-GBP> Amt<-£100.00> -£100.00 Desc<Customer-GBP> Memo<due 91+>
Trans 60344bab: 09/10/19 Curr GBP Desc<Customer-GBP>
n Split aaca8ee0: 09/10/19 Acc<AR-GBP> Amt<£225.00> £225.00 Desc<Customer-GBP> Memo<due 2-3 months ago>
n Split ee49bde8: 09/10/19 Acc<Standard Sales> Amt<-£20.00> -£20.00 Desc<Customer-GBP> Memo<due 2-3 months ago>
n Split e989e863: 09/10/19 Acc<Reduced Sales> Amt<-£5.00> -£5.00 Desc<Customer-GBP> Memo<due 2-3 months ago>
n Split 91d6cadd: 09/10/19 Acc<Income-GBP> Amt<-£200.00> -£200.00 Desc<Customer-GBP> Memo<due 2-3 months ago
2021-04-30 08:54:46 +08:00
John Ralls
705db5aa0b
Merge Hong Xu's 'from-to-price' into maint.
2021-04-29 16:10:30 -07:00
John Ralls
b8e22b3655
Fix archlinux dockerfile for github actions CI
2021-04-29 16:06:27 -07:00
Hong Xu
888676eb31
from_price and to_price may be uninitialized in extract_comon_prices
...
Fix the compilation error on gcc 10:
gnucash/libgnucash/engine/gnc-pricedb.c: In function âextract_common_pricesâ:
gnucash/libgnucash/engine/gnc-pricedb.c:2469:40: error:
to_price may be used uninitialized in this function [-Werror=maybe-uninitialized]
2469 | if (from_price == NULL || to_price == NULL)
| ^
gnucash/libgnucash/engine/gnc-pricedb.c:2469:20:
error: âfrom_priceâ may be used uninitialized in this
function [-Werror=maybe-uninitialized]
2469 | if (from_price == NULL || to_price == NULL)
| ^
2021-04-29 14:51:07 -07:00
Christopher Lam
37afd65f26
[income-gst-statement] amend headers post Brexit
...
UK left EU, therefore VAT headers have now changed.
2021-04-29 07:17:20 +08:00
John Ralls
d60d5c30d2
Bug 798177 - Price of new stock transactions not saved in price database
...
Add call to xaccTransRecordPrice after every call to xaccTransCommitEdit
in gnc_split_register_save.
2021-04-26 12:13:53 -07:00
John Ralls
6bb4faac58
Bug 795804 - Extremely slow save
...
Only update the status bar when the percentage changes by at least 1%
because running the mainloop is expensive on macOS and Microsoft
Windows. This speeds up all operations that run the progress bar with
overly-fine resolution.
2021-04-26 12:13:53 -07:00
Giuseppe Foti
2392bc2442
Translation update by Giuseppe Foti <foti.giuseppe@gmail.com> using Weblate
...
po/it.po: 99.7% (5466 of 5479 strings; 10 fuzzy)
5 failing checks (0.1%)
Translation: GnuCash/Program (Italian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/it/
Co-authored-by: Giuseppe Foti <foti.giuseppe@gmail.com>
2021-04-26 10:32:03 +02:00
Frank H. Ellenberger
42a41c792d
I18N: Another improvement of price source list
2021-04-26 03:57:13 +02:00
Guille Lopez
58abf252a3
Translation update by Guille Lopez <willelopz@gmail.com> using Weblate
...
po/es.po: 94.7% (5193 of 5479 strings; 242 fuzzy)
83 failing checks (1.5%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/
Co-authored-by: Guille Lopez <willelopz@gmail.com>
2021-04-26 01:16:43 +02:00
Christopher Lam
ae7eb9b3ad
[gnc-pricedb] extract common code into get_nearest_price
...
Extracts common code in:
* gnc_pricedb_get_nearest_before_price
* gnc_pricedb_get_nearest_price
* gnc_pricedb_get_latest_price
2021-04-26 07:16:25 +08:00
Christopher Lam
a2f5223148
[gnc-pricedb] use g_list_find and plug memory leak
...
found_coms was not being freed.
2021-04-26 07:16:25 +08:00
Christopher Lam
a37060c95d
ignore .vscode folder
2021-04-26 07:16:25 +08:00
Frank H. Ellenberger
973a0bb708
Reorder and relabel price source list for better coherence
2021-04-25 22:08:34 +02:00
TianXing_Yi
b168de77af
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
...
po/zh_CN.po: 58.4% (3200 of 5479 strings; 1579 fuzzy)
627 failing checks (11.4%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/zh_CN.po: 58.3% (3196 of 5479 strings; 1582 fuzzy)
627 failing checks (11.4%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: TianXing_Yi <duguqiubailee@gmail.com>
2021-04-25 21:06:05 +02:00
Frank H. Ellenberger
a4fd8e8b3b
I18N: Unify period labels; quote terms in a tooltip
2021-04-25 20:44:32 +02:00
Milo Ivir
1b57c297af
Translation update by Milo Ivir <mail@milotype.de> using Weblate
...
po/hr.po: 99.9% (5478 of 5479 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hr/
Co-authored-by: Milo Ivir <mail@milotype.de>
2021-04-25 00:59:34 +02:00
TianXing_Yi
6103723d69
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
...
po/zh_CN.po: 58.1% (3186 of 5479 strings; 1589 fuzzy)
629 failing checks (11.4%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/zh_CN.po: 57.9% (3177 of 5479 strings; 1595 fuzzy)
631 failing checks (11.5%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: TianXing_Yi <duguqiubailee@gmail.com>
2021-04-25 00:59:34 +02:00
Anonymous
46582a66a4
Translation update by Anonymous <noreply@weblate.org> using Weblate
...
po/glossary/fr.po: 100.0% (209 of 209 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/fr/
Co-authored-by: Anonymous <noreply@weblate.org>
2021-04-25 00:59:34 +02:00
Thomas Jungers
2e78ffdc8b
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
...
po/glossary/fr.po: 100.0% (209 of 209 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/fr/
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
po/fr.po: 74.7% (4096 of 5479 strings; 982 fuzzy)
484 failing checks (8.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
po/fr.po: 73.8% (4046 of 5479 strings; 985 fuzzy)
485 failing checks (8.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Thomas Jungers <thomasjungers@gmail.com>
2021-04-25 00:59:34 +02:00
Christopher Lam
be1c67e593
Translation update by Christopher Lam <christopher.lck@gmail.com> using Weblate
...
po/fr.po: 73.8% (4046 of 5479 strings; 985 fuzzy)
485 failing checks (8.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Christopher Lam <christopher.lck@gmail.com>
2021-04-25 00:59:33 +02:00
Thomas Jungers
9ec6e58c86
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
...
po/fr.po: 73.8% (4046 of 5479 strings; 985 fuzzy)
485 failing checks (8.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Thomas Jungers <thomasjungers@gmail.com>
2021-04-25 00:59:33 +02:00
Christopher Lam
92521c8623
Translation update by Christopher Lam <christopher.lck@gmail.com> using Weblate
...
po/fr.po: 73.8% (4046 of 5479 strings; 985 fuzzy)
485 failing checks (8.8%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Christopher Lam <christopher.lck@gmail.com>
2021-04-25 00:59:33 +02:00
John Ralls
ed486a58a4
Fix duplicate trading accounts.
...
In many cases GnuCash would create a new trading account hierarchy
when one already existed because gnc_account_lookup_by_type_and_commodity
didn't check the account presented and didn't recurse down the
account hierarchy correctly.
2021-04-24 15:51:32 -07:00
John Ralls
2258e7a44e
xaccAccountTypes was backwards
...
vs. the documentation. The unit tests and dialog-account were similarly
backwards, but the use in gnucash/import-export/ofx followed the docs.
2021-04-24 15:51:32 -07:00
Christopher Lam
2e7fcad833
[balsheet-pnl] simplify code
...
inline single-use functions
2021-04-24 11:23:53 +08:00
Christopher Lam
66f228440b
Remove more multichoice tooltips missed in #917
2021-04-24 11:23:53 +08:00
TianXing_Yi
92dac8284c
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
...
po/zh_CN.po: 57.6% (3156 of 5479 strings; 1605 fuzzy)
635 failing checks (11.5%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/zh_CN.po: 57.5% (3155 of 5479 strings; 1606 fuzzy)
635 failing checks (11.5%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/glossary/zh_CN.po: 100.0% (214 of 214 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/zh_Hans/
Co-authored-by: TianXing_Yi <duguqiubailee@gmail.com>
2021-04-23 21:32:06 +02:00
Sean Guan
d547c3a53e
Translation update by Sean Guan <guanshangkang@gmail.com> using Weblate
...
po/zh_CN.po: 57.2% (3134 of 5479 strings; 1625 fuzzy)
635 failing checks (11.5%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: Sean Guan <guanshangkang@gmail.com>
2021-04-23 21:32:05 +02:00
Thomas Jungers
09d176cebf
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
...
po/fr.po: 70.5% (3868 of 5479 strings; 1130 fuzzy)
687 failing checks (12.5%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
po/glossary/fr.po: 100.0% (208 of 208 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/fr/
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
po/fr.po: 70.1% (3845 of 5479 strings; 1151 fuzzy)
694 failing checks (12.6%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Thomas Jungers <thomasjungers@gmail.com>
2021-04-23 21:32:05 +02:00
Christopher Lam
2ba930713a
Add new price source - 'nearest before report date'
...
Add new price source - 'nearest before report date' will ignore
prices *after* report date. Will be useful to fix bug 743753.
2021-04-23 21:47:28 +08:00
Christopher Lam
5957b3c256
Add scheme backward compatibility functions renamed in #979
2021-04-23 21:20:42 +08:00
John Ralls
49102c7ac2
Python Bindings: Provide a deprecated GncPriceDB.lookup_latest_before_t64.
...
To avoid breaking user scripts.
2021-04-23 11:56:15 +01:00
Robert Fewell
87285f945e
Update gnucash_core.py with gnc-pricedb function name change
2021-04-23 11:56:15 +01:00
Robert Fewell
e535ba5411
Change some functions to use const gnc_commodity for gnc_pricedb
2021-04-23 11:56:15 +01:00
Robert Fewell
e75308e684
Rename a couple of gnc-pricedb functions that have not been used.
...
To be more consistent change gnc_pricedb_lookup_latest_before_t64 and
gnc_pricedb_lookup_latest_before_any_currency_t64 to be of the form
'_nearest_before_' and add a missing utest.
2021-04-23 11:56:15 +01:00
Robert Fewell
d3bd7fda61
Add unit tests for new gnc-pricedb functions
2021-04-23 11:56:15 +01:00
Robert Fewell
4a491f7cde
Change a couple of docbook definitions in gnc-pricdb.h
2021-04-23 11:56:15 +01:00
Robert Fewell
05507008c5
Add retrieval functions for price before the date given
...
Add a new function, gnc_pricedb_convert_balance_nearest_before_price_t64
that retrieves the balance using the last price dated before a
specified date like today for the preset value. This uses another new
function gnc_pricedb_get_nearest_before_price to do the retrieval.
2021-04-23 11:56:15 +01:00
Robert Fewell
b54c30e03d
Bug 798148 - Chart of Accounts page Present(xxx) value wrong
...
If for some reason you have price information in the future for a
security, the present value is based on the price retrieved for the
greatest date and not a price which is before the current date.
To fix this use the 'xaccAccountGetBalanceAsOfDateInCurrencyRecursive'
function.
2021-04-23 11:56:15 +01:00
Thomas Jungers
ab80a0c495
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
...
po/fr.po: 69.8% (3825 of 5479 strings; 1170 fuzzy)
700 failing checks (12.7%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Thomas Jungers <thomasjungers@gmail.com>
2021-04-22 11:32:02 +02:00
TwoEightNine
3974584b59
Translation update by TwoEightNine <twoeightnine@list.ru> using Weblate
...
po/glossary/ru.po: 73.0% (152 of 208 strings; 28 fuzzy)
1 failing checks (0.4%)
Translation: GnuCash/Glossary (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ru/
Co-authored-by: TwoEightNine <twoeightnine@list.ru>
2021-04-22 01:21:35 +02:00
Frank H. Ellenberger
8429fd6e7a
I18N: Minor enhancements on translator comments
2021-04-22 01:16:36 +02:00
Frank H. Ellenberger
77ddb525d2
L10N:ca: update to last msgmerge
2021-04-22 01:15:45 +02:00
Frank H. Ellenberger
5966bae42b
L10N:ca: Update from TP
2021-04-21 18:40:56 +02:00
TianXing_Yi
d822a0a082
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
...
po/zh_CN.po: 56.7% (3110 of 5479 strings; 1641 fuzzy)
651 failing checks (11.8%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/zh_CN.po: 56.6% (3104 of 5479 strings; 1646 fuzzy)
654 failing checks (11.9%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/glossary/zh_CN.po: 100.0% (214 of 214 strings; 0 fuzzy)
1 failing checks (0.4%)
Translation: GnuCash/Glossary (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/zh_Hans/
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
po/zh_CN.po: 56.6% (3104 of 5479 strings; 1646 fuzzy)
654 failing checks (11.9%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: TianXing_Yi <duguqiubailee@gmail.com>
2021-04-20 20:05:04 +02:00
Boyuan Yang
76919207b3
Translation update by Boyuan Yang <073plan@gmail.com> using Weblate
...
po/zh_CN.po: 56.6% (3104 of 5479 strings; 1646 fuzzy)
654 failing checks (11.9%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: Boyuan Yang <073plan@gmail.com>
2021-04-20 20:05:04 +02:00
TianXing_Yi
4f0b28351b
Translation update by TianXing_Yi <duguqiubailee@gmail.com> using Weblate
...
po/zh_CN.po: 56.5% (3099 of 5479 strings; 1647 fuzzy)
654 failing checks (11.9%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/
Co-authored-by: TianXing_Yi <duguqiubailee@gmail.com>
2021-04-20 20:05:04 +02:00
Avi Markovitz
cc5dbba194
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
...
po/he.po: 100.0% (5479 of 5479 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/
Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2021-04-20 20:05:04 +02:00
Thomas Jungers
740cc85afa
Translation update by Thomas Jungers <thomasjungers@gmail.com> using Weblate
...
po/fr.po: 69.8% (3825 of 5479 strings; 1170 fuzzy)
700 failing checks (12.7%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/
Co-authored-by: Thomas Jungers <thomasjungers@gmail.com>
2021-04-20 20:05:04 +02:00