Loymax, 2025

Wiki source code of Наборы шаблонов


Show last authors
1 (% class="lead" %)
2 The template set contains templates of identifiers and number of certificates
3
4 Each certificate can have several identifiers: a number, a barcode, a QR-code and three magnetic strips. The pattern set can contain any combination of these identifiers, but at least one must be specified. The template set also limits the number of certificates that will be issued with a given set of identifiers. This limitation is called **dial capacity**.
5
6 |(% style="border-color:white" %){{lightbox image="04.png"/}}|(% style="border-color:white" %)(((
7 Section **Money Certificates > Template Sets** displays all template sets created in the system. Template sets can be filtered by **Title**, **State **(archived and unarchived), **Loyalty Program** and **Partner**.
8
9 The template set can be edited [[image:edit.PNG||width="30"]] only if it is not added to any [[certificate issues>>doc:Main.Using.Gift_certificates.Gift_certificates_MMP.Certificate_orders.WebHome]]. If a pattern set is used in at least one issue, you can view information [[image:view_info.PNG||width="30"]] about the pattern set.
10
11 Non-archival set of templates can be sent to the archive [[image:archive.png||width="30"]], and the archive - restore from the archive [[image:recover.png||width="30"]].
12
13 To create a new set of templates, click **Create **at the top of the section.
14 )))
15 |(% style="border-color:white" %){{lightbox image="05.png"/}}|(% style="border-color:white" %)(((
16 In the window for creating a new set of templates, fill in the following fields:
17
18 * **Template set name**;
19 * **Loyalty program**, within the framework of which it is supposed to use this set of templates;
20 * **Partner**, for which this template set is created;
21 * **Set capacity** is the number of certificates that can be generated by the given set of templates.
22
23 Then click **Add template** and select one or more identifiers. For each identifier in the set, you must specify the template by which the identifier value will be generated. The template uses special meta variables.
24
25 To generate unique certificate identifiers, each template must contain mandatory meta variables. Optional metavariables can be used as desired. The order in which the metavariables are arranged in the template is not important. Any characters can be used between them (!"№;%:?*()_+-=).
26 )))
27
28 (% class="table-bordered" %)
29 |=Met variable|=Description
30 (% class="active" %)|(% colspan="2" style="text-align:center" %)**Mandatory metavariables**
31 |**$Emission.Id(<length>)**|Provides the ID of the current [[certificate issue>>doc:Main.Using.Gift_certificates.Gift_certificates_MMP.Certificate_orders.WebHome]] and adds zeros to the specified length. For example, if Id=1 and length = 5, then the meta variable will return the value 00001.
32 |**$Emission.Counter()**|The value is generated by the counter unique within [[certificate release>>doc:Main.Using.Gift_certificates.Gift_certificates_MMP.Certificate_orders.WebHome]]. The length of the value is calculated automatically based on the specified capacity in the pattern set.
33 (% class="active" %)|(% colspan="2" style="text-align:center" %)**Unnecessary metavariables**
34 |**$Emission.Number()**|(((
35 This metavariable can be used only if the template for the certificate number is already defined in the template set. The meta variable returns the value that was generated for the certificate number. It can also be used in conjunction with other meta-variables.
36
37 For example, based on the pattern for the certificate number ##$Emission.Id(5)$Emission.Counter()## the number 00001001 was generated. If the barcode pattern ##$Emission.Number()## is specified, it will return the same value 00001001.
38
39 Thus, the ##$Emission.Number()##// //may be used instead of the combination ##$Emission.Id(5)$Emission.Counter()## in all templates except the one for the certificate number.
40 )))
41 |**$Emission.Random(<length>)**|Met variable adds a random number to the number.
42 |**$Emission.CheckDigitAlgorithm(Ean13/Luhn16)**|Adds the check digit to the number. In the template it is necessary to specify one of the check digit types - ##Ean13### or ##Luhn16###. A meta variable is added at the end of the pattern.
43
44 = Examples of money certificate number templates =
45
46 ==== Template Set Capacity - 5000 ====
47
48 To generate 5000 certificates, we recommend using a template like **25$Emission.Id(2)$Emission.Counter()$Emission.Random(4)$Emission.CheckDigitAlgorithm(Ean13)**.
49
50 An example of a certificate number with this pattern: **2501000551854**, where:
51
52 * **25 **is the beginning of the number;
53 * **01** is the id of the certificate issue;
54 * **0005** is number of the certificate in the issue;
55 * **5185** is a random number;
56 * **4 ** is a check digit calculated by Ean13 algorithm.
57
58 ==== Template Set Capacity - 10000 ====
59
60 For 100,000 certificates, we recommend using a template like **2599$Emission.Random(4)$Emission.Id(2)$Emission.Counter()$Emission.CheckDigitAlgorithm(Luhn16)**.
61
62 An example of a certificate number with this pattern: **2599138902000034**, where:
63
64 * **2599 ** is the beginning of the number;
65 * **1389 ** is a random number;
66 * **02 ** is an id of certificate issue;
67 * **00003 ** is the certificate number in the issue;
68 * **4** is the check digit calculated using the Luhn16 algorithm.

News
Version history
Tags
Glossary
Site