Changes between Version 4 and Version 5 of UseCase007


Ignore:
Timestamp:
06/02/26 21:56:53 (9 days ago)
Author:
232012
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase007

    v4 v5  
    5656{{{#!div style="margin-left: 20px;"
    5757{{{
    58 INSERT INTO ORDER_ITEMS (order_id, product_id, quantity, price_at_purchase)
     58INSERT INTO ORDER_PRODUCTS (order_id, product_id, quantity, price_at_purchase)
    5959VALUES (:active_order_id, :selected_product_id, :requested_quantity, :current_price)
    6060ON CONFLICT (order_id, product_id)
     
    6868{{{
    6969SELECT COALESCE(SUM(quantity * price_at_purchase), 0) AS new_total
    70 FROM ORDER_ITEMS
     70FROM ORDER_PRODUCTS
    7171WHERE order_id = :active_order_id;
    7272}}}