Commit Graph

8 Commits

Author SHA1 Message Date
Geert Janssens
4b0b7c51f4 Bug #675201 - slight bugfix to prior enchancement post for example
scripts
Patch by Jamie Campbell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22231 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-22 15:12:25 +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
742db08612 Clarify the use of pathnames in the python bindings example scripts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20187 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 20:57:54 +00:00
Christian Stimming
e0e8300c54 Bug #637346: A second step towards doxygen python-bindings docs
Patch by Christoph Holtermann

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19981 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-27 15:36:15 +00:00
Christian Stimming
7c76425cbf Bug #637346: Adding python-bindings to doxygen documentation
Patch by Christoph Holtermann.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19956 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-17 20:36:40 +00:00
John Ralls
1b26fa2bcb Fix python samples to work with reordered Session.__init__() args
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19819 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-11-16 22:07:58 +00:00
Christian Stimming
5fbfa23dbb Bug #625193: Added 'search by ID' in python binding for invoices, customers and bills.
Patch by Mike E and Mark Jenkins:

When creating or appending to invoices, customers and bills, searching by ID is
likely more useful than by GUID.  I've added this functionality to the Python
bindings.

Search by ID using the python code:
tmp = gnucash.gnucash_core_c.search_invoice_on_id(ID,book.instance)
if tmp:
  invoice =  gnucash.gnucash_business.Invoice(instance=tmp)

Use the invoice object as in sample_scripts/simple_invoice_insert.py

I support this patch, but I've made a few improvments of my own.

I switched up the arguments in search_customer_on_id, search_invoice_on_id,
search_bill_on_id to have Book first and ID second. The reason for this was to
make these functions more consistent with the other functions where a search is
done through a book on a particular attribute.

Also added some specific python bindings support to allow this to be used as
methods of Book: Book.CustomerLookupByID, Book.InvoiceLookupByID,
Book.BillLoookupByID.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19431 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-08-14 20:48:18 +00:00
Geert Janssens
9e6d8fb1e9 Bug #622523 - Python bindings are crash prone when linked to guile
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19294 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-06-25 11:06:29 +00:00