Commit Graph

26902 Commits

Author SHA1 Message Date
John Ralls
6ab7b16d62 [c++options] Restore the ability to set plot sizes in pixels.
Enable and fix the previously untested GtkOptionGtkUIItem::PLOTSIZE.

This has the potentially unfortunate side effect that integer range
options are assumed to be plot sizes. That's correct for now, but
if some report comes along that needs an integer range option for
something else it will have to be differentiated.
2023-02-25 16:25:36 -08:00
John Ralls
408b5ec216 [c++ options] Restore forward & backward compatibility, fix crash.
Store Number Range option values as a pair '(percentage . value) or '(pixels .
value) depending on the size of value as 4.x and earlier expect. When reading a
stored number range option handle the possibility that value is fixed
point (e.g. 50.0) as 4.x and earlier emit, avoiding a crash.
2023-02-25 16:25:36 -08:00
Christopher Lam
0780cfbfd2 [gnucash.cpp] quote_soures is a GList of char* to be g_freed 2023-02-25 20:02:54 +08:00
Geert Janssens
26482f397b Bug 797033 - The CSV Importer should not obey with the "automatic digital point" setting
Expose variations of xaccParseAmount and
xaccParseAmountExtended that will ignore the
automatic decimal point user preference.
This preference is really only useful for manual number
entering in the register.

