Robert Fewell
59d95a4ce6
Bug 798545 - Crash when updating document link on vendor bill
...
There were two issues here, the first one was that the copied doclink
was pointing to the original doclink which lead to a double-free. The
second is the setting of the doclink on the copied invoice needs to be
done with gncInvoiceSetDocLink otherwise on closure the doclink value
will disappear.
2022-11-24 11:16:01 +00:00
Robert Fewell
80f1101447
Bug 760274 - The Statusbar "forgets" when register doesn't have focus
...
Only update the status bar if the current page is the same as the
register page.
2022-11-24 10:12:29 +00:00
Robert Fewell
f93da32dfc
Add missing gtk_tree_path_free to gnucash-item-list.c
2022-11-24 10:02:28 +00:00
Robert Fewell
1554ec6c0f
Add missing gtk_tree_path_free to gnc-plugin-budget.c
2022-11-24 10:01:43 +00:00
Christopher Lam
f13cfa2142
Merge branch 'maint-budget' into maint #1468
2022-11-23 08:30:34 +08:00
Kaligula
af34ee3f54
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 71.2% (3846 of 5401 strings; 1096 fuzzy)
255 failing checks (4.7%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2022-11-20 12:48:03 +01:00
Christopher Lam
120758f519
[assistant-stock-transaction] from Bug 798004 cash to offset fee
2022-11-20 18:16:10 +08:00
Christopher Lam
c6611a40bb
[ifrs-report] From Bug 798004 allow Cr cash to offset Dr fee
...
and remove invalid "dividend reinvestment" during short.
2022-11-20 18:16:00 +08:00
Kaligula
13895e1734
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 71.0% (3840 of 5401 strings; 1096 fuzzy)
255 failing checks (4.7%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2022-11-19 22:47:46 +01:00
Christopher Lam
3d8a28898d
[gnc-budget] gnc_budget_get_account_period_note returns a const
...
to harmonize with all other char getters
2022-11-19 10:35:49 +08:00
Christopher Lam
2ee0c98200
[gnc-budget] use operator[] instead of find() and insert()
...
- avoid hashing Account* twice. one call to operator[] is sufficient.
- don't need use std::move with better constructors
- sanity check - can't have a budget with num_periods = 0
- remove unused headers
2022-11-19 10:35:43 +08:00
Frank H. Ellenberger
7992fd0e9b
Merge branch PR #1465 into maint
2022-11-18 01:01:29 +01:00
Vesna Micajkova
a04ee108ec
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
...
po/glossary/mk.po: 82.5% (175 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/mk/
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
po/mk.po: 1.6% (87 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/mk/
Co-authored-by: Vesna Micajkova <vmicajkova@institutpraktikum.mk>
2022-11-17 11:47:08 +01:00
Vesna Micajkova
bddd603063
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
...
po/mk.po: 1.5% (85 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/mk/
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
po/glossary/mk.po: 74.5% (158 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/mk/
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
po/mk.po: 1.3% (72 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/mk/
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
po/glossary/mk.po: 31.6% (67 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/mk/
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
po/mk.po: 0.3% (18 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/mk/
Co-authored-by: Vesna Micajkova <vmicajkova@institutpraktikum.mk>
2022-11-15 16:48:07 +01:00
luz paz
0be8e05a1b
Fix typos and whitespace in test
2022-11-14 12:57:50 -05:00
Kaligula
f8c5f51b75
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 66.0% (3570 of 5401 strings; 1320 fuzzy)
401 failing checks (7.4%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2022-11-13 03:15:29 +01:00
Kaligula
97df6aacab
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
...
po/pl.po: 66.0% (3569 of 5401 strings; 1321 fuzzy)
402 failing checks (7.4%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/pl.po: 63.3% (3419 of 5401 strings; 1471 fuzzy)
555 failing checks (10.2%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/glossary/pl.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/pl/
Translation update by Kaligula <kaligula.dev@gmail.com> using Weblate
po/pl.po: 63.3% (3419 of 5401 strings; 1471 fuzzy)
590 failing checks (10.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/
Co-authored-by: Kaligula <kaligula.dev@gmail.com>
2022-11-12 03:49:19 +01:00
Vesna Micajkova
e62eb5443e
Translation update by Vesna Micajkova <vmicajkova@institutpraktikum.mk> using Weblate
...
po/glossary/mk.po: 2.8% (6 of 212 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Macedonian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/mk/
Co-authored-by: Vesna Micajkova <vmicajkova@institutpraktikum.mk>
2022-11-12 03:49:18 +01:00
Christopher Lam
e30c1fce70
gtk_tree_model_get will allocate char* which must be g_freed.
2022-11-10 22:00:00 +08:00
Frank H. Ellenberger
aedc0cc196
L10N: Prepare macedonian (mk)
2022-11-08 03:11:08 +01:00
Christopher Lam
60c5e20084
[import-main-matcher] bug: test str from the string hash provided
...
...instead of the description string hash.
2022-11-07 11:49:51 +08:00
Christopher Lam
6f80c548e6
[gtest-qofevent.cpp] comprehensive tests for qofevent
2022-11-05 09:25:24 +08:00
Christopher Lam
b87aa004f9
[test-qofbook] add tests for unknown features
...
tests that gnc_features_test_unknown returns a suitable error message
2022-10-31 10:40:12 +08:00
John Ralls
b9077bccd3
Bug 798640 - Segfault when running saved report
2022-10-29 17:45:35 -07:00
Christopher Lam
f2354d6b2a
[test-qofbook.c] add test for gnc_features_set_unused
2022-10-29 21:01:08 +08:00
Christopher Lam
1516bb18b0
[gnc-features.cpp] backport gnc_features_set_unused from master
2022-10-29 21:01:01 +08:00
Christopher Lam
a078921a33
[qofbook.cpp] backport qof_book_unset_feature from master
2022-10-29 21:00:54 +08:00
John Ralls
cf088f2a70
Merge John Ralls's 'Bug798614' into maint.
2022-10-28 15:27:28 -07:00
John Ralls
f5099b3d87
Bug 798649 - Crash when closing Edit Style Sheets dialog while...
...
Style Sheet Properties dialog is still open.
Because the style_sheet_dialog is already destroyed and nulled.
2022-10-28 11:37:18 -07:00
Christopher Lam
093aa81ed1
[qofbook.cpp] deprecate qof_book_get_features
2022-10-28 21:57:15 +08:00
Christopher Lam
8192deff37
[gnc-features.cpp] convert to cpp
...
- don't need to create/destroy GHashTable for each feature query
- plugs leak: g_hash_table_unref (features_used) not always called properly
- to check 1 feature, don't need to traverse whole GHashTable
2022-10-28 20:50:35 +08:00
Christopher Lam
6f6d2fef48
[test-qofbook] basic features test
...
sets a feature and tests it's set. it's impossible to design a book
with unknown features using the API.
2022-10-27 20:10:49 +08:00
Frank H. Ellenberger
82cc08f9b7
po/README: Remove relics from ancient context forms
2022-10-25 03:18:00 +02:00
이정희
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