Commit Graph

20028 Commits

Author SHA1 Message Date
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
John Ralls
78ab26cc2b Fix gncInvoice test failure.
test_suite_gncInvoice sets up the test suite. It's not part of the test
runtime, so stack variables in it have gone out of scope by the time the
tests are actually run. Making invoiceData static makes it permanent so
it exists at runtime.
2018-08-06 14:49:07 -07:00
Geert Janssens
d87fa3a5be Bug 796766 - Credit note creating 'imbalance' with wrong entries
Add fix and regression test.
2018-08-06 13:29:12 +02:00
Geert Janssens
69fef8277f Revert "Add preference to control toolbar appearance"
This reverts commit 3b09313107.
2018-07-31 17:30:07 +02:00
Geert Janssens
fe371534c2 Revert "Add toolbar preference changes to embedded-window."
This reverts commit a75eb4c8ec.
2018-07-31 17:29:52 +02:00
Geert Janssens
2203118d99 Revert "Add the toolbar preference changes to window-reconcile."
This reverts commit 0199fef584.
2018-07-31 17:29:38 +02:00
John Ralls
accd154eb0 Don't run test-stress-options.scm if no textual-ports.
ice-9 textual ports, required by test-stress-options, was introduced
in guile 2.2. We still support using guile-2.0.
2018-07-27 15:58:46 -07:00
John Ralls
d6b245772e Fix out-of-order declarations.
Broke Travis.
2018-07-23 15:22:51 -07:00
John Ralls
216528c130 Merge Bob Fewell's 'fixes8' into maint. 2018-07-23 14:51:01 -07:00
John Ralls
9cb00f8fe4 Merge Di Mang's 'maint-transfer-02' into maint.
Leaving the MAX_TAB_COUNT at 6, so no "further expansion room".
2018-07-23 14:47:51 -07:00
John Ralls
9993e0ce29 Almost completely remove Timespec from import-export.
KvpValue doesn't have a time64 type so aqb-kvp still needs to use
Timespec internally.
2018-07-23 14:39:20 -07:00
John Ralls
1131aa6fc4 Clean up jenny's whitespace. 2018-07-23 12:48:52 -07:00
John Ralls
40680369f6 Fix up jenny so that it complies with std=C11. 2018-07-23 12:47:54 -07:00
John Ralls
827c43d935 Add jenny to the dist and compile it. 2018-07-23 12:47:25 -07:00
John Ralls
6d605762dd Delete the last vestiges of timepair. 2018-07-23 12:00:54 -07:00
John Ralls
773b070345 Don't set transaction properties via scheme in C code. 2018-07-23 12:00:12 -07:00
Robert Fewell
64778fcad5 Fix error when options dialogue is open when app closed
With the options dialogue open when Gnucash is closed this error is
logged in the trace file, gnc_close_gui_component() component not found.

This is fixed by reversing the components list found for session so the
options dialogue is closed before the report window.
2018-07-22 13:07:57 +01:00
Robert Fewell
5c90f677e5 Remove some white space and tabs from dialog-options.c 2018-07-22 13:07:57 +01:00
Robert Fewell
5ad584ca3b Change the Options dialogue to use GtkWindow
Change the report / book options dialogue from a GtkDialog to GtkWindow.
This removes the need for setting the transient parent which allows the
dialogue to be placed behind the main application when changing values
making it easier to see the result.
2018-07-22 13:07:57 +01:00
Robert Fewell
8edf447808 Drop the tree model before updating transaction association tree view
To avoid delays with large transaction associations trees, drop the
model from the transaction association tree view while it is being
updated and then reconnect it after the model has been updated.
2018-07-22 13:07:57 +01:00
Robert Fewell
d343934101 Change the transaction association dialogue
Change the transaction association dialogue from a GtkDialog to
GtkWindow. This removes the need for setting the transient parent which
allows the dialogue to be placed behind the main application when
jumping to the transaction while the dialogue is still open.
2018-07-22 13:07:57 +01:00
Robert Fewell
1ea4310f8c Add a column for Tax related to find account dialogue 2018-07-22 13:07:57 +01:00
Robert Fewell
85bb778610 Drop the tree model before update find account tree view
To avoid delays with large account trees, drop the model from the find
account tree view while it is being updated and then reconnect it after
the model has been updated.
2018-07-22 13:07:57 +01:00
Robert Fewell
193176cc25 Change find-account from GtkDialog to GtkWindow
Change the find account dialogue from a GtkDialog to GtkWindow. This
removes the need for setting the transient parent which allows the
dialogue to be placed behind the main application when jumping to the
account if the the tick box to keep the dialogue open is used.
2018-07-22 13:07:57 +01:00
Robert Fewell
93030c61f1 Bug 796762 - Scrollbar partially hides the delete button in
the Saved Report Configurations window

The vertical scrollbar obscures the delete button in the tree view so
add a dummy blank column to the end and set it to the width of the
vertical scrollbar.
2018-07-22 13:07:57 +01:00
Di Mang
697d2a166f
unify appearance in preferences dialog
The reports and other windows based on GtkNotebooks have currently max. 6 tabs in preferences dialog. 
Changing the value MAX_TAB_COUNT to 6 will unify appearance in all such dialogs. But to consider future changes, it would be useful to add a few extra places for new tabs: MAX_TAB_COUNT = 8.
2018-07-18 22:08:11 +02:00
John Ralls
fa1b4c685f Add jenny to sources for combinatorics testing. 2018-07-16 14:08:24 -07:00
John Ralls
6f1c63dbda Merge Chris Lam's 'maint-stress-tests' into maint. 2018-07-16 12:52:01 -07:00
John Ralls
c444729db5 Bug 796755 - buggy window handling at startup
Defer showing the main window until after its size and location are
restored from the state file.
2018-07-16 10:09:34 -07:00
Christopher Lam
294e113fec Small typo fix
Fixes typo in a51be5157c
2018-07-16 18:51:37 +08:00
Christopher Lam
414ab99aa0 [test-stress-options] Set COMBINATORICS to full path to jenny
Setting COMBINATORICS to the full path name to jenny will enable
pairwise testing.

e.g. COMBINATORICS=/home/user/jenny/jenny ninja check
2018-07-16 18:51:37 +08:00
Christopher Lam
b8ce2b545a [stress-test] run tests on empty book and populated book
Refactor (tests) into call (create-test-data) which will add sample
txns in the environment.

As a result we can run tests twice - once before and once
after (create-test-data) which helps dislodge a few more report bugs.
2018-07-16 18:51:37 +08:00