Commit Graph

14650 Commits

Author SHA1 Message Date
John Ralls
7423741ea3 Add EXTRA_CFLAGS for compiling on Win7
Configure gets confused by some gcc builtins on Win7: Disable them so that configure finds the right settings.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22197 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 22:10:00 +00:00
Phil Longstaff
0809170098 Fix some small problems (including a memory leak) found by running qof unit test with valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22193 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 18:35:59 +00:00
Phil Longstaff
140799c028 Add test-qof to svn:ignore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22192 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 18:35:04 +00:00
Phil Longstaff
d58490b8e4 Update some svn:ignore properties
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22191 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 17:38:49 +00:00
Phil Longstaff
9267e80726 Since 2.32, GCache is deprecated and should be replaced by GHashTable.
In the new string cache (split out from qofutil.c/.h), the GHashTable has the
string as key and a small heap-allocated guint refcount as data.  The value is
allocated rather than being used by value because there is no way to just
modify the data field of an existing key.  The key would need to be changed at
the same time, which would free the old key value and invalidate all gchar
pointers of objects which have refs to the key.

Unit tests added as well.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22190 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 17:28:30 +00:00
John Ralls
43e1a7df34 [Bug #674862] Gnucash crashes after creating a new SX using the Mortgage Wizard and SQL Backend
Special-cases dbi_result_get_datetime returning -1 to work around a bug in MinGW's implementation of gmtime().

[BP]


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22188 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:48:41 +00:00
John Ralls
aa905346cb Revert gnc-backend-dbi.c from 22186, should be a separate commit.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22187 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:43:52 +00:00
John Ralls
5b602c3a93 Fix double definition of DEBUG_MEMORY
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22186 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:32:52 +00:00
Phil Longstaff
aeef9d36d0 Replace deprecated g_basename() by recommend g_path_get_basename()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22185 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:24:14 +00:00
Phil Longstaff
18d6031f2a Remove invalid routine arg check
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22184 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:23:07 +00:00
Phil Longstaff
0a3c14ed4b Use new GncTaxTable g-object parameters
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22183 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:22:30 +00:00
Phil Longstaff
7ea5a2bf98 Convert DBI test to utest
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22182 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:21:09 +00:00
Phil Longstaff
d1fcb82ad0 Fix some g-object parameter types
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22181 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:18:45 +00:00
Phil Longstaff
083861e225 Add some more g-object parameters for GncTaxTable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22180 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:18:08 +00:00
Phil Longstaff
5fba6638e3 Replace deprecated g_mapped_file_free() with recommended g_mapped_file_unref()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22179 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-20 21:12:50 +00:00
Geert Janssens
e1956c80c7 Allow to change document type when duplicating an invoice.
This allows to quickly create a canceling credit note for an invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22176 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 21:37:27 +00:00
Geert Janssens
f098ae2e39 Bug #674273 - fixes and enhancements to example simple_business_create.py
Patch by Jamie Campbell, with minimal correction to match the new ApplyPayment functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22175 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:39:25 +00:00
Geert Janssens
e7a2a8fbcb Add gnc{Owner,Invoice}ApplyPayment functions.
Most payment use cases don't need to know the internal lot juggling mechanism behind it.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22174 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:39:09 +00:00
Geert Janssens
dbcd08db01 Add getter/setter for fake Employee name propery.
This is done to get a more consistent owner interface and simplifies the python bindings

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22173 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:38:57 +00:00
Geert Janssens
572a4fb52c Remove some unused function declarations
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22172 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-08 11:38:39 +00:00
John Ralls
da6980afc2 [Bug 674862] Gnucash crashes after creating a new SX using the Mortgage
Wizard and SQL Backend

This addresses the crash reported on Ubuntu with Postgres by Krzysiek.
The stack trace he posted showed the crash was the result of
dereferencing a NULL GDate*, and this change protects against that. It
still doesn't address the more basic problem of why on Win32 and with
mysql and pgsql (but not SQLite3) the mortgage wizard is writing corrupt
dates.

[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22171 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-07 22:54:56 +00:00
Geert Janssens
26fd475dd2 Rearrange install-fq-mods.cmd to avoid duplicate code and make it easier to understand
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22170 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 21:19:34 +00:00
Geert Janssens
d2357b256a Bug #670355 - Automated install of Perl with Finance-Quote
With these changes install-fq-mods.cmd will automatically download and install
Strawberry perl if now perl version if found on the system.
Patches by Dave Roberts

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22169 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 21:19:24 +00:00
Geert Janssens
7dfb8145dd Remove empty lines from AC_CONFIG_SOURCES as this will cause the Windows build to fail
when using a git repo as source

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22168 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 18:03:41 +00:00
Geert Janssens
fa7bd291c7 Further tweaks to enable git on the windows build
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22167 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 16:18:29 +00:00
Geert Janssens
4faec91f26 Bug #674276 - fixes and enhancements to example test_imbalance_transaction.py
a) added usage information
b) put most everything into exception handling to prevent lock linger when a
problem occurs
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22166 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 13:37:17 +00:00
Geert Janssens
f18688e2da Bug #673877 - fixes and enhancements to example script account_analysis.py
a) added usage information when not enough arguments added
b) put the majority of code into an exception handling block so that if
something goes wrong the session is closed.  Prior to this change a problem
would result in a lingering lock.
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22165 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 13:37:07 +00:00
Geert Janssens
b5a56207ba Bug #673855 - fixes and enhancements to example script new_book_with_opening_balances.py
1) Fixed typo for "new book" session creation in_new=True -> is_new=True
2) Added usage information echo when script is invoked without correct number
of parameters
3) Put most of the operations into an exception handling block.  When an
exception occurs, sessions which were opened are closed.  Prior to this, any
error would result in a lingering lock.
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22164 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-28 13:36:55 +00:00
Christian Stimming
08465a594a Bug #674494: Fix version and method of downloading isocodes in win32 packaging
Patch by Mark Jenkins

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22157 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-22 20:51:16 +00:00
Christian Stimming
9d8fbe538e Bug #674495: Fix libbonoboui build for win32 packaging insists on availability of glade
Patch alters packaging/win32/libbonoboui-2.24.2.patch to not look for glade and not
build libbonoboui-2.24.2/glade

