Christopher Lam
40d5db43e6
Bug 797163 - qof_book_get_option segfaults when retrieving a non-leaf frame
...
returns a KvpFrame into a nested list of pairs
returns a KvpValue GLIST into a list
4 years ago
John Ralls
109efe62b8
Rework default non-currency commodity namespace.
...
Separate the "All noncurrency" convenience category in the commodity
selector and the default non-commodity namespace proposed by the QIF
importer because they have different functions.
Also remove the namespace guessing code from qif-dialog because with
only one default non-currency namespace there's nothing to guess.
4 years ago
Christopher Lam
cf1282501e
Use original guile variable names changed in #1073
...
The changes 09296dfb96 , 1373233cd0 and 189db58e6 had caused
inconsistencies. Best restore original guile variable names using
underscore, bound to strings instead of functions returning strings.
4 years ago
Christopher Lam
189db58e69
Fix typo in guile variable names in 1373233cd
4 years ago
John Ralls
1373233cd0
Restore Scheme definitions of GNC-COMMODITY-NS-CURRENCY & -NONCURRENCY.
...
Overzealously removed in PR 1073.
4 years ago
Frank H. Ellenberger
09296dfb96
Drop commodity-table.scm, no longer required after adjusting qif-dialog-utils
4 years ago
John Ralls
5c7967c4a5
Revert "Merge Stefan Bayer's 'SepaInternalTransfer' into maint."
...
This reverts commit 17a3f7fef2 , reversing
changes made to b8458d0732 .
5 years ago
John Ralls
17a3f7fef2
Merge Stefan Bayer's 'SepaInternalTransfer' into maint.
5 years ago
Christopher Lam
d861c65020
[test-engine-extras] don't create splits of opposing amt/value signs
...
Splits' value and amount should never be of opposite signs. Fix
test book which had created this incorrect value/amount
pair. Strengthen env-create-multisplit-transaction to disallow
test book errors.
5 years ago
Christopher Lam
984d816a58
Merge branch 'maint'
5 years ago
Christopher Lam
e94ee3bfad
Don't g_strdup char* from scm_to_locale|utf8_string
...
Both scm_to_locale_string and scm_to_utf8_string return newly
allocated char*. It is not necessary to return a strdup'd char* and
free the original.
5 years ago
Christopher Lam
9eaa3eb23a
Merge branch 'maint'
5 years ago
Christopher Lam
23d964a6a4
g_list_free_full requires a GDestroyNotify
...
error in f4941a5b0
5 years ago
Christopher Lam
0bce6a1d56
[core-utils] introduce gnc:format
...
(gnc:format str [binding value]...)
str will contain ${binding} which will be replaced to value.
5 years ago
Christopher Lam
3ff5bd8246
[test-core-utils] uses srfi-64
5 years ago
Christopher Lam
f4941a5b01
use g_list_free_full
5 years ago
Christopher Lam
ad7bffaae1
Run test-core-utils and test-create-account properly
5 years ago
Christopher Lam
34a4b652c1
[test-core-utils.scm] fix - N_ is no longer a macro
5 years ago
Christopher Lam
017ab06939
Merge branch 'maint'
5 years ago
Christopher Lam
140922a37e
QofQuery args must be destroyed after qof_query_merge
...
qof_query_merge returns a new QofQuery; the two merged QofQueries are
not explicitly destroyed.
5 years ago
Christopher Lam
c6d8333811
Merge branch 'maint'
5 years ago
Christopher Lam
c4a0fb468b
[srfi64-extras.scm] exit instead of return #t if no failures
...
due to change in guile-3.0.7 to fix srfi64 bug
5 years ago
John Ralls
08bf3ec5b0
Merge branch 'maint'
5 years ago
luz paz
95f8884892
Fix misc. typos in comments
5 years ago
Christopher Lam
1b4d30b3b1
Merge branch 'maint'
5 years ago
John Ralls
da3bd8ec0e
[bindings/guile/test] add SRFI64 test sources to the dist.
5 years ago
Christopher Lam
b25a444140
Merge branch 'maint'
5 years ago
Christopher Lam
14c523e4f1
[test-engine-extras] augment book data generators
...
* txn-currency can be specified explicitly instead of currency of
first split
* split memos can be specified
Note test-register.scm gets some changes because the Trans Num field
was erroneously saved into Split Action fields. Now the num field is
only copied into the TransNum field.
5 years ago
Christopher Lam
e6355be755
[test-scm-engine] remove support for functions deprecated in 4.x
5 years ago
Christopher Lam
5ce8f78f77
Merge branch 'maint'
5 years ago
Christopher Lam
5957b3c256
Add scheme backward compatibility functions renamed in #979
5 years ago
John Ralls
490f9a8035
Change the g_log macro calls to QofLog ones so that they don't go to /dev/null.
5 years ago
Christopher Lam
d28ff20ff7
Merge branch 'maint'
5 years ago
Geert Janssens
1dd426e314
Potentially fix CI test on Arch related to glib and c++
5 years ago
Christopher Lam
165ca498ad
Add explanatory note for gnc_add_scheme_deprecated_module test code
...
The immediate parent commit removes old deprecated scheme
modules. Link to the old modules for example code.
5 years ago
Christopher Lam
bbcffa3eca
Remove deprecated scheme modules
5 years ago
Christopher Lam
a9ec496ba9
[utilities] Remove deprecated functions
5 years ago
Christopher Lam
2fa5cba250
Merge branch 'maint'
5 years ago
Christopher Lam
a754289daa
[test-scm-utilities] test-end properly
...
otherwise test failures do not set exit code correctly
5 years ago
Christopher Lam
df30b6da37
[utilities.scm] deprecate unused functions
...
these functions were never used.
6 years ago
Christopher Lam
ebcb0bc478
[master] remove deprecated scheme functions
6 years ago
Christopher Lam
6df74eb94f
[core-utils.scm] typo in guile: use-modules
6 years ago
Christopher Lam
6f9517845a
[core-utils] use custom unbound-variable exception printer
...
When a guile coder uses a variable but omits use-modules, this code
will scan *all* available modules and offer the appropriate module
name.
Before:
Unbound variable: gnc-build-url
After:
Unbound variable: gnc-build-url. Did you forget (use-module (sw_gnc_html))?
6 years ago
Christopher Lam
6927c12292
Bug 798039 - Using 'Consolidate Transactions' option on Consolidate Transaction Report returns Error
...
because (gnc:module-load "gnucash/html" 0) was meant to load the html
module and was incorrectly assumed to be present in (gnucash report)
module.
6 years ago
Christopher Lam
4910b532e0
[modularise] (gnucash engine)
6 years ago
Christopher Lam
c17ce5251c
[modularise] (gnucash core-utils)
6 years ago
Christopher Lam
096be60860
[modularise] (gnucash utilities)
6 years ago
Christopher Lam
da32fb0dae
[utilities] simplify addto!
6 years ago
Christopher Lam
82d3bcd394
[core-utils] N_ is identity function
...
N_ is mapped to the identity function. Previously N_ was defined as a
macro, which is more tricky to export.
6 years ago
Christopher Lam
a1c517b4ba
[gnc_scm_to_numeric] create NaN gnc_numeric instead of runtime error
...
If guile calls a C function which expects gnc_numeric but sends a
non-number, it will create a gnc_numeric_error object. This will allow
error gnc_numeric to be handled elsewhere.
Also the overflow gnc_numeric was incorrectly created.
6 years ago