User Tools

Site Tools

Translations of this page:

en:lenscatalog:version061002:head.dat

Head.Dat



Description

In the Head.Dat file, all data occurring only once in the database is saved.

Tabellenstruktur

No. Fieldname Pos Length Format Comments
1*Fieldname130T30Field names are listed in the next paragraph.
2Fieldvalue31??The length is dependent on the field value. The format and therefore the field length is defined “Fieldnames”

Fieldnames

No. Name Format Description/Comment
1versionT10Version of the data format. The value of this version is always identical to “6.10.2” (without quotation marks)
1aSoftware-idT40Unambiguous name incl. version of the software with which the price list data were generated.
1bcommentT200Brief comment on the price list description
1cuid-manufacturerT50Unique number clearly allocated to manufacturer to clearly mark the database(corresponds to file name in ZIP file)
1duid-posteditT50Unique number clearly allocated to reprocessing to clearly mark the database. (Note: value or format not yet defined, i.e. evaluation not yet possible).
2Valid-fromD
3Valid-untilDOpen if no expiry date has been specified.
4countryT22-digit international country code according to ISO 3166-1 ALPHA-2
DE = Germany
EN = England
FR = France
NL = Netherlands
etc.

This value is also used in the ZIP file name. (See chapter 5.3)
4alanguageT2The code for the language version is defined according to ISO 639-1 Alpha-2.
EN = English
FR = French
DE = German
etc.

This value is also used in the ZIP file name. (See chapter 5.3)
5manufacturer-codeT3Used codes are specified in the company list
5amanufacturer-subcodeT3Is used to define different price lists of a manufacturer (e.g. for purchasing groups)
6manufacturer-nameT40
6amanufacturer-subnameT40
7manufacturer-name-1T40Postal address Name1
8manufacturer-name-2T40Postal address Name1
9streetT40
10zip-codeT8
11cityT40
12po-box-zip-codeT8Zip code, P.O.Box
13po-box-textT40Text P.O.Box
14phoneT40
15faxT40
16phone-orderT40
17fax-orderT40
18mailT40
19URLT40
20pricedefinition-cylinderT1“+” = the prices are displayed for plus cylinders
“-” = the prices are displayed for minus cylinders
21cylindergroup-base9Standard = 4 dpt
22cylindergroup-19Standard = 6 dpt
23cylindergroup-29Standard = 8 dpt
24prismgroup-199Standard = 03
25prismgroup-299Standard = 06
26prismgroup-399Standard = 10
27prismgroup-499Standard = 15
28prismgroup-599Standard = ' '
29currencydescriptionT3Euros or country-specific currency
30currencydescription-decimalsT3Ct or country-specific currency
31pricefield-019900 = not filled
10 = EK (purchase price)
20 = recomm. VK (selling price)
21 = recomm. VK incl. insurance
25 = recomm. VK level 1 CH
26 = recomm. VK level 2 (CH)
40 = bonus EK
50 = VK (material price incl. manual processing, or calculated VK)
52 = manual processing
55 = calc. VK level 1 CH
56 = calc. VK level 2 (CH)
90 = other EK
91 = other VK
(re fields 90, 91: description is specified in the “pricefield-description-01” field)
32pricefield-0299Like price field 1
33pricefield-0399Like price field 1
34pricefield-0499Like price field 1
35pricefield-0599Like price field 1
36pricefield-description-01T40If the value for price field 01 = 90 or 91, the relevant price type is specified in plain text.
37pricefield-description-02T40See description of price field 1
38pricefield-description-03T40See description of price field 1
39pricefield-description-04T40See description of price field 1
40pricefield-description-05T40See description of price field 1
41Characterset99The value stands for the number of the ISO 8859 character set used in these files.
1 = ISO 8859-1 (Latin-1)
2 = ISO 8859-2 (Latin-2)
5 = ISO 8859-5 (Cyrillic)
etc.
See also http://de.wikipedia.org/wiki/ASCII
42printpricelist-filename-pdfT99File name of price list PDF

A file with this file name must be available in the ZIP-file.

Spaces and special characters must not be used for these file names.
43printpricelist-filename-xfdfT99File name of price list XFDF

A file with this file name must be available in the ZIP-file.

Spaces and special characters must not be used for these file names.
44Pricefield-decimals90 (or empty) = two decimal places
1 = no decimal place

Example

123456789012345678901234567890123456789012345678901234567890
version                       6.10.2
valid-from                    20031210
valid-until                   20031210
country                       DE
language                      DE
manufacturer-code             GLK
manufacturer-subcode          EKG
manufacturer-name             Glasfabrik Köln
manufacturer-name-1
manufacturer-name-2
street                        Musterstrasse 23
zip-code                      51143

usw......

(Note: The first, underlined line merely serves for a better overview and is not available in the file).

Notes

The version is always displayed in the format x.y.z, with x being the major version, y the minor version and z the subminor version. The numbers are not limited to one digit. (6.6.23 is possible).

Five price fields, ”pricefield-xx”, were defined, specifying the price type in the LensPrice.Dat and OptionsPrice.Dat files. If the value of a ”pricefield-xx” price field is 00 or if the price field is not available as a data set in the Head.Dat file, no price is available for this price field in LensPrice.Dat or OptionsPrice.Dat. If a value has been specified for a price field, prices must be specified in LensPrice.Dat and OptionsPrice.Dat or be available as a data set.

“pricedefinition-cylinder” indicates whether the price groups for lenses are displayed as minus or plus cylinders. This field has been added because different displays are used in the various countries and the present format has been developed for international use.

Higher cylinders

In order to manage a uniform extra charge for all lenses for cylinders from a certain value , the Head.Dat file contains the following fields: „cylindergroup-base“, “cylindergroup-1“ and “cylindergroup-2“. The following values have been assigned to these fields as a standard:

cylindergroup-base	= 4
cylindergroup-1	= 6
cylindergroup-2	= 8

For cylindergroup-1 and cylindergroup-2, the extra charges are stored in the “OptionsPrice.Dat” file under the IT code Z2 or Z3. See the notes under point 13.3 (38). Usually, the price groups for the lenses are specified with the maximum of one cylinder which is specified in cylindergroup-base.

Example: Sph/Cyl 6/0 6/2 6/4

Price group 6/6 is not required, as the extra charge for “higher cylinders” can be used here.

Example: If the price of a lens with Sph 5.25D /cyl 5.50D is to be determined, the price for price group 6/4 is used, and the price from the Options.Dat file with IT code Z2 is then added to this price.

If the extra charge defined in cylindergroup-1 and cylindergroup-2 or Z2 and Z3 is not applicable, price groups with the accordingly high cylinder group can be created for this lens in the LensPrice.Dat file (e.g. 6/6). As soon as a price group with accordingly high values (above the value of cylindergroup-base), is available, this price is automatically used for price determination and the extra charge for higher cylinders is ignored.

Please note that the power range specified in the LensRange.Dat file is always decisive for the deliverability of a lens.

en/lenscatalog/version061002/head.dat.txt · Last modified: 2016/10/19 10:48 by sebastianraring