Patch by Mark Jenkins.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22156 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-22 20:49:01 +00:00
John Ralls
9c0e71c2e2 [Bug 674283] With mysql crash after deleting accounts included into a
budget

Never assume a pointer is NULL unless you set it to NULL!

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22154 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-21 17:38:40 +00:00
John Ralls
3b058e0dcb [Testing] Fix potential leaks in Split teardown.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22153 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-19 20:11:53 +00:00
John Ralls
ae15ff46df Fix some scheme test program linkage failures on Wheezy.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22152 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-19 20:00:33 +00:00
John Ralls
3929c80288 Remove test obsoleted by r22001
Which rearranged the ApplyPayments code so that it's done from the
GncInvoice object instead of explicitly by the owner (or in this case,
GncCustomer).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22151 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-19 20:00:18 +00:00
Christian Stimming
c725033cea Finally clean up linker flags so that windows build builds again as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22150 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-17 19:55:33 +00:00
John Ralls
88c384b7c3 Testing: Make libutest-Split.la "noinst-LTLIBRARY" instead of
test-engine-LTLIBRARY

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22149 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-17 00:45:58 +00:00
Christian Stimming
a77ee1bc6f Increase trunk requirements to gtk-2.24, glib-2.28.
This means SVN trunk does no longer support a stock RHEL6 distribution.
See http://lists.gnucash.org/pipermail/gnucash-devel/2012-April/033877.html
and http://lists.gnucash.org/pipermail/gnucash-devel/2011-November/032931.html
for the discussion.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22148 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-15 18:57:05 +00:00
Christian Stimming
1052ebe778 Add library flags for newly introduced libutest-Split because Windows needs those.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22147 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-15 18:47:26 +00:00
Christian Stimming
374747c4f6 Check whether header <pow.h> really exists before including it.
The windows build has been failing for several days due to this.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22146 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-13 20:43:23 +00:00
Christian Stimming
9b5f2866b1 In online banking transfer, on the "To-Account" selection side, make the "Show Income/Expense" button active by default.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22145 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-13 20:04:08 +00:00
Christian Stimming
9150e2d7b9 In "Process Payment" and "New Order", let the customer field have keyboard focus.
In "New Job", focus the job name.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22144 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-10 20:24:51 +00:00
Christian Stimming
d9e19467eb In the "New Customer" window, set keyboard focus to customer field.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22143 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-09 19:56:24 +00:00
Mike Evans
0eb2c2b30e Remove hack for fixed bug #573645 which was fixed in r18056.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22142 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-09 15:29:15 +00:00
Mike Evans
be43cb7cda Fix the annoying case where an invoice item has mistakenly(?) had a tax table applied,
unchecking the taxable flag for that item didn't remove the tax related columns
from the invoice where there are no other taxable items.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22141 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-09 15:23:40 +00:00
Mike Evans
3b3ad7c05a Display job name and job number when invoice is "in progress...".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22140 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-09 11:41:02 +00:00
Mike Evans
3195649664 Fix reversed "Job Name", "Job Number" in options dialog, Headings 2 tab.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22139 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-09 11:33:44 +00:00
Mike Evans
731f17da50 Expose InvoiceNextID to python bindings.
Accessed as book.InvoiceNextID(customer)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22138 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-04 08:35:27 +00:00
John Ralls
96b9031d6b [Testing] Fix up utest-Account to use checked error messages in all tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22137 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:36:07 +00:00
John Ralls
57b82171dc [Testing] Fix a missed execution path detected with error message counting.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22136 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:58 +00:00
John Ralls
12387c1c02 [Testing] Add hits field to TestErrorStruct
Allows asserting on the number of times error messages are encountered.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22135 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:47 +00:00