Пример #1
0
def main():
    utils.header()
    account = operations.auth_account()
    if account:
        print('Olá ' + account['customer_name'])
        option_typed = operations.get_menu_options_typed(account)
        operations.do_operation(account, option_typed)
    else:
        print('Conta inválida')
Пример #2
0
def main():
    utils.header()
    account_auth = operations.auth_account()

    if account_auth:
        utils.clear()
        utils.header()
        option_typed = operations.get_menu_options_typed(account_auth)
        operations.do_operation(option_typed, account_auth)

    else:
        print('Conta inválida')
Пример #3
0
def main():
    header()
    load_bank_data()
    print(accounts_list)
    account_auth = operations.auth_account()

    if account_auth:
        clear()

        header()
        option_typed = operations.account_menu_options_typed(account_auth)
        operations.do_operation(option_typed, account_auth)
    else:
        print(f"{color['vermelho']} Conta inválida")
Пример #4
0
def main():
    load_bank_data()
    print(money_slips)
    print(accounts_list)
    utils.header()
    acount_auth = operations.auth_account()

    if acount_auth:
        utils.clear_screen()
        utils.header()
        option_typed = operations.get_menu_options_typed(acount_auth)
        operations.do_operation(option_typed, acount_auth)
    else:
        print('Conta inválida')
Пример #5
0
def main():
    load_bank_data()
    cleaner()
    header()
    account_auth = auth_account()

    if account_auth:
        cleaner()
        header()
        welcome(account_auth)

        while True:
            option_typed = get_menu_options_typed(account_auth)

            do_operation(option_typed, account_auth)

            print()
            loop_typed = input('Deseja sair da conta S/n? ')
            if not loop_typed == 'n':
                print('Bye')
                break
    else:
        print('Conta inválida')
Пример #6
0
import operations