Esempio n. 1
0
 def resume(self, event=None):
     if self.check():
         if self.checkRepeatedNames(self.controller.getSuppliers()):
             if MB.confirmation():
                 self.controller.addCustomer(self.nameEntry.get().strip(),
                                             self.numberEntry.get().strip())
                 self.clear()
Esempio n. 2
0
 def resume(self, event=None):
     if self.check():
         if self.checkRepeatedNames(self.choosenSub.sons):
             if MB.confirmation():
                 self.controller.addKind(self.entry.get().strip(),
                                         self.choosenSub)
                 self.clear()
 def resume(self, event=None):
     if self.check():
         if MB.confirmation():
             self.controller.addOldSellAction(
                 self.personFrame.choosenPerson,
                 self.groupsFrame.choosenKind, self.getArea(),
                 self.getPaid(), self.getPrice(),
                 self.timeFrame.getTimeValue())
             self.clear()
Esempio n. 4
0
 def resume(self, event=None):
     if self.check():
         if MB.confirmation():
             self.controller.reAdvancePayment(self.entry.get().strip(),
                                              self.choosenAdvancePayment)
             self.clear()
 def resume(self, event=None):
     if self.check():
         if self.controller.checkMoney(self.moneyEntry.get().strip()):
             if MB.confirmation():
                 self.controller.addAdvancePayment(self.nameEntry.get().strip(), self.moneyEntry.get().strip())
                 self.clear()
 def resume(self, event=None):
     if self.check():
         if MB.confirmation():
             self.choosenKind.updateArea(
                 -1 * float(self.areaEntry.get().strip()))
             self.clear()
Esempio n. 7
0
 def resume(self, event=None):
     if self.check():
         if self.checkRepeatedNames(self.controller.getMenuGroups()):
             if MB.confirmation():
                 self.controller.addMainGroup(self.entry.get().strip())
                 self.clear()