Commit Graph

16949 Commits

Author SHA1 Message Date
John Ralls
db73c39bf1 Extract static gnc_dbi_transaction functions.
To enable local calls (as opposed to just virtual calls via
GncDbiSqlConnection) and replace all direct transaction queries with the
new functions.
2017-02-04 09:41:45 -08:00
DIG
b682fe6b43 Small updates for Russian translation 2017-02-02 09:28:45 +01:00
Geert Janssens
02adf447fd Bug 777875 - Reports with charts are flickering in certain circumstances
This flickering was triggered by interference between scrollbar
visibility changes and report reloading. Both should not happen
at the same time.
2017-02-01 19:18:00 +01:00
Geert Janssens
5a144699b9 Extend account color to all columns in the account hierarchy page 2017-01-30 22:12:25 +01:00
Geert Janssens
0a782dd0c0 Travis - fix failure to load some libraries while running scm tests
In the travis environment (guile 1.8 in combination with other unidentified,
particular package versions) the scm based tests are looking for
backend modules (xml and dbi) in the installation prefix instead of
in the build directory. Explicitly setting the environment variables
GNC_BUILDDIR and GNC_UNINSTALLED fix this. I haven't figured out why this
is not needed on all platforms/tool version combinations. But the fix
works in all (autotools based) cases. CMake builds may need a similar
fix, but I don't know that environment sufficiently to implement it.
2017-01-28 18:02:08 +01:00
Geert Janssens
c87fa9eac1 Bug 759934 - Tiny reports in HiDPI
While a proper solution is only possible with a more recent
version of webkit, this commit will allow users to work around
the issue by manually setting a default zoom level for reports.
This setting can be found under
Edit->Preferences->Reports
2017-01-28 17:56:59 +01:00
Geert Janssens
33f39627e3 Drop a couple of webkit related configure tests
The tests are only relevant to webkit versions older than our baseline.
2017-01-27 19:24:53 +01:00
D. Hugh Redelmeier
51332b1a65 add comments to clarify that taxtxf.scm is US-specific
src/report/locale-specific/us/taxtxf.scm is specific to US tax codes.
Add comments to make this clear.
2017-01-27 10:17:43 +01:00
Pedro Albuquerque
885227a63a Bug 777561 - Update pt.po to v. 2.6.15
4659 translated messages.
2017-01-26 15:36:24 +01:00
Robert Fewell
b798a6cdbd Bug 516920 - Calendar Pop up disappears of the left side
The last change did not check for the left screen edge. This update
checks for the calendar pop up going over the left, right, and
bottom edges of the screen. The top should not be an issue.
2017-01-23 14:09:59 +01:00
klemens
2a97675bee spelling fixes 2017-01-23 11:50:00 +01:00
Pedro Albuquerque
62e1274717 Several spelling corrections of the pt_PT translation 2017-01-21 16:21:21 +01:00
Mike Evans
f1c620f6d3 Make strings translatable in dialog-bi-import.c 2017-01-17 13:20:04 +00:00
Mike Evans
9c39d0e597 Bug 767032 - Bad invoices from importing "posted" needing currency conversion
Only auto-post if:
The posted_to account name is valid.
There's no currency conversion.
The invoice customer's currency matches the A/R account currency.

