John Ralls
20f6e4e690
Remove Timespec from the SQL backend.
2018-08-13 11:52:43 -07:00
John Ralls
755773ac4c
Clean up timespec comments in the XML backend.
...
Noting where the word must stay; most significantly for KVP types and for
parsing Version 1 XML files.
2018-08-13 11:52:43 -07:00
John Ralls
b32a8a9390
Remove time64_to_string and string_to_time64 and their tests.
...
Each was used exactly once and simply wrapped a function call.
Also replace static function time_parse_failure that just returned a
constant with the constant.
2018-08-13 11:52:43 -07:00
John Ralls
62b17ca5db
Timespec removal, engine odds-and-ends.
2018-08-13 11:52:43 -07:00
John Ralls
358cd979d9
Remove Timespec from the main engine classes (Transaction, Split, & Account.
2018-08-13 11:52:42 -07:00
John Ralls
fee589b28c
Remove Timespec from pricedb.
...
Includes removing the time64 specialized functions because the regular ones
handle time64 now.
2018-08-13 11:52:42 -07:00
John Ralls
92a8cf330a
Timespec->time64 in business code.
2018-08-13 11:52:42 -07:00
John Ralls
c8b372e390
Convert GNC_TYPE_TIMESPEC to GNC_TYPE_TIME64, Kvp::Type::Timespec to Kvp::Type::Time64
...
They have to go together because of using gvalues to hide KVP from most of
GnuCash.
2018-08-12 16:12:19 -07:00
John Ralls
b60aef9d2a
Remove timespec2dmy.
...
It had only two uses and one was in a test. Replace those calls with
gnc_localtime_r.
2018-08-12 16:12:19 -07:00
John Ralls
6f89bd62b3
Remove timespec from gnucash/gnome.
...
With a little API bleed into engine.
2018-08-12 16:12:19 -07:00
John Ralls
e796120359
Remove Timespec from gnucash/gnome-utils.
...
Plus a bit of bleed into gnome because of deleted functions.
2018-08-12 16:12:18 -07:00
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
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
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
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
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