Commit Graph

28466 Commits

Author SHA1 Message Date
Andrea Andre
22888caf83
Translation update by Andrea Andre <andrea.tsg19@slmail.me> using Weblate
po/ro.po: 48.9% (2706 of 5524 strings; 1723 fuzzy)
659 failing checks (11.9%)
Translation: GnuCash/Program (Romanian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ro/

Co-authored-by: Andrea Andre <andrea.tsg19@slmail.me>
2023-09-17 22:28:53 +02:00
John Ralls
7aba9e0007 [stock-txn-asst] Fix balance check
The summing into debit and credit got lost somewhere.
2023-09-17 13:25:26 -07:00
Christopher Lam
c074b82224 [test-qofsession] plugs Account* leak 2023-09-17 08:37:09 +08:00
Christopher Lam
1ddee7dc3f [test-qofbook] plugs Account* leak 2023-09-17 08:37:04 +08:00
Christopher Lam
41167e3270 [assistant-stock-transaction] refresh_handler: avoid leaking GList*
by using scanning the GHashTable directly.
2023-09-17 08:35:44 +08:00
John Ralls
2038903eee Bug 798890 - Printing Problem 2023-09-16 12:49:16 -07:00
Christopher Lam
09474bb251 [assistant-stock-transaction] g_free a char* 2023-09-16 21:22:16 +08:00
Christopher Lam
d38bfe0e9d Merge branch 'stable-autoclear' into stable #1769 2023-09-16 20:50:17 +08:00
Christopher Lam
a81bc72fb1 [test-sx] plug some leaks 2023-09-16 08:42:42 +08:00
Christopher Lam
94211c2e57 [test-sx] plug some leaks 2023-09-16 08:42:40 +08:00
Christopher Lam
14622e7db6 [test-print-parse-amount] plug leaks 2023-09-16 05:46:46 +08:00
Christopher Lam
96a63f922f Merge branch 'plug-test-leaks' into stable #1771 2023-09-16 05:26:41 +08:00
John Ralls
69149514b5 Merge Jeff Shelley's 'issue/728910' into stable. 2023-09-15 11:33:22 -07:00
Christopher Lam
c44194606a [test-xml-pricedb] free a sixtp parser 2023-09-15 23:55:06 +08:00
Christopher Lam
34564ef6d0 [test-qofobject] plug some leaks 2023-09-15 23:34:43 +08:00
Christopher Lam
8277f4d559 [test-qofbook] plug leaks 2023-09-15 23:34:43 +08:00
Christopher Lam
0056e5f091 [gtest-import-map] plug leaks 2023-09-15 23:34:43 +08:00
Christopher Lam
235e24a055 [account.cpp] ~GncImapInfo = gnc_account_imap_info_destroy 2023-09-15 23:34:43 +08:00
Christopher Lam
db77fb81a5 [test-job] plug leaks 2023-09-15 23:34:43 +08:00
Christopher Lam
a8dffb8559 [gnc-date.cpp] don't alloc tm* unless GncDateTime() succeeds
because GncDateTime() may throw an exception, in which case time will
leak. mainly leaks in test suite.
2023-09-15 23:33:47 +08:00
Christopher Lam
5a03d9798c [gnc-sx-instance-model] g_free char* 2023-09-15 23:33:47 +08:00
John Ralls
3b3da080b1 Bug 798709 - Total(Period) column does not refresh period's value...
after update of the period in settings.

Set a callback on the applicable preferences to refresh the accouts page.
2023-09-14 18:04:49 -07:00
Jeff Shelley
04545fab11 728910: Made report handle liabilities correctly 2023-09-14 15:20:09 -05:00
Zdenko Podobný
9f385bd369
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 67.7% (3745 of 5524 strings; 826 fuzzy)
299 failing checks (5.4%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-14 18:55:17 +02:00
Christopher Lam
5a8ee33f06 [test-autoclear] plug memory leaks 2023-09-14 22:30:48 +08:00
Christopher Lam
49c3c5dc2e [gnc-autoclear] Store gnc_numeric.num only in GHashTable
no need for extra alloc
2023-09-14 22:30:42 +08:00
Christopher Lam
757c1cac31 [gnc-autoclear] [upgrade] add ability to clear same-amount splits 2023-09-14 22:30:42 +08:00
Christopher Lam
0191b5f70b [gnc-autoclear] use GError to signal errors 2023-09-14 19:44:56 +08:00
Zdenko Podobný
fa84a8caa1
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 65.2% (3606 of 5524 strings; 871 fuzzy)
314 failing checks (5.6%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Translation update  by Zdenko Podobný <zdenop@gmail.com> using Weblate

po/glossary/sk.po: 84.7% (183 of 216 strings; 16 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-13 21:17:19 +02:00
Zdenko Podobný
8910b27598
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 61.8% (3417 of 5524 strings; 993 fuzzy)
314 failing checks (5.6%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-12 20:49:20 +02:00
John Ralls
16c9957cac Bug 798925 - Python bindings: "invalid unclassed pointer...
in cast to 'QofInstance'".

The list ended up with two entries of payment_lot resulting in a
dangling reference when one of them was freed.
2023-09-11 17:40:48 -07:00
John Ralls
17ebb8a1d2 [simple-business-create.py] Overwrite an existing file instead of crashing. 2023-09-11 17:39:02 -07:00
Arve Eriksson
991f3d3a74
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/sv.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
1 failing checks (0.1%)
Translation: GnuCash/Program (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sv/

Co-authored-by: Arve Eriksson <031299870@telia.com>
2023-09-11 22:02:58 +02:00
Giuseppe Foti
a031ac671c
Translation update by Giuseppe Foti <foti.giuseppe@gmail.com> using Weblate
po/it.po: 100.0% (5524 of 5524 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Italian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/it/

Co-authored-by: Giuseppe Foti <foti.giuseppe@gmail.com>
2023-09-11 22:02:58 +02:00
Zdenko Podobný
3ab45da472
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 59.8% (3305 of 5524 strings; 1072 fuzzy)
333 failing checks (6.0%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Translation update  by Zdenko Podobný <zdenop@gmail.com> using Weblate

po/sk.po: 58.4% (3230 of 5524 strings; 1078 fuzzy)
334 failing checks (6.0%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-11 22:02:57 +02:00
John Ralls
3f3a85402a Merge James White's 'assistant2' into stable 2023-09-10 21:25:23 -07:00
Jeremy White
5b6d61e854 Bug 728875 - Back button does not work in QIF import assistant
The current logic has each 'prepare' function jump us around in the assistant
flow in order to skip pages that aren't needed.  But that logic only allows
forward movement, effectively breaking the back button.

This patch introduces a custom 'next page' function, which GtkAssistant
supports, along with a shift in the paradigm.  Instead of the prepare
function jumping around, there is now a deliberate 'should I skip?' function
that is used to avoid displaying a page.

This does not make the flow perfect; unexpected exceptions still end the
process (see bug 698804) and going back with loaded files feels a bit clunky.
2023-09-10 21:24:00 -07:00
Jeremy White
7f420b53c0 Spelling fix: catagory -> category 2023-09-10 21:02:17 -05:00
Zdenko Podobný
c5a71f2464
Translation update by Zdenko Podobný <zdenop@gmail.com> using Weblate
po/sk.po: 57.8% (3195 of 5524 strings; 1103 fuzzy)
350 failing checks (6.3%)
Translation: GnuCash/Program (Slovak)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/sk/

Co-authored-by: Zdenko Podobný <zdenop@gmail.com>
2023-09-11 00:09:15 +02:00
John Ralls
e3d682c0e5 Merge Richard Cohen's 'fix-gnc-mktime' into stable. 2023-09-10 15:08:32 -07:00
John Ralls
8a91fa8deb Remove defective and fortunately unused typemap. 2023-09-10 15:06:46 -07:00
Richard Cohen
75f49aaec5 Valgrind: fix "definitely lost" memory in (gnc-mktime) - test-invoice-report-builtin-default
==158291== 6 bytes in 1 blocks are definitely lost in loss record 18 of 824
==158291==    at 0x4848C63: realloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==158291==    by 0x4A91473: scm_realloc (in /usr/lib/x86_64-linux-gnu/libguile-3.0.so.1.5.0)
==158291==    by 0x4AFF26B: scm_to_stringn (in /usr/lib/x86_64-linux-gnu/libguile-3.0.so.1.5.0)
==158291==    by 0x4CB473D: _wrap_gnc_mktime(scm_unused_struct*) (swig-engine.cpp:38703)
...
2023-09-10 14:54:30 -07:00
Richard Cohen
9fe19d6cf9 Move potentially unused "SCM zone" variable into the #ifdef 2023-09-10 14:54:30 -07:00
John Ralls
6c9d0dca2c Update github action package versions. 2023-09-10 14:48:51 -07:00
John Ralls
ab63595cc1 Merge James White's 'prices1' into stable. 2023-09-10 14:39:24 -07:00
Jeremy White
737e732e1c Fixup qif-imp price unit tests.
The expected results changed with commit 80f7e60f49.
At the same time, improve readability of test results by
assigning a tag and ordering expected vs actual correctly.
2023-09-10 14:13:04 -07:00
Jeremy White
34946c7461 Remove exceptions and use patterns in parse-price-line.
Also use a more standard numberic parser instead of an ad-hoc
string parser.

Code written by Christopher Lam.
2023-09-10 14:13:04 -07:00
Jeremy White
6bf062c738 Add a qif file with !Type:Prices transactions.
Including a few deliberate errors.
2023-09-10 14:13:04 -07:00
Jeremy White
dd429aaa0c Present warnings from the file load step.
The price import will now throw warnings if there are
invalid prices.  The previous logic would 'auto-next' in this
case, only holding if the parse-file phase threw warnings.

This change insures that these warnings are seen.
2023-09-10 14:13:04 -07:00
Jeremy White
06b6d60f5b Screen out price records with blank values.
Found a live Quicken record with an empty price.
2023-09-10 14:13:04 -07:00