Final update

This commit is contained in:
Joaquin Ossa 2025-02-26 08:24:50 +01:00
parent cfc6971cb4
commit 465bd51ff2
4 changed files with 18 additions and 26 deletions

View file

@ -301,6 +301,13 @@ models:
data_type: text
description: "List of items that were damaged."
- name: calculation_at_utc
data_type: timestamp without time zone
description: "Timestamp of the calculation."
data_tests:
- not_null:
where: "calculated_payout_amount_in_txn_currency > 0"
- name: protection_name
data_type: text
description: "Indicates the selected booking protection plan,

View file

@ -194,6 +194,9 @@ select
-- Calculator
{{ adapter.quote("documents") }}
-> 'SavedCalculation'
->> 'CalculationDate' as calculation_at_utc,
{{ adapter.quote("documents") }}
-> 'SavedCalculation'
->> 'ProtectionName' as protection_name,
({{ adapter.quote("documents") }} -> 'SavedCalculation' ->> 'WasOverriden')::boolean
as was_overriden,