Exemple #1
0
def set_availability_dates(from_date, to_date, cut_off_start_date,
                           cut_off_start_time, cut_off_date, cut_off_time):
    time.sleep(1)
    window.drag_window()

    if not verify((('Available', 22, 54), ('Visible', 25, 56))):
        time.sleep(1)
        if not verify((('Available', 22, 54), ('Visible', 25, 56))):
            print("sent")
            keyboard.command("INSERT")

    keyboard.command("F6")

    for d in (from_date, to_date):
        keyboard.write_text(d)
        keyboard.command("enter")
        keyboard.write_text('0000')
        keyboard.command("enter")

    keyboard.write_text(cut_off_start_date)
    keyboard.command("enter")
    keyboard.write_text(cut_off_start_time)
    keyboard.command("enter")
    keyboard.write_text(cut_off_date)
    keyboard.command("enter")
    keyboard.write_text(cut_off_time)
    keyboard.command("enter")
    keyboard.command("enter")

    keyboard.f11()
Exemple #2
0
def main_menu_purchase_default_purchase_distribute_flowers_purchase(
        system, purchase_date, attempts=0):
    if type(purchase_date) == datetime.datetime:
        purchase_date = dates.get_menu_date(purchase_date)

    if main_menu_purchase_default_purchase_distribute_flowers(system):
        keyboard.write_text(purchase_date)
        keyboard.enter()
        keyboard.f11()
Exemple #3
0
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
Exemple #4
0
def enter_purchase_normal(code, fob, landed, quantity, packing, supplier):
    keyboard.command('f10')
    keyboard.write_text(code)
    keyboard.enter()
    keyboard.write_text(fob)
    keyboard.enter()
    keyboard.write_text(landed)
    keyboard.enter()
    keyboard.write_text(quantity)
    keyboard.enter()
    keyboard.write_text(packing)
    keyboard.enter()
    keyboard.write_text(supplier)
    keyboard.f11(2)