def main():
    while True:
        load_bank_data()
        header()

        account = login()

        if account:
            clear_terminal()
            message = str
            admin = accounts_list[account]['admin']
            name = accounts_list[account]['name']
            balance = accounts_list[account]['balance']

            header(name)

            while account:
                option_typed = menu_options(account)

                exec_option(option_typed, balance, admin)
        else:
            clear_terminal()
            message = "Acesso negado. Verifique conta e senha"
            show_message(message)

        clear_terminal()
        show_message(message)
Beispiel #2
0
def main():
    load_bank_data()

    print(accounts)
    operations.main()

    input('Pressione <ENTER> para continuar...')

    utils.clear()
Beispiel #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")
Beispiel #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')
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')
Beispiel #6
0
import operations