Commit Graph

23363 Commits

Author SHA1 Message Date
Christopher Lam
a10c084022 1/3 [report-utilities][API] copy funcs engine.scm to report-utilities.scm
The following copied from similarly named functions in libgnucash

gnc:account-full-name<?
gnc:accounts-get-children-depth
2020-11-01 08:30:56 +08:00
Christopher Lam
25e4efc2b7 [core-utils.scm][API] gnc:string-locale<? gnc:string-locale>?
locale-sensitive string-sorting functions -- currently mirrors guile's
(ice-9 i18n) functions -- may be modified to call C code if guile code
is not reliable.
2020-11-01 08:30:56 +08:00
Christopher Lam
e9d1e694f2 Addendum to 0446dca54, fix currency bug 2020-11-01 08:30:20 +08:00
Christopher Lam
d87c469e17 Bug 797993 - Reverse balance option does not apply to an Account Report 2020-11-01 07:23:27 +08:00
Christopher Lam
9e70d7f45a [register.scm] some cleanups 2020-11-01 07:23:27 +08:00
McLayn
cebe6022c8 fix CZK partname to nominative singular 2020-10-30 00:40:02 +01:00
Robert Fewell
5df7949a87 Fix GtkLabel error for autoclear status_label
Move setting up the callback that clears the status_label till after
setting up the status_label.
2020-10-29 12:03:16 +00:00
Christian Stimming
f3ba84921b Add tooltip in import matcher window for description and memo column. 2020-10-27 23:03:46 +01:00
Christian Stimming
6e3c98c2fb L10N🇩🇪 Minor improvements in German translation
Made strings in the import matcher more compact, which leaves more
space on the screen for the interesting content.
2020-10-27 23:02:35 +01:00
Frank H. Ellenberger
10032c17b5 L10N🇩🇪 Berichtige "Ausgleichskonto" zu "Anfangsbestand"
Fehler wegen Mißdeutung des Kontexts von 'balance'
2020-10-27 22:17:18 +01:00
John Ralls
1915dfb0cb Put Macs back on WebKit2. 2020-10-27 13:10:59 -07:00
Christopher Lam
a6c8a806f3 Bug 797982 - exchange rates' decimal places (bis)
Bug introduced in e7165507c. We need to normalize date for
pricedb-nearest to avoid getting next day price.
2020-10-27 11:06:45 +08:00
Frank H. Ellenberger
fedaa13396 CMake: Mute guile-2.2 again 2020-10-27 01:56:45 +01:00
John Ralls
946cbef95f HTML fonts: Parse additional values of font-weight from the pango font name. 2020-10-26 14:05:31 -07:00
John Ralls
4ddd28a5d9 Extract font-stretch when converting pango font names to CSS.
Also wrap font-family value in quotes and lower-case the fallback
generic sans-serif font-family for CSS conformance (though browsers
don't seem to care).
2020-10-26 12:04:23 -07:00
John Ralls
676cc337dc [macOS] Replace bogus font name from pango.
Pango on macOS reports ".AppleSystemUIFont" as the name for the
system-ui alias. This bogus name doesn't work so replace it with
the fallback Arial.
2020-10-26 11:52:31 -07:00
John Ralls
974342bbae [macOS] Fix Fontconfig unable to find conf.d. 2020-10-26 11:52:31 -07:00
Christopher Lam
92f2727862 Merge branch 'maint-797982' into maint #802 2020-10-26 23:57:39 +08:00
Christopher Lam
1a4f27f6b3 [html-utilities.scm] deprecate gnc:html-make-exchangerates
Because old exchange rates function used exchange-fn which converts 1
commodity into domestic currency; new exchange rates uses price-fn
which queries the gnc_numeric pricedb entry directly.
2020-10-26 23:56:33 +08:00
Christopher Lam
89c0baee9b Bug 797982 - exchange rates' decimal places
use gnc:html-make-rates-table instead of gnc:html-make-exchangerates
to show effective exchange rate or price used
2020-10-26 23:56:33 +08:00
Christopher Lam
4ff3355f02 [html-style-info.scm] price-renderer does not convert to decimal
so that it may obey global pref decimal vs fraction
2020-10-26 23:56:33 +08:00
Christopher Lam
e7165507c8 [commodity-utils.scm][api] gnc:html-make-rates-table with price-fn
better precision than gnc:html-make-exchangerates
2020-10-26 23:56:33 +08:00
Christopher Lam
e833c8e1aa [utest-gnc-pricedb.c] test: gnc_pricedb_get_[latest|nearest]_price 2020-10-26 23:56:33 +08:00
Christopher Lam
2ecdd70e24 [gnc-pricedb.c][api] pull out composite pricedb price retriever
* tries direct price retrieval from pricedb.
* if fails, tries intermediate currency.
2020-10-26 23:55:51 +08:00
Frank H. Ellenberger
b675e17e4e L10N🇩🇪 Fix typo of last commit 2020-10-25 07:48:23 +01:00
Frank H. Ellenberger
5671028ba3 L10N🇩🇪 Verbesserung translator-credits (von it.po) 2020-10-23 21:24:15 +02:00
Christopher Lam
4d63eb922f [gnc-pricedb.c] copy convert_amount to convert_price 2020-10-23 09:49:27 +08:00
Christopher Lam
26e7eada37 [gnc-pricedb.c] refactor amount converters, use common code 2020-10-23 09:49:27 +08:00
Christopher Lam
78c8b03c5e [window-autoclear.c] cleanup, optimize, prevent UI lag
abort:
1. if too many splits lead to >1,000,000 reachable amounts
2. if the end_balance is the same as cleared_balance

also:
- g_free lists properly
- move knapsack algorithm to gnc-ui-balances.c
- show newly cleared splits in a new register: "Cleared Transactions"
- remove unneeded #includes
2020-10-23 09:11:29 +08:00
Frank H. Ellenberger
4bebfed9e8 Merge branch 'it.po' into maint 2020-10-23 01:26:52 +02:00
Giuseppe Foti
efb9226e4a L10N🇮🇹 Updated Italian translation; 5528 translated messagges. 2020-10-23 00:59:36 +02:00
Robert Fewell
3c5066feb4 Change source files option-util.* for spaces and tabs 2020-10-22 14:30:46 +01:00
Robert Fewell
e588695502 Change source files dialog-options.* for spaces and tabs 2020-10-22 14:30:11 +01:00
Robert Fewell
f93f850f17 Bug 345924 - Conditionally change Options dialog cancel button
When the options dialog is loaded, the main buttons are a sensitive
'Cancel' button and insensitive 'OK' and 'Apply' buttons. When changes
are made the 'OK' and 'Apply' buttons become sensitive and when pressed
the 'OK' button will make changes and close dialog whereas the 'Apply'
button will make changes and the dialog will remain open but with these
buttons insensitive leaving just 'Cancel' sensitive.

This could be confusing so this commit changes conditionally the text
label of the 'Cancel' button between 'Cancel' and 'Close'.
2020-10-22 14:27:54 +01:00
Robert Fewell
c11f4db96e Bug 345924 - Report options 'Reset Button' always flags changes
If a report is loaded with default settings and the 'Reset button' is
pressed the 'OK/Apply' buttons will be enabled which should not happen
as there are no changes to be made.

Fixed by resetting the changed flag on options load and then comparing
the current value to the default one when the 'Reset button' pressed.
2020-10-22 14:26:50 +01:00
Robert Fewell
8e5e3480ad Bug 797984 - Infinite loop while Check&Repair AR and AP accounts
If using the Check&Repair option from the Chart of Accounts on 'Account
Receivable or Payable' add has a voided transaction will cause an
infinite loop.

This occurs from checking the transaction split amount is zero in
gncScrubBusinessSplit and trying to delete it. As the transaction is
read only as a result of being voided this fails so add a further
condition for the 'else if' statement to include !is_void.
2020-10-20 14:45:44 +01:00
Robert Fewell
794b31a98e Change Registers abort_scrub to use gnc_*_abort_scrub functions 2020-10-20 14:45:14 +01:00
Robert Fewell
1be3b7808d Allow the Check&Repair to be cancellable on a Register page
Add a callback for a keypress event when on the Register page that
checks for the Escape key and presents a dialog to confirm whether to
abort the Check&Repair. A similar dialog is used if you decide to quit
Gnucash while the Check&Repair is still running.
2020-10-20 14:44:20 +01:00
Robert Fewell
122cd682f6 Add some additional places where Check&Repair can be aborted 2020-10-20 14:43:39 +01:00
Robert Fewell
6ee537e1a7 Allow the Check&Repair routine to be cancellable from CoA
Add a callback for a keypress event when on the Accounts page that
checks for the Escape key and presents a dialog to confirm whether to
abort the Check&Repair. A similar dialog is used if you decide to quit
Gnucash while the Check&Repair is still running.
2020-10-20 14:42:32 +01:00
John Ralls
94a68dca7c Bug 797983 - v4.2 report numbers change over gnucash restarts;...
Price Database dropping user:price-editor entries.

A wider problem: QofInstance was unmarking itself dirty as long as the
backend raised an error and unconditionally marking itself non-infant.

This matters because the SQL backend depends on infant status to decide
whether to do an insert or update query; either will fail if the infant
status is wrong.

The price editor dialog clones a price having only its commodity set and
GncSqlPriceBackend declines to save if the currency isn't set. Since the
instance marked itself non-infant even though it wasn't saved subsequent
commits tried to use an update query and since the price wasn't in the
table that inevitably failed.

Requiring that QofBackend::commit should doing the marking-clean
required implementing it in the backends where it wasn't already.
2020-10-18 16:09:41 -07:00
John Ralls
e255a7bfe2 Make the price database list obey the force-prices-to-decimal preference.
It was always displaying decimals regardless of the preference value.
2020-10-18 10:58:42 -07:00
Robert Fewell
190d5f1a61 Bug 797971 - Inserting description text behaves oddly
This is best observed when trying to insert a character, say x when the
cursor is before the last character, the cursor will jump to the end
like... ABCD|E results in ABCDxE|

It can also affect when inserting/changing text that has come from the
quick fill the cursor may end up in the wrong place.

Changed a test condition to use the incoming new character length value
instead of the existing cell one.
2020-10-15 15:21:05 +01:00
Bill Nottingham
06110e2abd Fix warning about misleading indentation from recent gcc.
Patch by <law@redhat.com>
2020-10-15 08:38:00 +08:00
Christopher Lam
305a3a8257 [auto-clear] default to cleared balance, select end_value
Because the user is expected to overwrite the end_value, by default we
select the end_value. Also select if erroring out.
2020-10-14 20:17:49 +08:00
Cristian Klein
2f366e58ff [auto-clear] Respect account balance reversal 2020-10-14 20:17:04 +08:00
Cristian Klein
e9f6703562 [auto-clear] Better explain the feature 2020-10-14 20:17:02 +08:00
Cristian Klein
1ab28db23f [auto-clear] Automatically add current balance 2020-10-14 20:17:00 +08:00
Frank H. Ellenberger
792d52b489 L10N: patch on "Cash en lieu"
Keep the perhaps not perfect translation for the default memo text
instead of English

Current state: language, translated, fuzzy, untranslated
ar.po: 4167, 893, 468.
as.po: 4131, 921, 476.
az.po: 111, 1353, 4064.
bg.po: 3099, 1686, 743.
brx.po: 4135, 917, 476.
ca.po: 4289, 862, 377.
cs.po: 2430, 2013, 1085.
da.po: 3544, 1173, 811.
de.po: 5512, 4, 12.
doi.po: 2912, 1848, 768.
el.po: 2913, 1558, 1057.
en_GB.po: 2688, 1664, 1176.
es.po: 4899, 471, 158.
es_NI.po: 797, 3018, 1713.
et.po: 487, 18, 5023.
eu.po: 1503, 2623, 1402.
fa.po: 2890, 971, 1667.
fi.po: 2684, 133, 2711.
fr.po: 3854, 1159, 515.
gu.po: 2929, 1823, 776.
he.po: 5457, 59, 12.
hi.po: 4091, 961, 476.
hr.po: 5458, 59, 11.
hu.po: 2984, 1578, 966.
id.po: 2778, 1629, 1121.
it.po: 5457, 58, 13.
ja.po: 5057, 221, 250.
kn.po: 4133, 919, 476.
ko.po: 2262, 1887, 1379.
kok.po: 4136, 916, 476.
kok@latin.po: 4069, 983, 476.
ks.po: 4032, 1020, 476.
lt.po: 3961, 982, 585.
lv.po: 4569, 707, 252.
mai.po: 4109, 943, 476.
mni.po: 4136, 916, 476.
mni@bengali.po: 4136, 916, 476.
mr.po: 4094, 957, 477.
nb.po: 2773, 1845, 910.
ne.po: 2399, 2121, 1008.
nl.po: 5024, 333, 171.
pl.po: 3433, 1599, 496.
pt.po: 5060, 348, 120.
pt_BR.po: 3695, 1382, 451.
ro.po: 2773, 1881, 874.
ru.po: 4360, 809, 359.
rw.po: 194, 2945, 2389.
sk.po: 2453, 1772, 1303.
sr.po: 4316, 842, 370.
sv.po: 2833, 788, 1907.
ta.po: 4131, 921, 476.
te.po: 4118, 934, 476.
tr.po: 4295, 749, 484.
uk.po: 5458, 57, 13.
ur.po: 4101, 951, 476.
vi.po: 2661, 1977, 890.
zh_CN.po: 3042, 1739, 747.
zh_TW.po: 2598, 1761, 1169.
2020-10-14 05:55:33 +02:00
Frank H. Ellenberger
99c3337189 L10N: Merge recent pot in all po files 2020-10-14 05:55:10 +02:00