Robert Fewell
518ecfe041
Add some functions that would allow adding a balance limit to accounts
2022-12-10 13:37:41 +00:00
Geert Janssens
98251d59a6
Bug 798672 - Preferences are not saved nor loaded, ERROR <GLib-GIO> g_settings_new_full: assertion 'schema != NULL' failed
...
Apparently it was a failure on our side to properly look up
requested gsettings schema.
2022-11-29 12:27:21 +01:00
Christopher Lam
bfc325f63c
Merge branch 'maint'
2022-11-27 16:12:46 +08:00
Marco Scardovi
6fe2028bca
Fix test
...
Signed-off-by: Marco Scardovi <mscardovi@icloud.com >
2022-11-24 23:20:07 +01:00
Robert Fewell
59d95a4ce6
Bug 798545 - Crash when updating document link on vendor bill
...
There were two issues here, the first one was that the copied doclink
was pointing to the original doclink which lead to a double-free. The
second is the setting of the doclink on the copied invoice needs to be
done with gncInvoiceSetDocLink otherwise on closure the doclink value
will disappear.
2022-11-24 11:16:01 +00:00
Christopher Lam
3d8a28898d
[gnc-budget] gnc_budget_get_account_period_note returns a const
...
to harmonize with all other char getters
2022-11-19 10:35:49 +08:00
Christopher Lam
2ee0c98200
[gnc-budget] use operator[] instead of find() and insert()
...
- avoid hashing Account* twice. one call to operator[] is sufficient.
- don't need use std::move with better constructors
- sanity check - can't have a budget with num_periods = 0
- remove unused headers
2022-11-19 10:35:43 +08:00
Christopher Lam
3e5fcc8709
Merge branch 'maint'
2022-11-15 22:20:54 +08:00
Robert Fewell
4f8643674b
Remove all references to GncDisplayItem
2022-11-05 17:04:12 +00:00
Robert Fewell
078d7875d3
Change all references to plugin_class->actionsb
...
Change all references to plugin_class->actionsb and n_actionsb to
plugin_class->actions and n_actions
2022-11-05 17:04:11 +00:00
Christopher Lam
6f80c548e6
[gtest-qofevent.cpp] comprehensive tests for qofevent
2022-11-05 09:25:24 +08:00
Christopher Lam
05ffd3d4eb
[budget-feature] move unset_feature call to gnc_budget_gui_delete_budget
...
because gnc_budget_gui_delete_budget is a more general function to
delete a budget.
2022-10-31 12:03:58 +08:00
Christopher Lam
b87aa004f9
[test-qofbook] add tests for unknown features
...
tests that gnc_features_test_unknown returns a suitable error message
2022-10-31 10:40:12 +08:00
Robert Fewell
0f70143c55
Initial change to plugin source files
2022-10-30 13:16:34 +00:00
John Ralls
b9077bccd3
Bug 798640 - Segfault when running saved report
2022-10-29 17:45:35 -07:00
Christopher Lam
fc94b41c81
Merge branch 'maint'
2022-10-29 21:53:57 +08:00
Christopher Lam
4716af24e4
Merge branch 'maint'
2022-10-29 21:16:34 +08:00
Christopher Lam
ba44f720c1
Merge branch 'maint'
2022-10-29 21:15:41 +08:00
Christopher Lam
f2354d6b2a
[test-qofbook.c] add test for gnc_features_set_unused
2022-10-29 21:01:08 +08:00
Christopher Lam
1516bb18b0
[gnc-features.cpp] backport gnc_features_set_unused from master
2022-10-29 21:01:01 +08:00
Christopher Lam
a078921a33
[qofbook.cpp] backport qof_book_unset_feature from master
2022-10-29 21:00:54 +08:00
John Ralls
cf088f2a70
Merge John Ralls's 'Bug798614' into maint.
2022-10-28 15:27:28 -07:00
Christopher Lam
093aa81ed1
[qofbook.cpp] deprecate qof_book_get_features
2022-10-28 21:57:15 +08:00
Christopher Lam
8192deff37
[gnc-features.cpp] convert to cpp
...
- don't need to create/destroy GHashTable for each feature query
- plugs leak: g_hash_table_unref (features_used) not always called properly
- to check 1 feature, don't need to traverse whole GHashTable
2022-10-28 20:50:35 +08:00
Christopher Lam
6f6d2fef48
[test-qofbook] basic features test
...
sets a feature and tests it's set. it's impossible to design a book
with unknown features using the API.
2022-10-27 20:10:49 +08:00
John Ralls
14a0ea4ed3
[price-quotes] Sort and format source list.
2022-10-17 11:13:55 -07:00
John Ralls
1a906b00aa
[price-quotes] Enable gnucash-cli to retrieve preferences on macOS.
...
By embedding a minimal Info.plist with a bundle ID into the executable.
This necessitated a change to binreloc because the unix-style install
depended on there being a bundle ID only when the program was run from
an application bundle.
2022-10-17 10:06:21 -07:00
John Ralls
2767587874
[price-quotes] Fix setting alphavantage API key.
2022-10-14 15:47:07 -07:00
John Ralls
939a77407c
Merge branch 'price-quotes-cpp'
2022-10-14 11:25:14 -07:00
John Ralls
7f2a09a69f
[price-quotes] Handle short error strings from finance-quote-wrapper.
...
This keeps the translation work in GnuCash and improves the error
signalling in gnc-quotes.
2022-10-14 10:26:51 -07:00
John Ralls
fe9b23ff2b
[price quotes] Pass short errors to gnc-quotes.
...
And wordier but not translated messages when STDERR is a tty.
2022-10-14 10:26:51 -07:00
John Ralls
88d658fef0
[price-quotes] Date::Manip is no longer required.
2022-10-13 14:58:27 -07:00
John Ralls
50c72b4f88
[price-quotes] Remove m_ready and usable() from GncQuoteSource.
...
GncQuoteSource ctor throws if something is wrong so usable is always true.
2022-10-13 14:28:17 -07:00
John Ralls
7d93774dd2
[price-quotes] Throw instead of returning if there aren't any commodities to quote.
...
So that the user gets sees an error instead of silent failure.
2022-10-13 13:51:37 -07:00
John Ralls
81d4ea9550
[price-quotes] Remove F::Q version format check.
...
We don't care what the version string looks like as long as there is one.
2022-10-13 12:58:09 -07:00
John Ralls
c78fe37ff7
[price-quotes] General typo fixes and code cleanup.
2022-10-13 12:52:36 -07:00
John Ralls
70c9d4c9e3
[price-quotes] Fix version retrieval.
...
Plus there's no need for a "not found" version string because GncQuotes
construction will throw if Finance::Quote isn't correctly installed. No
object, nothing to call version() on.
2022-10-13 12:20:59 -07:00
John Ralls
97e730b8d8
[price-quotes] Reformat test quote response strings to one line per quote.
2022-10-13 11:24:49 -07:00
John Ralls
f24c2c8bdd
Instrument failure to set the account when creating a split.
2022-10-11 14:05:45 -07:00
Mike Alexander
3c306eae65
Merge branch 'maint'
2022-10-09 22:27:55 -04:00
Mike Alexander
2d3e80ea08
Compatibility with XCode's "new build system"
...
With XCode 14 or newer CMake tries to use the "new build system" which has a
requirement that if two targets depend on the same generated file one of them
must depend on the other. This commit adds reduntant dependencies to satisfy
this requirement.
2022-10-09 01:10:06 -04:00
John Ralls
c7d1b6ab26
Bug 798633 - 4.12 build failure on 32-bit Linux: "No code for module"
2022-10-04 09:12:10 -04:00
John Ralls
673a925554
[price-quotes] Remove superseded gnc-fq-dump and Quotes-example.pl
2022-10-02 11:50:26 -07:00
John Ralls
e817091de1
[price-quotes] Warn only once if the AlphaVantage Key isn't set.
...
And check the environment if it's not in preferences.
2022-10-02 11:50:26 -07:00
John Ralls
d97ea77762
[price quotes] Add report member function to display quote information to stdout.
...
Instead of creating price instances in the database.
2022-10-02 11:50:26 -07:00
John Ralls
6ffb0bb633
[price-quotes] Report quote fetch failures to the user.
2022-10-02 11:50:26 -07:00
John Ralls
4c47e91180
[price-quotes] Implement error codes for currency and quote failures.
2022-10-02 11:50:26 -07:00
John Ralls
6db7800ca5
[price-quotes] Doxygen docs.
2022-10-02 11:50:26 -07:00
John Ralls
29ce925646
[price-quotes] Test the other fetch overloads and quote values.
2022-10-02 11:50:26 -07:00
John Ralls
b5bc6463a3
[price-quotes] Rework date-time handling.
...
A check of the F::Q modules found that the only ones that return a quote
time return a bogus one and do so only to mollify GnuCash.
Since there's no good way to determine the TZ of the exchange originating
the quote there's no good way to decide if the quote is current or from
a previous market session, so we just punt and use a time of 16:00 for
all quotes.
2022-10-02 11:50:26 -07:00