forecast_api/build
2021-06-02 09:00:25 -04:00
..
act_to_fcst forecast update 2020-06-09 18:35:52 -04:00
move_sales queries to move sales around for high-level spreading 2021-03-08 15:00:55 -05:00
build_forecast.sql refresh cut-off date, and correct spelling error in file name for rebuild script 2021-04-12 08:29:34 -04:00
build_merge.sql all forecast builds become an iteration overtop existing data 2021-04-29 11:16:23 -04:00
build_pool_schema.sql all forecast builds become an iteration overtop existing data 2021-04-29 11:16:23 -04:00
build_pool.sql convert script to live db and do rounding on final build 2021-05-03 12:33:34 -04:00
build_stage.sql update target range latest forecast 2021-06-02 09:00:25 -04:00
check_osmf_match_sales.sql test for match after pool conversion 2020-05-12 08:51:25 -04:00
check_osmf_match.sql incrememnt to next year 2021-04-05 12:02:03 -04:00
convert_pool_all.sql add a column for the tag 2021-05-17 14:44:40 -04:00
convert_pool.sql update fx 2021-04-06 18:19:49 +00:00
edit_xover.sql delete accidental cross-over update 2020-05-06 17:43:13 -04:00
merge_actuals_exec.sql notes on old update prior year baseline approach 2021-04-28 11:14:43 -04:00
merge_actuals_pool.sql notes on old update prior year baseline approach 2021-04-28 11:14:43 -04:00
merge_actuals_prep.sql notes on old update prior year baseline approach 2021-04-28 11:14:43 -04:00
readme.md notes on old update prior year baseline approach 2021-04-28 11:14:43 -04:00
rebuild_forecast.sh convert script to live db and do rounding on final build 2021-05-03 12:33:34 -04:00
rec_act.sql incrememnt to next year 2021-04-05 12:02:03 -04:00
round_pool.sql values have large decimals, round them to 2 2020-05-05 19:41:07 -04:00
snap_cost_current.sql prevent joining to fake parts, and eliminate b21 filter 2020-04-16 19:15:55 -04:00
snap_cust_osmfs.sql snap quota rep 2021-03-08 17:52:19 -05:00
snap_cust_pool.sql need to include director comparison to hook for changes 2021-04-23 09:41:38 -04:00
snap_customer.sql update quota_rep logic to mirror current sales matrix, create readme, adjust rebuild script 2021-04-08 11:42:09 -04:00
snap_fx.sql only snap fx for forecast orders 2021-04-08 12:35:22 -04:00
snap_itemm_pool.sql join to materialized view 2021-04-22 17:47:29 -04:00
snap_itemm.sql include style code in itemm snap 2021-04-07 09:04:01 -04:00
swap_fake_parts.sql fix a bunch of fake parts loaded for retail 2021-03-08 17:51:09 -05:00
temp.sql forecast update 2020-06-09 18:35:52 -04:00
tots.sql work on merging actuals 2021-04-28 17:34:44 -04:00

Build A New Forecast

  • overwrite osmf: review dates and execute build_forecase.sql
  • the product and customer attributes are wiped, they will need to be snapped (itemm must come first)
    1. snap_itemm.sql
    2. snap_customer.sql
    3. snap_cost_current.sql
    4. snap_fx.sql (if necessary)
    5. offline/last_price.sql (if necessary)
  • build the pool for the more limited UI data set: build_pool.sql
  • copy the pool to osmfs_dev from inclusion in the osm_stack and reporting: convert_pool_all.sql
  • refresh osm_stack_refresh() to integrate into reporting

Integrate Actuals

  • merge_actuals_prep -> push a fresh baseline into a temp table
  • merge_actuals_exec -> take the baseline and push it into osmf
  • merge_actuals_exec -> manualls splice in osmf into pool