Tell the user what happened with a dialog.
2017-01-16 12:09:53 +00:00
Geert Janssens
8187624b68 Fix compiler warning about confusing indentation 2017-01-10 16:21:47 +01:00
Geert Janssens
f4510cf546 Drop unused DEBUG_MEMORY macro
Thanks to Stefan Talpalaru for spotting this.
2017-01-10 13:21:14 +01:00
Stefan Talpalaru
897fc841b6
configure: fix --disable-debug, --disable-profile and --disable-locale-specific-tax 2017-01-07 18:16:54 +01:00
John Ralls
e8c159104d Define _(X) to handle localization of GNC_COMMODITY_NS_CURRENCY. 2016-12-27 15:21:50 -08:00
John Ralls
1cc10b5b4c Bug 776494 - Wrong menu entry in Tip of the day 2016-12-27 14:46:25 -08:00
John Ralls
7432ba8c91 Localize the word “CURRENCY” used in the commodity namespace selectors. 2016-12-27 14:46:25 -08:00
John Ralls
84b7a90b54 Bug 773945 - Select Security Dialog Not User Friendly
Add a new namespace “ALL NON-CURRENCY” to the namespace (type) selector
lists on the security picker and price editor which causes the commodity
list to include all non-security commodities.
2016-12-27 14:46:25 -08:00
John Ralls
d658b7570c Fix reference to SVN in README. 2016-12-18 12:50:30 -08:00
John Ralls
1ef17e6e16 Release 2.6.15 2016-12-17 11:11:56 -08:00
John Ralls
bbb5e56e30 Update AUTHORS and DOCUMENTORS. 2016-12-17 10:27:09 -08:00
John Ralls
21bd13b91a Update Danish and Serbian translations from the Translation Project. 2016-12-17 09:45:21 -08:00
Phil Davis
2cecc2934d README typo 2016-12-17 09:29:23 -08:00
John Ralls
38527d08f1 Bug 775912 - Tips of the Day shows content only once very 3 times
Remove extra line-feeds from CMake generation of tips_of_the_day.list. They're unneeded and mess up windows parsing the file.
2016-12-13 11:53:23 -08:00
John Ralls
3ed1c7616d Remove QIF importer error “Dates earlier than 1970 are not supported”.
Because they are. The parser can’t figure out years earlier than 1930,
but that’s not really a major concern.
2016-12-11 17:21:28 -08:00
John Ralls
54beffd936 Bug 685329 - Crashes on non-existent date
Log an error instead of crashing. The transaction will be imported with
today’s date.
2016-12-11 16:35:46 -08:00
John Ralls
78b41f7ac1 Bug 772369 - Replace use of guile's internal date/time functions
with our own implementation of gnc-date.
2016-12-11 15:23:55 -08:00
John Ralls
ad208810f0 Bug 773808 - Export Report Crash
It's possible for the GtkFileChooserDialog to return a NULL filename,
so defend against that.
2016-12-11 10:01:16 -08:00
John Ralls
ad1ba56105 Bug 772484 - Segfault on Transaction edit
Fix a couple of places where we can pass a NULL GDateTime* if the
database contains a bad date.
2016-12-10 15:08:03 -08:00
John Ralls
fcd817a6bf Bug 774237 - FTBFS under some timezones (eg. GMT-14)
Fix the neutral offset calculations so that the fixed UTC time doesn't
change the date in the timezones near the international date line. Divide
offset by 60 instead of 3600 so that the Chatham Islands (GMT-12:45 with DST)
use 9:59 instead of 10:59 like the rest of NZ (GMT-12).
2016-12-10 14:26:16 -08:00
John Ralls
fc3dc3e7a8 Bug 775385 - Confusing error message which includes the text "file file"
Remove the scheme from file URIs before displaying
error messages and change the one file error message that can show up in
database dialogs to say "file/URI foo" instead of "file foo".
2016-12-09 16:09:33 -08:00
John Ralls
7b7c780a36 Bug 775368 - "Average cost" price source problem
This series of changes modifies the Average Cost report function to
finding the average amount-weighted price of all transactions recording
a "buy" of the report commodity so that the correct amount is now
reported without the need of a capital gains split--though one is still
needed to get the Trial Balance report to balance.

Since book-wide averages are not what most users expect, it also changes
the default pricing option on all reports to "Nearest in Time", which is
what most confused users have selected after asking about it in the
mailing lists. This also fixes
Bug 340991 - Default price source for reports not good.
2016-12-09 10:34:02 -08:00
John Ralls
332bd3bb3e Change the default price-source from Average Cost to Nearest in Time.
Average cost is a counter-intuitive calculation for most users; Nearest in
Time is generally reported to produce the results that users expect.
2016-12-09 10:33:28 -08:00
John Ralls
98697a1e23 Calculate rates only for buy transactions in the report commodity for cost totals.
Reverse the direction of splits with negative amounts as they represent a
sale of the transaction commodity. Accumulate buys and sells of commodities
into separate comm-lists and use only the buy-side ones for the report-commodity
in the calculation.
2016-12-09 10:22:06 -08:00
John Ralls
d9dbc3de04 Single functions for gnc:make-exchange-alist and gnc:get-exchange-totals.
Extract helper functions and add a parameter, eliminating gnc:make-exchange-cost-alist
and gnc:get-exchange-cost-totals.

This makes it more clear the differences between the two algorithms and
makes it easier to correct the algorithm for the cost case.
2016-12-06 16:27:39 -08:00
John Ralls
0829d6dc03 Move checks for no split amount and trading accounts to get-match-commodity-splits.
They apply to all price retrievals.
2016-12-06 16:27:38 -08:00
John Ralls
5803c141c1 Clean up whitespace in commodity-utilities.scm. 2016-12-06 16:27:38 -08:00
Ryan Tucker
57e7ba869d fix missing chmod +x in configure.ac 2016-12-06 15:30:38 -08:00
John Ralls
f382695345 Bug 775567 - Importing QIF file from PayPal crashes GnuCash 2.6.14 on Windows XP service pack 3
Guile-1.8 doesn't know about BOM so check for one and strip it if it's there.
2016-12-04 12:36:07 -08:00
John Ralls
755c42a087 Prevent crash when there's an error loading a qif import file. 2016-12-04 12:36:07 -08:00
Robert Fewell
27f529e76a Bug 516920 Scheduled trasaction calendar popup off screen
If calendar is close to the right screen edge, the pop up can go of screen. Added
test for pop up going off screen.
2016-11-30 18:43:33 +01:00
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