mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Python bindings. Add function gncVendorNextID, complementary to
gncCustomerNextID.
This commit is contained in:
parent
afe7692293
commit
de1de4f0a2
@ -68,6 +68,7 @@
|
|||||||
#include "gncCustomerP.h"
|
#include "gncCustomerP.h"
|
||||||
#include "gncEmployee.h"
|
#include "gncEmployee.h"
|
||||||
#include "gncVendor.h"
|
#include "gncVendor.h"
|
||||||
|
#include "gncVendorP.h"
|
||||||
#include "gncAddress.h"
|
#include "gncAddress.h"
|
||||||
#include "gncBillTerm.h"
|
#include "gncBillTerm.h"
|
||||||
#include "gncOwner.h"
|
#include "gncOwner.h"
|
||||||
@ -195,6 +196,7 @@
|
|||||||
%include <gncCustomerP.h>
|
%include <gncCustomerP.h>
|
||||||
%include <gncEmployee.h>
|
%include <gncEmployee.h>
|
||||||
%include <gncVendor.h>
|
%include <gncVendor.h>
|
||||||
|
%include <gncVendorP.h>
|
||||||
%include <gncAddress.h>
|
%include <gncAddress.h>
|
||||||
%include <gncBillTerm.h>
|
%include <gncBillTerm.h>
|
||||||
%include <gncInvoice.h>
|
%include <gncInvoice.h>
|
||||||
|
@ -40,8 +40,8 @@ from gnucash_core_c import gncInvoiceLookup, gncInvoiceGetInvoiceFromTxn, \
|
|||||||
gncInvoiceGetInvoiceFromLot, gncEntryLookup, gncInvoiceLookup, \
|
gncInvoiceGetInvoiceFromLot, gncEntryLookup, gncInvoiceLookup, \
|
||||||
gncCustomerLookup, gncVendorLookup, gncJobLookup, gncEmployeeLookup, \
|
gncCustomerLookup, gncVendorLookup, gncJobLookup, gncEmployeeLookup, \
|
||||||
gncTaxTableLookup, gncTaxTableLookupByName, gnc_search_invoice_on_id, \
|
gncTaxTableLookup, gncTaxTableLookupByName, gnc_search_invoice_on_id, \
|
||||||
gnc_search_customer_on_id, gnc_search_bill_on_id , gnc_search_vendor_on_id, gncInvoiceNextID, gncCustomerNextID, \
|
gnc_search_customer_on_id, gnc_search_bill_on_id , gnc_search_vendor_on_id, \
|
||||||
gncTaxTableGetTables
|
gncInvoiceNextID, gncCustomerNextID, gncTaxTableGetTables, gncVendorNextID
|
||||||
|
|
||||||
class GnuCashCoreClass(ClassFromFunctions):
|
class GnuCashCoreClass(ClassFromFunctions):
|
||||||
_module = gnucash_core_c
|
_module = gnucash_core_c
|
||||||
@ -243,6 +243,11 @@ class Book(GnuCashCoreClass):
|
|||||||
''' Return the next Customer ID. '''
|
''' Return the next Customer ID. '''
|
||||||
from gnucash.gnucash_core_c import gncCustomerNextID
|
from gnucash.gnucash_core_c import gncCustomerNextID
|
||||||
return gncCustomerNextID(self.get_instance())
|
return gncCustomerNextID(self.get_instance())
|
||||||
|
|
||||||
|
def VendorNextID(self):
|
||||||
|
''' Return the next Vendor ID. '''
|
||||||
|
from gnucash.gnucash_core_c import gncVendorNextID
|
||||||
|
return gncVendorNextID(self.get_instance())
|
||||||
|
|
||||||
class GncNumeric(GnuCashCoreClass):
|
class GncNumeric(GnuCashCoreClass):
|
||||||
"""Object used by GnuCash to store all numbers. Always consists of a
|
"""Object used by GnuCash to store all numbers. Always consists of a
|
||||||
|
Loading…
Reference in New Issue
Block a user