NSS-Evening-E22 / pos-system-tech-giants

pos-system-tech-giants created by GitHub Classroom
0 stars 1 forks source link

Edit orders button #48

Closed bhighlander closed 1 year ago

bhighlander commented 1 year ago

User Story:

As a user, I want to be able to edit an order by clicking on the "Edit" button on the order card on the View Orders page.

Acceptance Criteria:

The "Edit" button is displayed on each order card on the View Orders page. Clicking the "Edit" button opens the Edit Order page with the selected order's information pre-populated in the input fields. The Edit Order page includes input fields for Order Name, Customer Name, Order Type, Items, Quantity, Total Price, and any other relevant order information. The Edit Order page includes a button to save the edited order.

Dependencies:

The View Orders page and order card components are available and functional. The Edit Order page and input field components are available and functional. The database and backend API support editing orders.

Dev Notes:

The "Edit" button component needs to be created and added to each order card on the View Orders page. A function to populate the input fields on the Edit Order page with the selected order's information needs to be implemented and linked to the "Edit" button. Input field components for Order Name, Customer Name, Order Type, Items, Quantity, Total Price, and any other relevant order information need to be added to the Edit Order page. A function to save the edited order and update the order information in the database needs to be implemented and linked to the "Save" button on the Edit Order page.