Commit Graph

21718 Commits

Author SHA1 Message Date
Christopher Lam
84034044ce Merge branch 'maint' 2019-10-09 21:16:14 +08:00
Christopher Lam
662d29d664 [average-balance] show monetaries instead of numbers in data table
instead of numbers, show monetary amounts, rounded to SCU
2019-10-09 20:46:42 +08:00
Christopher Lam
ef3bc616b2 [html-table] refactor and dedupe row/col modifiers
* dedupe gnc:html-table-set-cell/tag!
* dedupe gnc:html-table-set-cell!
* create internal fn gnc:html-table-set-cell-datum! for above fns
2019-10-09 20:46:42 +08:00
Christopher Lam
8a46daeb8c [html-table] convert to srfi-2 and-let* 2019-10-09 20:46:42 +08:00
Christopher Lam
6370b0f7ee [html-table] html-table-cell negative amount does not apply to <td>
Only number-cell and total-number-cell have negative-amount styles.
2019-10-09 20:46:42 +08:00
Christopher Lam
ca5f587156 [html-table] compact gnc:html-table-render 2019-10-09 20:21:56 +08:00
Christopher Lam
1abda45cf6 [html-table] compact gnc:html-table-append-column! 2019-10-09 20:17:13 +08:00
Christopher Lam
d45f06215f [html-table] compact gnc:html-table-prepend-row! 2019-10-09 20:17:13 +08:00
Christopher Lam
49e6513042 [html-table] compact functions, define vars in formals 2019-10-09 20:17:13 +08:00
John Ralls
58cfb58b9c Revert "Set C and C++ standards the modern Cmake way, and set C++ to C++17."
This reverts commit b5afd2e319.

Our baseline distro, Ubuntu 18.04, provides boost 1.65 and boost 1.67
is required for building with C++17 because the boost::locale developer
hung on to auto_ptr 6 years longer than he should have.
2019-10-08 21:05:00 -07:00
Christopher Lam
3a2c85f577 [html-table] deprecate gnc:html-table-remove-last-row!
this function is unused in code.
2019-10-09 05:48:02 +08:00
Christopher Lam
f4794d516f [test-report-html] add tests for html-table-cell row/col modifiers 2019-10-09 05:40:40 +08:00
Christopher Lam
7bb7d3cdd6 [html-document] schemify gnc:html-document-tree-collapse
this function is technically a flattening function, converted to
classic scheme form. very efficient in time and space. it is used
extensively in reports which are still running well, therefore no
additional testing is required.
2019-10-09 05:22:24 +08:00
Frank H. Ellenberger
f4379bbd8c UK VAT template: replace obsolete EEC and EC by EU 2019-10-08 22:48:42 +02:00
John Ralls
b5afd2e319 Set C and C++ standards the modern Cmake way, and set C++ to C++17.
Boost has to go to 1.67 as well because boost::locale used auto_ptr
before that and it's been removed from the language in C++17.
2019-10-08 13:46:42 -07:00
John Ralls
5e41c79c76 Require SWIG >=3.0.12 for facility to extend C++ classes with templates. 2019-10-08 11:09:53 -07:00
John Ralls
93a24b62ce Merge Ingo Haschler's 'opticalTAN' into maint. 2019-10-07 10:17:51 -07:00
Christopher Lam
a90b874995 Bug 759005 - Print negatives in red, bis
addendum to 9d0d3fd3b; addition to negative monetaries, also print
negative numbers in red
2019-10-07 22:33:52 +08:00
Christopher Lam
2d99692621 [budget] bug 759005 we don't need style-tag "-neg" anymore 2019-10-07 21:27:59 +08:00
Christopher Lam
9d0d3fd3be Bug 759005 - Print negatives in red
Fixes display of negative monetary-amounts so that they are rendered
according to style-sheet option.

Note this commit fixes via <td> renderer -- if it has a single datum, and
has a negative monetary amount, then its tag gets "-neg" appended.

If a gnc:monetary is renderer *outside* html-table-cell, it will not
be rendered as red (in default stylesheet).
2019-10-07 21:27:59 +08:00
Geert Janssens
b00a95c0b3 Tweak install rule to be able to compile glib's schema's on Windows as well
(Cherry picked from master)
It's a bit of a hack based on the assumption DESTDIR is never set on Windows.
A install time guard is added to assert this.

It needed a few changes to make this working:
- Have cmake expand DESTDIR instead of delaying this to bash
  If not, bash would see "$DESTDIRC:/gcdev64/..." and we'd loose
  the drive letter in bash' expansion of $DESTDIRC.
  So work with $ENV{DESTDIR} instead
- To prevent cmake from already expanding this in the
  build system generation step add the appropriate escapes to
  that variable.
- Add guard code in the install command that asserts
  DESTDIR is not set on Windows. Use similar escapes as
  necessary to ensure the evaluation happens at install time
  rather than in the generation step.
2019-10-06 22:10:41 +02:00
Geert Janssens
75073a7ab2 Tweak install rule to be able to compile glib's schema's on Windows as well
It's a bit of a hack based on the assumption DESTDIR is never set on Windows.
A install time guard is added to assert this.

