Commit Graph

25853 Commits

Author SHA1 Message Date
이정희
74f7698570
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 65.4% (3537 of 5401 strings; 944 fuzzy)
241 failing checks (4.4%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 65.3% (3528 of 5401 strings; 949 fuzzy)
242 failing checks (4.4%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Co-authored-by: 이정희 <daemul72@gmail.com>
2022-10-23 10:24:28 +02:00
Christopher Lam
b778152eba [gnc-plugin-page-sx-list] don't disable Edit/Delete at startup
At startup, if there are SX in the editor, the previous block disables
Edit & Delete actions, yet in the next block, the call to
gtk_tree_selection_select_path will select a SX which cannot be edited
nor deleted unless the user selects it again.

This commit skips disabling Edit & Delete actions, and calls
gppsl_selection_changed_cb which enables Edit & Delete sensitivity if
there is a SX selected.
2022-10-23 16:23:06 +08:00
Christopher Lam
704946d517 [test-ifrs-cost-basis] amend tests to accommodate extra column
from last commit 2afd979237
2022-10-23 11:05:49 +08:00
Christopher Lam
2afd979237 [ifrs-cost-basis] compare register vs calculated capgain per transaction
ifrs-cost-basis report calculate the ACB per stock transaction. It
will compare the register vs calculated acb and report any
variance.
2022-10-23 08:38:25 +08:00
John Ralls
70958279b2 Accomodate WebKit package version update to webkit2gtk-4.1. 2022-10-18 15:34:57 -07:00
Christopher Lam
9a141a8c76 xxxgtk_textview_get_text returns a char* which must be freed, redux
xxxgtk_textview_get_text may return "" whose strlen is zero, and the
previous code would fail to free it. reword this code to ensure it is
freed appropriately.
2022-10-18 21:43:59 +08:00
Milo Ivir
8f1794cb28
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/glossary/hr.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Croatian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hr/

Co-authored-by: Milo Ivir <mail@milotype.de>
2022-10-18 05:12:45 +02:00
Abdul Quddos (AQN)
e93f985f17
Translation update by Abdul Quddos (AQN) <yousufi81@gmail.com> using Weblate
po/ur.po: 71.5% (3866 of 5401 strings; 1035 fuzzy)
1103 failing checks (20.4%)
Translation: GnuCash/Program (Urdu)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ur/

Translation update  by Abdul Quddos (AQN) <yousufi81@gmail.com> using Weblate

po/ur.po: 71.3% (3854 of 5401 strings; 1036 fuzzy)
1105 failing checks (20.4%)
Translation: GnuCash/Program (Urdu)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ur/

Co-authored-by: Abdul Quddos (AQN) <yousufi81@gmail.com>
2022-10-18 05:12:45 +02:00
Christopher Lam
026c795c82 xxxgtk_textview_get_text returns a char* which must be freed 2022-10-18 09:39:38 +08:00
Christopher Lam
d27de50c35 [assistant-stock-transaction] input positive capgains for Credit income acct
In a long position, a positive capital gain indicates the unit price
has increased from Buy to Sell.

In a short position, a positive capital gain indicates the unit price
has decreased from Short Sell to Cover Buy.

i.e. when inputting capital gains, the UI amount being positive
indicates the income account has a credit value. i.e. the investor has
enjoyed a 'profit' on their transaction.
2022-10-16 23:40:10 +08:00
Philippe Lamare
95a8814034
Translation update by Philippe Lamare <ph.lamare@free.fr> using Weblate
po/fr.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Philippe Lamare <ph.lamare@free.fr>
2022-10-12 13:25:47 +02:00
Pablo Fernandez
5b7932dfb5
Translation update by Pablo Fernandez <pfernandez@theansweris27.com> using Weblate
po/glossary/es.po: 100.0% (222 of 222 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/es/

Co-authored-by: Pablo Fernandez <pfernandez@theansweris27.com>
2022-10-12 04:52:06 +02:00
Guille Lopez
14dee67011
Translation update by Guille Lopez <willelopz@gmail.com> using Weblate
po/es.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Guille Lopez <willelopz@gmail.com>
2022-10-12 04:52:06 +02:00
John Ralls
f24c2c8bdd Instrument failure to set the account when creating a split. 2022-10-11 14:05:45 -07:00
Mike Alexander
2d3e80ea08 Compatibility with XCode's "new build system"
With XCode 14 or newer CMake tries to use the "new build system" which has a
requirement that if two targets depend on the same generated file one of them
must depend on the other.  This commit adds reduntant dependencies to satisfy
this requirement.
2022-10-09 01:10:06 -04:00
이정희
5ed45e081c
Translation update by 이정희 <daemul72@gmail.com> using Weblate
po/ko.po: 64.3% (3473 of 5401 strings; 996 fuzzy)
249 failing checks (4.6%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Translation update  by 이정희 <daemul72@gmail.com> using Weblate

po/ko.po: 63.9% (3454 of 5401 strings; 1012 fuzzy)
263 failing checks (4.8%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Co-authored-by: 이정희 <daemul72@gmail.com>
2022-10-07 16:11:20 +02:00
Christopher Lam
14fe4d862f Bug 798629 - gnucash crashes attempting to import OFX file
It's not correct to g_free id if the g_hash_table_insert returns
FALSE; returning FALSE means the key/value pair was replaced. The key
will automatically be freed by glib thanks to the new_hash having a
GDestroyNotify g_free:

        GHashTable* new_hash = g_hash_table_new_full
            (g_str_hash, g_str_equal, g_free, NULL);
2022-10-07 22:10:30 +08:00
ovari
8193d7f23a
Translation update by ovari <ovari123@zoho.com> using Weblate
po/hu.po: 60.5% (3271 of 5401 strings; 1280 fuzzy)
506 failing checks (9.3%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: ovari <ovari123@zoho.com>
2022-10-05 03:24:57 +02:00
John Ralls
c7d1b6ab26 Bug 798633 - 4.12 build failure on 32-bit Linux: "No code for module" 2022-10-04 09:12:10 -04:00
Philippe Lamare
41a0e25f8d
Translation update by Philippe Lamare <ph.lamare@free.fr> using Weblate
po/fr.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Philippe Lamare <ph.lamare@free.fr>
2022-10-02 17:52:07 +02:00
ovari
6269e3c156
Translation update by ovari <ovari123@zoho.com> using Weblate
po/hu.po: 60.4% (3265 of 5401 strings; 1286 fuzzy)
508 failing checks (9.4%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by ovari <ovari123@zoho.com> using Weblate

po/hu.po: 58.9% (3183 of 5401 strings; 1288 fuzzy)
507 failing checks (9.3%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: ovari <ovari123@zoho.com>
2022-09-30 13:18:56 +02:00
Guille Lopez
804cda8be0
Translation update by Guille Lopez <willelopz@gmail.com> using Weblate
po/es.po: 99.9% (5400 of 5401 strings; 1 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Guille Lopez <willelopz@gmail.com>
2022-09-30 13:18:56 +02:00
Christopher Lam
bb830cec3a gtk_file_chooser_get_filename|uri returns a char* which must be freed 2022-09-30 07:52:56 +08:00
Sarekashi
a27adb78e3
Translation update by Sarekashi <sarekashi@tuta.io> using Weblate
po/id.po: 96.0% (5187 of 5401 strings; 189 fuzzy)
186 failing checks (3.4%)
Translation: GnuCash/Program (Indonesian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/id/

Co-authored-by: Sarekashi <sarekashi@tuta.io>
2022-09-27 10:20:28 +02:00
ovari
6e10fba497
Translation update by ovari <ovari123@zoho.com> using Weblate
po/hu.po: 58.6% (3165 of 5401 strings; 1304 fuzzy)
540 failing checks (9.9%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by ovari <ovari123@zoho.com> using Weblate

po/hu.po: 58.6% (3165 of 5401 strings; 1304 fuzzy)
540 failing checks (9.9%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: ovari <ovari123@zoho.com>
2022-09-27 10:20:27 +02:00
Luis D. Lafaurie
2c00c03bdc
Translation update by Luis D. Lafaurie <luis.lafaurie@tecnativa.com> using Weblate
po/es.po: 99.9% (5400 of 5401 strings; 1 fuzzy)
2 failing checks (0.1%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Luis D. Lafaurie <luis.lafaurie@tecnativa.com>
2022-09-27 10:20:26 +02:00
Vik
db123cb281
Translation update by Vik <k3kelm4vw@mozmail.com> using Weblate
po/glossary/ru.po: 82.8% (179 of 216 strings; 16 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ru/

Translation update  by Vik <k3kelm4vw@mozmail.com> using Weblate

po/glossary/ru.po: 82.8% (179 of 216 strings; 16 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ru/

Co-authored-by: Vik <k3kelm4vw@mozmail.com>
2022-09-27 10:20:26 +02:00
Milo Ivir
0abad502f3
Translation update by Milo Ivir <mail@milotype.de> using Weblate
po/hr.po: 100.0% (5401 of 5401 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>
2022-09-27 10:20:25 +02:00
John Ralls
ebd340674e Release GnuCash 4.12 2022-09-24 14:06:53 -07:00
Maxime Leroy
6f0d1fa60f
Translation update by Maxime Leroy <lisacintosh@gmail.com> using Weblate
po/fr.po: 99.9% (5399 of 5401 strings; 2 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (French)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/fr/

Co-authored-by: Maxime Leroy <lisacintosh@gmail.com>
2022-09-24 07:54:05 +02:00
Minjae Isaac Kwon
87c1e4752a
Translation update by Minjae Isaac Kwon <minjae.isaac.kwon@gmail.com> using Weblate
po/ko.po: 63.8% (3450 of 5401 strings; 1015 fuzzy)
263 failing checks (4.8%)
Translation: GnuCash/Program (Korean)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ko/

Co-authored-by: Minjae Isaac Kwon <minjae.isaac.kwon@gmail.com>
2022-09-24 07:54:05 +02:00
Eduardo Malaspina
9c4fac3da7
Translation update by Eduardo Malaspina <vaio0@swismail.com> using Weblate
po/es.po: 99.8% (5391 of 5401 strings; 10 fuzzy)
10 failing checks (0.1%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Eduardo Malaspina <vaio0@swismail.com>
2022-09-24 07:54:05 +02:00
Christopher Lam
ae993503ee [assistant-stock-transaction] better punctuation for error messages. 2022-09-24 13:53:18 +08:00
Christopher Lam
1cac132214 [gnc-plugin-page-register] hide toolbar and menu in regular register
Instead of toggling sensitivity according to xaccAccountIsPriced,
toggle visibility instead.
2022-09-22 22:50:57 +08:00
Christopher Lam
05f952dbe8 [assistant-stock-transaction] use cpp form for struct
...and remove unused pointer in struct
2022-09-22 22:50:57 +08:00
Christopher Lam
788c3ee617 [import-main-matcher] setup_entry handles NULL and empty initial
gtk_entry_set_text throws a warning if initial is empty. Avoid calling
when initial==NULL.

Also, if the imported transaction has empty-string desc/notes/memo, we
don't want to populate the GtkEntryCompletion with it.
2022-09-21 00:11:55 +08:00
Christopher Lam
3e4a4dbfe1 [import-main-matcher] initialize hash tables in common setup
... otherwise the hash tables aren't initialized when the CSV importer
calls the import matcher.
2022-09-21 00:11:55 +08:00
John Ralls
2505955ab9 Fix test failure from Bug 798616 fix. 2022-09-20 09:09:34 -07:00
Arve Eriksson
43b6c17b92
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/sv.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/

Co-authored-by: Arve Eriksson <031299870@telia.com>
2022-09-20 03:18:37 +02:00
John Ralls
7c350c3ae5 Bug 798616 - Can't register amount greater than 9,000,000,000
Because when loading the value the split in the xml backend doesn't yet
have a parent so the code tried to convert to GNC_COMMODITY_MAX_FRACTION
and if the numerator was larger than 10^10 that would overflow.

To fix it this changes the "don't know" response to get_currency_denom
and get_commodity_denom to GNC_DENOM_AUTO which will normally leave
the denominator alone.
2022-09-19 18:17:58 -07:00
Christopher Lam
1752f1d19d [assistant-stock-transaction] disallow stock split ratio of 0.
otherwise the reverse stock split would allow a new stock amount
balance of zero.
2022-09-20 08:45:07 +08:00
Christopher Lam
84f4f3b6f8 [assistant-stock-transaction] add to toolbar 2022-09-19 10:03:28 +08:00
Christopher Lam
cfd37c9102 [assistant-stock-transaction] fix stock split creation algorithm
* stock_amount was reduced as a previous bugfix attempt
* remove references to Stock Split Assistant
2022-09-19 09:37:19 +08:00
Christopher Lam
6ba0f849ba [assistant-stock-transaction] refactor: centralize price calculator
Price was being computed in 3 places: the stock_value page, the
summary-table info list, and the final pricedb creation function. This
commit centralizes it into 1 function which returns std::nullopt if
the price is not computable.

Also fixes price display to follow global pref general/force-price-decimal
2022-09-17 23:12:00 +08:00
Christopher Lam
9a8bc8f7e5 [assistant-stock-transaction] disallow selection in summary table
... because selection hides the red color from last commit. There's no
action attached to selection in the treeview. It can be disabled.
2022-09-17 14:21:51 +08:00
Christopher Lam
596ff26928 [assistant-stock-transaction] if negative Units, render in red color
...in the summary table
2022-09-17 13:52:01 +08:00
Christopher Lam
8dd063b84d Merge branch 'maint-stock-assistant-stock-split' into maint #1414 2022-09-15 20:54:43 +08:00
Christopher Lam
723189b26c [assistant-stock-transaction] special stock_amount input stock splits 2022-09-15 08:04:07 +08:00
Christopher Lam
ab06e1e065 [assistant-stock-transaction] specialises stock_amount input 2022-09-15 07:59:49 +08:00
Christopher Lam
1d4e522597 [assistant-stock-transaction] refactor create_split
takes gnc_numeric instead of GtkWidget*
2022-09-15 07:59:48 +08:00