Commit Graph
1 Commits
Author SHA1 Message Date
Rikard BartholfandGitHub 0def5d6244 Add discount data to v_funnel_order_rows (#429)
* Initial scaffolding

* Add discount data to v_funnel_order_rows

* Display discounts for each row where applicable

* Get discount/sales info from subquery instead

* Use generated view to simplify diff

* Try another approach

* Use inline queries to get discount data

* Re-add lost printId to view

* Re-add v_funnel_order_rows.discount

* Remove dead code

* Grant SELECT for funnel on v_funnel_order_rows

* Disregard discount calculations for refunded order rows

* Bump migration version
2025-01-17 10:18:50 +01:00