Wednesday 10 August 2022

Sunglass

 

Sunglass Restrictions.

Some frames have restrictions on the lenses and treatments that are permitted. An example is where Sunglasses are sold with restricted lenses and tints, mirror coatings that match the frame colour.


There is a file Sunglass.txt placed in the masterdata folder to allow these additional restrictions to be specified.


The file is a name / value pair in format

Code=Option.


Each frame with a restriction is entered as the code and is given an option list.

Eg

FRAME123=L01:C01

FRAME456=L01:L02:C01:C02

FRAME789=L02:C02


This means that Frame123 can only be sold with lenses and treatments assigned to options L01 or C01.

These options are handled in the same way.

Eg

L01=LENS1:LENS2:LENS3

L02=LENS4:LENS5:LENS6

C01=BLUEMIR:ROSEMIR

C02=GREYMIR


The result will be that FRAME123 can be sold with lenses in option L01 (LENS1, LENS2 or LENS3) and treatments in option C01 (BLUEMIR, ROSEMIR).