Commit Graph

22866 Commits

Author SHA1 Message Date
John Ralls
4479e44363 Fix delete ignores selection in register cells.
Don't clear the selection before passing the event to the entry's
keypress handler. Instead set the sheet selection from the entry
when the handler returns.
2020-05-17 16:51:29 -07:00
John Ralls
0aeb4b54ae Remove actions on the control, shift, and alt keys.
Those keypresses are now blocked along with all other naked modifiers.
2020-05-17 16:51:29 -07:00
Robert Fewell
31825be43f Change the Options Checkbox
Change the Options GtkCheckBox to use its own built-in label and remove
the label in the first column. The GtkCheckBox will still be placed in
the second column and aligned with the other widgets.
2020-05-17 16:10:36 +01:00
Christopher Lam
5b597dfea4 [html-chart] add z-index:999 to anchor
otherwise it is not always visible
2020-05-16 23:19:09 +08:00
Christopher Lam
0f56bed0d9 [receipt.eguile] simplify
1. taxtables? was a hack to disable tax display; this is now obsolete
since bug 573645 was fixed with 8221aada. the equivalent
taxinvoice.eguile.scm hack was removed with 0eb2c2b3 but never removed
in receipt.eguile.scm

2. break out date<? comparator

3. use lispy for-each instead of pythonic for

3. compact code
2020-05-16 23:19:09 +08:00
Christopher Lam
9116fece7d [taxinvoice] remove dead code, simplify
* customer-only filter for invoice option never been in use.
2020-05-16 23:19:09 +08:00
Christopher Lam
c69153fce1 [taxinvoice.eguile] simplify
1. break out date<? comparator

2. the (if (not (null? opt-invoice)) ...) section is always run
because display-report is only called when opt-invoice isn't null

3. use lispy for-each instead of pythonic for loops
2020-05-16 23:19:09 +08:00
John Ralls
a81f155408 Fix abort in qof_log_check.
Apparently g_logv doesn't like recursive calls from its log handler.
2020-05-15 12:52:18 -07:00
John Ralls
659f785cb8 Bug 797750 - SIGSEV in swig-engine.c 2020-05-15 12:37:24 -07:00
jean
55d73851e2 Implement multiple-ofx import with reconcile
I had to rebase against master which included the reconcile after import and there were a few conflicts.
So this is the new version. It includes all the recommendations made in the original PR but the code now includes the reconcile part.
2020-05-15 09:55:15 -07:00
John Ralls
8283263459 Restore AQBanking to operation.
And remove some dead code that had been #if-0ed since it was written.
2020-05-14 17:12:04 -07:00
Christopher Lam
09a8bee5c0 Merge branch 'speedup-aging' #638 2020-05-14 20:30:08 +08:00
Christopher Lam
8ea9e41190 [register] display $0.00 for zero-value splits 2020-05-14 20:30:05 +08:00
Christopher Lam
ecf429a49a Merge branch 'master-796932' 2020-05-14 19:38:55 +08:00
Christopher Lam
bbde69ffcd [register] price shown in transaction currency rather than account's parent currency
error in commit 710b559cc4

xaccSplitGetSharePrice is priced in the transaction
currency. gnc-account-get-currency-or-parent would only output the
correct price currency if the chart of accounts was set up properly.

