Christopher Lam
fd007a0af1
Merge branch 'maint'
3 years ago
Robert Fewell
6df866f876
Add tests for the reconcile account functions
3 years ago
Robert Fewell
fd37ee997d
Fix getting xaccAccountGetReconcilePostponeBalance
...
Change the G_VALUE from a INT64 to BOXED.
3 years ago
John Ralls
fb9947b7b6
Rename GncDateTime's ymd to gnc_ymd to avoid a name conflict with Carbon.
3 years ago
Christopher Lam
c65b36490a
Merge branch 'master-progress'
3 years ago
Frank H. Ellenberger
506a1b3c5e
Merge branch 'maint'
3 years ago
John Ralls
b922cfd78d
Bug 798679 - Unicode normalization should be used for comparison but not stored.
...
Change to NFC normalization for all comparisons because the Unicode
meaning of compatible might collide with the user's intent.
3 years ago
John Ralls
31d79e3004
Merge Bob Fewell's 'bug798673' into master.
3 years ago
Christopher Lam
259881f940
[gnc-optiondb] add some more renamed options
...
following ab13b01f8c Replace ... with … in all translatable strings.
3 years ago
John Ralls
ab13b01f8c
Replace ... with … in all translatable strings.
...
Also a few other places like translator comments and report options.
Replaces https://github.com/Gnucash/gnucash/pull/1033 .
3 years ago
John Ralls
b8c0673526
Merge branch 'maint'
3 years ago
Robert Fewell
3be25ff0a9
Add some tests for the account functions
3 years ago
Robert Fewell
a15c6f81b3
Allow the balances of sub accounts to be used in limits
3 years ago
John Ralls
73a134730f
Bug 798680 - Not able to match a reverse transaction of a...
...
previously matched transaction.
Cloned transactions and copied splits shouldn't keep the online-id
slot.
3 years ago
Robert Fewell
518ecfe041
Add some functions that would allow adding a balance limit to accounts
3 years ago
Christopher Lam
bfc325f63c
Merge branch 'maint'
3 years ago
Marco Scardovi
6fe2028bca
Fix test
...
Signed-off-by: Marco Scardovi <mscardovi@icloud.com>
3 years ago
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.
3 years ago
Christopher Lam
3d8a28898d
[gnc-budget] gnc_budget_get_account_period_note returns a const
...
to harmonize with all other char getters
3 years ago
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
3 years ago
Christopher Lam
3e5fcc8709
Merge branch 'maint'
3 years ago
Christopher Lam
6f80c548e6
[gtest-qofevent.cpp] comprehensive tests for qofevent
4 years ago
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.
4 years ago
Christopher Lam
b87aa004f9
[test-qofbook] add tests for unknown features
...
tests that gnc_features_test_unknown returns a suitable error message
4 years ago
John Ralls
b9077bccd3
Bug 798640 - Segfault when running saved report
4 years ago
Christopher Lam
fc94b41c81
Merge branch 'maint'
4 years ago
Christopher Lam
4716af24e4
Merge branch 'maint'
4 years ago
Christopher Lam
f2354d6b2a
[test-qofbook.c] add test for gnc_features_set_unused
4 years ago
Christopher Lam
1516bb18b0
[gnc-features.cpp] backport gnc_features_set_unused from master
4 years ago
Christopher Lam
a078921a33
[qofbook.cpp] backport qof_book_unset_feature from master
4 years ago
John Ralls
cf088f2a70
Merge John Ralls's 'Bug798614' into maint.
4 years ago
Christopher Lam
093aa81ed1
[qofbook.cpp] deprecate qof_book_get_features
4 years ago
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
4 years ago
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.
4 years ago
Geert Janssens
e97fc3e408
Drop price-quotes.scm, gnc-fq-helper.in and gnc-fq-check.in - no longer used
4 years ago
Geert Janssens
a6771754d5
GncQuotes - start implementation of fetch/fetch_all
4 years ago
John Ralls
b0ae402c23
Limit instantiation of GncInt128 constructors to integral values.
...
Instead of using static_assert. This prevents the compiler from even
trying and avoids weird compilation errors when testing types for
instantiating other templates.
4 years ago
John Ralls
3c75d212ab
Fix build on Apple Silicon or maybe Apple-clang-14.0
...
The compiler complains that there's no matching
gnc_register_number_range_option for GncOptionDB*, which without this
commit is true because the explicit templates are for GncOptionDBPtr&.
Note that the original template definition is for GncOptionDB* and
that the header-defined inlines that take GncOptionDBPtr& call the
GncOptionDB* version.
4 years ago
John Ralls
8cb8f5067d
Remove non-ISO4217 currency codes from gnc-euro table.
...
They're not reachable because they don't have commodities associated with them.
4 years ago
John Ralls
d8417c3cfa
Move gnc-euro.[ch] to engine and unit test it.
4 years ago
John Ralls
2774f8f88c
Bug 798614 - Croatia to join the Euro
...
Add HRK to the conversion array.
4 years ago
John Ralls
3949821da6
Merge branch 'maint'
4 years ago
John Ralls
2505955ab9
Fix test failure from Bug 798616 fix.
4 years ago
John Ralls
7c350c3ae5
Bug 798616 - Can't register amount greater than 9,000,000,000
...
Because when loading the value the split in the xml backend doesn't yet
have a parent so the code tried to convert to GNC_COMMODITY_MAX_FRACTION
and if the numerator was larger than 10^10 that would overflow.
To fix it this changes the "don't know" response to get_currency_denom
and get_commodity_denom to GNC_DENOM_AUTO which will normally leave
the denominator alone.
4 years ago
Christopher Lam
161b07b241
Merge branch 'maint'
4 years ago
Frank H. Ellenberger
47fa8b281e
Merge PR #1425 into maint
4 years ago
John Ralls
a807d3e6b7
Create function gnc_tm_get_today_neutral.
...
To complement gnc_tm_get_today_begin and gnc_tm_get_today_end.
4 years ago
luz paz
ba94730a23
Fix various typos
...
Found via `codespell`
4 years ago
John Ralls
95361ad060
[options] Move gnc-options test to engine/test/CMakeLists.txt.
4 years ago
John Ralls
4ae17d12c7
[options] Move options from app-utils to engine.
...
Options is required for book options that are stored as part of the data
file and so belongs in engine.
4 years ago