Fresh

1) Copy the source for these 3 RPGLE programs from the ZZZ repository into the customer’s 5MOD library and compile:

K3S_FRRSET

K3S_GARC01

K3S_SASA

2) Edit the customer’s existing K3S_1530 program with fresh logic. Compare the customer’s K3S_1530 to the source for FRESH_1530 in the ZZZ repository. FRESH_1530 is a vanilla version of K3S_1530 with fresh logic added.

Program K3S_1530 gets called when building a supplier order if the tablecode is turned on. Turn this tablecode ON (set TA_FLAG1 =1 ) if it is not already turned ON:

TA_CODETYP=APP
TA_CODEVAL=CHECK_U U1_U4_EXIT
TA_CODEDS1=Exit to U1 - U4 processing?

Program K3S_1530 is super, duper, uber important to test before you turn it on for the night job. To test it, recalculate some orders. If that is successful, recalculate an entire buy group.
If all passes and gives the desired results, you are ready for the night job.

3) Edit the customer’s existing K3S_9941 program with logic to display fresh text. Compare the customer’s K3S_9941 to the source for FRESH_9941 in the ZZZ repository. FRESH_9941 is a vanilla version of K3S_9941 with fresh logic added. The goal is to develop text tells the user what days the SOQ is covering along with the SOQ.

Example: Mon Tue Wed delivery 2,040

4) Edit the customer’s K3S_NIGHT program to call K3S_FRRSET. This will re-set any temporary patterns that were set during the day.

5) Edit the customer’s K3S_X310CL program to call K3S_SASA (passing the COMP parm!) This will force fresh orders due on the proper order days.

6) Edit K3S_POPARM to default the arrival date for fresh suppliers. For newer customers, this may require a simple un-commenting sections of code. For legacy customers, look at the source for K3S_POPARM in the ZZZ repository. Find the fresh logic that is commented out. Clone this fresh logic into K3S_POPARM and un-comment it.

7) Display the fresh button Set TA_FLAG1 = 1 for this tablecode to display the fresh button for the user to have the ability to add Fresh Replenishment in Supplier Settings:

Table code type.. BTN
Description…… Button Display in R6
Table code value. FRESH

8) OPTIONAL By default the fresh logic will not give an SOQ for New, Manual, or Discontinued products found in a fresh supplier. This can be adjusted to fit the customer’s needs by editing K3S_1530. Any other rules related to the SOQ for fresh suppliers can also be edited in K3S_1530.