Commit Graph

14626 Commits

Author SHA1 Message Date
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
John Ralls
ebee14d833 Add test files to .gitignore
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22134 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:38 +00:00
John Ralls
4e4f857376 [Translation] Update POTFILES.in with some new filenames
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22133 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:29 +00:00
John Ralls
6d32b6f693 [Testing] Separate unit test functions from make check functions.
I'd originally put the functions supporting log detection, qof event handling, and mock-counting in test-stuff along with the functions that support the older "make check" integration tests. There are now more unit test support functions than there are of the older functions, so it's time for them to move out on their own.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22132 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-03 21:35:19 +00:00
John Ralls
dd5e532cdf Testing: Some very minor formatting changes in utest-Split.c comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22130 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-01 22:07:10 +00:00
Christian Stimming
3af935d7d2 Fix minor compiler errors of r22127.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22129 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-01 19:51:06 +00:00
John Ralls
ec7b02ab5b Fix error discovered in testing: xaccSplitCompareAccountCodes actually compared the account names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22128 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-31 22:12:47 +00:00
John Ralls
0fe6e907de Testing: Unit tests for Split.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22127 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-31 22:12:36 +00:00
Mike Evans
54faec5520 Bug 670008 - taxinvoice lacks flexibility necessary to produce legally valid Australian Tax Invoice
Patches supplied by Dmitry Smirnov, many thanks.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22126 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-31 12:07:07 +00:00
Christian Stimming
78cbc3d097 Take read-only date setting of QofBook into account (no pun intended) when entering transaction into accounts.
The code will silently revert the entered date to the threshold and just
not allow any older date to be entered. I wonder whether we can display
some useful error message additionally, but unfortunately I didn't find
the place in the code where one single error message would have resulted,
only places where multiply (annoying) error messages would have resulted.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22124 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-26 20:15:04 +00:00
Christian Stimming
5aa445ef95 Take read-only setting of QofBook into account for the transaction duplication.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22123 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 20:18:42 +00:00
Christian Stimming
b208b06b00 Fix segfault after behaviour change of qof_book_get_autoreadonly_gdate() in r22118.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22122 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 19:13:16 +00:00
John Ralls
663c9f9d5b Testing: fix search_local() for detecting callbacks and references.mv
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22121 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 16:52:31 +00:00
John Ralls
2066c1d991 Fix omitted "setup" argument to GNC_TEST_ADD insertion.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22120 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 16:52:22 +00:00
Mike Evans
2d5eaa61c2 Bug 670008 - taxinvoice lacks flexibility necessary to produce legally valid Australian Tax Invoice
Fix typo.  Fix column misalignment when no taxes are present in the invoice.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22119 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-25 14:51:36 +00:00
Christian Stimming
176fba9b9f Rename internal function names for read-only option of r22107 also to "auto-read-only".
(Initially I thought there were a relation to the "freeze" state of a
transaction, but this turned out to be not the case.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22118 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:34:59 +00:00
Christian Stimming
ed581152b9 Take read-only setting of QofBook into account for the transaction deletion as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22117 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:34:44 +00:00
Christian Stimming
af3cec54df Make read-only lines in account register window (r22109) somewhat more visible by changing the background color slightly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22116 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:34:32 +00:00
Christian Stimming
84379bac27 Fix threshold treatment in r22108, r22109 to make visualization and behaviour match.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22115 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:34:21 +00:00
John Ralls
0ecb61dd13 Testing: Provide a test_destroy function/macro combination.
Works on GObjects. Asserts if the object isn't a GObject (which may be the case if it has already been finalized) or if the object's finalize method isn't called (indicating a leak).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22114 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:20:19 +00:00
John Ralls
777074f482 Testing: Rewrite test_signal_assert_hits as a function/macro combination
Now the assert reports the location in the test program where it fails instead of inside test-stuff.c.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22113 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:20:08 +00:00
John Ralls
b5c62a1385 Testing: Add a basic print-to-stdout log handler as a test debugging aid.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22112 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-24 22:19:58 +00:00
Christian Stimming
e6c0795652 Fix r22105 that was missing some dependency of the "optional" directory on other parts.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22111 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-23 20:52:13 +00:00
Mike Evans
dc6e29618c Some systems fail to compile with:
dialog-customer-import.c:399:36: error: 'shipaddr' may be used uninitialized in this function [-Werror=uninitialized]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22110 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-22 09:11:47 +00:00
Christian Stimming
8cc8ffe374 Add auto-read-only feature for old transactions after N days, denoted by the new red line in the register.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22109 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-21 22:18:53 +00:00