-
Notifications
You must be signed in to change notification settings - Fork 0
/
exwhsplit.int
1154 lines (1076 loc) · 24 KB
/
exwhsplit.int
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Script generated by DI Visual Integrator
version "1";
//+ This script contains objects or tasks that have been disabled in Visual Integrator.
//+ Use Visual Integrator to enable them.
object 'TSKL' "Main" {
contents = {
`Join Tables and Split on Time`
}
};
object 'TASK' "Join Tables and Split on Time" {
inputs = {
`Transaction History`,
`GVS Transaction History`,
`Warehouse Master`,
`Item Master`,
`OK Item Master`,
`Planner VRC Groups`,
`State List`,
`Vendor List`,
`Time Lookup`,
`Manu FCLookup`,
`Planner Goals`,
`Planner Goals Master`,
`Planner Goals Ranges`,
`Salesman/Customer Crossref`,
`Salesman Master`,
`Customer Master`,
`Planner Check`,
`Vendor Time`,
`New Customer Master`
},
processes = {
`Update Transaction History`,
`Concat GVS`,
`Join Warehouse Master`,
`Calc OK Item Master`,
`Concat OK Item Master`,
`Join Item Master`,
`Join Planner VRC Groups`,
`Calc Planner VRC Groups`,
`State List Calcs`,
`Join State List`,
`Filter on State List`,
`Join Vendor List`,
`Filter on Vendor List`,
`Time Calcs`,
`Join Time Lookup`,
`Join Manu FCLookup`,
`squash Planner goals`,
`sort Planner goals`,
`Filter Planner Goals Master`,
`Join Planner Goals Master`,
`Join Planner Goals Ranges`,
`Filter Planner Goals`,
`Planner Goals Calcs`,
`rotate Planner Goals`,
`Planner Goals Final Calcs`,
`Planner Goals Alias`,
`Join Planner Goals`,
`Join SC Xref`,
`Join Salesman Master`,
`Join Customer Master`,
`Join Planner Check`,
`Do Calcs`,
`Vendor Calcs`,
`Join Vendor Time`,
`Filter`,
`concat-1-CON`
},
output = `Split`
};
object 'INPT' "Transaction History" {
//+ coordinatex = `8`,
//+ coordinatey = `458`,
input_type = `Filein`,
filenames = {
`../data/mtd.csv`,
`../data/year_0.csv`,
`../data/year_1.csv`,
`../data/year_2.csv`
},
dictfile = `../programs/tranhist.dic`
};
object 'INPT' "GVS Transaction History" {
//+ coordinatex = `8`,
//+ coordinatey = `533`,
input_type = `Filein`,
filenames = {
`../data/gvsmtd.csv`,
`../data/gvsyear_0.csv`,
`../data/gvsyear_1.csv`,
`../data/gvsyear_2.csv`
},
dictfile = `../programs/tranhist.dic`,
aliases = {
`Raw Cases=GVS Raw Cases`,
`Bottles=GVS Bottles`
}
};
object 'INPT' "Warehouse Master" {
//+ coordinatex = `158`,
//+ coordinatey = `533`,
input_type = `Filein`,
filenames = { `../data/gogwmpdd.csv` },
dictfile = `../programs/gogwmp.dic`
};
object 'INPT' "Item Master" {
//+ coordinatex = `158`,
//+ coordinatey = `608`,
input_type = `Filein`,
filenames = { `../data/gowimpdd.csv` },
dictfile = `../programs/gowimp.dic`,
aliases = {
`Vendor Report Code Number=Vendor RC# Base`
}
};
object 'INPT' "OK Item Master" {
input_type = `list`,
columns = {
},
values = {
}
};
object 'INPT' "Planner VRC Groups" {
//+ coordinatex = `233`,
//+ coordinatey = `683`,
input_type = `Filein`,
filenames = { `../data/vrc-groups.txt` },
file_type = `column_headers`,
aliases = {
`Vendor Report Code Number=Vendor RC# Base`,
`State=Warehouse State`
}
};
object 'INPT' "State List" {
//+ coordinatex = `383`,
//+ coordinatey = `608`,
input_type = `Filein`,
file_type = `column_headers`,
filenames = { `../execmdls/exbuildorder.txt` },
aliases = {
`State=buildorder state`,
`State Name=Buildorder Name`
}
};
object 'INPT' "Vendor List" {
//+ coordinatex = `608`,
//+ coordinatey = `533`,
input_type = `Filein`,
file_type = `column_headers`,
filenames = { `../execmdls/exvndlookup.txt` },
aliases = {
`Vndr=Vendor Filtercol`
},
keep_columns = {
`Vendor Filtercol`
}
};
object 'INPT' "Time Lookup" {
//+ coordinatex = `683`,
//+ coordinatey = `533`,
input_type = `Filein`,
file_type = `column_headers`,
filenames = { `../temp/whtimelookup.txt` }
};
object 'INPT' "Manu FCLookup" {
//+ coordinatex = `383`,
//+ coordinatey = `533`,
input_type = `Filein`,
filenames = { `../data/manufc.csv` },
dictfile = `../programs/manufc.dic`
};
object 'INPT' "Planner Goals" {
//+ coordinatex = `158`,
//+ coordinatey = `308`,
input_type = `filein`,
filenames = { `../../global/temp/planner_goals_list.txt` },
file_type = `column_headers`,
filename_column = `Filename`,
aliases = {
`Year-Month=TY Year-Month`,
`Program=Quota Description`,
`Goal ID=Quota Number`
},
keep_columns = {
`Quota Number`,
`Quota Description`,
`TY Year-Month`
}
};
object 'INPT' "Planner Goals Master" {
//+ coordinatex = `233`,
//+ coordinatey = `383`,
input_type = `Filein`,
filenames = { `../../global/data/goal-master.txt` },
file_type = `column_headers`,
filename_column = `Filename`,
aliases = {
`Goal Type=Planner Vendor Flag`,
`Goal ID=Quota Number`,
`Program Start Year-Month=Program Start Date`,
`Program End Year-Month=Program End Date`,
`State=Warehouse State`
},
keep_columns = {
`Quota Number`,
`Planner Vendor Flag`,
`Warehouse State`,
`Vendor Number`,
`Program Start Date`,
`Program End Date`
}
};
object 'INPT' "Planner Goals Ranges" {
//+ coordinatex = `383`,
//+ coordinatey = `383`,
input_type = `Filein`,
filenames = { `../../global/temp/planner_program_months_original.txt` },
file_type = `column_headers`,
aliases = {
`Goal ID=Quota Number`,
`Program=Quota Description`,
`Program Start Date=Program Start Date`,
`Program End Date=Program End Date`
}
};
object 'INPT' "Salesman/Customer CrossRef" {
//+ coordinatex = `908`,
//+ coordinatey = `83`,
input_type = `Filein`,
filenames = { `../data/msxcmpdd.csv` },
dictfile = `../programs/msxcmp.dic`
};
object 'INPT' "Salesman Master" {
//+ coordinatex = `983`,
//+ coordinatey = `83`,
input_type = `Filein`,
filenames = { `../data/msslmpdd.csv` },
dictfile = `../programs/msslmp.dic`
};
object 'INPT' "Customer Master" {
input_type = `list`,
columns = {
},
values = {
}
};
object 'INPT' "Planner Check" {
//+ coordinatex = `1133`,
//+ coordinatey = `83`,
input_type = `filein`,
filenames = { `../temp/planner_check.txt` },
file_type = `column_headers`
};
object 'INPT' "Vendor Time" {
//+ coordinatex = `1208`,
//+ coordinatey = `83`,
input_type = `Filein`,
file_type = `column_headers`,
filenames = { `../temp/whvendortime.txt` }
};
object 'INPT' "New Customer Master" {
//+ coordinatex = `983`,
//+ coordinatey = `233`,
input_type = `filein`,
file_type = `column_headers`,
delimiter = `\t`,
union = `true`,
filenames = { `../data/customer_master.txt` }
};
object 'INPT' "Quota Master" {
input_type = `list`,
columns = {
},
values = {
}
};
object 'PROC' "update transaction history" {
//+ coordinatex = `158`,
//+ coordinatey = `458`,
process_type = `calc`,
input = `Concat GVS`,
calcs = {
{
name = `Century`,
value = `lpad(Century,2,"0")`,
update = `true`
},
{
name = `Year`,
value = `lpad(Year,2,"0")`,
update = `true`
},
{
name = `Month`,
value = `lpad(Month,2,"0")`,
update = `true`
}
}
};
object 'PROC' "Concat GVS" {
//+ coordinatex = `83`,
//+ coordinatey = `458`,
process_type = `concat`,
inputs = {
`Transaction History`,
`GVS Transaction History`
}
};
object 'PROC' "Join Warehouse Master" {
//+ coordinatex = `233`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Update Transaction History`,
`Warehouse Master`
},
multijoins = {
{`Warehouse Number`, `Warehouse Number` }
}
};
object 'PROC' "Calc OK Item Master" {
process_type = `alias`,
aliases = {
},
input = `OK Item Master`
};
object 'PROC' "Concat OK Item Master" {
process_type = `alias`,
aliases = {
},
input = `Calc OK Item Master`
};
object 'PROC' "Join Item Master" {
//+ coordinatex = `308`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Join Warehouse Master`,
`Item Master`
},
multijoins = {
{`Warehouse Number`, `Warehouse Number` },
{`Item Number`, `Item Number` },
{`Pack Code`, `Pack Code` }
}
};
object 'PROC' "Join Planner VRC Groups" {
//+ coordinatex = `383`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Join Item Master`,
`Calc Planner VRC Groups`
},
multijoins = {
{`Warehouse State`, `Warehouse State` },
{`Vendor Number`, `Vendor Number` },
{`Vendor RC# Base`, `Vendor RC# Base` }
}
};
object 'PROC' "Calc Planner VRC Groups" {
//+ notes = `\t{ column = "Warehouse State",\n`
//+ `\t update = "true",\n`
//+ `\t calc_str = "\\"IN\\"" },`,
//+ coordinatex = `308`,
//+ coordinatey = `683`,
process_type = `calc`,
input = `Planner VRC Groups`,
calcs = {
// { column = "Warehouse State",
// update = "true",
// calc_str = "\"IN\"" },
{
name = `Vendor Number`,
value = `lpad(Vendor Number,7,"0")`,
update = `true`
},
{
name = `Vendor RC# Base`,
value = `lpad(Vendor RC# Base,2,"0")`,
update = `true`
}
}
};
object 'PROC' "State List Calcs" {
//+ coordinatex = `458`,
//+ coordinatey = `608`,
process_type = `calc`,
input = `State List`,
calcs = {
{
name = `State List Filter`,
value = `"Keep"`
}
}
};
object 'PROC' "Join State List" {
//+ coordinatex = `533`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Join Manu FCLookup`,
`State List Calcs`
},
multijoins = {
{`Warehouse State`, `buildorder state` }
}
};
object 'PROC' "Filter on State List" {
//+ coordinatex = `608`,
//+ coordinatey = `458`,
process_type = `filter`,
input = `Join State List`,
action = `keep`,
filters = {
{
column = `State List Filter`,
values = { `Keep` }
}
}
};
object 'PROC' "Join Vendor List" {
//+ coordinatex = `683`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Filter on State List`,
`Vendor List`
},
multijoins = {
{`Vendor Number`, `Vendor Filtercol` }
}
};
object 'PROC' "Filter on Vendor List" {
//+ coordinatex = `758`,
//+ coordinatey = `458`,
process_type = `filter`,
input = `Join Vendor List`,
action = `discard`,
filters = {
{
column = `Vendor Filtercol`,
values = { `` }
}
}
};
object 'PROC' "Time Calcs" {
//+ coordinatex = `758`,
//+ coordinatey = `533`,
process_type = `calc`,
input = `Time Lookup`,
calcs = {
{
name = `Year2`,
value = `substr(100+Year,2,2)`
},
{
name = `Month2`,
value = `substr(100+Month,2,2)`
},
{
name = `Year4`,
value = `concat(Century,Year2)`
}
}
};
object 'PROC' "Join Time Lookup" {
//+ coordinatex = `833`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Filter on Vendor List`,
`Time Calcs`
},
multijoins = {
{`Century`, `Century` },
{`Year`, `Year2` },
{`Month`, `Month2` },
{`City Abbrev`, `City Abbrev` }
}
};
object 'PROC' "Join Manu FCLookup" {
//+ coordinatex = `458`,
//+ coordinatey = `458`,
process_type = `Lookup`,
inputs = {
`Join Planner VRC Groups`,
`Manu FCLookup`
},
multijoins = {
{`Warehouse Number`, `Warehouse Number` },
{`Item Number`, `Item Number` },
{`Pack Code`, `Pack Code` }
}
};
object 'PROC' "squash Planner goals" {
//+ coordinatex = `233`,
//+ coordinatey = `308`,
process_type = `squash`,
input = `planner goals`,
dimensions = { `Quota Number`, `Quota Description`, `TY Year-Month` }
};
object 'PROC' "sort Planner goals" {
//+ coordinatex = `308`,
//+ coordinatey = `308`,
process_type = `sort`,
input = `squash planner goals`,
sort_columns = { `TY Year-Month` },
reverse = `true`
};
object 'PROC' "Filter Planner Goals Master" {
//+ notes = ` 1=Vendor, 2=Program`,
//+ coordinatex = `308`,
//+ coordinatey = `383`,
process_type = `filter`,
input = `Planner goals Master`,
action = `keep`,
filters = {
// 1=Vendor, 2=Program
{
column = `Planner Vendor Flag`,
values = { `2` }
}
}
};
object 'PROC' "Join Planner Goals Master" {
//+ coordinatex = `383`,
//+ coordinatey = `308`,
process_type = `Lookup`,
inputs = {
`sort Planner Goals`,
`Filter Planner Goals Master`
},
multijoins = {
{`Quota Number`, `Quota Number` }
}
};
object 'PROC' "Join Planner Goals Ranges" {
//+ coordinatex = `458`,
//+ coordinatey = `308`,
process_type = `lookup`,
inputs = {
`Join Planner Goals Master`,
`Planner Goals Ranges`
},
multijoins = {
{`Quota Number`, `Quota Number` },
{`Quota Description`, `Quota Description` }
}
};
object 'PROC' "Filter Planner Goals" {
// another one to keep successful joins
//+ notes = ` another one to keep successful joins\n`
//+ ` 1=Vendor, 2=Program`,
//+ coordinatex = `533`,
//+ coordinatey = `308`,
process_type = `filter`,
input = `Join Planner goals ranges`,
action = `keep`,
filters = {
// 1=Vendor, 2=Program
{
column = `Planner Vendor Flag`,
values = { `2` }
}
}
};
object 'PROC' "Planner Goals Calcs" {
//+ coordinatex = `608`,
//+ coordinatey = `308`,
process_type = `calc`,
input = `Filter Planner Goals`,
calcs = {
{
name = `Vendor Number`,
value = `lpad(Vendor Number,7,"0")`,
update = `true`
},
{
name = `LY Year-Month`,
value = `concat(substr(TY Year-Month,1,4)-1,substr(TY Year-Month,5))`
}
}
};
object 'PROC' "rotate Planner Goals" {
//+ coordinatex = `683`,
//+ coordinatey = `308`,
process_type = `rotate`,
input = `Planner Goals Calcs`,
new_horiz_column = `YM Line Type`,
horiz_values = { `LY`, `TY` },
new_value_column = `Rotated Year-Month`,
horiz_columns = {
{`LY Year-Month` },
{`TY Year-Month` }
}
};
object 'PROC' "Planner Goals Final Calcs" {
//+ coordinatex = `758`,
//+ coordinatey = `308`,
process_type = `calc`,
input = `Rotate Planner Goals`,
calcs = {
{
name = `Century`,
value = `substr(Rotated Year-Month,1,2)`
},
{
name = `Year`,
value = `substr(Rotated Year-Month,3,2)`
},
{
name = `Month`,
value = `substr(Rotated Year-Month,6,2)`
}
}
};
object 'PROC' "Planner Goals Alias" {
//+ coordinatex = `833`,
//+ coordinatey = `308`,
process_type = `alias`,
input = `Planner Goals Final Calcs`,
aliases = {
},
keep_columns = {
`Century`,
`Year`,
`Month`,
`Warehouse State`,
`Vendor Number`,
`Program Start Date`,
`Program End Date`,
`Quota Number`,
`Quota Description`,
`YM Line Type`,
`Planner Vendor Flag`
}
};
object 'PROC' "Join Planner Goals" {
//+ coordinatex = `908`,
//+ coordinatey = `8`,
process_type = `Lookup`,
inputs = {
`Join Time Lookup`,
`Planner Goals Alias`
},
multijoins = {
{`Warehouse State`, `Warehouse State` },
{`Century`, `Century` },
{`Year`, `Year` },
{`Month`, `Month` },
{`Vendor Number`, `Vendor Number` }
}
};
object 'PROC' "Join SC Xref" {
//+ coordinatex = `983`,
//+ coordinatey = `8`,
process_type = `Lookup`,
inputs = {
`Join Planner Goals`,
`Salesman/Customer Crossref`
},
multijoins = {
{`Warehouse Number`, `Warehouse Number` },
{`Customer Number`, `Customer Number` },
{`Order Pad Number`, `Order Pad Number` }
}
};
object 'PROC' "Join Salesman Master" {
//+ coordinatex = `1058`,
//+ coordinatey = `8`,
process_type = `Lookup`,
inputs = {
`Join SC Xref`,
`Salesman Master`
},
multijoins = {
{`Warehouse Number`, `Warehouse Number` },
{`Salesman Number`, `Salesman Number` }
}
};
object 'PROC' "Join Customer Master" {
//+ coordinatex = `1133`,
//+ coordinatey = `8`,
process_type = `Lookup`,
inputs = {
`Join Salesman Master`,
`New Customer Master`
},
multijoins = {
{`Warehouse Number`, `Warehouse Number` },
{`Customer Number`, `Customer Number` }
}
};
object 'PROC' "Join Planner Check" {
//+ coordinatex = `1208`,
//+ coordinatey = `8`,
process_type = `Lookup`,
inputs = {
`join customer master`,
`Planner Check`
},
multijoins = {
{`Warehouse State`, `Warehouse State` },
{`Vendor Number`, `Vendor Number` }
}
};
object 'PROC' "Do Calcs" {
//+ coordinatex = `1283`,
//+ coordinatey = `8`,
process_type = `calc`,
input = `Join Planner Check`,
calcs = {
{
name = `Model Path Calc`,
value = `replace(replace(Model Path,"year","year"),"mtd_0","year_1")`
},
{
name = `Model`,
value = `concat(Model Path Calc,"=",Warehouse State,".txt")`
},
{
name = `Cases`,
value = `Raw Cases+Bottles/Units Per Case`
},
{
name = `Premise Code`,
value = `if(On/Off Premise Code="F",if(or(Establishment Type Code="P",Establishment`
` Type Code="C"),"F1","F2"),On/Off Premise Code)`
},
{
name = `On/Off Premise`,
value = `if(On/Off Premise Code="F","Off Premise",if(On/Off Premise Code="N","On`
` Premise",if(On/Off Premise Code="M","Military",if(On/Off Premise Code`
`="C","Consumer",On/Off Premise Code))))`
},
{
name = `Chain Name`,
value = `if(Chain Number="000","ZZZ All Others",Chain Name raw)`
},
{
name = `Corp Chain Name`,
value = `if(Corp Chain Number="000","ZZZ All Others",Corp Chain Name raw)`
},
{
name = `VFRP Raw`,
value = `concat(Vendor Fiscal Month,"-",Year-Mo)`
},
{
name = `Program Description`,
value = `Quota Description`
},
{
name = `Vendor Report Group Desc`,
value = `if(Goal Type Flag="",Vendor Report Group Desc,Vendor Report Code Group)`,
update = `true`
},
{
name = `Vendor Report Group Number`,
value = `if(Goal Type Flag="",Vendor Report Group Number,"")`,
update = `true`
}
}
};
object 'PROC' "Vendor Calcs" {
//+ coordinatex = `1283`,
//+ coordinatey = `83`,
process_type = `calc`,
input = `Vendor Time`,
calcs = {
{
name = `VFM2`,
value = `substr(100+Vendor Fiscal Month,2,2)`
}
}
};
object 'PROC' "Join Vendor Time" {
//+ coordinatex = `1358`,
//+ coordinatey = `8`,
process_type = `Lookup`,
inputs = {
`Do Calcs`,
`Vendor Calcs`
},
multijoins = {
{`Year4`, `Year` },
{`Month2`, `Month` },
{`Vendor Fiscal Month`, `VFM2` },
{`City Abbrev`, `City Abbrev` }
}
};
object 'PROC' "Filter" {
//+ coordinatex = `1433`,
//+ coordinatey = `8`,
input = `Join Vendor Time`,
process_type = `filter`,
action = `discard`,
filters = {
{
column = `FilterCol`,
values = { `filtermeout` }
}
}
};
object 'PROC' "concat-1-CON" {
process_type = `alias`,
aliases = {
},
input = `Customer Master`
};
object 'PROC' "Quota Master Calcs" {
process_type = `alias`,
aliases = {
},
input = `Quota Master`
};
object 'PROC' "sort Quota Master" {
process_type = `alias`,
aliases = {
},
input = `Quota Master Calcs`
};
object 'PROC' "rotate Quota Master" {
process_type = `alias`,
aliases = {
},
input = `sort Quota Master`
};
object 'PROC' "Quota Master Calcs 2" {
process_type = `alias`,
aliases = {
},
input = `rotate Quota Master`
};
object 'PROC' "Join Quota Master" {
process_type = `alias`,
aliases = {
},
input = `Join Time Lookup`
};
object 'OUTP' "Split" {
//+ notes = `\t"GVS Customer Number",`,
//+ coordinatex = `1508`,
//+ coordinatey = `8`,
output_type = `split`,
input = `Filter`,
dictfile1 = `../temp/warehouse.dic`,
filename_column = `Model`,
reportfile = `../temp/warehouse.rep`,
reportfile_type = `column_headers`,
columns = {
`Warehouse Number`,
`City Abbrev`,
`Customer Number`,
`On/Off Premise Code`,
`On/Off Premise`,
`Market Type`,
`Chain Number`,
`Chain Name`,
`Corp Chain Number`,
`Corp Chain Name`,
`Establishment Type Code`,
`Establishment Type`,
`Warehouse Name`,
`Warehouse City`,
`Region Number`,
`Region Name`,
`Warehouse State`,
`Warehouse State Name`,
`Item Number`,
`Pack Code`,
`Brand`,
`Brand Desc`,
`Size Description`,
`Units Per Case`,
`Wine Gallons`,
`Vendor Number`,
`Vendor Name`,
`Vendor Fiscal Month`,
`Vendor Report Code`,
`Vendor RC# Base`,
`Order Pad Number`,
`Order Pad Group Name`,
`Major Class`,
`Category Class`,
`Century`,
`Year`,
`Month`,
`Bottles`,
`GVS Bottles`,
`Raw Cases`,
`GVS Raw Cases`,
`Gift Pack Conv CD`,
`Dollars`,
`Vendor YTD`,
`Vendor LYTD`,
`Vendor LY`,
`Fiscal Month Count`,
`YTD`,
`LYTD`,
`LY`,
`MTD`,
`SMLY`,
`VFRP`,
`Mo1`,
`Mo2`,
`Mo3`,
`Mo4`,
`Mo5`,
`Mo6`,
`Mo7`,
`Mo8`,
`Mo9`,
`Mo10`,
`Mo11`,
`Mo12`,
`R12cur`,
`R12last`,
`Vendor Item Flag`,
`Vendor Report Group Number`,
`Vendor Report Group Desc`,
`Program Start Date`,
`Program End Date`,
`Quota Number`,
`Quota Description`,
`YM Line Type`,
`Quota Conversion Flag`
}
};
object 'INPT' "OK Item Master_disabledobject" {
//+ coordinatex = `83`,
//+ coordinatey = `683`,