Commit Graph

16705 Commits

Author SHA1 Message Date
Geert Janssens
c5198be90c Fix compiler warning about misleading indentation 2016-11-30 16:30:53 +01:00
Geert Janssens
e38fd5b5e5 Fix report html header
We lost a required escaped quote in commit 4a60e4906 'Fix type in HTML header.'
2016-11-28 10:33:56 +01:00
Robert Fewell
bc33d564a8 Changed the default value for date format
Set the default value to the new 'No Fancy Date Format'.
2016-11-16 19:23:58 +00:00
Robert Fewell
a56f031d45 Fix check printing custom preference value
The scheme option is 'date-format-user' so corrected here.
2016-11-16 19:22:21 +00:00
Robert Fewell
a67b4922c2 Correct the default options if default invalid
The default value should be a list and have set the default to the new
"No Fancy Date Format" option.
2016-11-16 19:20:15 +00:00
Robert Fewell
5ce8878764 Add an unset option to date-format
Added an option of "No Fancy Date Format" to date-format so it can be
the default. In this position, the format returned is that of what ever
the preference date is set to.
2016-11-16 19:13:50 +00:00
Robert Fewell
d56c3d3ac8 Added a default currency to the currency option
This was causing an error when the dialog options was raised.
2016-11-15 15:59:44 +00:00
Robert Fewell
12562bcc0c Add plot size option for future compatibility
This is really just a copy of the number-range-option with some tests
for the saved value being a pair which is used in later versions. If the
pair is a pixel setting, then that value will be used, otherwise the
default value is used. Should any report get saved, the saved values
will be over written in the old format.
2016-11-15 15:24:38 +00:00
Robert Fewell
da0b3b5131 Fix warning from glib when saving reports.
Glib complains about an already initialised pointer, there is no need
to initialise when used with gtk_tree_model_get_value.
2016-11-15 12:12:30 +00:00
Robert Fewell
74091fbcfa Change report resizing when not in view
When you have reports open but they are not selected, resizing the
window does not always resize the hidden report views properly. Use
the expose call back so the reports are reloaded on expose event.
2016-11-15 12:05:13 +00:00
Robert Fewell
372b3cc822 Forgot to add the png file to previous commit 2016-11-15 12:03:55 +00:00
Robert Fewell
371222cb6a Add an image for the report tab
There was an entry in plugin-page-report about a missing image for the
report tab so have created one and added it.
2016-11-15 11:29:37 +00:00
Robert Fewell
49014f4714 Change the reload to include using web_view_reload
In the resize call backs, use the webkit view reload function instead of
recreating the report.
2016-11-15 11:27:51 +00:00
Robert Fewell
891dcbc339 Track visibility of the view scroll bars
When the scroll bars show they can affect the chart so force a reload
when they show.
2016-11-15 11:18:44 +00:00
Robert Fewell
51277bcd81 Add progress bar updates for reload / Update
Added progress bar updates for refresh/reload button press and also for
when the options change. Created a new function to set progress bar
height from previous commit to be used for above changes.
2016-11-15 11:16:36 +00:00
Robert Fewell
12994ca6e7 Add call back to track page size changes
Add call back to track size-allocate events for the webkit view. Also
commented out expose event as that may not be required.
2016-11-15 11:15:23 +00:00
Robert Fewell
62e449f37b Stop the progress bar changing height
When the report is run and the progress bar is updated, the height
changes and then changes back forcing the webkit view to change height
and ultimately use the wrong value.
2016-11-15 11:09:43 +00:00
Robert Fewell
1b2f89e194 Add idle function to load report
The reason for webkit not using the full report area is that this area
has not been realized when the report is created and so webkit does not
know the correct size. By using the idle function, the page is created
and realized before loading the report with the added advantage the
progress bar updates on the blank report page.
2016-11-15 11:07:42 +00:00
Robert Fewell
d7648a2ba7 Remove macros/as-scrub-include.m4 from makefile
This has already been removed in previous commit.
2016-11-15 10:44:14 +00:00
Geert Janssens
1339c1161f Fix make check after commit 673888dee7
- Update the lot list of the lot's account only when the account itself is not being destroyed
- Fix the test cases to accept the new (improved) lot destruction handling
2016-11-13 17:26:43 +01:00
Geert Janssens
ecb43e7d72 Bug 770364 - Sign of Value in Lots in Account window seems inconsistent
Two parts to this bug:
1. never reverse signs in the free splits list. Sign reversals don't
make sense there.

