...
- <Standard> - will be the display name in the Manager
- <CountryCode> - will be the first block of digits in the generated EAN code
- <ManufacturerCode> - will be the second block of digits in the generated EAN code
- <ProductCodeFrom> - will be the first possible number used for each part
- <ProductCodeTo> - will be the last possible number used for each part
- <CurrentIndex> - is the current counter for the number used
- <SpecificationTypePersistentId> - is the persistent ID of the specification where the EAN number will be stored on parts
- <AddToSpecification> - if true the new number will be added as a specification
- <SetAsPartNumber> - if true the new number will become the part number
- <CopyPartNumberToIdentity> - if true part number will be copied to identity when assigning a new part number
- <CopyPartNumberToPersistentId> - if true part number will be copied to persistent identity, with format Part_<id> when assigning a new part number
Note that either AddToSpecification or SetAsPartNumber shall be set to true, not both.
Code Block | |
---|---|
|
...
| |||
<AutoPartNumberSeriesList> <!-- EAN-13 configuration --> |
...
<AutoPartNumberSeries> |
...
<Standard>EAN13</Standard> |
...
<CountryCode>12</CountryCode> |
...
<ManufacturerCode>12345</ManufacturerCode> |
...
<ProductCodeFrom>0</ProductCodeFrom> |
...
<ProductCodeTo>99999</ProductCodeTo> |
...
<CurrentIndex>32</CurrentIndex> |
...
<SpecificationTypePersistentId>EAN-13</SpecificationTypePersistentId> |
...
<AddToSpecification>true</AddToSpecification> |
...
<SetAsPartNumber>false</SetAsPartNumber> |
...
</AutoPartNumberSeries> |
...
<!-- Part number configuration --> |
...
<AutoPartNumberSeries> |
...
<Standard>None</Standard> |
...
<CountryCode>12</CountryCode> |
...
<ManufacturerCode>12345</ManufacturerCode> |
...
<ProductCodeFrom>0</ProductCodeFrom> |
...
<ProductCodeTo>99999</ProductCodeTo> |
...
<CurrentIndex>0</CurrentIndex> |
...
<SpecificationTypePersistentId/> |
...
<AddToSpecification>false</AddToSpecification> |
...
<SetAsPartNumber>true</SetAsPartNumber> |
...
<CopyPartNumberToIdentity>true</CopyPartNumberToIdentity> <CopyPartNumberToPersistentId>true</CopyPartNumberToPersistentId> </AutoPartNumberSeries> |
...
</AutoPartNumberSeriesList> |
Create a Specification type in Manager
...