Commit Graph

20373 Commits

Author SHA1 Message Date
John Ralls
dd8732402f Remove all timespecs from the register. 2018-08-12 16:12:18 -07:00
John Ralls
6846a68691 Remove two unused functions, one of which used Timespec. 2018-08-12 16:12:18 -07:00
John Ralls
e3dce951c7 Remove Timespec from qif importer. 2018-08-12 16:12:18 -07:00
Geert Janssens
14335b7862 Merge branch 'Bug796788' of https://github.com/Bob-IT/gnucash into maint 2018-08-11 21:04:26 +02:00
Robert Fewell
b3f1104d39 Fix a possible transient parent dialogue warning 2018-08-11 18:01:53 +01:00
Robert Fewell
19d6eb9028 Improve the button sensitivity function 2018-08-11 18:01:45 +01:00
John Ralls
22dd716b58 Set the SWIG minimum version to 2.0.11 now that we require Guile-2.0. 2018-08-10 12:57:46 -07:00
John Ralls
2f861bc2a4 Ensure all C++ class member raw pointers are default-initialized to nullptr. 2018-08-10 12:21:28 -07:00
Robert Fewell
9768a2158d Save the contents_selected value in selection callback
With the use of the selection call back for button sensitivity it make
sense to use that to store the contents_selected value for the contents
tree view.
2018-08-10 12:40:51 +01:00
Robert Fewell
5ff8d8daba Update buttons on Multicolumn report options
Change the sensitivity of the multicolumn report options based on the
selection in the two tree views using the select callback.
2018-08-10 11:36:41 +01:00
Robert Fewell
847766fc13 Bug 796788 - strange behaviour in options of multicolumn report
This bug stemmed from the use of GTK_TREE_SORTABLE, the list store
entries for available reports are not stored as entered but in a sorted
order. Replaced the use of entry numbers to that of the report guid and
also used the tree selection to maintain a pointer to the
selected report. Also separated the updating of the two treeviews so
selected report position will be maintained.
2018-08-10 10:14:54 +01:00
Geert Janssens
1e87d069f6 Merge branch 'maint-upgrade-test-balsheet' of https://github.com/christopherlam/gnucash into maint 2018-08-08 16:26:35 +02:00
Geert Janssens
de2a1e9e67 A few updates to the guile hacking document 2018-08-08 15:58:38 +02:00
Geert Janssens
d69d1f6a32 Merge branch 'maint' of https://github.com/yurchor/gnucash into maint 2018-08-08 15:52:51 +02:00
Geert Janssens
239ee6797a Fix crash when cancelling a Save As... overwrite action
This was discovered while trying to fix bug 796792. However that bug itself
is totally unrelated.
2018-08-08 15:47:09 +02:00
Geert Janssens
e330a781f0 Merge branch 'Bug796792' of https://github.com/Bob-IT/gnucash into maint 2018-08-08 14:22:49 +02:00
Yuri Chornoivan
2b0b3d4fce Fix more minor typos
Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2018-08-07 16:25:37 +03:00
Christopher Lam
40cbcc1142 [invoice] move add-subtotal-row to simplify 2018-08-07 20:59:35 +08:00
Christopher Lam
5811f7bfc2 [invoice] move add-entry-row to simplify 2018-08-07 20:59:35 +08:00
Christopher Lam
0afec1288e [invoice] improve num-columns-used
This will never be perfect because Date/Description/Total can be
switched on/off. But it is simpler.
2018-08-07 20:59:35 +08:00
Christopher Lam
41b0e4eb45 [invoice] simplify single-use functions 2018-08-07 20:59:35 +08:00
Christopher Lam
62c9b4e02b [invoice] [CSS] remove styles and replace with CSS 2018-08-07 20:59:35 +08:00
Christopher Lam
e0b26628f8 [test-invoice] all variants share same options and html structure
Therefore test-invoice variants now all share the same tests.
2018-08-07 20:59:35 +08:00
Christopher Lam
900cd36667 [invoice] add toggle for invoice title 2018-08-07 20:59:35 +08:00
Christopher Lam
f1ff608e3c [invoice] enable displaying a picture eg company logo in layout 2018-08-07 20:59:35 +08:00
Christopher Lam
a30a58641d [invoice] change do-rows-with-subtotals to named let
This function is only defined once, and use named-let which imho is
neater because it defines the init values explicitly.
2018-08-07 20:59:35 +08:00
Christopher Lam
b75de5de1f [invoice] refinements
1. disable Display/My Company toggle - this is now in Layout
2. streamline internal functions to reduce number of definitions
3. company-details now right-align and add more fields.
   fields can be hidden via CSS. no need for further display options.
2018-08-07 20:59:35 +08:00
Christopher Lam
dae877cacf [invoice] now supports customized layout 2018-08-07 20:59:35 +08:00
Christopher Lam
a0c5be2c81 [business-reports] delete redundant [fancy|easy]-invoice 2018-08-07 20:59:35 +08:00
Christopher Lam
15b62eea6c [invoice+fancy-invoice] add option minimum # entries
This is to enable compatibility with fancy-invoice feature.
2018-08-07 20:59:35 +08:00
Christopher Lam
74ebac461b [invoice+easy-invoice] invoice.scm can generate easy-invoice
invoice.scm can now mimic easy-invoice.scm reports, including a
greater number of options.
2018-08-07 20:59:35 +08:00
Christopher Lam
bfde5a17f7 [invoice] add classes for invoice headers 2018-08-07 20:59:35 +08:00
Christopher Lam
7ef4c00579 [easy-invoice] Display/Charge Type rename back to Display/Action
This report had renamed "Action" to "Charge Type". For consistency,
let's rename it back, and add migration path in options.scm for
saved-options. 2 fewer strings for translation.
2018-08-07 20:59:35 +08:00
Christopher Lam
d6071020e1 [invoice] more refactoring 2018-08-07 20:59:35 +08:00
Christopher Lam
996b94b1ef [invoice] move invoice-details-table to its own function 2018-08-07 20:59:35 +08:00
Christopher Lam
ba000f71bf [invoice] enable CSS class
This commit will enables "class" attribute in the various html-table
objects. The CSS string can be specified, eg.

.entries-table tr, .entries-table td { etc }
.date-table tr { etc }

to provide styling etc.
2018-08-07 20:59:35 +08:00
Christopher Lam
0198a8b831 [invoice] convert string-expand to sanitize html strings.
string-expand was converting #\newline to <br/>. convert it to
generate a gnc:make-html-text object with substrings and
gnc:html-markup-br tags.
2018-08-07 20:59:35 +08:00
Christopher Lam
12253f3c38 [invoice] simplify num-columns-required to use SRFI-1 2018-08-07 20:59:35 +08:00
Christopher Lam
30f14191e6 [invoice] *untabify* 2018-08-07 20:59:35 +08:00
Christopher Lam
0f505d1389 [invoice] entry-values are unused. remove and simplify. 2018-08-07 20:59:35 +08:00
Christopher Lam
1afacb97ba [invoice] refactor gncOrder handling
Previously the function addorder was being passed as an argument to
add gncOrder references to a list, for later displaying in
report. This commit will simplify it - instead of passing a function
to make-entry-table, the report will query invoice orders directly
when needed.
2018-08-07 20:59:35 +08:00
Christopher Lam
cf3ccb9f1e [invoice] more mucho refactoring, no functional change. 2018-08-07 20:59:35 +08:00
Christopher Lam
5467c47598 [invoice] mucho refactoring. no functional change.
Refactor to use SRFI constructs, simplify logic, add comments. No
functional change.
2018-08-07 20:59:35 +08:00
Christopher Lam
874ed6ab0a [invoice] *reindent* 2018-08-07 20:59:35 +08:00
Robert Fewell
97c191cd42 Replace tabs with spaces and fix some indenting in gnc-file.c 2018-08-07 10:33:04 +01:00
Robert Fewell
641925f2d0 Bug 796792 - SaveAs Overwrite dialogue in background and not visible
Firstly the wrong parent was being used for these secondary warning
messages, should be the dialogue and not the main Gnucash application so
these have been changed.

Also some of these secondary warning dialogues still had NULL as the
parent and so the transient parent warning would occur, added parent.
2018-08-07 10:31:13 +01:00
Christopher Lam
3b74574cde [test-stress-options] remove need for test-stress-optionlist.scm
This commit modifies test-stress-options to retrieve the report-list,
and for each report-list, retrieve their options, and for each
multichoice and boolean option, add to optionslist. I now know how to
generate the optionslist dynamically from the unit tests, therefore
there's no need to maintain a test-stress-optionslist.scm anymore. Yay!
2018-08-07 13:26:37 +08:00
Christopher Lam
47ad60c723 [test-balsheet-pnl] add more SELL transactions
this is to thoroughly test average-cost and weighted-average
2018-08-07 13:26:09 +08:00
Christopher Lam
58ae3f2a89 [test-balsheet-pnl] add income-statement tests 2018-08-07 13:26:09 +08:00
Christopher Lam
cabb598c0f [test-balsheet-pnl] rename to allow for pnl tests 2018-08-07 13:26:09 +08:00