Commit Graph

20583 Commits

Author SHA1 Message Date
Geert Janssens
de6c173ef4 Merge branch 'Bug796896' of https://github.com/Bob-IT/gnucash into maint 2018-11-28 14:21:16 +01:00
John Ralls
61cd7999f3 Fix half-up, half-down, and banker's rounding for negative numbers.
We need to compare the magnitudes of the remainder and the denominator
in order to round negative numbers correctly. Note that while gnc_numeric
is constrained to a positive denominator the C++ rounding functions cannot
assume that constraint in all cases.

Combined with the previous commit, this fixes
Bug 796949 - Incorrect conversion of 0,01 USD to EUR
2018-11-27 22:17:22 +09:00
John Ralls
536606a89c Fix extract_common_prices logic.
So that the returned price tuple has the two commodities of interest
converted to a common currency. Before the first pair that that shared
any random currency would be returned, perhaps creating an absurd result.
2018-11-27 22:17:22 +09:00
Robert Fewell
458dac89fe Bug 779565 - Treeview header combos do not work at first load
When the csv preview page is first loaded the header combo will not
work till refreshed which can be done by selecting another separator.

By adding a g_idle_add to the preview_page_prepare to rebuild the table
the combos become active.
2018-11-26 17:26:58 +00:00
Robert Fewell
79373d5b5e Fix an alignment issue and remove redundant ctreeview 2018-11-26 17:26:58 +00:00
Robert Fewell
78c8e8f3af Make similar changes to transaction import CSV assistant 2018-11-26 17:26:58 +00:00
Robert Fewell
8ed40078b0 Make similar changes to price import CSV assistant 2018-11-26 17:26:52 +00:00
Robert Fewell
2b9b3d4a5e Fix a missing transient warning for error dialogue 2018-11-26 17:26:51 +00:00
Robert Fewell
5201fe5f34 Disable forward button if there are no entries in store 2018-11-26 17:26:51 +00:00
Robert Fewell
4abbd86d0d Remove window reference and use assistant instead 2018-11-26 17:26:51 +00:00
Robert Fewell
92b587fa56 Make similar changes to account import CSV assistant
Remove the OK button from the file page.
2018-11-26 17:26:44 +00:00
Robert Fewell
1b2feacd4b Bug 796896 - Button to complete an export not intuitively placed or discoverable
The assistant file page is made up of an embedded GtkFileChooser widget
and associated OK button which seems out of place. Remove the OK button
and use the selection-changed signal to control the 'Forward' button.
2018-11-26 17:26:37 +00:00
Geert Janssens
e57d4278e8 Bug 760825 - On duplicating a bill, the entry dates should be set to the bill date, not to the current date - followup
Use neutral time on entry post dates instead of canonical time
2018-11-20 21:13:39 +01:00
Geert Janssens
13f6c4d6d7 Introduce and use gnc_time64_get_day_neutral
This function complements gnc_time64_get_day_begin/end. There was
time64CanonicalDayTime but this returned noon of the given day, where we
want 10:59am in most cases. I haven't changed time64CanonicalDayTime
directly as that may break assumptions in other parts of the code.
Instead I have created a new function that can be gradually introduced.
2018-11-20 21:12:32 +01:00
Geert Janssens
11af81b51b Bug 789674 - Close Book tool regression 2018-11-20 18:55:09 +01:00
Geert Janssens
370562970e Fix travis failure due to changed option name 2018-11-18 17:28:30 +01:00
Geert Janssens
cd04e805e3 Bug 796919 - Leading '+' character not accepted in amount when value surrounded by quotes
Use a variant of xaccParseAmount that allows to ignore the locale's positive_sign character
or the + sign if locale doesn't define a positive_sign character.

In a future redesign it would probably be better to replace use
of xaccParseAmount with some variant of the gnc-expression-parser
but that would require more that a few tweaks to get right.
2018-11-18 17:23:14 +01:00
Geert Janssens
f13d21b973 Bug 498072 - GnuCash show taxes on invoice when individual taxes is not checked
Use more descriptive option name and tool tip as proposed in the bug.
2018-11-18 15:38:59 +01:00
Geert Janssens
ae862e6aa5 Bug 760825 - On duplicating a bill, the entry dates should be set to the bill date, not to the current date 2018-11-18 15:04:04 +01:00
Robert Fewell
eecc013724 Allow the text options widget to use all remaining space
The text option widget used for report options has only about 3 lines
visible currently and will not use any available space in the dialogue.

