Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top

Search Optifacts User Documentation

Live Search
spaceKeyOPPUB
placeholderEnter search keyword(s) here

Table of Contents (on this page)

outline
Table of Contents
trueindent15px20px
stylenonebullet


Introduction

This document

provides an explanation on

explains how the Estimated Delivery Date is calculated and also shows what tables

are used

we use.

Procedure

Programs

:

$CWD/progs/ofdemon (update to use tt_ststop table)

$CWD/progs/edd

$CWD/progs/edd_report

Tables

:

  1. The edd_acct table is where each account’s cut off time is entered. Any job coming in after the cut off time will start starts counting from the next day.
  2. The edd_cal table is where the lab enters what days and hours they work. The days worked can either be Y (full day), H (half day), or N (don’t work).
  3. The edd_courier table is where each courier’s pickup time is gets entered. Any job expected after the pickup time will have gets 1 day added to the time.
  4. The edd_ctrl table is the control table to find the length of time needed for the lens.
  5. The edd_liteups table is where each lite-up is entered gets a length of time needed.
  6. The grp_style table is where you can enter a name set with certain specific criteria and use that name set in the edd_ctrl table.
  7. The grp_rx table is where you can enter a name set with certain specific criteria and use that name set in the edd_ctrl table.
  8. The grp_mat table is where you can enter a name set with certain specific criteria and use that name set in the edd_ctrl table.
  9. The grp_color table is where you can enter a name set with certain specific criteria and use that name set in the edd_ctrl table.

Where are the

menu options located

Menu Options Located?

From the Optifacts main menu:

Type

Select Option 3 – Editor Utilities and press enter.

Type

Select Option 13 - Estimated Delivery Date and press enter.

Here you have two options, either the editor or reports. 

  • The editor menu will have has the menus for all of the tables above to use for this project.
  • The reports are on the EDD tables only listed above.

Here is how the calculation is done

Job gets entered in

How the Calculation Gets Done

  1. The job gets entered into the system.
  2. Take the entered time and compare it against the cut-off time for this account. If the time is under the cut-off time, start counting the days from today.  If the entered time is above the cut-off time, start counting the days from the next day instead of today.
  3. If there is NO cut-off time for an account, the program will NOT ‘NOT’ continue to estimate the date.
  4. Next, the program will go goes to the edd_liteup table and search . It searches through each lite-up the job has turned on and add adds the appropriate time for each one. It will look looks for a specific account entry first and then try tries account 0‘0’.
  5. Then we go to the edd_ctrl control to see what type of job it is. It starts with the highest number first and works it its way down until it finds a match.  It does each eye separately.  Once it finds a match, it looks if any lite-ups are in the record.  If there are lite-ups in the entry, and the lite-up is turned on, it will override overrides the value from the edd_liteups table.  If the job is a split and the value for each eye is different, the computer will select selects the largest longest time. 
Note

Special Note:  The style, material, and color fields use both name sets and regular Optifacts codes.  The program

will try

tries to find a group name set first, and if not there, then it looks for the regular Optifacts code, and if that fails

go

, it goes to all Optifacts codes.  An example is

SV

: ‘SV’ for a Single Vision lens.  The program looks for

SV

‘SV’ as a group name set, and then it

will look

looks for

SV

‘SV code,’ and finally, it

will look

looks for all style codes.

6. Now that we have the time needed, we go to the calendar to find out the date. The program looks at each day to see if the lab works and finds the estimated date

the

for job

will be done

completion.

7. Once the date

is

gets found, the program puts a record in the job_data table with the date. This record allows you to print the date on the work ticket and invoice.

The edd_liteups table will holdholds, by account ship-to, the amount of time it takes for each lite-up.  The program will first look looks at the specific account and then fall falls back to account 0 ‘0’ for any remaining lite-ups.Image Removed

Image Added

The edd_ctrl table controls the rest of the days/time

calculation

calculations.  The lens specs lines can contain a group name set for that group table, a specific code (like SV or P for lens styles), or an ‘*’ for all.  The lite-ups section is for exceptions to the edd_liteups table.  You can over-ride a date/time from the edd_liteups table that might take longer because of a

certain

particular style of lens.  An example is that a flat-top might take 3 days for

crizal

Crizal, but a single vision might only take 2 days for

crizal.Image Removed

Crizal.

Image Added

Image Added



To view and download these instructions as a PDF file, click on the following document image.

View file
nameEstimated Delivery Date (EDD) Calculation Explanation.pdf
height250