Commit Graph

16177 Commits

Author SHA1 Message Date
Mike Alexander
13abe849e5 Improve income and expense reporting in advanced portfolio report
Look for transactions from the parent account to an income or expense
account whose name matches the name of the stock account.
2015-01-18 23:16:03 -05:00
Mike Alexander
80d65c8efc Accept prices of the form n.nnne[+-]nn, i.e. with an exponent.
An example requiring this is currency conversion from IDR to USD.
2015-01-18 23:13:45 -05:00
Geert Janssens
d9900a7b4f Use the enum name instead of a number for GDateMonth
This is needed for c++, not really for c.
2015-01-18 16:05:15 +01:00
Markus Blatt
a3cf7f2868 [Bug 742332] - German tax report uses US tax quarters and not real quarters.
Due a copy and paste the German tax report was still using the
US quarters. This wrong as the latter are not real quarters as in
Germany. To fix this we simply set  tax-qtr-real-qtr-year to 0 to
force real quarters. Thus changes to taxtxf.scm can be easily ported
to taxtxf-de_DE.scm
2015-01-16 17:49:54 +01:00
Romas
1b227b1abc Added Lithuanian language business accounts 2015-01-16 15:51:07 +01:00
John Ralls
afaec37037 Bug 672760 - Postponed transaction applied invalid date
Part 2: GDate can represent a wider range that GDateTime, so make
sure that GDates outside of the range are clamped. The GDateTime
range is 1 - 9999 CE, more than wide enough for most purposes. GDate
can represent out to 65535CE, but the significant difference is that
a freshly-cleared GDate is 0CE, which GDateTime won't accept. That we
set to the Unix Epoch 0, 1970-Jan-1.

gnc_sx_incr_temporal_state can invalidate the gdate, so make sure that a
valid date is stored.

Adding the inst->temporal_state ptr to the sx->deferredList is wrong, it's
freed shortly after adding, causing later access to the freed ptr.
Add a clone instead.
2015-01-13 11:26:05 -08:00
John Ralls
7963421dd2 Bug 672760 - Postponed transaction applied invalid date
Part 2: GDate can represent a wider range that GDateTime, so make
sure that GDates outside of the range are clamped. The GDateTime
range is 1 - 9999 CE, more than wide enough for most purposes. GDate
can represent out to 65535CE, but the significant difference is that
a freshly-cleared GDate is 0CE, which GDateTime won't accept. That we
set to the Unix Epoch 0, 1970-Jan-1.
2015-01-11 13:57:32 -08:00
John Ralls
609ca72553 Bug 672760 - Postponed transaction applied invalid date, causing segfault
upon opening data file.
Part 1: Prevent the crash by skipping instances with invalid dates.
2015-01-11 10:27:16 -08:00
Mike Evans
403fdd30f0 Bug 721196 - Fixed for locales where decimal point is a comma. 2015-01-11 15:47:39 +00:00
Ralf Habacker
16a8ff5332 Bug 738749 - Broken account template en_GB/uk-vat.gnucash-xea.
Fix missing parent of first level accounts by comparing to the last correct kmymoney template import.
2015-01-03 16:40:10 +00:00
Geert Janssens
ad09bcfd4a Revert "Bug 740471 - Applying payment to invoice Segmentation fault"
This reverts commit a6d7184d83.
The patch had no effect on the bug at all and needlessly clutters the code.
2014-12-29 16:30:51 +01:00
John Ralls
d5ade4cbc0 Fix typo in Transaction.c.
Thanks to Christoph Holterman for catching this.
2014-12-26 13:28:22 -08:00
Geert Janssens
24dff85985 Revisit "Bug 741810 - Compilation fails because of creating .gnucash"
Use the temp dir as base dir for .gnucash
in all cases where the home dir fails. This
is more than just if the home directory doesn't exist.

