Commit Graph

26702 Commits

Author SHA1 Message Date
Christopher Lam
119356752f Merge branch 'maint' 2023-01-30 09:56:13 +08:00
Geert Janssens
5bbfb8efd4 Add proper indent to scheme changes from previous commit
Committed seperately to make it easier to look at the actual changes.
This commit only adds a 2 space indent to one function body.
2023-01-29 23:11:49 +01:00
Geert Janssens
34ed91eac9 Bug 798734 - Aging Reports don't handle mixed currency payments and invoices without Trading Accounts
Revisit the fix. It still made assumptions about the way
payment transactions were created. It can now handle
payment transaction either in the payment account
currency or in the post account currency.
2023-01-29 23:09:06 +01:00
Geert Janssens
894f8241e1 Revisit invoice payment in multi-currency context
- Show proper amount in dialog when applying or editing an existing transaction as payment
- Be more careful not to waste the existing payment split
- If the user changed the payment amount while starting from an existing transaction
  unreconcile the changed payment split
- Avoid needlessly changing transaction currency (only do so if the user chose
  a new transfer account and the old currency is neither the new transfer account's
  currency nor the post account's currency)
2023-01-29 23:09:06 +01:00
Geert Janssens
2d3d05068d Edit/assign payment - be more prudent not to lose data
We can't handle the case where a transaction has splits in more than one
APAR account. Instead of only warning that some of them will be lost
refuse to continue and leave it to the user to fix the transaction first.
2023-01-29 23:09:06 +01:00
Geert Janssens
8e6fb15d44 Improve a few messages related to business payments 2023-01-29 23:09:06 +01:00
Geert Janssens
dd50c7af13 Multi-currency - show split amount rather than transaction value
This issue was found while evaluating bug 798734, but not
the immediate topic of that bug.
2023-01-29 23:09:06 +01:00
Christopher Lam
34be3c8b14 [report-utilities] use fold for gnc:accounts-count-splits
previous definition would build intermediate lists for each step. also
handles the null account-list.
2023-01-29 23:51:31 +08:00
Robert Fewell
8a02f168b0 Fix wrong toolbar label and menu entry for stock assistant 2023-01-29 11:40:44 +00:00
Robert Fewell
cbb3bd4618 Fix ability to start stock assistant from account tree. 2023-01-29 11:40:05 +00:00
Robert Fewell
b44f0c67be Change the alignment of a couple of widgets in the stock
assistant
2023-01-29 11:39:21 +00:00
Robert Fewell
4b226c574b Change some alignment in source file assistant-csv-price-import.c 2023-01-29 11:38:25 +00:00
Robert Fewell
9889712be5 Block CSV price import separator call backs while buttons updated
When the individual CSV separator buttons were being updated, the
associated call could be triggered several times. To stop this, block
the call back for the individual buttons when they are updated and call
it at the end.
2023-01-29 11:37:29 +00:00
Robert Fewell
a94ca11ba7 Configuration not properly saved for CSV price import
The trailing lines value was not being saved properly.
2023-01-29 11:36:42 +00:00
Robert Fewell
7bc4e0370d Add widget names to import dialogs so they can be manipulated with css 2023-01-29 11:35:57 +00:00
Robert Fewell
b85afa790f Only test for linked document glyths once per register
Change the function gnc_split_register_load to run the test for glyths
only on first pass.
2023-01-29 11:32:50 +00:00
Robert Fewell
4741ee355b Change normalize mode in a couple of places
To be consistent, change the normalize mode in gnc-account-sel and
gnc-account-edit to G_NORMALIZE_NFC which is used in other locations.
2023-01-29 11:02:15 +00:00
Geert Janssens
3a6d1ea663 Bug 798737 - Minor grammatical error - 'for' missing in 'You will be asked a conversion rate for each.' 2023-01-29 10:14:38 +01:00
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
John Ralls
44f4b55927 Merge Richard Cohen's 'fix-memleaks' into master. 2023-01-26 12:52:21 -08:00
John Ralls
09b0bfe8b9 Merge Richard Cohen's 'reinstate-tests' into master. 2023-01-26 12:48:08 -08:00
John Ralls
f8465dadf4 Fix a pair of missed extern "C" decls. 2023-01-26 12:45:10 -08:00
Richard Cohen
846e75146a Fix some typos so that the correct tests are run
- test_gnc_txn_to_float_txn_cut_semantics
- test_dbi_business_store_and_reload
2023-01-26 15:42:13 +00:00
Richard Cohen
5be5c58b4f Fix memory leak in aqbanking 2023-01-26 14:37:05 +00:00
Richard Cohen
619f62fb0e Fix memory leak in gnc-split-reg.c 2023-01-26 14:36:58 +00:00
Richard Cohen
671f14f68a Fix memory leak in import-main-matcher.c 2023-01-26 14:36:52 +00:00
Richard Cohen
a2ffc7fe75 Fix memory leak in binreloc function _br_find_exe()
Ironically, it seems to be in a code path that
is only followed when using valgrind
2023-01-26 14:36:43 +00:00
luzpaz
67ab9e90d2 Fix some typos 2023-01-26 13:48:58 +01:00
Christopher Lam
17820ec261 Merge branch 'maint' 2023-01-26 18:40:44 +08:00
John Ralls
4739e8ce04 Merge Bob Fewell's 'bug798475' into master. 2023-01-24 13:36:50 -08:00
John Ralls
f4c6d65395 Merge Bob Fewell's 'nofree' into maint. 2023-01-24 13:25:02 -08:00
John Ralls
f6919e60a7 Merge Richard Cohen's 'cleanup' into master. 2023-01-24 12:05:47 -08:00
John Ralls
705ad0f046 Merge Richard Cohen's 'remove-extra-semicolons' into master. 2023-01-24 11:49:37 -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
Richard Cohen
6927535a0a Remove unused test function get_object_is_initialized in qofobject.cpp 2023-01-24 13:36:37 +00:00
Richard Cohen
925fcbc3fd Remove unused gnc-jalali.{c,h} 2023-01-24 13:36:23 +00:00
Richard Cohen
e83c91050c Remove unneeded dummy.cpp 2023-01-24 13:36:02 +00:00
Richard Cohen
47491eeaa5 Update old-style function definition for my_strtok() 2023-01-24 13:35:46 +00:00
Richard Cohen
d6ac56ce5f Re-enable -Waddress - gncInvoiceLookup etc. are now inline functions, not macros
- Remove outdated comments
2023-01-24 13:35:22 +00:00
Richard Cohen
3360a6d13b Remove extra semicolons
Courtesy of gcc -pedantic
2023-01-24 13:22:18 +00:00
John Ralls
a81b72f04c Merge Ralf Habacker's 'activate-opening-balance-accounts' into maint. 2023-01-23 14:43:49 -08:00
John Ralls
046e4a156e Silence Clang deprecation warnings about sprintf. 2023-01-23 12:54:25 -08:00
John Ralls
dd2497416c Merge Richard Cohen's 'internal-extern-c' into master. 2023-01-23 11:27:05 -08:00
John Ralls
60c06debce [c++options] Don't crash when find_option returns nullopt. 2023-01-23 11:22:35 -08:00
Richard Cohen
1cec0cb3f3 Use internal extern "C" { ... } for C++
- removes warnings compiling swig engine
...
[ 10%] Generating swig-engine.cpp
.../libgnucash/engine/engine-helpers.h:31: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gnc-date.h:83: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/qofquery.h:90: Warning 302: Identifier 'QofQuery' redefined (ignored),
.../libgnucash/engine/gnc-option.hpp:55: Warning 302: previous definition of 'QofQuery'.
.../libgnucash/engine/gnc-commodity.h:56: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncBusiness.h:40: Warning 313: Unrecognized extern type "C++".
.../libgnucash/engine/gncEntry.h:37: Warning 313: Unrecognized extern type "C++".
2023-01-23 18:40:01 +00: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
062f3fb19d [c++options]Fix key-press handling on macOS.
gcc apparently can convert the bool value false to the C equivalent
0. Clang apparently not, dialog_window_key_press_cb was blocking
further key press handling meaning the GtkWindow never saw the
event.
2023-01-22 15:35:21 -08:00
John Ralls
432f2d4bb8 Merge Richard Cohen's suppress-boost-warning into master. 2023-01-22 10:50:11 -08:00