chrono.xml 2.78 KB
Newer Older
SNA's avatar
SNA committed
1
2
3
4
5
<?xml version="1.0" encoding="utf-8"?>
<!--

Used model for all chrono number

6
Parameters :
SNA's avatar
SNA committed
7
8
9
10
11
12
13
14

id : chrono id, must be the same in the php code (define_mail_categories.php)

separator : if the value is not empty, each elements in the chrono number is cut by the separator

maarch_var : var used in php code

date : return date Y m or d
Giovannoni Laurent's avatar
Giovannoni Laurent committed
15
16
17
18
                                - year
                                - month
                                - day
                                - full date (return day.month.year)
19
maarch_functions:
Giovannoni Laurent's avatar
Giovannoni Laurent committed
20
21
22
23
                                - chr_global : execute new chrono  number for each ressources, this number is restored when the next year began
                                - chr_by_entity : execute new chrono number for each ressources by entity
                                - category_char : return a signle letter -> E for incoming, S for outgoing
                                - chr_by_category : execute new chrono number for each ressources by category
24
                                - chr_by_res_id : execute new chrono number for each ressources by res_id
SNA's avatar
SNA committed
25

26
27

text : return string element writted in value tag
SNA's avatar
SNA committed
28
29
30

-->
<root>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
31
32
33
    <CHRONO>
        <id>incoming</id>
        <separator></separator>
34
35
36
37
38
39
40
41
        <ELEMENT>
            <type>text</type>
            <value>MAARCH</value>
        </ELEMENT>
        <ELEMENT>
            <type>text</type>
            <value>/</value>
        </ELEMENT>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
42
43
44
45
46
        <ELEMENT>
            <type>date</type>
            <value>year</value>
        </ELEMENT>
        <ELEMENT>
47
48
            <type>maarch_functions</type>
            <value>category_char</value>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
49
50
51
        </ELEMENT>
        <ELEMENT>
            <type>maarch_functions</type>
52
            <value>chr_by_category</value>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
53
54
55
56
        </ELEMENT>
    </CHRONO>
    <CHRONO>
        <id>outgoing</id>
57
58
59
60
61
62
63
64
65
66
67
68
69
        <separator></separator>
        <ELEMENT>
            <type>text</type>
            <value>MAARCH</value>
        </ELEMENT>
        <ELEMENT>
            <type>text</type>
            <value>/</value>
        </ELEMENT>
        <ELEMENT>
            <type>date</type>
            <value>year</value>
        </ELEMENT>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
70
        <ELEMENT>
71
72
            <type>maarch_functions</type>
            <value>category_char</value>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
73
74
        </ELEMENT>
        <ELEMENT>
75
76
            <type>maarch_functions</type>
            <value>chr_by_category</value>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
77
78
79
80
        </ELEMENT>
    </CHRONO>
    <CHRONO>
        <id>internal</id>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
81
        <separator>/</separator>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
82
        <ELEMENT>
83
            <type>text</type>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
84
            <value>internal</value>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
85
        </ELEMENT>
86
        <ELEMENT>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
87
88
            <type>date</type>
            <value>full_date</value>
89
90
91
        </ELEMENT>
        <ELEMENT>
            <type>maarch_functions</type>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
92
            <value>chr_by_category</value>
93
        </ELEMENT>
Giovannoni Laurent's avatar
Giovannoni Laurent committed
94
    </CHRONO>
SNA's avatar
SNA committed
95
</root>