2. Sign reversal only makes sense for capital gains, not for business
transactions. So only to the sign dance for non-business lots in the
list of splits in the selected lot.
2016-11-12 11:06:27 +01:00
Geert Janssens
5b832c7f9b Use G_MAXINT64 instead of 0 to indicate an invalid date 2016-11-12 11:06:26 +01:00
Geert Janssens
96c22f54a3 Show empty business splits in lot viewer 2016-11-12 11:06:25 +01:00
Geert Janssens
254b4fbc2f Check more splits while running check & repair on business accounts
In addition, speed up the process a bit by already deleting empty splits as soon as they're encountered
2016-11-12 11:06:23 +01:00
Geert Janssens
a9c624bfad Business check & repair - correct lot invoice state
There have been situations where a lot refered to an invoice while
it doesn't actually contain splits for that invoice (any more).
The new code corrects this by removing the invoice reference from the lot.
Also if the lot and its splits don't agree on the invoice they belong to
set the lot invoice to whatever the splits indicate.
2016-11-12 11:06:22 +01:00
Geert Janssens
396117eec9 Various small improvements to check & repair on business accounts
- don't attempt to merge splits that belong to an invoice transaction. These splits are managed by the business code.
- lot link cleanup can leave empty splits, remove these as well
2016-11-12 11:06:20 +01:00
Geert Janssens
d52f44a8c7 When juggling business splits while scrubbing set both value and amount
With only value there were several warnings in the log file during scrubbing
2016-11-12 11:06:18 +01:00
Geert Janssens
0bcd30301e Update progress bar while running Check & Repair
Not complete - should still be added for check & repair invoked from a split register
2016-11-12 11:06:17 +01:00
Geert Janssens
673888dee7 Remove lot from account while deleting the lot
There was no way the account was informed about the lot being deleted.
This was resulting into invalid lot lists in an account while scrubbing.
Which would bomb at later stages like when re-running check & repair or
opening the lot viewer. Also saving would report a number of critical messages
about invalid objects, but these didn't result in a segfault.
2016-11-12 11:06:14 +01:00
John Ralls
32c4d14588 Ensure that the Namespace combo box is initialized to a valid iter.
Thanks to David T. for noticing that it wasn't.
2016-11-10 13:56:09 -08:00
John Ralls
5fcdfba69c Bug 769124 - Australian (GMT-10) OFX transactions imported have previous
day's date. Previous efforts didn't work on Windows and shouldn't have
elsewhere because gnc_localtime and gnc_mktime are inverse functions;
in particular gnc_mktime doesn't adjust the time based on the value
of tm_isdst, though some implementations of STDC mktime do.

Rather than being too clever about trying to find the DST offset this
implementation just uses 1 hour.
2016-10-24 11:21:12 +11:00
John Ralls
6695ef9585 Bug 769124 - Australian (GMT-10) OFX transactions imported have previous days date.
Fix on Windows, where the test failed to build.
2016-10-20 10:40:18 -07:00
Rob.Gowin
c68452a497 Remove configuration of HAVE_PUTENV.
The Python includes files for Windows define HAVE_PUTENV to be
empty. GnuCash under MINGW (only) defines it to be 1. This causes
redefinition errors when building the Python bindings on Windows.
HAVE_PUTENV is not used in the GnuCash code base, so the best
solution seems to be to just get rid of it.
2016-10-14 14:17:04 -05:00
Geert Janssens
38e6d7f7ce Bug 771617 - Build fails because test test-report-utilities is sensitive to time of day/timezone
Previous commit was working with years and monts potentially outside the supported range.
2016-10-10 12:28:49 +02:00
Geert Janssens
6bdac283fa Bug 771617 - Build fails because test test-report-utilities is sensitive to time of day/timezone
Use the date-time functions in gnc-date instead of the guile ones for more consistent behaviour.
Do the same for test test-cash-flow, which was also time-of-day sensitive
2016-10-10 11:49:10 +02:00
John Ralls
901c89dffa Fix CSV importer to handle GMT + 13 Timezone (New Zealand Daylight Time).
Also remove special time calculations and use gnc_dmy2timespec_neutral()
for consistency with rest of GnuCash.
2016-10-04 20:01:10 +02:00
John Ralls
5a7c791c96 Bug 772382 - Date off-by-one after DST change
The time needs to be 10:59, not 11:00: 13 hours after 11:00 is 24:00,
which is really 00:00 the next day.
2016-10-04 20:01:10 +02:00
Ralf Habacker
cd8182fc6f Fix broken german account template 'Kontenrahmen für Wohnungswirtschaft'.
The root node was not used as parent in any other account.

This issue has been detected on updating account templates
into kmymoney sources.
2016-10-03 19:48:45 +02:00
Geert Janssens
c605e4415f Bug 771617 - Build fails because test test-report-utilities is sensitive to time of day/timezone
This commit makes the test work in all timezones from -11 to +10. Timezone +11 still fails, but that's the compromise we have made in the rest of gnucash as well.
2016-10-03 17:41:11 +02:00
Geert Janssens
127adb4a7c Bug 772313 - Invalid DOCTYPE in report generation 2016-10-02 12:08:34 +02:00
Rob Gowin
c599bf3c0b Use default PKG_CHECK_MODULES for CMake version > 3.4 2016-09-27 11:24:36 -05:00
John Ralls
b905c4a26d Remove obsolete AS_SCRUB_INCLUDES macro.
This was an ugly work-around for a bogus warning from gcc-3, a
long-superceded compiler. The way the macro was written caused
portablility issues (see PR 102) and other projects (gstreamer
in particular) removed it several years ago.

Thanks to Julian Ospald for bringing it to our attention.
2016-09-25 23:07:14 +02:00
Mike Evans
2d5056db6c Bug 771246 - Set Invoice/Bill items date correctly from imported CSV.
Set Date Entered to date in the csv file, or today if absent.
2016-09-25 09:12:19 +01:00
John Ralls
84d15a266a Fix version in CMakeLists.txt. 2016-09-17 14:40:59 -07:00
John Ralls
3e7022b7cd Release 2.6.14 2016-09-16 09:59:09 -07:00
John Ralls
465f57228c Synchronize translation project.
Includes updates for Dutch, Serbian, and Spanish.
2016-09-16 09:30:59 -07:00
John Ralls
839b92ca59 Bug 769746 - Zero interest loan formula fails.
Document that the Mortgage Assistant doesn't support 0-interest loans.
2016-09-15 14:53:43 -07:00
Robert Fewell
f54fc2ff11 Add option to recn cell type to be read only
Use added read only option to make Associate cell read only
2016-09-13 20:57:14 +02:00
Robert Fewell
6450bb624a Make a distinction between file/link Association
Show a 'f' in the register for a file association and a 'w' for a link
2016-09-13 20:56:49 +02:00
Robert Fewell
382b031e3c Indicate an Association in the Register
Use the field below the reconcile and type entry on the transaction
lines to indicate a file/link association.
2016-09-13 20:56:24 +02:00