Add a pre-set to the transaction menu.

master
Matt Theissen 4 years ago
parent d6f3e2efdd
commit ca5b6dbae1

@ -172,6 +172,7 @@ do
echo ""
echo "1) Show Transactions for user"
echo "2) Show last # Transactions."
echo "3) Show last 5 Transactions."
echo ""
echo "q) Go back."
echo ::
@ -189,8 +190,9 @@ do
if [ $tmenu_num2 = 0 ]; then {
tmenu_num2=all
} fi
$db_conn "select id,username,amount,timestamp from transaction order by timestamp DESC limit $tmenu_num2;"
;;
$db_conn "select id,username,amount,timestamp from transaction order by timestamp DESC limit $tmenu_num2;" ;;
3 ) echo ""
$db_conn "select id,username,amount,timestamp from transaction order by timestamp DESC limit 5;"
[0q] ) break ;;
* ) clear ;;