Commit Graph

25983 Commits

Author SHA1 Message Date
Christopher Lam
e615a5775a Bug 798734 - Aging Reports don't handle mixed currency payments and invoices without Trading Accounts 2023-01-28 20:53:24 +08:00
luzpaz
67ab9e90d2 Fix some typos 2023-01-26 13:48:58 +01:00
John Ralls
f4c6d65395 Merge Bob Fewell's 'nofree' into maint. 2023-01-24 13:25:02 -08:00
John Ralls
46f9fb01c9 Simplify gnc_commodity equality and compare functions.
gnc_commodity_compare is used for sorting and so needs to have a less-than
return value. The only place it's used presents nothing to the UI; a GncGUID
ordering is fast and stable.

GnuCash allows only one commodity per book for any namespace/mnemonic pair, so
the exhaustive string comparisons are superflous. While the current engine
design allows only one instance of any object, meaning that a pointer comparison
is sufficient to determine equality, that may not be true in the future, but the
GncGUID is guaranteed to sufficiently identify a single commodity. Note that
gnc_commodity_equiv is used to enforce that single-commodity rule and so cannot
use GncGUID comparison.
2023-01-24 10:46:01 -08:00
John Ralls
a81b72f04c Merge Ralf Habacker's 'activate-opening-balance-accounts' into maint. 2023-01-23 14:43:49 -08:00
Richard Cohen
19bbde7000 Fix some typos 2023-01-23 15:01:46 +00:00
Christopher Lam
d1b84fae9f [balsheet-pnl] shorten workload by deduping commodities 2023-01-23 14:59:20 +08:00
Christopher Lam
c16bde1aea [commodity-utilities] shorten workload by deduping commodities 2023-01-23 14:12:26 +08:00
John Ralls
ae6efa39ca Merge 2 simple PRs from Richard Cohen into maint. 2023-01-22 10:41:02 -08:00
richardcohen
2a119375c3 Avoid touching the global errno 2023-01-22 10:40:00 -08:00
richardcohen
f3cc223f5f Fix some bad code formatting 2023-01-22 10:39:48 -08:00
Vin
2d66631fea
Translation update by Vin <k3kelm4vw@mozmail.com> using Weblate
po/ru.po: 77.9% (4210 of 5401 strings; 816 fuzzy)
326 failing checks (6.0%)
Translation: GnuCash/Program (Russian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/ru/

Co-authored-by: Vin <k3kelm4vw@mozmail.com>
2023-01-20 20:01:45 +01:00
Christopher Lam
69cf911afa
Translation update by Christopher Lam <christopher.lck@gmail.com> 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: Christopher Lam <christopher.lck@gmail.com>
2023-01-19 17:49:54 +01:00
Yaron Shahrabani
1aeda8ae92
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
10 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Yaron Shahrabani <sh.yaron@gmail.com>
2023-01-18 19:50:23 +01:00
Avi Markovitz
c186e04695
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
10 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Translation update  by Avi Markovitz <avi.markovitz@gmail.com> using Weblate

po/he.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
10 failing checks (0.1%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Co-authored-by: Avi Markovitz <avi.markovitz@gmail.com>
2023-01-18 19:50:20 +01:00
Arve Eriksson
2e7424469e
Translation update by Arve Eriksson <031299870@telia.com> using Weblate
po/glossary/sv.po: 100.0% (216 of 216 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Swedish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/sv/

Co-authored-by: Arve Eriksson <031299870@telia.com>
2023-01-18 19:50:18 +01:00
Christopher Lam
580efe091c Bug 797725 - Untranslatable string "For Period Covering ~a to ~a" 2023-01-17 00:24:08 +08:00
Christopher Lam
645cc9461d [core-utils] modify gnc:format to accept -
this allows use of varnames such as ${report-title}
2023-01-17 00:24:08 +08:00
Szia Tomi
ccc8b44b4a
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 61.8% (3341 of 5401 strings; 1213 fuzzy)
519 failing checks (9.6%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 61.8% (3341 of 5401 strings; 1213 fuzzy)
519 failing checks (9.6%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by Szia Tomi <sziatomi01@gmail.com> using Weblate

po/hu.po: 61.8% (3341 of 5401 strings; 1213 fuzzy)
519 failing checks (9.6%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2023-01-14 00:56:32 +01:00
mocsa
a81991b440
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 61.8% (3341 of 5401 strings; 1213 fuzzy)
519 failing checks (9.6%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-01-14 00:56:31 +01:00
Yuri Chornoivan
3c4d1f81c8
Translation update by Yuri Chornoivan <yurchor@ukr.net> using Weblate
po/uk.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/uk/

Co-authored-by: Yuri Chornoivan <yurchor@ukr.net>
2023-01-13 14:48:49 +01:00
Dan
54c2979aef
Translation update by Dan <denqwerta@gmail.com> using Weblate
po/uk.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/uk/

Translation update  by Dan <denqwerta@gmail.com> using Weblate

po/uk.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/uk/

Co-authored-by: Dan <denqwerta@gmail.com>
2023-01-13 14:48:48 +01:00
mocsa
78659ed4b6
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 61.8% (3339 of 5401 strings; 1214 fuzzy)
516 failing checks (9.5%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by mocsa <csaba@feltoltve.hu> using Weblate

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

Translation update  by mocsa <csaba@feltoltve.hu> using Weblate

po/hu.po: 61.7% (3334 of 5401 strings; 1219 fuzzy)
505 failing checks (9.3%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Translation update  by mocsa <csaba@feltoltve.hu> using Weblate

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

Translation update  by mocsa <csaba@feltoltve.hu> using Weblate

po/hu.po: 61.7% (3334 of 5401 strings; 1219 fuzzy)
502 failing checks (9.2%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-01-13 14:48:48 +01:00
Robert Fewell
6df866f876 Add tests for the reconcile account functions 2023-01-12 14:38:08 +00:00
Robert Fewell
fd37ee997d Fix getting xaccAccountGetReconcilePostponeBalance
Change the G_VALUE from a INT64 to BOXED.
2023-01-12 14:38:08 +00:00
Yaron Shahrabani
ce3d47f1fe
Translation update by Yaron Shahrabani <sh.yaron@gmail.com> using Weblate
po/he.po: 100.0% (5401 of 5401 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: Yaron Shahrabani <sh.yaron@gmail.com>
2023-01-10 13:51:53 +01:00
Avi Markovitz
9242e1b34a
Translation update by Avi Markovitz <avi.markovitz@gmail.com> using Weblate
po/he.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Hebrew)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/he/

Translation update  by Avi Markovitz <avi.markovitz@gmail.com> using Weblate

po/he.po: 100.0% (5401 of 5401 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>
2023-01-10 13:51:52 +01:00
Giuseppe Foti
86a03b280b
Translation update by Giuseppe Foti <foti.giuseppe@gmail.com> using Weblate
po/glossary/it.po: 99.5% (215 of 216 strings; 0 fuzzy)
1 failing checks (0.4%)
Translation: GnuCash/Glossary (Italian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/it/

Translation update  by Giuseppe Foti <foti.giuseppe@gmail.com> using Weblate

po/it.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
1 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>
2023-01-09 08:49:19 +01:00
Christopher Lam
f081a2066e Merge branch 'maint-progress' into maint #1493 2023-01-09 13:32:29 +08:00
Christopher Lam
afc32af521 [balsheet-pnl] move out of experimental into regular menu
After 4 years it can finally graduate. Also remove FOOTER-TEXT
warning.
2023-01-09 10:18:42 +08:00
Arve Eriksson
5e8de30b02
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>
2023-01-09 01:21:57 +01:00
Frank H. Ellenberger
8a75523928 Translate "Accounts" in "Filter %s by..." 2023-01-09 00:12:02 +01:00
Christopher Lam
5af8213951 [balsheet-pnl] generate exchange-fn for each date separately
and cache its result
2023-01-09 03:47:04 +08:00
Christopher Lam
40b76061e0 Bug 798717 - Reports > Business > Fancy Invoice duplicates company details
company details were duplicated in error.
2023-01-07 22:07:23 +08:00
John Ralls
f7324d16b4 Bug 798625 - "Last up through report date" changed in 4.12
Don't adjust report dates with time64CanonicalDayTime. They're set
to 23:59:59 local which is always >= neutral time at which prices
and transactions are timestamped. Local noon is before neutral time for
all time zones east of UTC+2.
2023-01-07 03:49:48 +03:00
Christopher Lam
2733d23b68 [dialog-sx-editor] increase EX_CAL_NUM_MONTHS from 6 to 12
because the example calendar can show up to 12 months. This means a
daily SX will show all recurrences in the calendar instead of only 6
months.
2023-01-06 11:03:33 +08:00
Christopher Lam
a9a67c717e [dialog-sx-editor] plug GHashTable leaks when returning early 2023-01-06 11:03:33 +08:00
Wellington Terumi Uemura
6ba5b57e41
Translation update by Wellington Terumi Uemura <wellingtonuemura@gmail.com> using Weblate
po/pt_BR.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/pt_BR/

Co-authored-by: Wellington Terumi Uemura <wellingtonuemura@gmail.com>
2023-01-05 03:22:06 +01:00
Milo Ivir
ca0145d73d
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>
2023-01-05 03:22:06 +01:00
J0kWang
1399cd24ae
Translation update by J0kWang <lianjiefly@gmail.com> using Weblate
po/zh_CN.po: 100.0% (5401 of 5401 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: J0kWang <lianjiefly@gmail.com>
2023-01-05 03:22:06 +01:00
ovari
6d8fa2cc2a
Translation update by ovari <ovari123@zoho.com> using Weblate
po/hu.po: 61.7% (3335 of 5401 strings; 1218 fuzzy)
490 failing checks (9.0%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: ovari <ovari123@zoho.com>
2023-01-05 03:22:06 +01:00
John Ralls
edf5a8783d Bug 798702 - Crash in gnc_plugin_page_focus_idle_destroy() closing...
a report before it completes.

The problem was that the progress bar runs the event loop and lets
tab get destroyed while the stream handler is running, taking the
page and html objects along with it. Then the stream handler returns
and the callers try to use the freed page and html objects. Crash.

To avoid this take out weak pointers on the page and html and only
use the page and html if the respective finalize functions haven't
NULLed the weak pointer.
2023-01-04 18:20:57 -08:00
Alex Aycinena
1085d8920b Update Form/Schedule line references for 2022 for the US Income Tax Report 2023-01-04 16:58:57 -08:00
John Ralls
b922cfd78d Bug 798679 - Unicode normalization should be used for comparison but not stored.
Change to NFC normalization for all comparisons because the Unicode
meaning of compatible might collide with the user's intent.
2023-01-04 13:19:36 -08:00
John Ralls
797098c6e5 [Bug 798705] New: UI string mismatch: OK vs. Next 2023-01-03 14:55:44 -08:00
Kaligula
a66dec3d71
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-12-31 22:51:40 +01:00
aleksej0R
ea6cc6f892
Translation update by aleksej0R <omolice@hotmail.fr> using Weblate
po/glossary/fr.po: 100.0% (216 of 216 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: aleksej0R <omolice@hotmail.fr>
2022-12-20 00:55:57 +01:00
Christopher Lam
52deda868f [assistant-stock-transaction] handle sign reversal outside create_split
Passing the FieldMask as an arg to create_split is the wrong approach;
it needs to test the input_new_balance bool and the FieldMask to
determine whether negation should take place. It's best to handle
negation outside create_split.

Thus cash&fee amounts are not mangled when creating a stock-split
transaction whose input_new_balance is true.
2022-12-19 11:46:53 +08:00
John Ralls
dec66bc8c6 Release GnuCash 4.13 2022-12-17 18:20:21 -08:00
John Ralls
98155795d6 [register] Don't usleep on Apple or Win32.
Not needed and usleep needs an extra include for MinGW64.
2022-12-17 18:20:21 -08:00