summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/template/en/default/bug/create/cost-centers.none.tmpl
blob: 73a61f2d7d124ce4b74bfcd7bfae51a838c4e9d0 (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
[%# 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 - Taipei 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)"
    "2000 - General Marketing"
    "2200 - Mar Com"
    "2300 - Lifecycle Marketing"
    "2320 - Developer Marketing"
    "2400 - Brand Engagement"
    "2500 - Marketing Operations"
    "2700 - Product Marketing"
    "5000 - Firefox"
    "5500 - Product Engineering"
    "5650 - Services Engineering"
    "5660 - Production Cloud Infrastructure"
    "5670 - Development Cloud Infrastructure"
    "5700 - Firefox UX"
    "5800 - Product Management"
    "5900 - Program Management"
    "6000 - Connected Devices"
    "6110 - Connected Devices Engineering"
    "6150 - Connected Devices Program Management"
    "6160 - Firefox OS QA"
    "6200 - Connected Devices Product Management"
    "6300 - Firefox OS UX"
    "6400 - Web App Development"
    "6500 - Partnerships"
    "6600 - Product Strategy & Insights"
    "6650 - Design"
    "6700 - Connected Devices Business Operations"
    "6750 - Connected Devices Product/UX"
    "6800 - Connected Devices Collaboration"
    "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;
%]