Commit Graph

25880 Commits

Author SHA1 Message Date
Christopher Lam
e6eb0f328c [assistant-stock-transaction] warn if TxnDate < latest Stock Txn 2022-05-04 21:43:00 +08:00
Christopher Lam
3f6962cfca [assistant-stock-transaction] refactor to allow warnings
Adds support for warnings, which can still allow creating a stock
transaction.
2022-05-04 21:43:00 +08:00
Christopher Lam
f292ed66ab [assistant-stock-transaction.glade] don't translate placeholder text 2022-05-03 00:16:51 +08:00
Christopher Lam
56fa5949f9 use (string-concatenate ...) instead of (apply string-append ...)
similarly to a48e656ee, string-concatenate is less vulnerable to stack
overflow. this was confirmed by wingo some time back.
2022-05-02 20:59:37 +08:00
John Ralls
7e4fcc7afb https://bugs.gnucash.org/show_bug.cgi?id=798491
Prefer the entry date to the value date if present in the import.
The invalid date part of the bug was fixed in 7b1c050.
2022-04-29 16:51:48 -07:00
John Ralls
d62c6d96e3 [import matcher] Only append description if there's something to append to.
Otherwise just set the new string.
2022-04-29 15:52:21 -07:00
John Ralls
4d6dc384ee [import matcher] NULL protect g_utf8_normalize
It crashes if fed a NULL string.
May fix https://bugs.gnucash.org/show_bug.cgi?id=798483.
2022-04-29 15:52:05 -07:00
Szia Tomi
396c59e3d7
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 55.9% (3018 of 5390 strings; 1397 fuzzy)
529 failing checks (9.8%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2022-04-29 03:08:25 +02:00
Cow
5e9d0858d3
Translation update by Cow <javier.fserrador@gmail.com> using Weblate
po/es.po: 100.0% (5390 of 5390 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: Cow <javier.fserrador@gmail.com>
2022-04-29 03:08:24 +02:00
Christopher Lam
7f316b8bdd [balsheet-pnl] test "lvl <= depth-limit" outside add-indented-row
this will be the first step trying to fix bug 798502. the bug likely
resides in the (if) conditional in (add-account-row).
2022-04-27 09:33:36 +08:00
Alex Aycinena
e381e70638 reverse commit d48937c. See discussion in Bug #79769. 2022-04-22 19:26:09 -07:00
Alex Aycinena
d48937cf9c Bug #79769 - Allow US Income Tax txf code 296 (Returns and allowances) to be shown and assignable for both income and expense type accounts. 2022-04-21 18:51:05 -07:00
Petter Reinholdtsen
55f1d62ff2
Translation update by Petter Reinholdtsen <pere-weblate@hungry.com> using Weblate
po/nb.po: 53.6% (2892 of 5390 strings; 1636 fuzzy)
397 failing checks (7.3%)
Translation: GnuCash/Program (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/nb_NO/

Co-authored-by: Petter Reinholdtsen <pere-weblate@hungry.com>
2022-04-21 14:07:37 +02:00
Aleksandar Hadzhivelichkov
f9f76ffc76
Translation update by Aleksandar Hadzhivelichkov <Raphaelo245@gmail.com> using Weblate
po/glossary/bg.po: 85.1% (184 of 216 strings; 15 fuzzy)
10 failing checks (4.6%)
Translation: GnuCash/Glossary (Bulgarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/bg/

Co-authored-by: Aleksandar Hadzhivelichkov <Raphaelo245@gmail.com>
2022-04-21 14:07:36 +02:00
Kárász Attila
3d53af04b4
Translation update by Kárász Attila <cult.edie@gmail.com> using Weblate
po/glossary/hu.po: 85.6% (185 of 216 strings; 25 fuzzy)
2 failing checks (0.9%)
Translation: GnuCash/Glossary (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/hu/

Translation update  by Kárász Attila <cult.edie@gmail.com> using Weblate

po/hu.po: 55.9% (3018 of 5390 strings; 1397 fuzzy)
530 failing checks (9.8%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Kárász Attila <cult.edie@gmail.com>
2022-04-20 20:16:03 +02:00
ltai0001
823302ad55
Translation update by ltai0001 <yltaief@gmail.com> using Weblate
po/ar.po: 74.9% (4039 of 5390 strings; 874 fuzzy)
368 failing checks (6.8%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Translation update  by ltai0001 <yltaief@gmail.com> using Weblate

po/ar.po: 74.9% (4038 of 5390 strings; 875 fuzzy)
371 failing checks (6.8%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Translation update  by ltai0001 <yltaief@gmail.com> using Weblate

po/ar.po: 74.7% (4028 of 5390 strings; 885 fuzzy)
390 failing checks (7.2%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Translation update  by ltai0001 <yltaief@gmail.com> using Weblate

po/ar.po: 74.6% (4026 of 5390 strings; 887 fuzzy)
395 failing checks (7.3%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Translation update  by ltai0001 <yltaief@gmail.com> using Weblate

po/glossary/ar.po: 7.8% (17 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/ar/

Co-authored-by: ltai0001 <yltaief@gmail.com>
2022-04-20 20:16:03 +02:00
Alex Aycinena
178ef44d38 Bug 798471 - include hidden accounts in account tree view in Edit->Tax Report Options->Income Tax Information dialog. 2022-04-20 10:46:25 -07:00
Christopher Lam
efbc12b321 [gnc-main-window] page->window is not main_window, skip warning
This function gets called for both regular register *and* the embedded
register in the SX template editor. The latter is not a main_window,
and launching the SX editor would lead to warnings.
2022-04-19 23:00:26 +08:00
Christopher Lam
37791b608c [gnc-plugin-page-register] if account==NULL, skip AccountIsPriced
because gnc_plugin_page_register_ui_initial_state may be called for
non-account registers (eg the sx editor) and account may be null,
don't call xaccAccountIsPriced on null account.
2022-04-19 23:00:26 +08:00
Christopher Lam
394e0a4b71 [gnc-sx-instance-model.c] leak: don't strdup char* for xaccTransSetNotes
For a while now, xaccTransSetNotes would strdup the notes. Don't need
to strdup it beforehand.
2022-04-19 22:59:51 +08:00
Christopher Lam
27e5515c43 [gnc-account-sel.c] prepend & reverse while building acct list
and don't use confusing double pointer
2022-04-18 12:51:28 +08:00
154pinkchairs
639a88a05c
Translation update by 154pinkchairs <ovehis@riseup.net> using Weblate
po/pl.po: 62.1% (3352 of 5390 strings; 1529 fuzzy)
586 failing checks (10.8%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Co-authored-by: 154pinkchairs <ovehis@riseup.net>
2022-04-16 22:51:28 +02:00
Cow
a1ca43d11a
Translation update by Cow <javier.fserrador@gmail.com> using Weblate
po/es.po: 100.0% (5390 of 5390 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: Cow <javier.fserrador@gmail.com>
2022-04-16 22:51:28 +02:00
John Ralls
b4587e432f Fix use-after-free in unable to save database dialog. 2022-04-16 13:51:10 -07:00
Christopher Lam
de49a7e370 Merge branch 'maint-account-cpp' breadthwise search into maint #1319 2022-04-16 07:44:29 +08:00
Christopher Lam
e1d52963ed [account.cpp] restore breadth-first search for 2 functions
gnc_account_lookup_by_name and gnc_account_lookup_by_code were
searching breadth-first and accidentally changed to depth-first in
4.7.

as reported in https://github.com/Gnucash/gnucash/pull/1101#issuecomment-1098146573
2022-04-15 23:35:38 +08:00
Christopher Lam
07a9494d8d Merge branch 'maint-progress1' into maint #1306
export and use gnc_accounts_and_all_descendants
2022-04-15 12:27:31 +08:00
Christopher Lam
560f31250e [reports] use new function names
gnc:accounts-and-all-descendants-sorted
gnc-accounts-and-all-descendants
2022-04-15 12:23:57 +08:00
Christopher Lam
d2ad1aa35d [html-acct-table] deprecate gnc:account-path-less-p 2022-04-15 11:48:38 +08:00
Christopher Lam
7cf3a5d93d [report-utilities.scm] deprecate gnc:accounts-and-all-descendants 2022-04-15 11:48:38 +08:00
Christopher Lam
fae7ea02cd [account.cpp] gnc_accounts_and_all_descendants converted from scm
much more efficient than guile algorithm, avoids numerous repeated
GList<->SCM conversions, and traversals of account descendants.
2022-04-14 21:51:14 +08:00
154pinkchairs
07fbcc0e9e
Translation update by 154pinkchairs <ovehis@riseup.net> using Weblate
po/glossary/pl.po: 97.2% (210 of 216 strings; 2 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/pl/

Translation update  by 154pinkchairs <ovehis@riseup.net> using Weblate

po/pl.po: 62.1% (3352 of 5390 strings; 1529 fuzzy)
586 failing checks (10.8%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Translation update  by 154pinkchairs <ovehis@riseup.net> using Weblate

po/pl.po: 62.1% (3350 of 5390 strings; 1531 fuzzy)
587 failing checks (10.8%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Co-authored-by: 154pinkchairs <ovehis@riseup.net>
2022-04-13 21:11:11 +02:00
Frank H. Ellenberger
6ccd7741ca Drop duplicate 'en_US.UTF-8 UTF-8' from archlinux-test
https://lists.gnucash.org/logs/2022/04/12.html#T19:11:57
2022-04-13 03:03:07 +02:00
John Ralls
022d2b08e2 [CI]Work around new git security measure. This one works. 2022-04-12 16:10:58 -07:00
John Ralls
baffae88f8 [CI]Work around new git security measure. 2022-04-12 15:49:22 -07:00
Cow
7bb576d25c
Translation update by Cow <javier.fserrador@gmail.com> using Weblate
po/es.po: 100.0% (5390 of 5390 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: Cow <javier.fserrador@gmail.com>
2022-04-12 21:10:41 +02:00
154pinkchairs
677b585d20
Translation update by 154pinkchairs <ovehis@riseup.net> using Weblate
po/pl.po: 62.1% (3348 of 5390 strings; 1533 fuzzy)
591 failing checks (10.9%)
Translation: GnuCash/Program (Polish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pl/

Co-authored-by: 154pinkchairs <ovehis@riseup.net>
2022-04-12 04:10:23 +02:00
Frank H. Ellenberger
2298590316 Merge PR #1309 into maint 2022-04-12 00:20:11 +02:00
ltai0001
4e5932ac92
Translation update by ltai0001 <yltaief@gmail.com> using Weblate
po/ar.po: 74.4% (4012 of 5390 strings; 898 fuzzy)
424 failing checks (7.8%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Translation update  by ltai0001 <yltaief@gmail.com> using Weblate

po/ar.po: 74.4% (4011 of 5390 strings; 899 fuzzy)
426 failing checks (7.9%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Translation update  by ltai0001 <yltaief@gmail.com> using Weblate

po/ar.po: 74.1% (3997 of 5390 strings; 913 fuzzy)
430 failing checks (7.9%)
Translation: GnuCash/Program (Arabic)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ar/

Co-authored-by: ltai0001 <yltaief@gmail.com>
2022-04-11 03:43:21 +02:00
Christopher Lam
1420368b5b [balsheet-pnl] faster definition of balance lists
because the accounts and accounts-cols-data have direct 1-to-1
mapping, it is not necessary to map accounts and retrieve from
accounts-cols-data. mapping from accounts-cols-data produces
identical results, avoiding O(N^2) access from accounts-cols-data.
2022-04-11 09:36:52 +08:00
Christopher Lam
736d223198 Merge branch 'maint-progress3' into maint #1312 2022-04-10 12:05:08 +08:00
Christopher Lam
d022651f38 Merge branch 'maint-progress2' into maint #1311 2022-04-10 12:04:51 +08:00
Christopher Lam
40d5db43e6 Bug 797163 - qof_book_get_option segfaults when retrieving a non-leaf frame
returns a KvpFrame into a nested list of pairs
returns a KvpValue GLIST into a list
2022-04-10 11:46:12 +08:00
Christopher Lam
0c4d438a0e [kvp-frame.cpp] expose iterator, skip inexistent frame 2022-04-09 17:45:44 +08:00
Christopher Lam
aab33954e7 [gnc-numeric.cpp] Reduce logging level of gnc_numeric exception message
Exceptions are expected in some use cases.
2022-04-09 07:21:15 +08:00
Christopher Lam
ebbf7565c9 Bug 798496 - gncEntry Quantity and Discount are misusing commodity scu 2022-04-09 07:21:12 +08:00
luz paz
8adedc2248 Fix various typos
Found via `codespell -q 3 -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./borrowed,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,ba,cas,dragable,gae,iff,iif,mut,nd,numer,parm,parms,startd,stoll`
2022-04-08 14:12:50 -04:00
Christopher Lam
c8f1caa95f Bug 798493 - Invoice Report Quantity & Unit Price fields have limited decimal precision on printed invoices
use xaccPrintAmount which formats number nicely.
2022-04-08 22:33:05 +08:00
Christopher Lam
6a668df168 [qofutil.h] don't recurse includes 2022-04-08 19:20:40 +08:00
John Ralls
fbaa416cfb Fix gcc compilation errors. 2022-04-07 16:02:27 -07:00