def price_item(price): points = VERIFICATION['pricing']['f8-pricing'] if True or f2.verify(points, attempts=10): keyboard.home() keyboard.enter() keyboard.paste_write(pricing.make_price_str(price)) keyboard.f11() keyboard.f12() else: return False
def main_menu_purchase_default_input_purchases_flowers_date( system, purchase_date, attempts=0): if type(purchase_date) in (datetime.datetime, datetime.date): purchase_date = dates.get_menu_date(purchase_date) if main_menu_purchase_default_input_purchases_flowers(system): keyboard.write_text(purchase_date) keyboard.enter() keyboard.shift_f11() keyboard.home(3) return True
def main_menu_call(attempt=0): window_data = VERIFICATION['screens']['main_menu'] if attempt > 20: return False if not f2.verify(window_data, 2): keyboard.f12(7) keyboard.write_text('n') keyboard.home(3) time.sleep(.01) return main_menu_call(attempt + 1) else: keyboard.home(3) return True
def go_to_pricing(): screen = window.get_window() if not screen: time.sleep(.1) screen = window.get_window() if 'Pricegroup:' in screen: keyboard.command('f1') keyboard.write_text('0') keyboard.enter() keyboard.command('f2') keyboard.shift_f11() keyboard.home(3) return lot_verify.pricing_screen()
def top_of_list(): uscreen = window.get_window() keyboard.home(2) if f2.is_new_screen(uscreen): return top_of_list() return True