Commit Graph

20183 Commits

Author SHA1 Message Date
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
Christopher Lam
8273f3eb82 [test-balance-sheet] prepare for pnl tests
This commit prepares for pnl tests - variables are prefixed with
balance-sheet- to accommodate pnl- tests
2018-08-07 13:26:09 +08:00
Christopher Lam
8cbd4d629f [test-balance-sheet] upgrade to better coverage of balance-sheet
This commit upgrades test-balance-sheet to cover most sensitive data.
It specifically generates the following types of transactions, and
tests the balance sheet generated.

- Equity-USD to nested accounts
- Equity-USD to ForeignBank-GBP
- Equity-USD to Broker:FUNDS
- buy/sell from equity to GBP and FUNDS
- Broker and Broker:FUNDS both have splits with amounts

Two main subtotal strategies are tested: multilevel and recursive-bal,
and all amounts are tested.
2018-08-07 13:26:09 +08:00
Christopher Lam
47ba21b8dc [test-extras] export gnc-pricedb-create 2018-08-07 13:26:09 +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
Yuri Chornoivan
4c8b07c0fa More minor fixes
Signed-off-by: Yuri Chornoivan <yurchor@ukr.net>
2018-08-02 15:40:00 +03: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
Robert Fewell
cd7a55a9cc Fix Transient parent warnings in search dialogue 2018-07-29 12:57:59 +01:00
Robert Fewell
e851f249fc Fix gnc_window_adjust_for_screen using incorrect monitor
This function was always using the primary monitor to get monitor size
so corrected to use the monitor at the specified window coordinates.
2018-07-28 17:53:31 +01:00
Robert Fewell
099b659b4b Add debug message to gnc_save_window_size and some text changes 2018-07-28 17:52:44 +01:00
Robert Fewell
8c1adaa28f Fix Transient parent warning for dialog-book-close 2018-07-28 17:51:30 +01:00
Robert Fewell
68874495e1 Change files for changed gnc_restore_window_size format, part2 of 2
Add the parent window to the calling function gnc_restore_window_size
after the change to that function. This required adding the retrieval of
 the parent window for the calling dialogues.
2018-07-28 17:50:31 +01:00
Robert Fewell
ec0d081d5e Change files for changed gnc_restore_window_size format, part1 of 2
Add the parent window to the calling function gnc_restore_window_size
after the change to that function. These files already had access to
the parent window.
2018-07-28 17:45:49 +01:00
Robert Fewell
dd59ba67f6 Add the parent window to gnc_restore_window_size function
When a dialogue is open for the first time, there is no saved geometry
so to locate this dialogue try and use the parent window location by
doing the following...

If the dialogue has a size, align it centrally on the parent window.
If the dialogue has no size, let gtk align it.

This commit breaks the build, the following commits changes all
occurrences of gnc_restore_window_size to include parent window.
2018-07-28 17:17:19 +01:00
Robert Fewell
0a0d4755c4 Fix restore window geometry
The monitor was not being correctly identified so when Gnucash was
running on the second monitor, a dialogue could be started on the first
which could be confusing. Also when a dialogue is restored a check is
made to try and make sure it fits on the monitor.
2018-07-28 17:05:59 +01:00
Robert Fewell
2c6fbfba6e Update to recently changed GtkDialog to GtkWindow dialogues
Add the ability to close the window when the Escape key is pressed and
make sure window geometry is saved when by the buttons are used.
2018-07-28 17:03:10 +01: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
Yuri Chornoivan
f9700ba98d Fix minor typos 2018-07-27 14:23:15 +03: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