Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ln 971: mainframeeventhandler
- if (( '4' in self.MainFrame.scanNumberTextValue[0]) or ( 'J' in self.MainFrame.scanNumberTextValue[0]) or ( 'V' in self.MainFrame.scanNumberTextValue[0])) is False:
- self.MainFrame.statusbar.SetStatusText('I dont understand:' + self.MainFrame.currentItemInfo['jNumber'] + ' Maybe it should start with a J or a 4?')
- tmp_dialog = wx.MessageDialog(self.MainFrame, 'ERROR: Please enter a Jnumber or a 4number.\n\nEntered:' + str(self.MainFrame.jNumber)+'\n\nexamples. J123456 or 4NK420000001', 'UserError', wx.OK)
- results = tmp_dialog.ShowModal()
- tmp_dialog.Destroy()
- return
- if ('J' in self.MainFrame.scanNumberTextValue[0]) or ('V' in self.MainFrame.scanNumberTextValue[0]):
- self.MainFrame.statusbar.SetStatusText('I see a Jnumber')
- if self.MainFrame.fingerRadio.GetValue() is True:
- tmp_dialog = wx.MessageDialog(self.MainFrame, 'ERROR: Please select ShopHQ Radio button for: ' + str(self.MainFrame.scanNumberTextValue) + '\n\nCurrent selection: FingerHut', 'UserError', wx.OK)
- results = tmp_dialog.ShowModal()
- tmp_dialog.Destroy()
- return
- elif '4' in self.MainFrame.scanNumberTextValue[0]:
- self.MainFrame.statusbar.SetStatusText(' I see a 4number')
- if self.MainFrame.shopHqRadio.GetValue() is True:
- tmp_dialog = wx.MessageDialog(self.MainFrame, 'ERROR: Please select Fingerhut Radio button for:' + str(self.MainFrame.scanNumberTextValue) + '\n\nCurrent selection: ShopHQ', 'UserError', wx.OK)
- results = tmp_dialog.ShowModal()
- tmp_dialog.Destroy()
- return
- ##############################################
- ln 177 sky_manifest
- if ('J' in scanNumber[0]) or ('V' in scanNumber[0]):
- if '1' in retailer_code:
- return [True, retailer_code]
- if '4' in scanNumber[0]:
- if '0' in retailer_code:
- return [True, retailer_code]
- return [False, retailer_code]
Advertisement
Add Comment
Please, Sign In to add comment