also: for Dr/Cr display, small modification to ensure a "$0.00" is
rendered when the split value is neither positive nor negative.
2020-05-14 19:37:54 +08:00
Robert Fewell
86dc6dcb96 Remove some spaces and tabs from dialog-options.c 2020-05-14 12:13:08 +01:00
Robert Fewell
9f59d2cbd7 Enable the Options Checkbox label to be used to toggle
With the new the options dialogue using a GtkGrid it is required that
clicking on the label of the GtkCheckBox would also toggle the
GtkCheckBox. To this end the label is added to an event box so it can
be clicked on and a callback used to toggle the checkbox.
2020-05-14 12:07:42 +01:00
Robert Fewell
6fb50d227a Complete the move of saving register filter/sort to .gcm
This commit changes the saving of register filter and sort information
from KVP entries to using the .gcm file. On register load these
settings are transferred to the .gcm file and the KVP entries removed.
A feature flag is also set when the first register is loaded by this
version.
2020-05-14 10:26:17 +01:00
Robert Fewell
bf9c44416e Remove the setting of a comment for registers 2020-05-14 10:26:17 +01:00
Robert Fewell
b6de2981b8 Remove the state key file comment for Account filter 2020-05-14 10:26:17 +01:00
Robert Fewell
2494ad1adf Add option to save Layout for Register items
Add two menu items under windows, one to save an existing register
layout based on the register type to there respective default layouts
so the user set column widths will be used when opening registers. The
second menu item will reset the column widths to defaults and remove
the associated default layout.
Open registers will also save there column widths to the page section
so these could can temporarily have different widths.
2020-05-14 10:26:17 +01:00
Robert Fewell
74abd821b3 Add enum SplitRegisterTypeGroup to group registers
Add SplitRegisterTypeGroup to group registers that have the same layout
and it will also be used to get the default user state information for
register cell widths.
2020-05-14 10:26:17 +01:00
Robert Fewell
4c8ebfe171 Change state_section parameter for gnc_table_save_state
Change state_section to a const gchar* and update where used as required
2020-05-14 10:26:17 +01:00
Robert Fewell
2f5225ad33 Add option to save Layout for Business items
Add two menu items under windows, one to save an existing layout for
Invoices, Bills and Vouchers to there respective default layouts so the
user set column widths will be used. The second menu item will reset the
column widths to defaults and remove the default layout.
Open Business items will also save there column widths to the page
section so these can temporarily have different widths.
2020-05-14 10:26:17 +01:00
Robert Fewell
b622518fce Test for a valid register state comment before trying
to add it
2020-05-14 10:26:17 +01:00
John Ralls
4e9990ddb5 Bug 797748 - missing header "algorithm"
include what you use!
2020-05-13 12:52:16 -07:00
Christopher Lam
dba9ba2f8f Bug 796932 - Invoices order when assigning payments
sorts documents in dialog-payment.c by date, then by document ID.
2020-05-13 18:39:41 +08:00
Christopher Lam
a874483b70 [register] show number columns right-aligned 2020-05-13 13:55:59 +08:00
Christopher Lam
f8bad131a5 Merge branch 'maint-797743' #720 price renderers 2020-05-13 13:20:09 +08:00
Christopher Lam
710b559cc4 [register] [bugfix] use new price renderer
also bugfix: show price in account parent currency, instead of the
original currency.
2020-05-13 13:15:50 +08:00
Christopher Lam
f9fce766c3 [trep-engine] use new price renderer 2020-05-13 13:15:47 +08:00
Christopher Lam
7557c5b54e [advanced-portfolio] use new price renderer 2020-05-13 13:15:45 +08:00
Christopher Lam
8b3841b4b5 [balsheet-eg.eguile] use new price renderer 2020-05-13 13:15:45 +08:00
Christopher Lam
d8c21c4625 [balsheet-pnl] use new price renderer 2020-05-13 13:15:42 +08:00
Christopher Lam
61afe53f0f [html-utilities] use new price renderer for exchange-rate table 2020-05-13 13:15:33 +08:00
Christopher Lam
9020c967c7 [html-style-info] export gnc:default-price-renderer
converts gnc:monetary containing a price to string
2020-05-13 11:36:22 +08:00
Christopher Lam
3d25a40d1f [gnc-ui-util] add gnc_price_print_info
similar to gnc_default_price_print_info but also accepts a use_symbol
specifier. for generating print_info for prices, either exact e.g.
$1 + 2/3, or inexact e.g. $1.3333
2020-05-13 11:36:22 +08:00
Christopher Lam
182d4d9de7 Bug 797743 - Monetary amounts are occasionally rendered in fractions
If monetary is already in decimal, don't convert. If monetary is
exact (x/y) then convert to its SCU.

As a result, monetary amounts in an arbitrary precision will be
displayed unchanged, e.g. US$0.1442, whereas exact monetary amounts
will be displayed using the currency's SCU e.g. US$1/3 -> $0.33
2020-05-13 11:36:22 +08:00
John Ralls
1510f34926 Use std::unique_ptr instead of std::shared_ptr.
No need to share ownership.
2020-05-12 14:06:45 -07:00
John Ralls
bd6840e035 Fix incorrecly logging all possible messages regardless of log level. 2020-05-12 14:06:45 -07:00
Christopher Lam
57fe051565 Merge branch 'maint-trep-case-insensitive' PR #719 2020-05-12 21:47:36 +08:00
Geert Janssens
ebd9db8921 Merge branch 'maint' 2020-05-12 14:50:20 +02:00
Geert Janssens
0c633866fd Bug 797717 - Summary bar changes height when opening a menu or scrolling over an option
Apparently something changed in gtk which now calculates
layout differently for a status bar for an empty string message.
Setting a single space message doesn't trigger this different
behaviour so we use that as workaround
2020-05-12 14:49:49 +02:00
Robert Fewell
9f039a7d08 Bug 797745 - Unable to change default report currency
This option in the preference dialog was missing its group partner so
both options were selected. Added missing group and also realigned some
other entries.
2020-05-12 10:51:35 +01:00
John Ralls
94fdc42f16 Fix wrong Boost library variable names. 2020-05-11 12:35:42 -07:00
John Ralls
b9b51efa8d Don't use g_return_value_if_fail in qof_log_check.
It causes GnuCash to crash if g_log is called without having set
G_LOG_DOMAIN.

Also extract a singleton getter function to ensure that the static
root module has been created before use.
2020-05-11 12:31:49 -07:00
Christopher Lam
b4d7386d44 [trep-engine] "Transaction Filter is case insensitive"
add Filter option to make Transaction Filter case insensitive.
2020-05-11 23:15:29 +08:00
John Ralls
3d6a06d503 Fix clang error about type mismatch GtkWidget* != void* aka gpointer
in the second argument and an extra ptr level in the first.
(The declaration is
g_atomic_pointer_compare_and_exchange(void* atomic, gpointer old,
                                      gpointer new)
but that's wrong as it tests *atomic == old so atomic needs to be
void**. But we were passing &gpointer* i.e. void***.)
2020-05-10 14:49:20 -07:00
John Ralls
d58f260aa9 Reports dependency fixes. 2020-05-10 12:00:13 -07:00
John Ralls
fc637aadc7 Two more test directories needing G_LOG_DOMAIN defined.
Should fix CI failures.
2020-05-10 10:18:36 -07:00