Christopher Lam
c8625ab5fb
[budget] *reindent/untabify/delete-trailing-whitespace*
2019-03-04 21:22:11 +08:00
Christopher Lam
d16d71dfc6
[test-budget] initial commit
...
Tests budget.scm.
Options are tested; this is not exhaustive but covers most options.
2019-03-04 21:10:59 +08:00
Christopher Lam
9573359b89
[test-extras] augment xml parser to understand – entity
2019-03-04 21:10:59 +08:00
Christopher Lam
e8637c7443
[budget][cash-flow] use srfi-1 functions
...
... instead of account utility functions which are now deprecated.
2019-03-03 17:28:02 +08:00
Christopher Lam
47cdcaded3
[standard-reports] drop (process-file-list)
...
The list of reports is obtained by scanning the standard-reports
folder for *.scm, then processes the filenames by removing
".scm". Process the removal directly.
2019-03-02 18:03:33 +08:00
Christopher Lam
117425305b
[standard-reports] compact (directory-files) and remove regex
...
use string-suffix? instead.
2019-03-02 18:03:24 +08:00
Christopher Lam
a6296314a0
[standard-reports] compact functions
2019-03-02 15:48:57 +08:00
Christopher Lam
613adfe824
[standard-reports] reindent/untabify/delete-trailing-whitespace
2019-03-02 14:45:19 +08:00
milotype
d9c8352377
acctchrt_common correction
...
I'm sorry! After double checking my files I found one more file (acctchrt_common.gnucash-xea) that needed the correction of the <act:id type="guid"> problem.
Now, all account files have the correct string : <act:id type="new">
2019-02-28 19:17:36 +01:00
milotype
8da026fc73
Croatian accounts correction
...
Just noticed, that I forgott to change the "guid" string in these two files, as specified in the wiki: "Just replace all occurrences of <act:id type="guid"> by <act:id type="new">".
Only the croatian files for "eduloan" and "fixedassets" needed the change. Sorry for the inconvienience!
2019-02-28 14:17:51 +01:00
Christopher Lam
9dabe4a426
[report] further refactor gnc:define-report
2019-02-27 20:52:21 +08:00
Christopher Lam
b8e9ce3318
[report] deprecate report-without-guid handling
2019-02-27 20:52:21 +08:00
Christopher Lam
0f8558b7f8
[report] refactor safely
...
1. upgrade <report-template> and constructor to top-level
2. convert (args-to-defn) to named-let
2019-02-27 20:15:24 +08:00
Christopher Lam
5f436ae967
[report] simplify (gnc:report-render-html)
2019-02-27 20:15:24 +08:00
Christopher Lam
d49a51ca73
[report] convert (gnc:restore-report) to use closure
...
Instead of a global variable gnc:old-style-restore-warned, use closure
to isolate variable within the only function which uses it.
2019-02-27 20:15:24 +08:00
Christopher Lam
6e7cd33308
[report] centralize strings, (gui-error-dialog) logic
2019-02-27 20:15:24 +08:00
Christopher Lam
afda387988
[report] enforce gnu coding style
...
no dangling parentheses
(if a a b) -> (or a b)
2019-02-27 20:15:24 +08:00
Christopher Lam
f021658382
[report] *delete-trailing-whitespace/reindent/untabify*
2019-02-27 20:15:24 +08:00
Christopher Lam
8f8f5b8461
[test-report-system] improve test coverage to ~40%
...
test many more functions. this is not 100%; many functions are
incomprehensible.
2019-02-27 20:14:47 +08:00
loftx
d5297a46bf
Resolve 'basic_string::_M_construct null not valid' error when no database is provided in connection string
2019-02-26 15:37:01 +01:00
Christopher Lam
548ee9f56b
[test-report-system] tests functions instead of returned values
...
Previous tests for report definition had modified report.scm to return
bool #f to signify 'aborted definition'. This had mistakenly
invalidated an old-report handling code path whereby guid was missing.
This commit will modify old tests to define reports, and verify
success/failure according to the (gnc:all-report-template-guids) list
length which, indirectly, is a surrogate marker for a successful
report definition.
2019-02-26 20:49:27 +08:00
Christopher Lam
c6b7338fbc
[test-report-system] reindent
...
improve readability of test suite.
2019-02-26 19:48:31 +08:00
Christopher Lam
d980bb50f7
[report] display gnc-error-dialog only when UI is running
...
This is preparation work for creating report.scm tests.
2019-02-26 18:23:05 +08:00
Christopher Lam
0ce6999ff6
[html-utilities] compact (gnc:html-make-exchangerates)
...
and also right-align the commodities, as originally planned.
2019-02-24 17:29:34 +08:00
Christopher Lam
5cdc515885
[transaction] html anchor should target split
...
Previous would create html anchor to target the transaction containing
the report split.
This would mean the anchor would link the correct transaction, but
would always link to the first account in the transaction. This change
will ensure that the account containing the exact report split is
opened.
2019-02-24 17:29:34 +08:00
milotype
316a22a282
Initial release of croatian fixedassets account file
2019-02-24 10:18:07 +01:00
milotype
d2dce42587
Initial release of croatian eduloan account file
2019-02-24 10:17:28 +01:00
milotype
4845d1081c
Various small improvements in the Croatian account files
2019-02-24 10:17:12 +01:00
Frank H. Ellenberger
49ebc967e9
Merge branch 'hr' into maint
2019-02-23 23:29:11 +01:00
Frank H. Ellenberger
a4e08d7cda
add data/accounts/hr and README-hr.win32-bin.txt to CMakeLists
2019-02-23 22:39:44 +01:00
Christopher Lam
c9ddd6c828
[register] use scheme numeric operators instead of gnc-numeric
2019-02-23 08:02:12 +08:00
Christopher Lam
b1763ed13d
[register] simplify make-split-table main loop
...
Previous was using nested ifs. use cond instead which is more
appropriate.
Also handle dangling-split separately.
2019-02-23 08:02:12 +08:00
Christopher Lam
bae74fed0a
[register] simplify named let
...
many args were not modified.
2019-02-23 07:47:03 +08:00
Christopher Lam
a23b945a11
[register] simplify splits-leader
...
They were using complicated algorithm to get the split account. Also
change leader output from account/null to account/#f.
It is simpler to return #f if there is no 'leader'
2019-02-23 07:47:03 +08:00
Christopher Lam
27c0ab490a
[register] change other-rows-driver to named-let
2019-02-23 07:47:03 +08:00
Christopher Lam
beaf945907
[register] *delete-trailing-whitespace/reindent/untabify*
2019-02-23 07:47:03 +08:00
Frank H. Ellenberger
da7da035f4
Remove obsolete hr_HR direcory
...
Recent versions are in hr
2019-02-22 22:40:41 +01:00
Frank H. Ellenberger
33a376bddf
add hr.po's to CMakeLists.txt
2019-02-22 22:37:14 +01:00
Frank H. Ellenberger
c01955bb12
PR #455 : initial release of the croatian translation
...
Merge branch 'milotype-hr-01' of https://github.com/milotype/Gnucash into maint
2019-02-22 22:22:59 +01:00
Christopher Lam
3759099e1e
[register] changed do-rows-with-subtotals to named-let
...
this function is defined and used only once.
2019-02-22 23:36:48 +08:00
Christopher Lam
83d5c21c4b
[register] remove dead utility and invoice code
2019-02-22 23:36:48 +08:00
Christopher Lam
b96e48f23f
[register] trim reg-renderer
...
there was dead code to handle printing invoices. remove.
2019-02-22 23:36:48 +08:00
Christopher Lam
102a357cfe
[test-register] basic test for register.scm
2019-02-22 23:36:15 +08:00
Christopher Lam
09e0e02a75
[test-extras] abstract test-data skeleton
2019-02-22 23:36:15 +08:00
Christopher Lam
f92b9459ba
[tests] encapsulate tests with (test-begin/end)
...
this ensures that any test failures will return #f as appropriate.
2019-02-22 23:36:15 +08:00
Frank H. Ellenberger
609bd48a0d
Shorten a german column header
2019-02-22 05:03:47 +01:00
Geert Janssens
fce75ea748
Add dedicated api to query build-time, version related compile constants
...
And use it in several location in the code for consistent behaviour
2019-02-21 17:00:15 +01:00
milotype
1d82a6dcb1
update hr.po
...
changes:
- hr.po:3638 => added accelerator mark
- hr.po:7788 => added accelerator mark
- hr.po:10957 => removed accelerator mark
- hr.po:16166 => no change, ignored
- some minor other changes in wording
2019-02-21 05:57:45 +01:00
Joshua "jag" Ginsberg
b53d5c65e0
Fixes to traceback calls in pycons
2019-02-20 18:56:41 -05:00
Christopher Lam
b334366f63
[html-document] if headers? is #f, do not add <body> tag
...
This is a step towards creating valid html in multiple-charts reports.
2019-02-20 22:49:54 +08:00