示例#1
0
文件: financial.py 项目: romaia/stoq
 def __init__(self, app, store=None):
     self._pages = {}
     self.accounts = AccountTree()
     AppWindow.__init__(self, app, 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
示例#2
0
文件: pos.py 项目: romaia/stoq
    def __init__(self, app, store=None):
        self._suggested_client = None
        self._current_store = None
        self._trade = None
        self._trade_infobar = None
        self._trade_total_paid = 0

        AppWindow.__init__(self, app, 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)
示例#3
0
文件: calendar.py 项目: romaia/stoq
 def __init__(self, app, store=None):
     self._calendar = CalendarView(self)
     AppWindow.__init__(self, app, store=store)
     self._setup_daemon()
示例#4
0
文件: launcher.py 项目: romaia/stoq
 def __init__(self, options, shell, store=None):
     self.shell = shell
     app = LauncherApp(self, options)
     AppWindow.__init__(self, app, store=store)