Commit Graph

24484 Commits

Author SHA1 Message Date
Christopher Lam
be19b489e4 [gncEntryLedger] free taxes, a list of GncAccountValue 2021-05-31 23:12:59 +08:00
Christopher Lam
c3ed055f31 [gncEntryLedgerModel] const functions should return static buffer 2021-05-31 22:22:54 +08:00
Christopher Lam
4a45d36047 [split-register-model] const functions should return static buffer 2021-05-31 22:22:54 +08:00
Robert Fewell
8f0631590b Add validation to the use of GNCAmountEdit for rest
Add validation of GNCAmountEdit where used in the remaining source
files and make changes required for the change in GNCAmountEdit widget.
2021-05-31 11:11:01 +01:00
Robert Fewell
862e0ca579 Add validation to the use of GNCAmountEdit for search
Add validation of GNCAmountEdit where used in the search source
files and make changes required for the change in GNCAmountEdit widget.
2021-05-31 11:11:01 +01:00
Robert Fewell
08b578a2e4 Add validation to the use of GNCAmountEdit for fincalc
Add validation of GNCAmountEdit where used in the fincalc source files
and make changes required for the change in GNCAmountEdit widget.
2021-05-31 11:11:01 +01:00
Robert Fewell
510e186ed2 Add validation to the use of GNCAmountEdit for assistants
Add validation of GNCAmountEdit where used in the assistant source
files and make changes required for the change in GNCAmountEdit widget.
2021-05-31 11:11:01 +01:00
Robert Fewell
92b877ccd1 Add validation to the use of GNCAmountEdit for Business
Add validation of GNCAmountEdit where used in the Business source files
and make changes required for the change in GNCAmountEdit widget.
2021-05-31 11:11:01 +01:00
Robert Fewell
faaed371ed Bug 798144 - Reconciliation uses different number than entered
If a number was pasted into the balance end value with a currency
symbol the number would silently fail on evaluate and cause the wrong
value to be used. With previous changes to the GNCAmountEdit widget a
warning symbol will indicate a validation error and prevents going
forward.
2021-05-31 11:11:01 +01:00
Robert Fewell
51b062524b Change GNCAmountEdit to be based on a GtkBox
To indicate that the expression entered has failed change the widget it
is based on to a box and add a warning triangle image with tooltip that
is made visible when the validation has failed. This is less intrusive
but if required the error message can be retrieved and used for a
warning dialog if that is in keeping with other dialog checks.
2021-05-31 11:11:01 +01:00
Robert Fewell
7ee9dac2e9 Add filter for currency symbol for GNCAmountEdit widget
When pasting an amount that includes the currency symbol the validation
will silently fail which may lead to unusual behaviour.
2021-05-31 11:11:01 +01:00
Robert Fewell
db6f233705 Incorrect validation for GNCAmountEdit
gnc_amount_edit_expr_is_valid can return 0 for validation OK, 1 for an
error with no position information and also the position of that error.
If the error was at position 0, that will look like the validation was
OK so instead return 1 and use a GError parameter using the position as
the code and setting the message to the common format used. Also as
gnc_amount_edit_evaluate could also benefit from using the GError add
that as a parameter and initially set all occurrences of use to NULL.
2021-05-31 11:11:01 +01:00
Robert Fewell
788166b3a7 Filter control characters when pasted to GNCAmountEdit 2021-05-31 11:11:01 +01:00
Robert Fewell
b728a331cf Realign source file gnc-amount-edit.* for white space 2021-05-31 11:11:01 +01:00
Robert Fewell
32f605aec2 Extract common code used in pricecell and formulacell to basiccell 2021-05-31 11:11:01 +01:00
Robert Fewell
6facaa0683 Change how the print_info is obtained for the register
Currently the register sets up some 'print_info' values using the
default account but if the register is a stock register they should be
obtained from a parent account with a currency.
2021-05-31 11:11:01 +01:00
Robert Fewell
748dbf54e0 Change monetary value for gnc_default_share_print_info
Share values are not currencies so set the monetary value to 0 for the
GNCPrintAmountInfo
2021-05-31 11:11:01 +01:00
Robert Fewell
435bb1c76b Parse the register monetary cells for a currency symbol
Add the ability to strip the currency symbol from a registry monetary
cell if it is pasted with one so it can be validated.
2021-05-31 11:11:01 +01:00
Robert Fewell
5779e72db4 Realign source file gnucash-item-edit.c for white space 2021-05-31 11:11:01 +01:00
Robert Fewell
d55060c0fc Bug 796761 - Control characters can be pasted in register fields
If copied text includes control characters they are inserted when
pasted which can cause alignment issues. This commit filters the
clipboard text for control characters before it is pasted.
2021-05-31 11:11:01 +01:00
Robert Fewell
ec9cdd151d Remove spurious GtkLabel from dialog-transfer.glade 2021-05-31 10:47:27 +01:00
峡州仙士
e5b11401d1 Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 100.0% (5479 of 5479 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: 峡州仙士 <c@cjh0613.com>
2021-05-30 05:10:15 +02:00
Christopher Lam
f37fa85705 build dom_tree_to_list_kvp_value more efficiently
seems to be unused however
2021-05-30 11:09:39 +08:00
Christopher Lam
59386b4081 gchar* dom_tree_to_text must be g_freed 2021-05-30 08:10:19 +08:00
Christopher Lam
292deb0a11 [binreloc.c] free strings
subdir, prefix are not consistently freed.
2021-05-29 07:55:26 +08:00
Christopher Lam
1f28162729 [gnc-tree-view.c] free array of strings
was created with g_strsplit but never freed.
2021-05-29 07:54:04 +08:00
峡州仙士
88f372da07
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 100.0% (5479 of 5479 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: 峡州仙士 <c@cjh0613.com>
2021-05-28 03:35:53 +02:00
Christopher Lam
d83eff3a55 Merge branch 'maint' 2021-05-28 08:00:20 +08:00
Frank H. Ellenberger
471f54e7c9 Merge remote-tracking branch 'weblate/maint' into maint 2021-05-27 17:37:13 +02:00
峡州仙士
d6d14411b7
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 99.9% (5475 of 5479 strings; 0 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by 峡州仙士 <c@cjh0613.com> using Weblate

po/zh_CN.po: 99.9% (5475 of 5479 strings; 0 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-27 03:35:44 +02:00
Adolfo Jayme Barrientos
b515593909
Translation update by Adolfo Jayme Barrientos <fitojb@ubuntu.com> using Weblate
po/es.po: 94.8% (5198 of 5479 strings; 237 fuzzy)
82 failing checks (1.4%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-05-27 03:35:44 +02:00
峡州仙士
383073b0ee
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 99.9% (5475 of 5479 strings; 0 fuzzy)
3 failing checks (0.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-26 16:34:38 +02:00
Adolfo Jayme Barrientos
4d789cd8d9
Translation update by Adolfo Jayme Barrientos <fitojb@ubuntu.com> using Weblate
po/es.po: 94.8% (5198 of 5479 strings; 237 fuzzy)
82 failing checks (1.4%)
Translation: GnuCash/Program (Spanish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/es/

Co-authored-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-05-26 16:34:37 +02:00
Ralf Habacker
296d05afd8 commodity_changed_cb(): Prevent a signal handler loop when recognizing multiple opening balance accounts
See #820
2021-05-26 12:17:28 +02:00
Eugenia Russell
5b996085c6
Translation update by Eugenia Russell <eugenia.russell2019@gmail.com> using Weblate
po/el.po: 53.7% (2944 of 5479 strings; 1500 fuzzy)
611 failing checks (11.1%)
Translation: GnuCash/Program (Greek)
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/el/

Co-authored-by: Eugenia Russell <eugenia.russell2019@gmail.com>
2021-05-25 01:33:41 +02:00
峡州仙士
91a94cdfbf
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 92.0% (5042 of 5479 strings; 324 fuzzy)
324 failing checks (5.9%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-25 01:33:41 +02:00
峡州仙士
d174b9ad37
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 77.0% (4220 of 5479 strings; 1139 fuzzy)
390 failing checks (7.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by 峡州仙士 <c@cjh0613.com> using Weblate

po/zh_CN.po: 74.4% (4078 of 5479 strings; 1282 fuzzy)
541 failing checks (9.8%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-24 03:35:03 +02:00
John Ralls
2ab5357be6 Merge Ralf Habacker's 'account-dialog-opa-state-fix' into maint. 2021-05-23 15:06:14 -07:00
Ralf Habacker
0a5f05c0cb Enable the opening balance tab in the Edit Account dialog.
When the account has no splits. This enables a user who meant to add an
opening account either in the Account Hierarchy Assistant or the New
Account dialog to do so more easily than by creating such a transaction
by hand.
2021-05-23 14:58:07 -07:00
Ralf Habacker
f88033850c In the account dialog, make sure that the state of the dialog is checked and not the account type
Fix for #762 mentioned at #820.
2021-05-22 12:57:14 +02:00
峡州仙士
f782ef37a1
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 74.3% (4075 of 5479 strings; 1285 fuzzy)
543 failing checks (9.9%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by 峡州仙士 <c@cjh0613.com> using Weblate

po/zh_CN.po: 73.8% (4044 of 5479 strings; 1288 fuzzy)
553 failing checks (10.0%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-21 18:34:07 +02:00
Aputsiak Niels Janussen
b7c7637220
Translation update by Aputsiak Niels Janussen <aj@isit.gl> using Weblate
po/glossary/da.po: 82.6% (172 of 208 strings; 22 fuzzy)
0 failing checks (0.0%)
Translation: GnuCash/Glossary (Danish)
Translate-URL: https://hosted.weblate.org/projects/gnucash/glossary/da/

Co-authored-by: Aputsiak Niels Janussen <aj@isit.gl>
2021-05-21 18:34:06 +02:00
Christopher Lam
e0c260fe0b Bug 798188 - The Invoice Editor -> Printable Invoice toolbar button crashes on Windows
search the list of active report pages.
2021-05-21 19:17:11 +08:00
Christopher Lam
3bb6801e94 move WINDOW_REPORT_CM_CLASS definition to gnc-plugin-page-report.h
and remove unused definition in window-report.h
2021-05-21 19:17:11 +08:00
峡州仙士
4ab9bd4d84
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 66.7% (3655 of 5479 strings; 1288 fuzzy)
446 failing checks (8.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by 峡州仙士 <c@cjh0613.com> using Weblate

po/zh_CN.po: 66.7% (3655 of 5479 strings; 1288 fuzzy)
446 failing checks (8.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-18 15:34:14 +02:00
Christopher Lam
48f7e33cbe [gnc-plugin-page-register] retrieve filter from .gcm properly
ce34d0a4b had bug -- filter was retrieved but not returned.
2021-05-18 19:09:08 +08:00
Christopher Lam
c1cb29df53 GncGUIDs should be freed with guid_free instead of g_free 2021-05-17 21:00:59 +08:00
峡州仙士
072f3ac1cc
Translation update by 峡州仙士 <c@cjh0613.com> using Weblate
po/zh_CN.po: 66.6% (3651 of 5479 strings; 1292 fuzzy)
446 failing checks (8.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Translation update  by 峡州仙士 <c@cjh0613.com> using Weblate

po/zh_CN.po: 66.5% (3647 of 5479 strings; 1296 fuzzy)
447 failing checks (8.1%)
Translation: GnuCash/Program (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/gnucash/gnucash/zh_Hans/

Co-authored-by: 峡州仙士 <c@cjh0613.com>
2021-05-17 06:32:06 +02:00
Christopher Lam
52f7c3ad71 Merge branch 'maint' 2021-05-17 08:11:43 +08:00
Christopher Lam
c3dc34330d [html-chart.scm] don't use define-public
push to standardize using define and export
2021-05-17 07:56:21 +08:00