Change the packing for this widget to expand and fill the remaining
dialogue space. If there are more than one text option widget on a page
then the available space will be shared equally.
2018-11-15 19:13:57 +01:00
Robert Fewell
3cc05792ca Bug 796806 - Crash after OFX import if line item dragged
Prevent the import rows being dragged to a different order.
2018-11-15 19:13:57 +01:00
Robert Fewell
10377c51e2 Remove some white space/tabs from gnc_tree_view_account.c 2018-11-15 19:13:57 +01:00
Robert Fewell
916e7efd55 Bug 788332 - Last Reconcile Date column sorts by day of month not date
The Reconcile date column was being sorted by string instead of date
value. Added a sort function for ReconciledLastDate and use that for
the tree view column.
2018-11-15 19:11:31 +01:00
Robert Fewell
a9e0f4a721 Bug 793156 - Incorrect date sort order in Generic import matcher window
The date column was being sorted by string as opposed to date value.
Added an INT64 value to the model store to hold the time64 value and
use that for sorting the tree view date column.
2018-11-15 19:11:31 +01:00
Robert Fewell
d458e13a7f Remove KVP for assoc_uri when passed an empty string
Change xaccTransSetAssociation so if an empty string is passed the KVP
entry is removed instead of leaving an empty stub.
2018-11-15 15:30:35 +00:00
Robert Fewell
dfdafc7185 Bug 796915 - Update Account colour background
The account tree view background colour does not update straight away
with the preference option so add gnc_tree_view_account_refilter to the
colour change call back to force a refresh.
2018-11-15 15:30:35 +00:00
Robert Fewell
539a27b5ff Bug 796849 - Load another QIF file causes "that file already loaded" dialog
Clear the gtk entry for the filename in the
qif_import_load_another_file_cb function.
2018-11-15 15:30:35 +00:00
Robert Fewell
06b2e6bb2f Remove white space/tabs from search-owner.c/h
Remove the white space and tabs from search-owner.c/h and adjust format
to be the same as the other similar search source files.
2018-11-15 15:30:35 +00:00
Robert Fewell
8c03b999ed Bug 796903 - Crash when searching invoice by Invoice Owner
This was caused by a missing override function pass_parent used to pass
the parent GtkWindow for the error dialogues.
2018-11-15 15:30:35 +00:00
Robert Fewell
d327ff0819 Bug 796842 - Add new employee window may not fit on screen
Added notebook page for the Billing Information like other dialogues
2018-11-15 15:30:35 +00:00
Robert Fewell
cf587c1234 Do not destroy the 'blank split'
With a register in journal mode and you use the
'move to blank transaction' button which puts the cursor in the
'blank split' and then immediately click on another transaction you
loose the ability to add any more transactions using the blank
transaction as there is no 'blank split'.
Test for the old_split being the 'blank split' before destroying.
2018-11-15 15:30:35 +00:00
Robert Fewell
60f184be92 New hierarchy assistant error
When using the new hierarchy assistant, when you cancel or finish an
error is recorded in the trace file for invalid cast from GtkWindow to
GtkDialog. The cause is when removing the added book options which are
from a window and not a dialog so use 'gnc_options_dialog_destroy'
instead. This also fixes when after saving the file and you go straight
to File->Properties you get a blank book options dialogue.
2018-11-15 15:30:35 +00:00
John Ralls
284d6c1456 Fix travis failure try 2.
stdint.h for Transaction.c too.

Also get rid of unused timeval decl.
2018-11-11 17:43:24 +09:00
John Ralls
73d193606e Fix travis failure.
Linux needs stdint.h for INT64_MAX.
2018-11-11 17:29:06 +09:00
John Ralls
710b122b24 Bug 796940 - Invalid transaction date-posted KVP causes...
date-posted to not be saved.

Check the stored GDate for being in the GncDateTime range as well
as the GDate range before returning it and check trans->date-posted
against INT64_MAX instead of 0 before changing it.
2018-11-11 17:07:34 +09:00
John Ralls
4c1c485db6 Use split SCU when borking random split pairs.
Reduces likelihood of a zero value in the transaction currency.
2018-11-10 11:35:16 +09:00
John Ralls
2667ee7d98 Don't rely on glib-compile-resources being on the path. 2018-11-10 11:35:04 +09:00
Geert Janssens
52380d11d2 Add short_labels for a few toolbar buttons with long names.
That should fit a few more buttons on the toolbar.
2018-11-08 09:20:32 +01:00
Geert Janssens
d9bdf84d36 Re-enable the console warning when running a development build 2018-11-06 15:19:54 +01:00
Frank H. Ellenberger
ea978e288f Update my and Charles Days status 2018-11-06 08:18:22 +01:00
Geert Janssens
67174dd0b1 Prevent temporary editor files from being picked up for POTFILES.in generation
Aparently cmake's file glob also picks up hidden files and doesn't have
an easy way to avoid that.
2018-11-04 13:07:36 +01:00
Geert Janssens
2283df719a Drop code to work around gtk bug 326200 (bugzilla)
This bug has been fixed in 2006 and I have verified the version of gtk we
currently depend on carries this fix.
2018-11-04 12:45:53 +01:00
Frank H. Ellenberger
0467dd0b92 Fix several URLs in documentation parts
We have no longer svn, but 2 doxygen branches.
I don't remember, when Mailman moved from www to lists.
2018-11-03 10:15:19 +01:00
Frank H. Ellenberger
744101153d Replace a few hardcoded URLs by CMake vars
Additional fix a bug URL
2018-11-03 10:08:09 +01:00
Frank H. Ellenberger
51b96ec3e5 Update package URLS
We don't want bug mails to devel.
(missed port from autotools)
2018-11-03 05:39:02 +01:00
Frank H. Ellenberger
38abaf305a Add a translator comment about invoice title format 2018-11-02 23:16:52 +01:00
John Ralls
4b5ee84575 Work around strange struct tm initializer failure. 2018-11-02 13:44:09 -07:00
John Ralls
1c6fca9fca Remove emacs artifact from POTFILES.in. 2018-11-02 11:27:41 -07:00
John Ralls
0e723610f0 Bug 795080 - Some dates reset to 01/01/1970
The first fix for this bug handled structs tm with ambiguous times.
This one fixes the GncDate constructor when the time is ambiguous
because it's in the DST-change hour, using the same add 3 hours,
construct the LDT, and subtract the 3 hours from the result.

The string constructor handles only simple-offset HH:MM timezones and so
is immune to the bug.
2018-11-02 10:45:40 -07:00
Frank H. Ellenberger
19b3643abf PR #431: Update iso-4217-currencies.xml
add VES - Bolivar Soberano, minor updates of other VE currencies.

Merge branch 'patch-1' of https://github.com/rcalpha/gnucash into maint
2018-11-02 02:02:00 +01:00