Commit Graph

22801 Commits

Author SHA1 Message Date
John Ralls
4e6c497cd1 Don't ask to save a non-existant book.
To accomplish that we separate creating a book and creating a session;
gnc_get_session no longer automatically creates a book if one isn't
connected.

We also add an initially_insensitive GtkAction array to
gnc-plugin-basic-commands with a call to make its contents insensitive
at plugin load so that the save button on the toolbar isn't lighted when
there's nothing to save.
2020-05-08 15:59:41 -07:00
John Ralls
320db3270b Remove duplicate decl. 2020-05-08 15:59:41 -07:00
John Ralls
8ff5af4c19 Decouple QofBook creation from QofSession.
So that we don't create two books when loading a session.
Step 1 to not having a dirty book when we think we should have no
book at all.
2020-05-08 15:59:41 -07:00
Mike Alexander
0a4347bd5e Initially select the last account chosen in the account picker dialogs.
Separately keeps track of last investment account, security account,
and income account.  One issue is that gnc_import_select_account
doesn't tell the caller if it put up a dialog or found the online ID
on an existing account.  This means the last account may be one the
user didn't manually select.  This may or may not be the right thing
to do.
2020-05-08 17:07:50 -04:00
Mike Alexander
a4e35f3cea Remove some globals by moving them into the struct passed to callbacks.
No functional changes.
2020-05-08 17:07:21 -04:00
Mike Alexander
478112d8c0 Define log_module in gnc-sx-instance-model.c. 2020-05-08 16:43:45 -04:00
Mike Alexander
870c02b092 Add a newline to the GNC_DBD_DIR line in the environment file. 2020-05-08 16:41:58 -04:00
jean
a143d59b7c Bug 797737 - Import matching can match an imported transaction to an existing, previously matched transaction
A simple fix that skips transactions that have an online_id in the matching process.
This fixes the issue, and also speeds up the import.
2020-05-08 08:46:35 -07:00
Robert Fewell
32e1917017 Transaction matcher dialogue was not closing when changing book. 2020-05-08 14:19:47 +01:00
Robert Fewell
6013cb6b14 Correct parent widget for import new account dialog. 2020-05-08 14:19:47 +01:00
Robert Fewell
d74225f6c0 Change layout of source file dialog-billterms.c
Remove tabs and spaces in source file.
2020-05-08 14:19:47 +01:00
Robert Fewell
49eee35a89 No Selection on load for Bill Terms
Change the selection process so it selects the first entry if present
on load and also selects a newly created entry when completed.
2020-05-08 14:19:47 +01:00
Robert Fewell
c4e41384f2 Bug 797689 - Change the Bill Terms Table dialogue to be based on a
GtkWindow

When using Gnucash on Microsoft Windows and a dialog opens a further
dialog when you switch away from the application and back the last
dialog that has the focus is behind the parent and it appears like the
application has froze. To fix this try to use only one level of dialogue
so change the Bill Terms Table to use a Window with no transient parent.
2020-05-08 14:19:39 +01:00
Robert Fewell
881f89addf Change layout of source file dialog-tax-tables.c
Remove tabs and spaces in source file.
2020-05-08 14:05:02 +01:00
Robert Fewell
8500f36c44 Change the Tax Table dialogue to be based on a GtkWindow
When using Gnucash on Microsoft Windows and a dialog opens a further
dialog when you switch away from the application and back the last
dialog that has the focus is behind the parent and it appears like the
application has froze. To fix this try to use only one level of dialogue
 so change the Tax Table to use a GtkWindow with no transient parent.
2020-05-08 14:03:53 +01:00
Robert Fewell
ccc1247e25 Align the import matcher help button
Move the import matcher help button to the left in the CSV transaction
importer.
2020-05-08 14:02:46 +01:00
Christopher Lam
79286d92d5 Bug 797659 - Liabilities in budget report no longer calculate correctly
Restores budget-3.7 behaviour for current budgets.
Fixes future budget behaviour.
Restore budget-3.7 headings "Income/Expense/Transfer"
Renamed budget-3.7 heading Total to "Remaining"
2020-05-08 19:19:57 +08:00
John Ralls
20d53cc765 Merge branch 'maint' 2020-05-07 13:05:50 -07:00
John Ralls
601aec8ca0 Fix LIBDBI_DRIVERS_DIR generation.
Reusing the variable in a get_filename_component call caused the
function to recurse to /, not very useful.

Also re-do GNC_DBD_DIR with no default but to take its value from the
command line or environment.
2020-05-07 13:02:54 -07:00
John Ralls
6141592d40 Don't mutate the cached global account list store.
That defeats the purpose of caching it and causes problems when using it
from two registers at once. Instead use the PopBox tmp_store for listing
the type-ahead match results if any.

