summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/bug/create/cost-centers.none.tmpl
blob: 38356c8300191c1738f8f2c4b40cd81a5ab8022e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[%# This Source Code Form is subject to the terms of the Mozilla Public
  # License, v. 2.0. If a copy of the MPL was not distributed with this
  # file, You can obtain one at http://mozilla.org/MPL/2.0/.
  #
  # This Source Code Form is "Incompatible With Secondary Licenses", as
  # defined by the Mozilla Public License, v. 2.0.
  #%]

[%
  cost_centers = [
    "1000 - Support Services"
    "1001 - Office of Chair"
    "1002 - Participation"
    "1003 - Office of CIO"
    "1005 - Corp Consolidation & Elimination"
    "1006 - The Development Center"
    "1010 - Office of CTO"
    "1011 - Research"
    "1012 - Tech Evangelism"
    "1013 - Advanced Technology Lab"
    "1014 - Technology Strategy"
    "1020 - Chief of Staff"
    "1100 - Policy"
    "1120 - Legal"
    "1150 - Business Development"
    "1210 - Finance and Accounting"
    "1211 - Accounting"
    "1212 - Finance"
    "1213 - Payroll"
    "1250 - Facilities"
    "1320 - People Operations"
    "1340 - People"
    "1350 - Recruiting"
    "1360 - Metrics"
    "1400 - IT and Network"
    "1410 - Infrastructure Eng & Ops (Infra)"
    "1420 - Enterprise Information Security (EIS)"
    "1430 - End User Services (EUS)"
    "1440 - Enterprise Applications & Services (EApps)"
    "1500 - General Content Services"
    "1501 - Engineering"
    "1502 - Sales"
    "1503 - Product"
    "2000 - General Marketing"
    "2200 - Mar Com"
    "2300 - Lifecycle Marketing"
    "2320 - Developer Marketing"
    "2400 - Brand Engagement"
    "2500 - Marketing Operations"
    "2700 - Product Marketing"
    "5500 - Product Engineering"
    "5650 - Services Engineering"
    "5700 - Firefox UX"
    "5000 - Firefox"
    "5800 - Product Management"
    "5900 - Program Management"
    "5660 - Production Cloud Infrastructure"
    "5670 - Development Cloud Infrastructure"
    "6000 - Mobile"
    "6110 - Firefox OS Engineering I"
    "6140 - Firefox OS Automation"
    "6150 - Firefox OS Engineering Program Management"
    "6160 - Firefox OS QA"
    "6200 - Firefox OS Product Management"
    "6220 - Firefox OS Product Marketing"
    "6300 - Firefox OS UX"
    "6500 - Mobile Business Development"
    "7000 - Mobile Planning and Ecosystem"
    "7110 - Mobile Partner Engineering"
    "7120 - Mobile Planning"
    "7130 - Mobile Apps Engineering"
    "7150 - Mobile Partners Contents"
    "7200 - Mobile Ecosystem Program Management"
    "7220 - Mobile Partner Products"
    "7500 - Reviews and Community"
    "8000 - Engineering Platform"
    "8200 - Platform Operations"
    "8750 - Localization (l10n)"
    "8800 - Product Management"
    "8900 - Platform Engineering"
    "900 - Mozilla Foundation"
    "901 - MoFo NSF"
  ];

  # the above list is in a format that mirrors the output we get from our financial system
  # some forms prefer different ordering, so cut it up and reorder
  cost_centers_by_name = [];
  cost_centers_by_number = [];
  FOREACH cost_center IN cost_centers;
    matches = cost_center.match('^(\d+) - (.+)');
    cost_centers_by_name.push(matches.1 _ " (" _ matches.0 _ ")");
    num = matches.0 FILTER format("%04d");
    cost_centers_by_number.push(num _ " - " _ matches.1);
  END;
  cost_centers_by_name = cost_centers_by_name.sort;
  cost_centers = cost_centers_by_number.sort;
%]