Changes between Version 10 and Version 11 of UseCaseModel/ShipmentDetails
- Timestamp:
- 12/28/24 21:29:51 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCaseModel/ShipmentDetails
v10 v11 29 29 SUM(sl.wine_agreed_price * sl.wine_quantity) AS ShipmentAgreedPrice, 30 30 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 32 36 FROM shipment s 33 37 JOIN payment p ON s.payment_id = p.payment_id … … 36 40 JOIN shipment_load sl ON s.shipment_id = sl.shipment_id 37 41 LEFT 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 = 842 WHERE s.shipment_id = {int.Parse(shipmentId)} 39 43 GROUP BY 40 44 s.shipment_id,