prevent last price iteration from being available to delete, and rebuild price iteration to only look at baseline activity

This commit is contained in:
Paul Trowbridge 2021-04-12 15:10:45 -04:00
parent 3b3b01bb90
commit 50da4dfa17
2 changed files with 4 additions and 2 deletions

View File

@ -332,6 +332,8 @@ WHERE
AND o.units <> 0
---only apply to 2022 orders----
AND o.order_date >= '2021-06-01'
--only include baseline stuff---
AND iter IN ('actuals','copy','actuals_plug')
)
-----------aggregate the impact------------
--SELECT * FROM ins limit 10000

View File

@ -15,7 +15,7 @@ from
id = logid
WHERE
quota_rep_descr = 'replace_user'
AND tag <> 'Initial Build'
AND tag NOT IN ('Initial Build','last price')
group BY
ol.doc->>'user'
,quota_rep_descr