Since a no-match causes an empty ItemList and an empty ItemList with
grab loses key events because there's no cell to handle them--very
confusing to the user--prevent that by checking that there are entries
before grabbing.
2020-05-07 12:05:45 -07:00
John Ralls
534bcd6c1b Clean up some leftover noise from the ime-fix branch. 2020-05-07 11:45:46 -07:00
jean
4f8652c2e5 Refactor, breaking large function.
- gnc_plugin_page_account_tree_cmd_delete_account() is still too long but would be messy to break
- rename the _int function and break it further
- remove passing of account name
- simplify some of the code by reversing if(...) to if(!...)
2020-05-06 20:54:28 -07:00
Frank H. Ellenberger
dc8f1057ce Use more precise strings in gnc-split-reg.c
You can edit the account very well, but not its transactions.
2020-05-06 17:48:25 +02:00
Thomas Schärli
404357a81c L10N🇩🇪 "Für" klein in "Ergebnisrechnung für Periode" etc. 2020-05-05 23:23:46 +02:00
Frank H. Ellenberger
fb18e457b4 I18N: Msgmerge recent changes 2020-05-05 23:12:21 +02:00
Frank H. Ellenberger
e447af04e3 I18N: Hotfix for bug 797725
Add a translator comment
2020-05-05 21:55:48 +02:00
Thomas Schärli
79910e8439 L10N:de_CH: Ein weiterer Tippfehler im Kontenrahmen KMU 2020-05-05 20:23:30 +02:00
John Ralls
650f7901cd Fix build on Ubuntu-18.04. 2020-05-04 19:47:34 -07:00
John Ralls
7461cc2ace Merge John Ralls's 'ime-fix' into master. 2020-05-04 14:36:30 -07:00
John Ralls
fd05616b38 Bug 797052 - Autofill Selection is Corrupted After Clicking Description
Ignore modifier keypresses.
2020-05-04 14:35:02 -07:00
John Ralls
3475939bd7 Use the GtkEntry's GtkIMContext instead of creating one for the sheet.
Bug 797264 - 3.5 can't use Chinese IME input
Bug 797329 - Using Japanese IME to enter transactions results in
unexpected field jumps
2020-05-04 13:31:08 -07:00
John Ralls
faacd96d32 Extract functions make_new_text, delete_text, insert_text, normalize_bounds
Replacing inefficient and incorrect GString implementation.
2020-05-04 12:23:23 -07:00
Christopher Lam
fb5dd034b7 [test-stress-options] fix combinatorics testing
Premise: pairwise combinatorics testing is only possible when all
options have at least 2 options.

The "General Journal" report is unique because it starts with the
Transaction Report options generator, and adds a few hidden
options. Unfortunately the Transaction Report receives the
"General/Stylesheet" option, with only 1 default stylesheet.

The General Journal report therefore has 1 stylesheet option with only
1 choice, and is not acceptable to jenny for pairwise testing. It
would fail the combinatorics testing. Adding other stylesheets did not
successfully allow pairwise testing. Therefore the simplest way to
test General Journal is to disable multichoice testing whereby
num(choices) is only 1.
2020-05-05 01:03:14 +08:00
Christopher Lam
a9a60c1831 [Account.cpp] more xaccAccountTypeGetFundamental types 2020-05-04 23:35:06 +08:00
Christopher Lam
14ea5d9751 Merge branch 'maint' 2020-05-04 23:31:21 +08:00
John Ralls
98a4d63af2 Extract function pass_to_entry_handler. 2020-05-03 14:16:31 -07:00
John Ralls
6470ecbde1 Extract function process_motion_keys. 2020-05-03 14:16:31 -07:00
John Ralls
d8b4a4ad19 Extract several functions for managing GtkEntry position and selection
GncTable uses separate values for entry position, selection start, and
selection end while GtkEntry maintains only position and selection
bound. These functions provide for a consistent bridge between the two.
2020-05-03 14:16:31 -07:00
Christopher Lam
c6e1029510 [balsheet-pnl] multichoice option uses symbol instead of #f
multichoice is designed to use symbols. use of #f is allowed but not
recommended according to the documentation.
2020-05-03 19:51:24 +08:00
Christopher Lam
6405c60f3d [reports] use new module names 2020-05-03 19:51:24 +08:00
Christopher Lam
5fb8d3dcdf balance-sheet/income-statement{-pnl}: swap guids 2020-05-03 19:51:24 +08:00
Christopher Lam
858cf17473 {new-}owner-report: swap guids, hook to new-owner-report 2020-05-03 19:51:24 +08:00
Christopher Lam
343b018dca {new-}aging: swap guids, hook to new-aging 2020-05-03 19:51:24 +08:00
Robert Fewell
e5e7b30f7a Merge Chris Good's branch 'bug797688RecAddSubAcct', PR #709 into master 2020-05-03 12:39:58 +01:00
Robert Fewell
7483d50141 Merge Chris Good's branch 'bug797236RecMas', PR #707 into master 2020-05-03 12:11:57 +01:00
Robert Fewell
2fae14c3ba Merge Chris Good's branch 'bug797648Rec-2', PR #713 into maint 2020-05-03 11:52:07 +01:00
Robert Fewell
5ed6b424dd Merge Jean Laroche's branch 'fix_seg_fault_in_matcher' into maint 2020-05-03 11:12:58 +01:00
jean
92e9e60cd0 Fix the crash that occurs when opening a new book when the transaction-matching dialog has been opened then closed. 2020-05-02 21:20:55 -07:00
Christopher Lam
2f0639235a Bug 797707 - CSV Transaction Export: custom dates should be insensitive by default
By default the absolute date selector needs to be made
insensitive. Selecting 'Custom Start/End date' will enable
sensitivity.
2020-05-03 11:47:57 +08:00
jean
402b1c86a2 Split long function into two sub-functions. Prevent deleting accounts with more than 1 subaccount. Verify currency match for sub-account when it is to be moved or its transactions are to be moved 2020-05-02 19:39:04 -07:00