Skip to content

Commit

Permalink
use adjusted capacity for inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkappa committed Oct 24, 2018
1 parent ba864e6 commit 582d128
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/navitaire/ods/query.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/navitaire/ods/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FROM (
il.FlightNumber,
il.STD,
SUM(ic.ClassSold) AS SeatsSold,
il.Capacity - SUM(ic.ClassSold) AS SeatsAvailable
il.AdjustedCapacity - SUM(ic.ClassSold) AS SeatsAvailable
FROM InventoryLeg AS il
INNER JOIN InventoryLegClass AS ic WITH ( NOLOCK )
ON il.InventoryLegID = ic.InventoryLegID
Expand All @@ -32,7 +32,7 @@ FROM (
il.ArrivalStation,
il.STD,
il.FlightNumber,
il.Capacity
il.AdjustedCapacity
) AS i
INNER JOIN
(
Expand Down

0 comments on commit 582d128

Please sign in to comment.