Compare commits

...

3 Commits

Author SHA1 Message Date
pt
60ace348b8 pretty print doc 2020-02-25 00:27:30 -05:00
pt
9584f8026a exclude short ships and update notes on walk 2020-02-24 22:51:17 -05:00
pt
99c9136580 options on summarizing and review 2020-02-24 00:30:39 -05:00
3 changed files with 30 additions and 3 deletions

View File

@ -24,4 +24,30 @@ Discussion
* refresh new part list
* add comments on monthly
* add a tag that is separate from the comment?
* need to test extrapolating osm_pool into osmp_dev
* need to test extrapolating osm_pool into osmp_dev
Review
* continuous update with actuals
* next years sales is going to change everyday as new things happen with open orders
* need to be populating shipping season instead of leaving null
* need to do with past-due's -> when do they ship?
* snapshot several years of history into the forecast so there is no need to bring in actuals
* going to have to rebuild the forecast when actuals change
CI
* snapshot pool
* adjust 2021 orders
* integrate with 2020 open to get to 2021 sales (osm_stack)
* show 2021 forecasted order as forecast
* show 2021 forecasted sales (need to update ship season so it is not null)
Walk Issues
* canceled orders
* changed orders
* short ships
* exchange rates
Things to Demo
* product swap out
* pivot re-org
* don't use filters

View File

@ -153,6 +153,7 @@ gld AS (
)
AND fs_line = '41010'
AND calc_status <> 'CANCELED'
AND NOT (calc_status = 'CLOSED' AND flag = 'REMAINDER')
GROUP BY
o.fspr
,plnt

View File

@ -6,7 +6,7 @@ SELECT
,ol.doc->>'stamp' stamp
,ol.doc->>'tag' tag
,ol.doc->>'message' "comment"
,ol.doc
,jsonb_pretty(ol.doc) doc
,ol.id
,to_char(round(sum(value_usd),2),'$999,999,999D00') sales
from
@ -22,7 +22,7 @@ group BY
,ol.doc->>'stamp'
,ol.doc->>'tag'
,ol.doc->>'comment'
,ol.doc
,jsonb_pretty(ol.doc)
,ol.id
)
SELECT