Description:
Implement functionality to update existing orders. This includes modifying product quantities, adding/removing products, and updating customer details.
Acceptance Criteria:
Validate that the order exists.
Allow updates to editable fields (e.g., product quantities, shipping address).
Check that updated quantities do not exceed available inventory.
Save changes to the database.
Return the updated order details.
Description:
Implement functionality to update existing orders. This includes modifying product quantities, adding/removing products, and updating customer details.
Acceptance Criteria:
Validate that the order exists.
Allow updates to editable fields (e.g., product quantities, shipping address).
Check that updated quantities do not exceed available inventory.
Save changes to the database.
Return the updated order details.