Commit Graph

187 Commits

Author SHA1 Message Date
Paul Trowbridge
0095e1983c forgot end 2020-02-19 16:45:52 -05:00
Trowbridge
ff1304be3c add substance column and move some files out of the route folder that aren't actually being used by routes 2020-02-19 13:25:28 -05:00
Trowbridge
cbc2caa41d add module back in 2020-02-18 17:10:49 -05:00
Trowbridge
69346646bd change module to be the comment 2020-02-18 15:35:56 -05:00
Trowbridge
d3a4a45d53 change comment to be the tag 2020-02-18 14:47:46 -05:00
pt
83039b4a51 notes (#32) 2020-02-18 19:25:57 +00:00
pt
ff3e18edc7 add sort to month name 2020-02-16 22:23:38 -05:00
pt
53ac7f90e2 putting wrong sort number on month 2020-02-15 03:45:22 -05:00
pt
e7ce48405b increment year 2020-02-15 03:26:04 -05:00
pt
c602564cb7 couple minor issues 2020-02-15 02:55:33 -05:00
pt
a83708a7ca overhaul month_vp 2020-02-15 01:03:45 -05:00
pt
07f69a80ae initial renaming of columns 2020-02-14 21:16:25 -05:00
Trowbridge
7635380ccc ensure not to load null comments 2020-02-14 17:00:44 -05:00
Trowbridge
6774a2fdff default load as not null 2020-02-14 17:00:06 -05:00
Paul Trowbridge
db13f3d38c routes that make adjustments need to return comment info 2020-02-14 15:52:16 -05:00
Trowbridge
33041761c6 drop rows from both tables when undoing changes 2020-02-14 15:42:41 -05:00
Trowbridge
18558674c0 change key name to message 2020-02-14 14:41:51 -05:00
Trowbridge
6485613ab7 add undo route, and include comments 2020-02-14 14:41:29 -05:00
pt
1b8c101429 update history log 2020-02-14 02:24:52 -05:00
pt
6e8f026770 forgot to swap out alias 2020-02-14 00:15:11 -05:00
Paul Trowbridge
8aeecc845b use materialized view of itemm and use date range object to facilitate join 2020-02-13 23:54:11 -05:00
Paul Trowbridge
8d1cd1ade6 functional but joining to itemm is very expensive 2020-02-13 17:29:13 -05:00
Trowbridge
acca526dca overhaul new basket 2020-02-13 16:41:39 -05:00
Trowbridge
0c394b2557 update CTE names, remove volume filter 2020-02-13 14:00:04 -05:00
Paul Trowbridge
b3122a50bb swap out return rows 2020-02-13 13:56:29 -05:00
Trowbridge
a4cf5b7607 insert new columns and log 2020-02-13 13:20:33 -05:00
Trowbridge
9793596d27 switch scale columns 2020-02-13 13:19:06 -05:00
Trowbridge
79ec4739c1 swap out basemix coluns 2020-02-13 13:18:55 -05:00
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