Commit Graph

159 Commits

Author SHA1 Message Date
Trowbridge
a4d34ec83a add column names 2020-02-13 13:10:18 -05:00
Trowbridge
e49c051383 clean-up minor errors, running now 2020-02-13 13:08:02 -05:00
Trowbridge
f83746b892 swap out returning columns 2020-02-13 12:48:51 -05:00
Trowbridge
fb7fdc7959 swap out columns on price adjust 2020-02-13 12:47:25 -05:00
Trowbridge
5e4690a1f4 swap out value fields 2020-02-13 12:47:01 -05:00
Paul Trowbridge
ef914f3d5e insert to log and swap out columns on volume scale 2020-02-13 12:26:13 -05:00
Trowbridge
994b076321 swap out fb_qty or units 2020-02-13 12:21:30 -05:00
Trowbridge
610c78f36f swap out basemix columns 2020-02-13 12:19:45 -05:00
Paul Trowbridge
04276a89cb swap out iterdef with module, and point to osm_pool 2020-02-13 12:18:32 -05:00
Paul Trowbridge
21cb531e56 embed the module in the forecast pool instead of reading the json, cross join the newly inserted log file and id 2020-02-13 11:03:42 -05:00
pt
eddece49e1 start on scale_vd 2020-02-13 02:25:24 -05:00
pt
040ba4caf6 use copy not baseline, build log table 2020-02-13 02:25:02 -05:00
pt
d557fe9cc3 put the column names back 2020-02-13 01:11:51 -05:00
pt
ba28bb9f15 rebuild pool and add fx 2020-02-12 23:32:12 -05:00
pt
73ff0da13b snap fx 2020-02-12 22:37:00 -05:00
pt
9ed969d9ef snap item fields and customer fields 2020-02-12 21:42:47 -05:00
Paul Trowbridge
270409895c exclude old orders where copying everything forward 2020-02-12 21:42:27 -05:00
Trowbridge
ae9bba67bd fix casts 2020-02-12 17:13:00 -05:00
Trowbridge
e7904d5040 initial swipe at updating forecast structure 2020-02-12 17:12:49 -05:00
Paul Trowbridge
f111c8818f start work on rebuilding for column changes 2020-02-12 14:33:59 -05:00
Paul Trowbridge
4b6cbd3ac5 Merge branch 'feature/newparts' into dev 2019-06-19 23:40:49 -04:00
Paul Trowbridge
c112c5a4a4 add bulk manipulation scripts 2019-06-19 23:29:51 -04:00
Trowbridge
031d2d4ae8 get rid of space 2019-04-30 15:43:50 -04:00
Trowbridge
2fb28dd85f update was assigning wrong columns 2019-04-29 11:33:12 -04:00
Paul Trowbridge
cd53505d59 use replacement part in all cases, and apply currency 2019-04-16 18:50:01 -04:00
Trowbridge
82b0b10dfb query no cost 2019-04-16 18:48:56 -04:00
Paul Trowbridge
8525e9c12a rep query 2019-04-16 18:08:45 -04:00
Paul Trowbridge
9829d64368 swap part number and associated masterd data 2019-04-16 18:08:24 -04:00
Paul Trowbridge
f71fee5df6 add last change 2019-04-16 09:18:37 -05:00
Paul Trowbridge
7008f57f66 make sure days are between 1 and 28 2019-04-16 13:26:39 +00:00
Paul Trowbridge
06c545dbc6 update query to add new parts 2019-04-08 16:24:55 -04:00
Trowbridge
6cdac5ed2d update part list to include clones 2019-04-08 10:30:44 -04:00
Trowbridge
7facfb963b create new part master records from clones 2019-04-08 10:30:35 -04:00
Paul Trowbridge
c51c8e409b star building queries to setup new retail parts as clones 2019-04-05 17:23:34 -04:00
Trowbridge
78f13c61e1 get rid of scrap files 2019-04-05 16:11:31 -04:00
Paul Trowbridge
bf03eff862 vupd was scaling from scratch instead of just cleaning up the volume increase to match the dollar target 2019-04-04 12:19:40 -05:00
Paul Trowbridge
22841d3671 fix issue with price adjustment 2019-04-03 14:07:49 -05:00
Paul Trowbridge
d3332cc778 include promo code in base mix 2019-04-03 12:17:54 -04:00
Paul Trowbridge
8cf8490887 Merge branch 'bugfix/div0' 2019-04-03 08:57:59 -05:00
Paul Trowbridge
e312bc1abd add log file routes and queries 2019-04-03 08:56:01 -05:00
fleetside72
752e65de05 rework addmonth routes to accomodate -0- in the base 2019-04-03 04:27:57 -04:00
Paul Trowbridge
723e2a250c fix add month route for volume only with base = 0 2019-04-03 03:26:07 -04:00
fleetside72
833ec511c1 handle price change on no base sales 2019-04-03 03:00:38 -04:00
fleetside72
8cb6b843ba recast scale_v to be based on qty and handle -0- qty 2019-04-03 01:42:10 -04:00
Paul Trowbridge
d3e1ea47bd include change type 2019-03-27 12:24:49 -05:00
Paul Trowbridge
62473aee92 bug: ship to group join was predicated on bill_to customer 2019-03-27 09:14:50 -05:00
Paul Trowbridge
68fe848512 move non-route sql 2019-03-25 15:13:52 -04:00
Paul Trowbridge
4907170629 update building of forecast to integrate last price paid 2019-03-25 02:31:31 -04:00
Paul Trowbridge
878ed265ca change status so that only true open orders show as such 2019-03-25 00:42:10 -04:00
Paul Trowbridge
df8f63fcfb move non route files 2019-03-24 23:32:51 -04:00
Paul Trowbridge
4b2b572e4c add forecast rebuild scripts 2019-03-24 23:25:23 -04:00
Paul Trowbridge
1a95413881 add files for setting up forecast 2019-03-24 16:03:32 -04:00
Paul Trowbridge
66483b6967 new items are relabeled as volume 2019-03-24 15:59:29 -04:00
Paul Trowbridge
ae0cca3b8a Merge branch 'dev' of github.com:fleetside72/forecast_api into dev 2019-03-23 17:17:57 -04:00
Paul Trowbridge
7643a6961d format 2019-03-23 17:17:46 -04:00
Paul Trowbridge
5534273f2e add sql for a regular table output of changes 2019-03-23 10:25:58 -05:00
Trowbridge
429baa0c04 add route to list changes 2019-03-22 14:02:03 -04:00
Paul Trowbridge
d968237ea7 calc status cannot be null due to inclusion in where clause 2019-03-22 10:50:18 -04:00
Paul Trowbridge
ad8639a4c8 insert statement was wrong 2019-03-22 04:53:05 -04:00
Paul Trowbridge
0a9a56c6c2 parameterize where clause 2019-03-22 04:51:44 -04:00
Trowbridge
a8f8a8cffb parameterize for route prep 2019-03-22 04:42:13 -04:00
Trowbridge
dfcd85f98b currency, fsline 2019-03-22 04:24:01 -04:00
Trowbridge
7d1adcf779 link in some more offline meta 2019-03-22 04:16:07 -04:00
Trowbridge
46a299c1a3 bring in offline meta and use initial part 2019-03-22 04:04:13 -04:00
Trowbridge
6faa31c46b bring in some customer master 2019-03-22 04:03:42 -04:00
Paul Trowbridge
966b072f72 get fuctional through basemix 2019-03-22 03:33:45 -04:00
Trowbridge
f18b35364d start work on setting up a new basket route 2019-03-22 00:41:30 -04:00
Paul Trowbridge
a88a611afd prevent div by zero 2019-03-21 16:50:51 -04:00
Trowbridge
bb83caa46f parameterize sql and add route for new part 2019-03-21 15:29:17 -04:00
Trowbridge
2e6fc0e30a insert and return aggregate 2019-03-21 15:13:27 -04:00
Trowbridge
fcfe3e6fb9 copy units to descriptive fields 2019-03-21 15:01:59 -04:00
Trowbridge
a3a5d3ad0d link in cost and inventory currency 2019-03-21 15:00:32 -04:00
Trowbridge
1443f339b7 set part group descriptions 2019-03-21 14:26:03 -04:00
Trowbridge
c3d01e0df6 get promo from month mix 2019-03-21 14:22:44 -04:00
Trowbridge
c5f8d335bb add group descriptions 2019-03-21 14:22:35 -04:00
Trowbridge
e41f12ef7e change join basis and set some columns 2019-03-21 14:12:26 -04:00
Trowbridge
0018c14d40 start linking in master data 2019-03-21 14:02:14 -04:00
Trowbridge
22605092bb parition by mxm since there is s cross join 2019-03-21 12:29:10 -04:00
Trowbridge
2fc146ae5d build dates 2019-03-21 12:11:20 -04:00
Trowbridge
24188768f1 rework 2019-03-21 12:02:44 -04:00
Trowbridge
5571fc35a6 only include 2019 and 2020 order season in pkg 2019-03-21 11:40:32 -04:00
Trowbridge
7d0166aab2 template out necessary function 2019-03-21 03:23:07 -04:00
Trowbridge
a8027b8447 start work on new_part logic 2019-03-21 03:22:48 -04:00
Trowbridge
b05d68f8ec dont sum up diext and discounts 2019-03-20 01:31:51 -04:00
Trowbridge
5245bfac74 add a part list and log sql statements 2019-03-20 00:37:36 -04:00
Paul Trowbridge
b6464e51b9 creat elist of active parts with descriptions 2019-03-19 10:56:11 -04:00
Paul Trowbridge
4108c02beb descending mix 2019-03-19 00:24:57 -04:00
Paul Trowbridge
4e062d0625 rework basket 2019-03-19 00:22:00 -04:00
Paul Trowbridge
b7b3b05e2c build sales based mix 2019-03-19 00:15:43 -04:00
Paul Trowbridge
ecaef0ae4b setup a basket to send back, convert to https 2019-03-18 17:27:01 -04:00
Trowbridge
191b735061 alter scnaerio package for part, bill, ship 2019-03-18 16:02:45 -04:00
Paul Trowbridge
7f5277546b hardcode notion of baseline iterations into monthly baseline 2019-03-15 12:53:21 -04:00
Paul Trowbridge
4ba6aaa2d0 adjust scale_vp route to create 2 iteration for v and p respectively 2019-03-14 12:08:37 -04:00
Paul Trowbridge
c536dee56d break out add-month volume and price impact 2019-03-14 11:59:35 -04:00
Paul Trowbridge
932c95e83c dont use iterdet anymore since not in osm. iter = source + behavior 2019-03-14 10:47:29 -04:00
Paul Trowbridge
0e3bc60dd7 update volume and price, as well as description on other routes 2019-03-13 23:32:12 -04:00
Paul Trowbridge
92657e72c3 update scale volume route to contain iteration info 2019-03-13 23:25:07 -04:00
Paul Trowbridge
9d6453f837 update scale by price route 2019-03-13 17:27:59 -04:00
Trowbridge
0ce9056d7c fix up volume and price 2019-03-13 13:53:19 -04:00
Trowbridge
2352a898be update addmonth_v to manifest iteration changes 2019-03-13 13:07:07 -04:00