It needed a few changes to make this working:
- Have cmake expand DESTDIR instead of delaying this to bash
  If not, bash would see "$DESTDIRC:/gcdev64/..." and we'd loose
  the drive letter in bash' expansion of $DESTDIRC.
  So work with $ENV{DESTDIR} instead
- To prevent cmake from already expanding this in the
  build system generation step add the appropriate escapes to
  that variable.
- Add guard code in the install command that asserts
  DESTDIR is not set on Windows. Use similar escapes as
  necessary to ensure the evaluation happens at install time
  rather than in the generation step.
2019-10-06 21:51:59 +02:00
Geert Janssens
f28cf41611 Fix another dependency issue
This one popped up while experimenting on Windows.
In general: whenever a guile module (the ones created with
'define-module' load files (via 'load-from-path')
the loaded files must have been built before the
module. Otherwise targets depending on the module
may have dependency issues.
2019-10-06 21:51:59 +02:00
Adrian Panella
1eb22c098f move logic out budget_col_source for performance 2019-10-06 18:34:06 +02:00
Adrian Panella
945a3349c0 add "selected" color to flag renderer 2019-10-06 18:34:06 +02:00
Adrian Panella
3dfb90b332 [budget] Add tooltips to cells with notes 2019-10-06 18:34:06 +02:00
Adrian Panella
71e73007fc Bug 693180 - Add notes to budgeting values
Adds functionality to budget register to enter notes on each
budget
+ dialog to enter/edit/view note for cell
+ paint a flag in the cell to mark
when it has a note attached
2019-10-06 18:34:06 +02:00
Adrian Panella
adb75f791c Create a cellrenderer with flag
Add utility CellRendererTextFlag which extends the
std renderer to allow to flag a cell with a color triangle
in the top right corner.
2019-10-06 18:34:06 +02:00
Adrian Panella
4b1ac6fa13 [budget] Add 'notes' functionality to engine
Add ability to save notes on each budget value (account/period).
2019-10-06 18:34:06 +02:00
Adrian Panella
b9bc1986f3 [budget] remove unused code/variables 2019-10-06 18:34:06 +02:00
Geert Janssens
fa66f0fa7f Drop comment referring to non-existing file 2019-10-06 18:31:20 +02:00
Geert Janssens
fa997b5f8e Fix depedency issue
This surfaced on the arch travis build
2019-10-06 18:31:20 +02:00
Geert Janssens
8dc0e65e56 CI - limit error output to failed tests only
Do so by rerunning these tests in verbose mode
Obviously that's only possible if ctest had already run
which is tested by evaluating the existence of
directory /build/Testing
2019-10-06 18:31:20 +02:00
John Ralls
43a47badad Merge branch 'maint' 2019-10-05 11:44:46 -07:00
John Ralls
badda88224 Clear, not empty.
Found by gcc when setting C++17 on master.
2019-10-05 11:44:09 -07:00
Christopher Lam
eb58bca7af Merge branch 'maint' 2019-10-03 13:27:16 +08:00
Christopher Lam
315bbb5d05 [test-stress-options] reinstate test empty book
d47e49c23 had disabled testing empty book in error.
2019-10-03 13:02:08 +08:00
Christopher Lam
d47e49c230 [test-stress-options] add budget to test book
the populated book has a budget. this enables more thorough testing of
budget reports.
2019-10-03 08:23:29 +08:00
Christopher Lam
c6195d6e7a [test-budget] centralize gnc:create-budget-and-transactions
it will be reused by test-stress-options
2019-10-03 08:23:29 +08:00
Christopher Lam
f015a96833 [budget] fixcrash: fix crasher for some periods
eg. the following combo would previously crash:
- periods from next to current
- use accumulated amounts
2019-10-03 08:23:29 +08:00
Christopher Lam
5d15fd41fd [budget] fixcrash: prevent crash if periods start > end
It's silly to input start-period > end-period. Nevertheless handle it
by swapping them instead of crashing. i.e. report budget periods from
end to start.
2019-10-03 08:23:29 +08:00
Christopher Lam
34c677d70d [budget-flow] fixcrash: exchange-fn needs to specify exchange date
because some exchange-fn *do* require date eg. pricedb-nearest. use
the period end-date for the exchange date.
2019-10-03 08:23:29 +08:00
Christopher Lam
3452c33cdf [budget-income-statement] define vars in formals
and use collector arithmetic
2019-10-03 08:23:29 +08:00
Christopher Lam
1dfd7c5547 [budget-income-statement] compact functions
neater.
2019-10-03 08:23:19 +08:00
Christopher Lam
992f657cc5 [test-budget] augment to test budget-income-statement.scm 2019-10-02 22:46:23 +08:00
Christopher Lam
0c65c41b32 guile: remove support for guile < 2.0 2019-10-02 19:55:50 +08:00
Geert Janssens
c59515f7b7 Revert unintended copy-paste error 2019-10-02 12:35:25 +02:00
Geert Janssens
0eb0b922d7 Python - remove 2.x only code paths 2019-10-02 12:35:25 +02:00
Ingo Haschler
3e8c9ad807 Partly fixes bug 667490. It implements the presentation of static optical TAN challenges (photoTAN and QR) inside the enter TAN dialogue. 2019-10-01 19:27:44 +02:00
Christopher Lam
8f1c82e875 [cash-flow] use collector arithmetic 2019-10-01 20:49:00 +08:00