Commit Graph

20864 Commits

Author SHA1 Message Date
Christopher Lam
7d508b7731 [cash-flow] combine common add-accounts-flow code 2019-03-08 21:02:49 +08:00
Christopher Lam
beb6e508a4 [cash-flow] reduce code line length 2019-03-08 21:02:49 +08:00
Christopher Lam
9dd139f3ed [cash-flow] convert subaccounts to srfi-1
neater
2019-03-08 21:02:49 +08:00
Frank H. Ellenberger
b795773e1c Appdata: update data exchange [I18N] 2019-03-07 06:23:10 +01:00
Frank H. Ellenberger
6c59f7b7dd de.po: Several fixes
5087 übersetzte Meldungen, 60 ungenaue Übersetzungen, 100 unübersetzte
Meldungen.
(improved redo of the reverted commit)
2019-03-07 06:22:44 +01:00
Frank H. Ellenberger
0cf9b426cd Revert "de.po: reflect today changes in reports"
A broken editor had truncated the file.
This reverts commit 3b2527e430.
2019-03-06 07:38:25 +01:00
Francisco Javier Serrador
982964c0ad From Bug 797034 - Spanish Translation ...
Update spanish translation to 2018-12-29
2019-03-06 04:10:56 +01:00
Frank H. Ellenberger
d897a7caa9 I18N: Remove surplus spaces from a "Tip of the Day" 2019-03-06 03:03:47 +01:00
Frank H. Ellenberger
3b2527e430 de.po: reflect today changes in reports
1177 übersetzte Meldungen, 2 unübersetzte Meldungen.
2019-03-06 02:17:48 +01:00
Frank H. Ellenberger
c7805a1f1b Merge recent template in de.po 2019-03-05 22:04:03 +01:00
Frank H. Ellenberger
82ba6a3155 I18N: Unify thanks phrase in business reports
Fix typo
2019-03-05 21:38:19 +01:00
Frank H. Ellenberger
c3678d56b9 I18N: Unify thanks phrase in business reports 2019-03-05 21:29:50 +01:00
Frank H. Ellenberger
05606f240e Bug 797104 - Translations not showing in receipt options 2019-03-05 20:56:23 +01:00
Christopher Lam
c419c6d9e7 [budget] clean up useless comments 2019-03-04 22:01:51 +08:00
Christopher Lam
e5495caab9 [budget] compact gnc:html-table-display-budget-columns! 2019-03-04 21:40:26 +08:00
Christopher Lam
275119335b [budget] inline gnc:html-table-add-budget-line-columns!
This function is used only once. Inline it.
2019-03-04 21:39:51 +08:00
Christopher Lam
3ba0970d9d [budget] compact gnc:html-table-add-budget-line! 2019-03-04 21:39:38 +08:00
Christopher Lam
953b01cbc8 [budget] compact gnc:html-table-add-budget-values! 2019-03-04 21:39:33 +08:00
Christopher Lam
58cc7f00a5 [budget] compact budget-renderer 2019-03-04 21:39:25 +08:00
Christopher Lam
97bf596d31 [budget] compact calc-periods 2019-03-04 21:39:05 +08:00
Christopher Lam
5108accfcd [budget] compact gnc:html-table-add-budget-headers! 2019-03-04 21:38:54 +08:00
Christopher Lam
66657f466e [budget] convert iterative functions to use srfi-1 2019-03-04 21:22:11 +08:00
Christopher Lam
86cbebd0ac [budget] eradicate gnc-numeric methods 2019-03-04 21:22:11 +08:00
Christopher Lam
9d38d7fa8e [budget] compact find-period-relative-to-current 2019-03-04 21:22:11 +08:00
Christopher Lam
cd496cbe3c [budget] compact calc-user-period 2019-03-04 21:22:11 +08:00
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