Changes between Version 1 and Version 2 of UseCase009


Ignore:
Timestamp:
05/13/26 15:01:25 (2 weeks ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase009

    v1 v2  
    1111{{{#!div style="text-align: justify; width: 100%;"
    1212
    13 1. Admin selects an existing {{{Product}}} from the inventory management interface that requires an update.
     131. Admin selects an existing Product from the inventory management interface that requires an update.
    1414
    15 2. System retrieves the current data for the {{{Product}}}, including {{{price}}}, {{{stock}}}, {{{description}}}, and {{{format}}}.
     152. System retrieves the current data for the Product, including price, stock, description, and format.
     16
     17{{{#!div style="margin-left: 20px;"
     18{{{
     19SELECT product_id, format, price, stock, description, release_id
     20FROM Product
     21WHERE product_id = @selected_product_id;
     22}}}
     23}}}
    1624
    17253. Admin enters the new values for the attributes that need to be modified.
     
    19274. System validates the updated information to ensure it adheres to the required data formats (e.g., non-negative values for price and stock).
    2028
    21 5. System updates the corresponding record in the {{{Product}}} table with the new data.
     295. System updates the corresponding record in the Product table with the new data.
     30
     31{{{#!div style="margin-left: 20px;"
     32{{{
     33UPDATE Product
     34SET
     35    price = @new_price,
     36    stock = @new_stock,
     37    description = @new_description,
     38    format = @new_format
     39WHERE product_id = @selected_product_id;
     40}}}
     41}}}
    2242
    23436. System confirms the successful modification to the admin and updates the product information across the public catalog immediately.
     44
     45{{{#!div style="margin-left: 20px;"
     46{{{
     47SELECT *
     48FROM Product
     49WHERE product_id = @selected_product_id;
    2450}}}
     51}}}
     52
     53}}}