diff --git a/normal_user.h b/normal_user.h index 4fbecb9..7dbd392 100644 --- a/normal_user.h +++ b/normal_user.h @@ -36,7 +36,14 @@ void normal_menu(){ switch (choice) { case 1://List items - list_items(); + struct inventory db = read_db_invt(); + char * SortItems[] = { + "Name", + "Price", + "Brand", + "Category", + }; + lister(&db,NULL,db.db.row_count,"List of items",SortItems,4,print_page,sortItems,show_item); break; case 2://Search item search_item(show_item);