Also don't attempt to create the home directory.
2014-12-24 12:50:21 +01:00
John Ralls
3ae0c780b7 Extract function to clarify intent. 2014-12-23 10:04:16 -08:00
John Ralls
e2a85c417f Bug 741228 - "Red line" threshold applies to Template scheduled transactions
Check for a GNC_SX_ID kvp on the split to exclude SX transactions from being blocked.
2014-12-23 10:04:16 -08:00
Mike Alexander
778f9450c4 Tell Guile (and others) to look in install/lib/gnucash for libraries.
Without this Guile can't find libgncmod-engine and GnuCash won't start.
I don't know how this worked before, perhaps because the correct path
was in src/bin/overrides/gnucash-env.in
2014-12-23 10:04:04 -08:00
Francisco
c52ada5121 Update Spanish translation 2014-12-23 18:36:11 +01:00
Geert Janssens
ca1d5a7382 Cherry-pick "Bug 741810 - Compilation fails because of creating .gnucash"
This was meant to go on maint first...
2014-12-23 17:28:27 +01:00
Mike Alexander
4a7913289c Tell Guile (and others) to look in install/lib/gnucash for ligraries.
Without this Guile can't find libgncmod-engine and GnuCash won't start,
at least sometimes.
2014-12-21 22:54:24 -05:00
John Ralls
2ceadfa3a0 Replace GNC_HOME/bin with gnc_path_get_bindir().
For consistency with the rest of the function.
2014-12-21 15:47:20 -08:00
John Ralls
02acf2b6f4 Adjust #ifdef __clang__ to exclude clang versions > 6
This works only with Apple clang; the regular clang is at version 3, but
hasn't been tested for what versions emit what sort of function signatures
to logs.
2014-12-21 12:55:07 -08:00
John Ralls
745ff9e519 Bug 739584 - gnucash-2.6.4 segfaults regularly on transfer .
Ensure that xferData is nulled after free and that client functions check
for the NULL.
2014-12-21 12:34:32 -08:00
John Ralls
a537ff052b Fix Guile compiled path in environment.in
Compiled files go to prefix/lib/guile/2.0/ccache, which isn't the same as
where the source files are stored (prefix/share/guile/2.0), so provide a
separate variable for it. Also don't throw away the user's value of
GUILE_LOAD_COMPILED_PATH in favor of GUILE_LOAD_PATH.
2014-12-21 11:13:27 -08:00
John Ralls
e55e7db9fd Remove note from the top of environment.in. It's obsolete. 2014-12-21 11:09:21 -08:00
Geert Janssens
2ef335d9c7 Bug 740471 - Applying payment to invoice Segmentation fault
Stop listening for gui update events while on the way out
(after the ok button was pressed).
2014-12-20 12:28:59 +01:00
Geert Janssens
f4481f7dcf Bug 740471 - Applying payment to invoice Segmentation fault
Clear selection before emptying list store to prevent
the code from running calculations on a changing list.
2014-12-20 12:28:59 +01:00
Geert Janssens
a6d7184d83 Bug 740471 - Applying payment to invoice Segmentation fault
Attempt to fix it by no longer nullifying lots during processing
2014-12-20 12:28:58 +01:00
Geert Janssens
efc8544ff9 Fix crash when running check & repair on an open AP/AR register
This was reported in comment 15 of https://bugzilla.gnome.org/show_bug.cgi?id=741418
2014-12-20 12:10:20 +01:00
John Ralls
23d0f79d5d Update News for re-tag of 2.6.5 2014-12-18 08:38:46 -08:00
Geert Janssens
e3bef5fdc3 Fix lot scrubbing for business lots
When adding splits to such a lot the code was supposed to
reduce splits in the same transaction and the same lot to
one single split. This is to avoid infinite fragmentation
over time.
That reduction wasn't working for business lots and should
be fixed with this commit.
This is also a potential fix for bug https://bugzilla.gnome.org/show_bug.cgi?id=741418
which could very well be a report of such infinite fragmentation.
2014-12-17 18:52:20 +01:00
Geert Janssens
9dc06a2f24 Improve comment for gncOwnerAutoApplyPaymentsWithLots
It was no longer accurate
2014-12-17 18:52:20 +01:00
John Ralls
321278f996 Release 2.6.5. 2014-12-15 15:20:36 -08:00
John Ralls
624d3bb68b Fix msgfmt errors in Indian-language .po files.
Note that the fixes may cause the translated strings to be wrong, but
they will at least avoid printf from having mismatched substitution
parameters.
2014-12-15 14:48:34 -08:00
John Ralls
fd15209d5e Update translation project po files. 2014-12-15 14:03:14 -08:00
John Ralls
c85c4529fd Still more Guile library path additions, this time in tests. 2014-12-14 16:38:48 -08:00
John Ralls
dd544de7ed Use standard macro INT64_C() to silence gcc-4.2 complaint
About constants being too large for an int.
2014-12-14 16:37:47 -08:00
John Ralls
08a4394955 Correct inadvertent change to a still-needed function. 2014-12-14 16:36:53 -08:00
John Ralls
620832f481 Remove Windows specializations from gnc-date.c
Now that we're building with a recent GLib version they're no longer needed.
2014-12-13 18:02:13 -08:00
John Ralls
dca16c8933 Still more Guile precompilation fixes.
This time for gcc-4.2, used for OSX 10.5-compatible releases.
2014-12-12 12:55:05 -08:00
Mike Alexander
a61f61406f Fix line endings in repository to match recent change to .gitattributes 2014-12-11 02:55:06 -05:00
VERDOÏA Laurent
5f2eab3ba8 French typo correction
ctte -> cette

Cherry picked from master because I first applied it there by mistake.
2014-12-08 13:33:00 -08:00
Frank H. Ellenberger
a6230fbb9d Add ChangeLog.2013 to dist_doc_DATA
Happy New Year! ;-)
2014-12-05 09:41:50 +01:00
Frank H. Ellenberger
2c49aec20a Update of de.po: 152 + 38 remaining 2014-12-05 08:20:57 +01:00
Geert Janssens
032a2ee169 Yet another guile 2 precompile fix of the German tax report
The previous one only fixed part of the problem
2014-12-03 12:04:49 +01:00
Geert Janssens
2ef755052e Fix guile 2 precompilation of German tax report 2014-12-03 09:52:08 +01:00
John Ralls
946432c953 Guile compilation: One missed CLEANFILES. 2014-12-02 09:47:20 -08:00
John Ralls
e1310bc9ff Fix the *.win32-bin.txt and downloaded.mt940 attributes. 2014-12-02 09:34:56 -08:00
John Ralls
5933f0dc1f Guile precompilation: One more missing library-dir. 2014-12-02 09:03:11 -08:00
John Ralls
afdf0de542 Reapply fix of Guile precompilation without unwanted change in gnc-numeric.c. 2014-12-02 08:25:34 -08:00
John Ralls
9bcc1ad6ce Revert "Fix Guile-2.0 precompilation."
This reverts commit a26801ab0e.
2014-12-02 08:18:06 -08:00