Skip to content

Commit

Permalink
Update summary_view.sql
Browse files Browse the repository at this point in the history
Add fix to handle returned Savings Plans
  • Loading branch information
yprikhodko authored Jan 24, 2025
1 parent 6bd4feb commit ba0e94c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cid/builtin/core/data/queries/cid/summary_view.sql
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
WHEN ("line_item_line_item_type" = 'DiscountedUsage') THEN "reservation_effective_cost"
WHEN ("line_item_line_item_type" = 'RIFee') THEN ("reservation_unused_amortized_upfront_fee_for_billing_period" + "reservation_unused_recurring_fee")
WHEN (("line_item_line_item_type" = 'Fee') AND ("reservation_reservation_a_r_n" <> '')) THEN 0
WHEN (("line_item_line_item_type" = 'Refund') AND ("line_item_product_code" = 'ComputeSavingsPlans')) THEN 0
ELSE "line_item_unblended_cost"
END) "amortized_cost"
, sum(CASE
Expand Down

0 comments on commit ba0e94c

Please sign in to comment.