Commit Graph

16576 Commits

Author SHA1 Message Date
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
John Ralls
ca75bd9a17 Change comment to reflect kvp->properties. 2015-01-02 13:12:39 -08:00
John Ralls
94fbf97f90 Clean out a couple of unused variables left over from direct KVP. 2015-01-02 13:12:08 -08:00
John Ralls
09e8e245c4 Fix a couple of string leaks. 2014-12-30 16:50:18 -08: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
9b1d8d150f Merge branch 'maint' 2014-12-26 13:32:57 -08: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
cac896005c Merge branch 'maint'
With a change to xaccTransIsSXTemplate to work with the private kvp
change in master.
2014-12-23 18:39:56 -08:00
John Ralls
7e288d0446 Fix failure to load SX formulas, probably among other things.
Removing KVP_TYPE_BINARY from the enum shifted the values of KVP_TYPE_GLIST
and KVP_TYPE_FRAME, which made previously-stored values inaccessible.

Insert a placeholder to restore them to their original values.
2014-12-23 18:37:27 -08: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
c569822897 Periodic merge of branch 'maint'
* Bug 740471 -  Applying payment to invoice Segmentation fault
* Fix Guile compiled path in environment.in
* Bug 739584 - gnucash-2.6.4 segfaults regularly on transfer
* Adjust #ifdef __clang__ to exclude clang versions > 6
* Replace GNC_HOME/bin with gnc_path_get_bindir().
* Tell Guile (and others) to look in install/lib/gnucash for ligraries.

Conflicts:
	src/bin/environment.in
	src/engine/test/utest-Account.c
	src/engine/test/utest-Split.cpp
	src/engine/test/utest-Transaction.c
	src/libqof/qof/test/test-gnc-date.c
	src/libqof/qof/test/test-qofbook.c
2014-12-23 17:48:50 +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
Geert Janssens
69355c0548 Bug 741810 - Compilation fails because of creating .gnucash 2014-12-23 17:19:00 +01:00
Geert Janssens
a5d77e4430 Move code to open report options dialog from guile to C
This code was switching a lot between the guile and C context.
This move at least reduces some of them. The switches can only
be eliminated completely when the options code itself gets
rewritten in C(++).
2014-12-23 12:03:38 +01:00
Geert Janssens
0820090e75 New business report for printing receipts
This report was originally developped by Manfred Usselman
Some small tweaks were needed to make it work on current master.

It is designed for and tested with a StarMedia TSP100
receipt printer using a 72mm  wide print roll.
However using a different css file the same report
can be adapted to any printer that can be directly
used via your OS' print system
2014-12-22 15:50:36 +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
lmat
7d5f0a66a0 Kvp-Frame test cases
Adding google tests for many of Kvp Frame's member functions. One
function in KvpFrameImpl, for_each_slot, should probably be something
like

template <typename T> void
for_each_slot (T & t, void * data) const
{
    std::for_each(......
    [&t, data] (... a)
    {
        t(a, data);
    }
}

This way, we could create a functor mock object for testing purposes,
but of course, pointers would still behave correctly.
2014-12-20 14:27:49 -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
2f0a193b68 Periodic merge of branch 'maint'
* Update translation project po files.
    * Fix msgfmt errors in Indian-language .po files.
    * Improve comment for gncOwnerAutoApplyPaymentsWithLots
    * Fix lot scrubbing for business lots
    * Fix crash when running check & repair on an open AP/AR register
    * Release 2.6.5 and 2.6.5a
2014-12-20 12:13:38 +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
e2e15038e1 Merge branch 'maint' 2014-12-14 20:02:29 -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
735ee38b65 Revert "Some type mismatch fixes to make it build with clang in MacOSX Mavericks."
This reverts commit 78fea12afc.
2014-12-11 17:24:48 -05:00
Mike Alexander
f4168e108b Update XCode project for recent C++ related changes 2014-12-11 02:59:37 -05:00
Mike Alexander
09145fe11e 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.
I don't know how this worked before, perhaps because the correct path
was in src/bin/overrides/gnucash-env.in
2014-12-11 02:59:31 -05:00
Mike Alexander
78fea12afc Some type mismatch fixes to make it build with clang in MacOSX Mavericks.
These may not be the best fixes, but they make things build again with
XCode 6.1.1 in MacOSX 10.9.5.
2014-12-11 02:59:21 -05:00
Mike Alexander
a61f61406f Fix line endings in repository to match recent change to .gitattributes 2014-12-11 02:55:06 -05:00
Mike Alexander
bd8ce2f7cf Fix line endings in repository to match recent change to .gitattributes. 2014-12-11 02:50:59 -05:00
John Ralls
6a546f727b Ubuntu 14.04's C++ already defines these, so guard them. 2014-12-08 13:52:43 -08:00