Exemplo n.º 1
0
 def __init__(self, window, store=None):
     # Create this here because CalendarView will update it.
     # It will only be shown on create_ui though
     self.date_label = gtk.Label('')
     self._calendar = CalendarView(self)
     ShellApp.__init__(self, window, store=store)
     threadit(self._setup_daemon)
Exemplo n.º 2
0
 def __init__(self, window, store=None):
     # Create this here because CalendarView will update it.
     # It will only be shown on create_ui though
     self.date_label = gtk.Label('')
     self._calendar = CalendarView(self)
     ShellApp.__init__(self, window, store=store)
     self._setup_daemon()
Exemplo n.º 3
0
 def __init__(self, window, store=None):
     # Account id -> TransactionPage
     self._pages = {}
     self.accounts = AccountTree()
     ShellApp.__init__(self, window, store=store)
     self._tills_account = api.sysparam(self.store).TILLS_ACCOUNT
     self._imbalance_account = api.sysparam(self.store).IMBALANCE_ACCOUNT
     self._banks_account = api.sysparam(self.store).BANKS_ACCOUNT
Exemplo n.º 4
0
 def __init__(self, window, store=None):
     # Account id -> TransactionPage
     self._pages = {}
     self.accounts = AccountTree()
     ShellApp.__init__(self, window, store=store)
     self._tills_account_id = api.sysparam.get_object_id('TILLS_ACCOUNT')
     self._imbalance_account_id = api.sysparam.get_object_id('IMBALANCE_ACCOUNT')
     self._banks_account_id = api.sysparam.get_object_id('BANKS_ACCOUNT')
Exemplo n.º 5
0
 def __init__(self, window, store=None):
     # Account id -> TransactionPage
     self._pages = {}
     self.accounts = AccountTree()
     ShellApp.__init__(self, window, store=store)
     self._tills_account_id = api.sysparam.get_object_id('TILLS_ACCOUNT')
     self._imbalance_account_id = api.sysparam.get_object_id('IMBALANCE_ACCOUNT')
     self._banks_account_id = api.sysparam.get_object_id('BANKS_ACCOUNT')
Exemplo n.º 6
0
Arquivo: pos.py Projeto: pkaislan/stoq
    def __init__(self, window, store=None):
        self._suggested_client = None
        self._current_store = None
        self._trade = None
        self._trade_infobar = None

        ShellApp.__init__(self, window, store=store)

        self._delivery = None
        self._coupon = None
        # Cant use self._coupon to verify if there is a sale, since
        # CONFIRM_SALES_ON_TILL doesnt create a coupon
        self._sale_started = False
        self._scale_settings = DeviceSettings.get_scale_settings(self.store)
Exemplo n.º 7
0
Arquivo: pos.py Projeto: tmaxter/stoq
    def __init__(self, window, store=None):
        self._suggested_client = None
        self._current_store = None
        self._trade = None
        self._trade_infobar = None

        ShellApp.__init__(self, window, store=store)

        self._delivery = None
        self.param = api.sysparam(self.store)
        self._coupon = None
        # Cant use self._coupon to verify if there is a sale, since
        # CONFIRM_SALES_ON_TILL doesnt create a coupon
        self._sale_started = False
        self._scale_settings = DeviceSettings.get_scale_settings(self.store)
Exemplo n.º 8
0
 def __init__(self, window, store=None):
     self.summary_label = None
     self._visible_date_col = None
     ShellApp.__init__(self, window, store=store)
Exemplo n.º 9
0
 def __init__(self, window, store=None):
     self._calendar = CalendarView(self)
     ShellApp.__init__(self, window, store=store)
     self._setup_daemon()
Exemplo n.º 10
0
 def __init__(self, window, store=None):
     self.summary_label = None
     self._visible_date_col = None
     ShellApp.__init__(self, window, store=store)
Exemplo n.º 11
0
 def __init__(self, window, store=None):
     self.summary_label = None
     self._visible_date_col = None
     self._extra_summary = None
     ShellApp.__init__(self, window, store=store)
     self.search.connect('search-completed', self._on_search_completed)
Exemplo n.º 12
0
 def __init__(self, window, store=None):
     self._calendar = CalendarView(self)
     ShellApp.__init__(self, window, store=store)
     self._setup_daemon()