from mods.id_factory import IdFactory

from gtkmods import *
from gtkmods.dialogs import *

from gnucash import Transaction, Split, GncNumeric, GncLot
from gnucash.gnucash_business import GNC_AMT_TYPE_PERCENT, Invoice, Entry

from gcmods import *
from gcmods.accounting import Accounting
from gcmods.transactions import Unreconciled
from gcmods.contacts import Contacts, ContactsSync
from gcmods.accounts import AccountReport
from gcmods.numeric import *

MembersFieldCols = enum('FIELD')

def new():
    return MembersTab()

class MembersTab:       

    def init(self,app):
        self.app = app

        builder = gtk.Builder()
        builder.add_from_file(os.path.join(__dir__,'members.glade'))
        builder.connect_signals(self)

        self.tab = builder.get_object('main_tab')
from mods.id_factory import IdFactory

from gtkmods import *
from gtkmods.dialogs import *

from gnucash import Transaction, Split, GncNumeric, GncLot
from gnucash.gnucash_business import GNC_AMT_TYPE_PERCENT, Invoice, Entry

from gcmods import *
from gcmods.accounting import Accounting
from gcmods.transactions import Unreconciled
from gcmods.contacts import Contacts, ContactsSync
from gcmods.accounts import AccountReport
from gcmods.numeric import *

InvoicesLinesCols = enum('TAX','DESCRIPTION','AMOUNT','PRICE',
        'SUBTOTAL','TAXNAME','TAXINCL','ACCOUNTNAME','ACCOUNT')
InvoicesCustomersCols = enum('CONTACT','INCLUDE','NAME','INVOICEID')
InvoicesTaxesCols = enum('TAX','DESCRIPTION')
InvoicesAccountsCols = enum('ACCOUNT','NAME')

def new():
    return InvoicesTab()

class InvoicesTab:       

    def init(self,app):
        self.app = app

        builder = gtk.Builder()
        builder.add_from_file(os.path.join(__dir__,'invoices.glade'))
        builder.connect_signals(self)
__dir__ = os.path.dirname(os.path.abspath(__file__))

from datetime import date, datetime

from gcsociety import *

from mods import *
from mods.enum import enum

from gtkmods import *
from gtkmods.dialogs import *

from gcmods import *
from gcmods.numeric import *

BankingModesCols = enum('MODE')
BankingContactsCols = enum('CONTACT','NAME')
BankingTransactionsCols = enum('TRANSACTION','CONTACT','INCLUDE',
        'INVOICEID','DESCRIPTION','AMOUNT','CONTACTNAME',
        'ACCOUNTHOLDER','ACCOUNTNUMBER','ALLOWINCASSO')

def new():
    return BankingTab()

class BankingTab:       

    banking_contacts = None
    transactions = None

    def init(self,app):
        self.app = app