BloomQuote, a web-based platform, streamlines the process of creating custom quote proposals and managing events for florists. The software provides users with a comprehensive platform to efficiently capture and organize the details of a customer's wedding quotation. This suggestion aims to enhance the usability of the "List of Quotes" screen by allowing users to sort quotes by date or by name.
Current Functionality
The current implementation of the "List of Quotes" screen displays all quotes created by the user in a table format, listing key details such as ID, wedding date, bride name, groom name, total cost, and available actions. However, there is no option to sort these quotes based on any criteria.
Proposed Enhancement
Introduce the ability to sort the list of quotes by either the wedding date or the bride's name. This enhancement will improve the user experience by making it easier to find specific quotes, especially when dealing with a large number of entries.
Implementation Details
Add Sorting Controls: Add two sorting buttons or a dropdown menu above the quotes table to allow users to choose the sorting criteria (by date or by name).
Modify Backend Logic: Update the QuoteController::list_quotes() method to accept a sorting parameter and modify the database query to order the results based on the selected criteria.
Update Views: Modify the list_quotes.php view to include sorting controls and ensure the table displays quotes in the correct order based on the user's selection.
public function getQuotesByUserIdSortedByDate($user_id) {
$stmt = $this->db->prepare("SELECT * FROM quotes WHERE user_id = ? ORDER BY wedding_date ASC");
$stmt->bind_param("i", $user_id);
$stmt->execute();
return $stmt->get_result();
}
public function getQuotesByUserIdSortedByName($user_id) {
$stmt = $this->db->prepare("SELECT * FROM quotes WHERE user_id = ? ORDER BY bride_name ASC, groom_name ASC");
$stmt->bind_param("i", $user_id);
$stmt->execute();
return $stmt->get_result();
}
Project: BloomQuote
Feature Type: Usability Improvement
Overview
BloomQuote, a web-based platform, streamlines the process of creating custom quote proposals and managing events for florists. The software provides users with a comprehensive platform to efficiently capture and organize the details of a customer's wedding quotation. This suggestion aims to enhance the usability of the "List of Quotes" screen by allowing users to sort quotes by date or by name.
Current Functionality
The current implementation of the "List of Quotes" screen displays all quotes created by the user in a table format, listing key details such as ID, wedding date, bride name, groom name, total cost, and available actions. However, there is no option to sort these quotes based on any criteria.
Proposed Enhancement
Introduce the ability to sort the list of quotes by either the wedding date or the bride's name. This enhancement will improve the user experience by making it easier to find specific quotes, especially when dealing with a large number of entries.
Implementation Details
Add Sorting Controls: Add two sorting buttons or a dropdown menu above the quotes table to allow users to choose the sorting criteria (by date or by name).
Modify Backend Logic: Update the
QuoteController::list_quotes()
method to accept a sorting parameter and modify the database query to order the results based on the selected criteria.Update Views: Modify the
list_quotes.php
view to include sorting controls and ensure the table displays quotes in the correct order based on the user's selection.PHP Code Changes
Controller (QuoteController.php):
Model (Quote.php):
View (list_quotes.php):
Benefits