Exemplo n.º 1
0
def set_quantity():
    print('IN set_quantity')
    if check_object() and check_quantity():
        purchase2edit = get_object()
        print(purchase2edit)
        new_quantity = window.lineEdit_set_quantity.text()
        purchase = Purchase()
        print(new_quantity)
        purchase.set_quantity(purchase2edit, new_quantity)
    else:
        pass
Exemplo n.º 2
0
def set_quantity():
    # print('IN set_quantity')
    if check_object() and check_quantity():
        purchase2edit = get_object()
        # print(purchase2edit)
        new_quantity = window.lineEdit_set_quantity.text()
        purchase = Purchase()
        # print(new_quantity)
        purchase.set_quantity(purchase2edit, new_quantity)
    else:
        pass  # TODO: необходимо задать количество