Merged PR 5431: Update accounting aggregation
# Description Update accounting aggregation seed with the latest changes including the division of waiver payments, confident stay and some new updates from finance. In the meantime I'll do a full refresh run, that will take quite a while, to check that I am not breaking anything # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Update accounting aggregation Related work items: #30995
This commit is contained in:
commit
fcff46144f
2 changed files with 50 additions and 31 deletions
|
|
@ -232,6 +232,9 @@ seeds:
|
|||
- Waiver Plus
|
||||
- Basic Damage Deposit
|
||||
- Host Resolutions Payments
|
||||
- Damage Waiver - Truvi Risk
|
||||
- Confident Stay
|
||||
- Flex API
|
||||
|
||||
- name: kpis_aggregation
|
||||
data_type: character varying
|
||||
|
|
@ -277,21 +280,27 @@ seeds:
|
|||
values:
|
||||
- Unknown
|
||||
- 10-Other Invoiced Revenue
|
||||
- 21-Deposit Management Services
|
||||
- 13-Verification Fees
|
||||
- 12-Listing Fees
|
||||
- 11-Booking Fees
|
||||
- 12-Listing Fees
|
||||
- 13-Verification Fees
|
||||
- 14-Athena API
|
||||
- 15-E-Deposit API
|
||||
- 16-Screening Services
|
||||
- 17-Protection Services
|
||||
- 18-Screen and Protect API
|
||||
- 19-Waiver Pro
|
||||
- 20-Deposit Management Services
|
||||
- 21-Deposit Management Services
|
||||
- 31-Check In Cover
|
||||
- 32-Check in Hero API
|
||||
- 34-Flex API
|
||||
- 33-Damage Waiver - Truvi Risk
|
||||
- 35-Confident Stay
|
||||
- 41-Guesty Resolutions
|
||||
- 42-Host Resolutions
|
||||
- 43-E-Deposit Resolutions
|
||||
- 44-Check In Hero Resolutions
|
||||
- 31-Check In Cover
|
||||
- 32-Check in Hero API
|
||||
- 18-Screen and Protect API
|
||||
- 17-Protection Services
|
||||
- 16-Screening Services
|
||||
- 45-Screen and Protect API - Resolution
|
||||
- 51-Damage Host-Waiver Payments
|
||||
|
||||
- name: financial_l3_aggregation
|
||||
|
|
@ -305,33 +314,38 @@ seeds:
|
|||
values:
|
||||
- Unknown
|
||||
- 100-Other Invoiced Revenue
|
||||
- 210-Damage Waiver Fees
|
||||
- 211-Deposit Fees
|
||||
- 131-Verification Fees
|
||||
- 121-Listing Fees
|
||||
- 111-Booking Fees
|
||||
- 121-Listing Fees
|
||||
- 131-Verification Fees
|
||||
- 141-Athena API
|
||||
- 151-E-Deposit API
|
||||
- 321-Check in Hero API
|
||||
- 161-Basic Screening
|
||||
- 162-Screening Plus
|
||||
- 163-Id Verification
|
||||
- 164-Sex Offenders Checks
|
||||
- 171-Basic Protection
|
||||
- 172-Protection Plus
|
||||
- 173-Protection Pro
|
||||
- 174-Resolution Process for Protection Services
|
||||
- 181-Screen and Protect API
|
||||
- 191-Waiver Pro
|
||||
- 201-Deposit Fees
|
||||
- 210-Damage Waiver Fees
|
||||
- 211-Basic Waiver
|
||||
- 212-Waiver Plus
|
||||
- 213-Waiver Pro
|
||||
- 214-Basic Damage Deposit
|
||||
- 215-Resolution Process for Deposit Management Services
|
||||
- 311-Check In Cover
|
||||
- 321-Check in Hero API
|
||||
- 331-Damage Waiver - Truvi Risk
|
||||
- 341-Flex API
|
||||
- 351-Confident Stay
|
||||
- 411-Guesty Resolutions
|
||||
- 421-Host Resolutions
|
||||
- 431-E-Deposit Resolutions
|
||||
- 441-Check In Hero Resolutions
|
||||
- 311-Check In Cover
|
||||
- 171-Basic Protection
|
||||
- 213-Waiver Pro
|
||||
- 163-Id Verification
|
||||
- 172-Protection Plus
|
||||
- 162-Screening Plus
|
||||
- 164-Sex Offenders Checks
|
||||
- 173-Protection Pro
|
||||
- 161-Basic Screening
|
||||
- 174-Resolution Process for Protection Services
|
||||
- 211-Basic Waiver
|
||||
- 212-Waiver Plus
|
||||
- 214-Basic Damage Deposit
|
||||
- 215-Resolution Process for Deposit Management Services
|
||||
- 451-Screen and Protect API - Resolution
|
||||
- 511-Damage Host-Waiver Payments
|
||||
|
||||
- name: stg_seed__main_metrics_targets
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
account_code,root_aggregation,kpis_aggregation,financial_l1_aggregation,financial_l2_aggregation,financial_l3_aggregation
|
||||
"200",Other Invoiced Revenue,Unknown,1-Guest Screening and Protection,10-Other Invoiced Revenue,100-Other Invoiced Revenue
|
||||
"201",Damage Waiver Fees,Accounting Guest Revenue,2-Deposit Management,21-Deposit Management Services,210-Damage Waiver Fees
|
||||
"202",Deposit Fees,Accounting Guest Revenue,2-Deposit Management,21-Deposit Management Services,211-Deposit Fees
|
||||
"202",Deposit Fees,Accounting Guest Revenue,1-Guest Screening and Protection,20-Deposit Management Services,201-Deposit Fees
|
||||
"203",Verification Fees,Invoiced Operator Revenue,1-Guest Screening and Protection,13-Verification Fees,131-Verification Fees
|
||||
"204",Listing Fees,Invoiced Operator Revenue,1-Guest Screening and Protection,12-Listing Fees,121-Listing Fees
|
||||
"206",Old Dashboard Booking Fees,Invoiced Operator Revenue,1-Guest Screening and Protection,11-Booking Fees,111-Booking Fees
|
||||
|
|
@ -15,16 +15,17 @@ account_code,root_aggregation,kpis_aggregation,financial_l1_aggregation,financia
|
|||
"214",Old Dashboard Booking Fees,Invoiced Operator Revenue,1-Guest Screening and Protection,11-Booking Fees,111-Booking Fees
|
||||
"215",Listing Fees,Invoiced Operator Revenue,1-Guest Screening and Protection,12-Listing Fees,121-Listing Fees
|
||||
"216",Old Dashboard Booking Fees,Invoiced Operator Revenue,1-Guest Screening and Protection,11-Booking Fees,111-Booking Fees
|
||||
"217",Deposit Fees,Accounting Guest Revenue,2-Deposit Management,21-Deposit Management Services,211-Deposit Fees
|
||||
"217",Deposit Fees,Accounting Guest Revenue,1-Guest Screening and Protection,20-Deposit Management Services,201-Deposit Fees
|
||||
"218",Damage Waiver Fees,Accounting Guest Revenue,2-Deposit Management,21-Deposit Management Services,210-Damage Waiver Fees
|
||||
"219",Athena API,Invoiced API Revenue,1-Guest Screening and Protection,14-Athena API,141-Athena API
|
||||
"220",E-Deposit API,Invoiced API Revenue,1-Guest Screening and Protection,15-E-Deposit API,151-E-Deposit API
|
||||
"221",Guesty Resolutions,Invoiced API Revenue,4-Mediation and Resolution,41-Guesty Resolutions,411-Guesty Resolutions
|
||||
"222",Check In Cover,Accounting Guest Revenue,3-Guest Products,31-Check In Cover,311-Check In Cover
|
||||
"223",Check In Cover,Accounting Guest Revenue,3-Guest Products,31-Check In Cover,311-Check In Cover
|
||||
"225",Flex API,Invoiced API Revenue,3-Guest Products,34-Flex API,341-Flex API
|
||||
"226",Check in Hero API,Invoiced API Revenue,3-Guest Products,32-Check in Hero API,321-Check in Hero API
|
||||
"227",Basic Protection,Invoiced Operator Revenue,1-Guest Screening and Protection,17-Protection Services,171-Basic Protection
|
||||
"228",Waiver Pro,Invoiced Operator Revenue,2-Deposit Management,21-Deposit Management Services,213-Waiver Pro
|
||||
"228",Waiver Pro,Invoiced Operator Revenue,1-Guest Screening and Protection,19-Waiver Pro,191-Waiver Pro
|
||||
"229",Id Verification,Invoiced Operator Revenue,1-Guest Screening and Protection,16-Screening Services,163-Id Verification
|
||||
"230",Protection Plus,Invoiced Operator Revenue,1-Guest Screening and Protection,17-Protection Services,172-Protection Plus
|
||||
"231",Screening Plus,Invoiced Operator Revenue,1-Guest Screening and Protection,16-Screening Services,162-Screening Plus
|
||||
|
|
@ -37,7 +38,11 @@ account_code,root_aggregation,kpis_aggregation,financial_l1_aggregation,financia
|
|||
"238",Basic Damage Deposit,Accounting Guest Revenue,2-Deposit Management,21-Deposit Management Services,214-Basic Damage Deposit
|
||||
"239",Resolution Process for Deposit Management Services,Accounting Resolutions,2-Deposit Management,21-Deposit Management Services,215-Resolution Process for Deposit Management Services
|
||||
"240",Screen and Protect API,Invoiced API Revenue,1-Guest Screening and Protection,18-Screen and Protect API,181-Screen and Protect API
|
||||
"241",Damage Waiver - Truvi Risk,Accounting Guest Revenue,3-Guest Products,33-Damage Waiver - Truvi Risk,331-Damage Waiver - Truvi Risk
|
||||
"242",Damage Waiver - Truvi Risk,Accounting Guest Revenue,3-Guest Products,33-Damage Waiver - Truvi Risk,331-Damage Waiver - Truvi Risk
|
||||
"243",Confident Stay,Accounting Guest Revenue,3-Guest Products,35-Confident Stay,351-Confident Stay
|
||||
"301",Damage Host-Waiver Payments,Damage Host-Waiver Payments,5-Damage Host-Waiver Payments,51-Damage Host-Waiver Payments,511-Damage Host-Waiver Payments
|
||||
"316",Host Resolutions Payments,Host Resolutions Payments,4-Mediation and Resolution,42-Host Resolutions,421-Host Resolutions
|
||||
"323",Host Resolutions Payments,Host Resolutions Payments,4-Mediation and Resolution,43-E-Deposit Resolutions,431-E-Deposit Resolutions
|
||||
"324",Host Resolutions Payments,Host Resolutions Payments,4-Mediation and Resolution,44-Check In Hero Resolutions,441-Check In Hero Resolutions
|
||||
"324",Host Resolutions Payments,Host Resolutions Payments,4-Mediation and Resolution,44-Check In Hero Resolutions,441-Check In Hero Resolutions
|
||||
"329",Host Resolutions Payments,Host Resolutions Payments,4-Mediation and Resolution,45-Screen and Protect API - Resolution,451-Screen and Protect API - Resolution
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue