Beispiel #1
0
    def finish(self):
        missing = get_missing_items(self.model, self.store)
        if missing:
            run_dialog(MissingItemsDialog, self, self.model, missing)
            return False

        self.model.sync_stock()
        self.retval = self.model
        self.close()
        NewLoanWizardFinishEvent.emit(self.model)
        self._print_receipt(self.model)
Beispiel #2
0
    def finish(self):
        missing = get_missing_items(self.model, self.store)
        if missing:
            run_dialog(MissingItemsDialog, self, self.model, missing)
            return False

        self.model.sync_stock()
        self.retval = self.model
        self.close()
        NewLoanWizardFinishEvent.emit(self.model)
        self._print_receipt(self.model)
Beispiel #3
0
    def finish(self):
        missing = get_missing_items(self.model, self.store)
        if missing:
            run_dialog(MissingItemsDialog, self, self.model, missing)
            return False

        self.model.sync_stock()
        self.retval = self.model
        self.close()
        NewLoanWizardFinishEvent.emit(self.model)
        # Confirm before printing to avoid losing data if something breaks
        self.store.confirm(self.retval)
        self._print_receipt(self.model)
Beispiel #4
0
    def finish(self):
        missing = get_missing_items(self.model, self.store)
        if missing:
            run_dialog(MissingItemsDialog, self, self.model, missing)
            return False

        self.model.sync_stock()
        self.retval = self.model
        self.close()
        # Confirm before printing to avoid losing data if something breaks
        self.store.confirm(self.retval)
        NewLoanWizardFinishEvent.emit(self.model)
        self._print_receipt(self.model)
Beispiel #5
0
    def finish(self):
        missing = get_missing_items(self.model, self.store)
        if missing:
            run_dialog(MissingItemsDialog, self, self.model, missing)
            return False

        invoice_ok = InvoiceSetupEvent.emit()
        if invoice_ok is False:
            # If there is any problem with the invoice, the event will display an error
            # message and the dialog is kept open so the user can fix whatever is wrong.
            return

        self.model.confirm()
        self.model.sync_stock()
        self.retval = self.model
        self.close()
        NewLoanWizardFinishEvent.emit(self.model)
        # Confirm before printing to avoid losing data if something breaks
        self.store.confirm(self.retval)
        self._print_receipt(self.model)
Beispiel #6
0
    def finish(self):
        missing = get_missing_items(self.model, self.store)
        if missing:
            run_dialog(MissingItemsDialog, self, self.model, missing)
            return False

        invoice_ok = InvoiceSetupEvent.emit()
        if invoice_ok is False:
            # If there is any problem with the invoice, the event will display an error
            # message and the dialog is kept open so the user can fix whatever is wrong.
            return

        self.model.confirm()
        self.model.sync_stock()
        self.retval = self.model
        self.close()
        NewLoanWizardFinishEvent.emit(self.model)
        # Confirm before printing to avoid losing data if something breaks
        self.store.confirm(self.retval)
        self._print_receipt(self.model)
Beispiel #7
0
 def finish(self):
     self.model.sync_stock()
     self.retval = self.model
     self.close()
     NewLoanWizardFinishEvent.emit(self.model)
     self._print_receipt(self.model)