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
Hong Xu
79d5270c9d
Fix a variable name typo in Python binding gnc_pricedb_lookup_latest_before_t64
...
commodit -> commodity
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
49102c7ac2
Python Bindings: Provide a deprecated GncPriceDB.lookup_latest_before_t64.
...
To avoid breaking user scripts.
5 years ago
Robert Fewell
87285f945e
Update gnucash_core.py with gnc-pricedb function name change
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
koldavi
506fd57989
Fix to_string_with_decimal_point_placed
...
>>> nominator='123456'
A digit is missing in the string returned from to_string_with_decimal_point_placed. The -1 error.
>>> point_place=2
>>> nominator[:-point_place - 1], nominator[-point_place:]
('123', '56')
5 years ago
Christopher Lam
d28ff20ff7
Merge branch 'maint'
5 years ago
Christopher Lam
df457622b5
Merge branch 'python-silent-conversion' of git://github.com/c-holtermann/gnucash into maint
5 years ago
c-holtermann
d3b8a59d7e
remove debug information for time conversion
5 years ago
Geert Janssens
1dd426e314
Potentially fix CI test on Arch related to glib and c++
5 years ago
Christopher Lam
2a2f080813
Merge branch 'maint'
5 years ago
John Ralls
a11065b823
Fix fencepost error in calculating the week_num for POSIX timezone rules.
...
Fixes CI failure caused by US starting DST in 2021, a year in which
March began on a Monday.
5 years ago
John Ralls
66eca8aab7
Update python/gnucash_business.py to reflect rename of gncOwnerApplyPayment.
...
Made 3 years ago.
5 years ago
Christopher Lam
87473ed5f9
Merge branch 'maint'
5 years ago
Dong Lin
75209c024f
Update price database for imported transactions
...
When a transaction is added from the ledger, price database is updated properly.
But if the transaction is imported, there is no price db update.
This change adds the proper pricedb update in the import path (qfx/ofx/qif).
Tested with make check
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.
5 years ago
Christopher Lam
ebcb0bc478
[master] remove deprecated scheme functions
5 years ago
Christopher Lam
6df74eb94f
[core-utils.scm] typo in guile: use-modules
5 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))?
5 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.
5 years ago
Christopher Lam
4910b532e0
[modularise] (gnucash engine)
5 years ago
Christopher Lam
c17ce5251c
[modularise] (gnucash core-utils)
5 years ago
Christopher Lam
096be60860
[modularise] (gnucash utilities)
5 years ago
Christopher Lam
da32fb0dae
[utilities] simplify addto!
5 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.
5 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.
5 years ago
Christopher Lam
8f32992100
[gnc-engine-guile.c] return #f when gnc_numeric has error
...
otherwise it'd throw guile div/0 exception
5 years ago
Christopher Lam
6d6eff6b70
Expose ngettext as gnc:ngettext
6 years ago
Christopher Lam
8628ffa957
3/3 [engine.scm] deprecate scheme utility functions
6 years ago
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.
6 years ago
Geert Janssens
dae2ea8356
Expose C_ function (gettext with context string) to guile code
...
First use is for the document link short code (L)
6 years ago
Christopher Lam
0d10d1e234
[engine.i] swigify CLEARED-ALL
...
to be used by trep-engine.scm
6 years ago
Christopher Lam
cbbca47013
[test-engine-extras] Use more efficient gnc:list-flatten
6 years ago
Christopher Lam
f35a26882d
Addendnum to ad20f859c -- _ must be exported
6 years ago
Christopher Lam
ad20f859cc
[core-utils] define _ for guile-2.2
6 years ago
Hong Xu
e0e77ca39d
Add Python example export_account_totals.py
...
This example exports acount totals of all accounts into a CSV file.
This has been asked before: https://money.stackexchange.com/questions/111786/exporting-account-totals-in-gnucash
6 years ago
Christopher Lam
fe3787c427
[gnc-numeric] use srfi-9 records for :gnc-monetary
6 years ago
Christopher Lam
428c8c501c
[guile-3] change _ to G_
...
In guile-3 _ is a reserved symbol. Change to G_ by guile gettext
convention.
6 years ago
John Ralls
b0b238958e
Merge Christoph Holtermann's 'python-sessionOpenMode' into master.
6 years ago