The xaccParseAmountImport variant replaces xaccParseAmountPosSign
which was used exclusively by the csv importers.
Like xaccParseAmountPosSign, this replacement has the flag
to ignore or parse the positive number indicator.
2023-02-24 23:02:15 +01:00
Frank H. Ellenberger
fcbda57a6b Merge branch 'maint' 2023-02-24 19:19:12 +01:00
Geert Janssens
9be232cd80 Bug 798572 - Parse numbers with two minus signs as a positive numbers 2023-02-24 14:22:16 +01:00
Szia Tomi
9b626af30d
Translation update by Szia Tomi <sziatomi01@gmail.com> using Weblate
po/hu.po: 63.8% (3449 of 5401 strings; 996 fuzzy)
290 failing checks (5.3%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2023-02-23 18:53:21 +01:00
Kryštof Černý
c7cce26869
Translation update by Kryštof Černý <cleverline1mc@gmail.com> using Weblate
po/glossary/cs.po: 0.9% (2 of 212 strings; 0 fuzzy)
7 failing checks (3.3%)
Translation: GnuCash/Glossary (Czech)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/cs/

Co-authored-by: Kryštof Černý <cleverline1mc@gmail.com>
2023-02-23 18:53:21 +01:00
mocsa
c9c7c0a984
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: 63.8% (3449 of 5401 strings; 996 fuzzy)
323 failing checks (5.9%)
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: 63.7% (3442 of 5401 strings; 1000 fuzzy)
308 failing checks (5.7%)
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: 63.1% (3413 of 5401 strings; 1010 fuzzy)
258 failing checks (4.7%)
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: 63.1% (3411 of 5401 strings; 1013 fuzzy)
254 failing checks (4.7%)
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: 63.1% (3410 of 5401 strings; 1013 fuzzy)
252 failing checks (4.6%)
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: 63.0% (3406 of 5401 strings; 1015 fuzzy)
241 failing checks (4.4%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-02-23 18:53:21 +01:00
John Ralls
184669f517 Bug 798754 - Build fails with gcc 13 and glib > 2.76
GLib 2.76 introduced a no-discard warning on g_string_free
if the second parameter is FALSE. This revealed a string
leak and a correct usage that didn't use the return value.
2023-02-23 09:47:37 -08:00
Geert Janssens
549c93e005 Fix test for import-backend
Another split function needed mocking
2023-02-23 12:33:31 +01:00
Geert Janssens
fa980fb1c6 Bug 798334 - Importing transactions from CSV with space as thousand separator
In addition to stripping currency symbols also strip
all whitespace from fields that are to be interpreted
as numbers.
2023-02-22 15:49:42 +01:00
Geert Janssens
8c0032efc2 Bug 798691 - Memo field not updated on CSV import using U+C 2023-02-22 14:46:02 +01:00
Geert Janssens
b2703d8a02 CsvTokenizer - add additional test case for escaped quotes
It simulates the case where csv fields are fully quoted and an escaped
quote ("") is found in some field. This case is handled correctly,
adding the test to guard this in potential future modifications.
2023-02-22 14:45:44 +01:00
Geert Janssens
7fbe42530f One more empty string test for PR#1527 2023-02-22 10:51:49 +01:00
Christopher Lam
45cdf40785 Merge branch 'master-progress' #1527 2023-02-22 09:08:28 +08:00
John Ralls
4666a426ed Merge Richard Cohen's 'warn-deprecated-gtk-glib' into master. 2023-02-21 15:39:01 -08:00
Christopher Lam
50e9e70592 [import-backend] don't search GHashTable twice
search acct_id_hash once for dest_acct
2023-02-21 23:32:56 +08:00
Christopher Lam
bf79d6fa58 gtk_entry_get_text instead of gtk_editable_get_chars 2023-02-21 23:32:56 +08:00
Christopher Lam
8d44c1c38c [dialog-customer|employee|job|vendor] harmonize title setter 2023-02-21 23:32:56 +08:00
Christopher Lam
03871c55cf [dialog-employee] toggle sensitivity instead of visibility of GncAccountSel 2023-02-21 23:18:05 +08:00
Christopher Lam
f170d1d54c [dialog-customer|employee|vendor] combine GtkCheckButton with label
UX: increase the target area for click.

Also move GtkCheckButton to left-column and its dependent GtkWidget to
right-column.
2023-02-21 23:18:05 +08:00
Christopher Lam
016f82cf8b [eguile-utilities.scm] remove fmtnumber
deprecated in maint.
2023-02-21 23:18:05 +08:00
Richard Cohen
6470319c88 Warn about deprecated gtk, glib
- G_DISABLE_DEPRECATED no longer exists (as of glib 2.61.2)
- Turn off aqbanking global deprecation

Spoilers:

- gtk
 - (3.22) gdk_screen_width
 - (3.22) gdk_screen_height

- glib
 - (2.68) g_binding_get_target -> g_binding_dup_target

- aqbanking
 - AB_Banking_LoadSharedConfig
2023-02-21 12:59:42 +00:00
Richard Cohen
bddb4468fa Import GLIB2 as a target, and use it to simplify the CMakeLists 2023-02-21 12:59:42 +00:00
Richard Cohen
17648ac91f Remove unused ${GTK_INCLUDE_DIRS} and unneeded ${GTK3_INCLUDE_DIRS} 2023-02-21 12:59:37 +00:00
Richard Cohen
27fe72496e Remove unused ${GLIB_LIBS} ${GLIB_INCLUDE_DIRS}
They have been replaced by GLIB2_*
2023-02-21 12:50:38 +00:00
Richard Cohen
c2a1cd1038 Remove unused ${GNOME_LDFLAGS} 2023-02-21 12:50:38 +00:00
Robert Fewell
08de175e65 Fix previous commit due to recent build changes 2023-02-21 12:03:45 +00:00
Robert Fewell
c2242f769c Add a test for the built in default report invoice define 2023-02-21 10:51:01 +00:00
Robert Fewell
ec7cc27d6d Add tests for default invoice report book property 2023-02-21 10:48:34 +00:00
Robert Fewell
76f0e3a97e Add some PWARN messages to the default invoice report
book functions
2023-02-21 10:44:07 +00:00
Robert Fewell
e84ecd64a0 Remove leftover function from business-gnome-utils.h 2023-02-21 10:40:33 +00:00
Robert Fewell
d6514a47f2 Windows build failure, variable set but not used
With the introduction of using -Werror=unused-but-set-variable, a
variable in strptime.c was defined but no used.

Moved to be included in #ifdef _NL_CURRENT as that is where it is used.
2023-02-21 10:15:26 +00:00
Robert Fewell
d4820a25a4 Sort the gnc tree view column menu 2023-02-21 10:15:26 +00:00
Robert Fewell
b59bf0b633 Delete action on account page not disabled on edits
When the notes or description cells are edited, the toolbar delete
account action was not being disabled and so when you tried to deleted
some text the account was deleted instead.

Fixed by specifying correct action group and using it.
2023-02-21 10:15:26 +00:00
Frank H. Ellenberger
a84f191ed8 Merge branch 'maint' 2023-02-19 19:05:23 +01:00
Frank H. Ellenberger
b9c5416a00 Merge PR #1457 into maint 2023-02-19 17:42:42 +01:00
Frank H. Ellenberger
4bbe1f6977 L10N:cs: add glossary to CMakelists.txt 2023-02-19 16:11:01 +01:00
Frank H. Ellenberger
d922876d18 L10N:DE:SKR04 drop a placeholder 2023-02-19 15:01:49 +01:00
Frank H. Ellenberger
5e0e686356 L10N:cs: Add glossary and fix plural formula 2023-02-19 12:55:57 +01:00
Frank H. Ellenberger
7bcbf3e29d Merge branch 'maint' 2023-02-19 02:19:09 +01:00
Szia Tomi
69f838b84a
Translation update by Szia Tomi <sziatomi01@gmail.com> 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/

Co-authored-by: Szia Tomi <sziatomi01@gmail.com>
2023-02-19 00:42:41 +01:00
Kryštof Černý
339a45d01f
Translation update by Kryštof Černý <cleverline1mc@gmail.com> using Weblate
po/cs.po: 45.8% (2478 of 5401 strings; 1805 fuzzy)
701 failing checks (12.9%)
Translation: GnuCash/Program (Czech)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/cs/

Translation update  by Kryštof Černý <cleverline1mc@gmail.com> using Weblate

po/cs.po: 45.8% (2478 of 5401 strings; 1805 fuzzy)
701 failing checks (12.9%)
Translation: GnuCash/Program (Czech)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/cs/

Translation update  by Kryštof Černý <cleverline1mc@gmail.com> using Weblate

po/cs.po: 44.2% (2390 of 5401 strings; 1901 fuzzy)
681 failing checks (12.6%)
Translation: GnuCash/Program (Czech)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/cs/

Co-authored-by: Kryštof Černý <cleverline1mc@gmail.com>
2023-02-19 00:42:41 +01:00
mocsa
d6afb0da5e
Translation update by mocsa <csaba@feltoltve.hu> using Weblate
po/hu.po: 63.0% (3403 of 5401 strings; 1019 fuzzy)
381 failing checks (7.0%)
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: 62.5% (3378 of 5401 strings; 1062 fuzzy)
396 failing checks (7.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: 62.3% (3366 of 5401 strings; 1074 fuzzy)
396 failing checks (7.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: 62.2% (3363 of 5401 strings; 1077 fuzzy)
396 failing checks (7.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: 62.2% (3363 of 5401 strings; 1077 fuzzy)
395 failing checks (7.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.5% (3322 of 5401 strings; 1133 fuzzy)
400 failing checks (7.4%)
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.4% (3320 of 5401 strings; 1135 fuzzy)
400 failing checks (7.4%)
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.4% (3317 of 5401 strings; 1138 fuzzy)
400 failing checks (7.4%)
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.2% (3309 of 5401 strings; 1156 fuzzy)
409 failing checks (7.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.2% (3308 of 5401 strings; 1161 fuzzy)
403 failing checks (7.4%)
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.2% (3308 of 5401 strings; 1164 fuzzy)
406 failing checks (7.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.2% (3308 of 5401 strings; 1164 fuzzy)
405 failing checks (7.4%)
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.2% (3308 of 5401 strings; 1164 fuzzy)
404 failing checks (7.4%)
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.1% (3305 of 5401 strings; 1175 fuzzy)
412 failing checks (7.6%)
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: 60.8% (3286 of 5401 strings; 1194 fuzzy)
400 failing checks (7.4%)
Translation: GnuCash/Program (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/hu/

Co-authored-by: mocsa <csaba@feltoltve.hu>
2023-02-19 00:42:40 +01:00
Christopher Lam
5acf686c76 [eguile-utilities.scm] fmtnumeric: use xaccPrintAmount
fmtnumeric is used to render Quantity, Discount percent. Previously it
would render 1/3 as 0.333333333. Use xaccPrintAmount to show exact
fractions for Qty and Discount, where appropriate.
2023-02-18 13:13:54 +08:00
Christopher Lam
2acba0ea18 [taxinvoice.scm] use fmtnumeric to render discount percentage 2023-02-18 13:10:50 +08:00
Jeff
87ff5f1191 [taxinvoice.eguile.scm] subtotal discount column appropriately 2023-02-18 13:08:46 +08:00
Christopher Lam
498799a749 [receipt.eguile.scm] remove commented-out line 2023-02-18 13:08:33 +08:00
Geert Janssens
8a23304283 GncGSettings - use bool as return type for static function 2023-02-17 18:10:35 +01:00