Changes between Version 10 and Version 11 of UseCaseModel/ShipmentDetails


Ignore:
Timestamp:
12/28/24 21:29:51 (3 weeks ago)
Author:
153093
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCaseModel/ShipmentDetails

    v10 v11  
    2929    SUM(sl.wine_agreed_price * sl.wine_quantity) AS ShipmentAgreedPrice,
    3030    COALESCE(ex.shipment_expenses, 0) AS ShipmentExpenses,
    31     (SUM(sl.wine_agreed_price * sl.wine_quantity) - SUM(sl.wine_base_price * sl.wine_quantity) - COALESCE(ex.shipment_expenses, 0)) AS ShipmentProfit
     31    ROUND(
     32        (SUM(sl.wine_agreed_price * sl.wine_quantity) -
     33        SUM(sl.wine_base_price * sl.wine_quantity) -
     34        COALESCE(ex.shipment_expenses, 0))::NUMERIC
     35    , 2) AS ShipmentProfit
    3236FROM shipment s
    3337JOIN payment p ON s.payment_id = p.payment_id
     
    3640JOIN shipment_load sl ON s.shipment_id = sl.shipment_id
    3741LEFT JOIN (SELECT shipment_id, SUM(amount) AS shipment_expenses FROM shipment_has_expense_of_expense_type GROUP BY shipment_id) ex ON s.shipment_id = ex.shipment_id
    38 WHERE s.shipment_id = 8
     42WHERE s.shipment_id = {int.Parse(shipmentId)}
    3943GROUP BY
    4044    s.shipment_id,