[Home] [Help]
PACKAGE BODY: APPS.PAY_IN_ETW_STRUCT
Source
1 PACKAGE BODY pay_in_etw_struct AS
2 /* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
3
4 g_debug BOOLEAN ;
5 --------------------------------------------------------------------------
6 -- Name : INIT_CODE --
7 -- Type : PROCEDURE --
8 -- Access : Public --
9 -- Description : Procedure to initialize the elements for ETW --
10 -- Parameters : --
11 -- IN : N/A --
12 -- OUT : N/A --
13 -- RETURN : N/A --
14 -- Change History : --
15 --------------------------------------------------------------------------
16 -- Bug# Date Userid Description --
17 --------------------------------------------------------------------------
18 -- 5332442 26-JUL-06 statkar Created --
19 --------------------------------------------------------------------------
20 PROCEDURE init_code
21 IS
22 l_procedure CONSTANT VARCHAR2(100):= g_package||'init_code';
23 l_message VARCHAR2(255);
24 BEGIN
25 g_debug := hr_utility.debug_enabled;
26 pay_in_utils.set_location(g_debug, 'Entering: '||l_procedure,10);
27
28 /* Various Templates are as follows
29
30 ----------------------------------------------------------------
31 | Sr# | Classification | Template Name |
32 ----------------------------------------------------------------
33 | 1 | Fringe Benefits | Fringe Benefits |
34 | 2 | Allowances | Fixed Allowance |
35 | 3 | Allowances | Actual Expense Allowances |
36 | 4 | Perquisites | Free Education |
37 | 5 | Perquisites | Company Accommodation |
38 | 6 | Perquisites | Loan at Concessional Rate |
39 | 7 | Perquisites | Company Movable Assets |
40 | 8 | Perquisites | Other Perquisites |
41 | 9 | Earnings | Leave Travel Concession |
42 | 10 | Earnings | Earnings |
43 | 11 | Perquisites | Transfer of Company Assets |
44 | 12 | Employer Charges| Employer Charges |
45 | 13 | Perquisites | Lunch |
46 | 14 | Perquisites | Car |
47 ----------------------------------------------------------------
48 */
49 ----------------------------------------------------------------
50 -- TEMPLATE FOR FRINGE BENEFITS STARTS
51 ----------------------------------------------------------------
52 pay_in_utils.set_location(g_debug, l_procedure,20);
53 g_template_obj(1).template_name := 'Fringe Benefits';
54 g_template_obj(1).category := 'Fringe Benefits';
55 g_template_obj(1).priority := 19000;
56
57 ----------------------------------------------------------------
58 -- Exclusion Rules for Fringe Benefits Template start
59 ----------------------------------------------------------------
60 g_template_obj(1).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
61 g_template_obj(1).er_setup(1).value := 'N';
62 g_template_obj(1).er_setup(1).descr := 'Exclusion rule for Advances.';
63 g_template_obj(1).er_setup(1).tag := 'ADVANCE';
64 g_template_obj(1).er_setup(1).rule_id := null;
65
66 g_template_obj(1).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION3';
67 g_template_obj(1).er_setup(2).value := 'N';
68 g_template_obj(1).er_setup(2).descr := 'Exclusion rule for Medical Benefits.';
69 g_template_obj(1).er_setup(2).tag := 'MEDICAL';
70 g_template_obj(1).er_setup(2).rule_id := null;
71
72 g_template_obj(1).er_setup(3).ff_column := 'CONFIGURATION_INFORMATION4';
73 g_template_obj(1).er_setup(3).value := 'N';
74 g_template_obj(1).er_setup(3).descr := 'Exclusion rule for Medical Projection.';
75 g_template_obj(1).er_setup(3).tag := 'MEDPROJ';
76 g_template_obj(1).er_setup(3).rule_id := null;
77
78 g_template_obj(1).er_setup(4).ff_column := 'CONFIGURATION_INFORMATION5';
79 g_template_obj(1).er_setup(4).value := 'N';
80 g_template_obj(1).er_setup(4).descr := 'Exclusion rule for Fringe Benefit Taxation.';
81 g_template_obj(1).er_setup(4).tag := 'FBT';
82 g_template_obj(1).er_setup(4).rule_id := null;
83
84
85 ----------------------------------------------------------------
86 -- Exclusion Rules for Fringe Benefits Template end
87 ----------------------------------------------------------------
88
89 ----------------------------------------------------------------
93 g_template_obj(1).iv_setup(1).uom := 'M';
90 -- Input Values for Fringe Benefits Template start
91 ----------------------------------------------------------------
92 g_template_obj(1).iv_setup(1).input_value_name := 'Pay Value';
94 g_template_obj(1).iv_setup(1).mandatory_flag := 'X';
95 g_template_obj(1).iv_setup(1).lookup_type := null;
96 g_template_obj(1).iv_setup(1).default_value := null;
97 g_template_obj(1).iv_setup(1).def_value_column := null;
98 g_template_obj(1).iv_setup(1).min_value := null;
99 g_template_obj(1).iv_setup(1).warn_or_error := null;
100 g_template_obj(1).iv_setup(1).balance_name := null;
101 g_template_obj(1).iv_setup(1).exclusion_tag := null;
102
103 g_template_obj(1).iv_setup(2).input_value_name := 'Component Name';
104 g_template_obj(1).iv_setup(2).uom := 'C';
105 g_template_obj(1).iv_setup(2).mandatory_flag := 'X';
106 g_template_obj(1).iv_setup(2).lookup_type := null;
107 g_template_obj(1).iv_setup(2).default_value := null;
108 g_template_obj(1).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
109 g_template_obj(1).iv_setup(2).min_value := null;
110 g_template_obj(1).iv_setup(2).warn_or_error := null;
111 g_template_obj(1).iv_setup(2).balance_name := null;
112 g_template_obj(1).iv_setup(2).exclusion_tag := null;
113
114 g_template_obj(1).iv_setup(3).input_value_name := 'Benefit Amount';
115 g_template_obj(1).iv_setup(3).uom := 'M';
116 g_template_obj(1).iv_setup(3).mandatory_flag := 'Y';
117 g_template_obj(1).iv_setup(3).lookup_type := null;
118 g_template_obj(1).iv_setup(3).default_value := null;
119 g_template_obj(1).iv_setup(3).def_value_column := null;
120 g_template_obj(1).iv_setup(3).min_value := null;
121 g_template_obj(1).iv_setup(3).warn_or_error := null;
122 g_template_obj(1).iv_setup(3).balance_name := 'Reimbursement Amount';
123 g_template_obj(1).iv_setup(3).exclusion_tag := null;
124
125 g_template_obj(1).iv_setup(4).input_value_name := 'Salary under Sec 17';
126 g_template_obj(1).iv_setup(4).uom := 'M';
127 g_template_obj(1).iv_setup(4).mandatory_flag := 'X';
128 g_template_obj(1).iv_setup(4).lookup_type := null;
129 g_template_obj(1).iv_setup(4).default_value := null;
130 g_template_obj(1).iv_setup(4).def_value_column := null;
131 g_template_obj(1).iv_setup(4).min_value := null;
132 g_template_obj(1).iv_setup(4).warn_or_error := null;
133 g_template_obj(1).iv_setup(4).balance_name := 'Salary under Section 17';
134 g_template_obj(1).iv_setup(4).exclusion_tag := 'MEDICAL';
135
136 g_template_obj(1).iv_setup(5).input_value_name := 'Maximum Annual Limit';
137 g_template_obj(1).iv_setup(5).uom := 'M';
138 g_template_obj(1).iv_setup(5).mandatory_flag := 'N';
139 g_template_obj(1).iv_setup(5).lookup_type := null;
140 g_template_obj(1).iv_setup(5).default_value := null;
141 g_template_obj(1).iv_setup(5).def_value_column := null;
142 g_template_obj(1).iv_setup(5).min_value := 0;
143 g_template_obj(1).iv_setup(5).warn_or_error := 'E';
144 g_template_obj(1).iv_setup(5).balance_name := null;
145 g_template_obj(1).iv_setup(5).exclusion_tag := null;
146
147 g_template_obj(1).iv_setup(6).input_value_name := 'Adjusted Amount';
148 g_template_obj(1).iv_setup(6).uom := 'M';
149 g_template_obj(1).iv_setup(6).mandatory_flag := 'X';
150 g_template_obj(1).iv_setup(6).lookup_type := null;
151 g_template_obj(1).iv_setup(6).default_value := null;
152 g_template_obj(1).iv_setup(6).def_value_column := null;
153 g_template_obj(1).iv_setup(6).min_value := null;
154 g_template_obj(1).iv_setup(6).warn_or_error := null;
155 g_template_obj(1).iv_setup(6).balance_name := 'Adjusted Advance for Fringe Benefits';
156 g_template_obj(1).iv_setup(6).exclusion_tag := null;
157
158 g_template_obj(1).iv_setup(7).input_value_name := 'Add to Net Pay';
159 g_template_obj(1).iv_setup(7).uom := 'C';
160 g_template_obj(1).iv_setup(7).mandatory_flag := 'Y';
161 g_template_obj(1).iv_setup(7).lookup_type := 'YES_NO';
162 g_template_obj(1).iv_setup(7).default_value := 'Y';
163 g_template_obj(1).iv_setup(7).def_value_column := null;
164 g_template_obj(1).iv_setup(7).min_value := null;
165 g_template_obj(1).iv_setup(7).warn_or_error := null;
166 g_template_obj(1).iv_setup(7).balance_name := null;
167 g_template_obj(1).iv_setup(7).exclusion_tag := null;
168
169 g_template_obj(1).iv_setup(8).input_value_name := 'Medical Benefit';
170 g_template_obj(1).iv_setup(8).uom := 'C';
171 g_template_obj(1).iv_setup(8).mandatory_flag := 'X';
172 g_template_obj(1).iv_setup(8).lookup_type := 'YES_NO';
173 g_template_obj(1).iv_setup(8).default_value := 'Y';
174 g_template_obj(1).iv_setup(8).def_value_column := null;
175 g_template_obj(1).iv_setup(8).min_value := null;
176 g_template_obj(1).iv_setup(8).warn_or_error := null;
177 g_template_obj(1).iv_setup(8).balance_name := null;
178 g_template_obj(1).iv_setup(8).exclusion_tag := 'MEDICAL';
179
180 g_template_obj(1).iv_setup(9).input_value_name := 'Annual Projected Value';
181 g_template_obj(1).iv_setup(9).uom := 'M';
182 g_template_obj(1).iv_setup(9).mandatory_flag := 'X';
183 g_template_obj(1).iv_setup(9).lookup_type := null;
184 g_template_obj(1).iv_setup(9).default_value := null;
185 g_template_obj(1).iv_setup(9).def_value_column := null;
186 g_template_obj(1).iv_setup(9).min_value := null;
187 g_template_obj(1).iv_setup(9).warn_or_error := null;
191 g_template_obj(1).iv_setup(10).input_value_name := 'Projected Taxable Value';
188 g_template_obj(1).iv_setup(9).balance_name := 'Annual Projection for Reimbursement';
189 g_template_obj(1).iv_setup(9).exclusion_tag := null;
190
192 g_template_obj(1).iv_setup(10).uom := 'M';
193 g_template_obj(1).iv_setup(10).mandatory_flag := 'X';
194 g_template_obj(1).iv_setup(10).lookup_type := null;
195 g_template_obj(1).iv_setup(10).default_value := null;
196 g_template_obj(1).iv_setup(10).def_value_column := null;
197 g_template_obj(1).iv_setup(10).min_value := null;
198 g_template_obj(1).iv_setup(10).warn_or_error := null;
199 g_template_obj(1).iv_setup(10).balance_name := 'Projected Salary under Section 17';
200 g_template_obj(1).iv_setup(10).exclusion_tag := 'MEDPROJ';
201
202
203
204 ----------------------------------------------------------------
205 -- Input Values for Fringe Benefits Template end
206 ----------------------------------------------------------------
207
208 ----------------------------------------------------------------
209 -- Balance Feeds for Fringe Benefits Template start
210 ----------------------------------------------------------------
211 g_template_obj(1).bf_setup(1).balance_name := 'Medical Reimbursement Amount';
212 g_template_obj(1).bf_setup(1).iv_name := 'Benefit Amount';
213 g_template_obj(1).bf_setup(1).scale := 1;
214 g_template_obj(1).bf_setup(1).exclusion_tag := 'MEDICAL';
215
216
217 g_template_obj(1).bf_setup(2).balance_name := 'Outstanding Advance for Fringe Benefits';
218 g_template_obj(1).bf_setup(2).iv_name := 'Adjusted Amount';
219 g_template_obj(1).bf_setup(2).scale := -1;
220 g_template_obj(1).bf_setup(2).exclusion_tag := null;
221
222
223 ----------------------------------------------------------------
224 -- Balance Feeds for Fringe Benefits Template end
225 ----------------------------------------------------------------
226
227 ----------------------------------------------------------------
228 -- Formula Setup for Fringe Benefits Template starts
229 ----------------------------------------------------------------
230 g_template_obj(1).uf_setup.formula_name := '_FB_CALC';
231 g_template_obj(1).uf_setup.status_rule_id := null;
232 g_template_obj(1).uf_setup.description := 'Formula for Fringe Benefits';
233
234 g_template_obj(1).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
235 g_template_obj(1).uf_setup.frs_setup(1).result_rule_type := 'D';
236 g_template_obj(1).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
237 g_template_obj(1).uf_setup.frs_setup(1).element_name := null;
238 g_template_obj(1).uf_setup.frs_setup(1).severity_level := null;
239 g_template_obj(1).uf_setup.frs_setup(1).exclusion_tag := null;
240
241 g_template_obj(1).uf_setup.frs_setup(2).result_name := 'FRINGE_BENEFIT_VALUE';
242 g_template_obj(1).uf_setup.frs_setup(2).result_rule_type := 'D';
243 g_template_obj(1).uf_setup.frs_setup(2).input_value_name := 'Benefit Amount';
244 g_template_obj(1).uf_setup.frs_setup(2).element_name := null;
245 g_template_obj(1).uf_setup.frs_setup(2).severity_level := null;
246 g_template_obj(1).uf_setup.frs_setup(2).exclusion_tag := null;
247
248 g_template_obj(1).uf_setup.frs_setup(3).result_name := 'SALARY_UNDER_SEC171';
249 g_template_obj(1).uf_setup.frs_setup(3).result_rule_type := 'D';
250 g_template_obj(1).uf_setup.frs_setup(3).input_value_name := 'Salary under Sec 17';
251 g_template_obj(1).uf_setup.frs_setup(3).element_name := null;
252 g_template_obj(1).uf_setup.frs_setup(3).severity_level := null;
253 g_template_obj(1).uf_setup.frs_setup(3).exclusion_tag := 'MEDICAL';
254
255 g_template_obj(1).uf_setup.frs_setup(4).result_name := 'ADJUSTED_ADVANCE';
256 g_template_obj(1).uf_setup.frs_setup(4).result_rule_type := 'D';
257 g_template_obj(1).uf_setup.frs_setup(4).input_value_name := 'Adjusted Amount';
258 g_template_obj(1).uf_setup.frs_setup(4).element_name := null;
259 g_template_obj(1).uf_setup.frs_setup(4).severity_level := null;
260 g_template_obj(1).uf_setup.frs_setup(4).exclusion_tag := null;
261
262 g_template_obj(1).uf_setup.frs_setup(5).result_name := 'ANNUAL_PROJECTED_VALUE';
263 g_template_obj(1).uf_setup.frs_setup(5).result_rule_type := 'D';
264 g_template_obj(1).uf_setup.frs_setup(5).input_value_name := 'Annual Projected Value';
265 g_template_obj(1).uf_setup.frs_setup(5).element_name := null;
266 g_template_obj(1).uf_setup.frs_setup(5).severity_level := null;
267 g_template_obj(1).uf_setup.frs_setup(5).exclusion_tag := null;
268
269 g_template_obj(1).uf_setup.frs_setup(6).result_name := 'PROJECTED_SALARY_UNDER_SEC171';
270 g_template_obj(1).uf_setup.frs_setup(6).result_rule_type := 'D';
271 g_template_obj(1).uf_setup.frs_setup(6).input_value_name := 'Projected Taxable Value';
272 g_template_obj(1).uf_setup.frs_setup(6).element_name := null;
273 g_template_obj(1).uf_setup.frs_setup(6).severity_level := null;
274 g_template_obj(1).uf_setup.frs_setup(6).exclusion_tag := 'MEDPROJ';
275
276 g_template_obj(1).uf_setup.frs_setup(7).result_name := 'TAXABLE_FRINGE_BENEFIT';
277 g_template_obj(1).uf_setup.frs_setup(7).result_rule_type := 'I';
278 g_template_obj(1).uf_setup.frs_setup(7).input_value_name := 'Taxable Fringe Benefit';
279 g_template_obj(1).uf_setup.frs_setup(7).element_name := ' Taxable Value';
280 g_template_obj(1).uf_setup.frs_setup(7).severity_level := null;
281 g_template_obj(1).uf_setup.frs_setup(7).exclusion_tag := 'FBT';
282
286 g_template_obj(1).uf_setup.frs_setup(8).element_name := ' Taxable Value';
283 g_template_obj(1).uf_setup.frs_setup(8).result_name := 'COMPONENT_NAME';
284 g_template_obj(1).uf_setup.frs_setup(8).result_rule_type := 'I';
285 g_template_obj(1).uf_setup.frs_setup(8).input_value_name := 'Component Name';
287 g_template_obj(1).uf_setup.frs_setup(8).severity_level := null;
288 g_template_obj(1).uf_setup.frs_setup(8).exclusion_tag := 'FBT';
289
290
291
292 ----------------------------------------------------------------
293 -- Formula Setup for Fringe Benefits Template ends
294 ----------------------------------------------------------------
295
296 ----------------------------------------------------------------
297 -- Add. Element Setup for Fringe Benefits Template starts
298 ----------------------------------------------------------------
299 g_template_obj(1).ae_setup(1).element_name := ' Advance';
300 g_template_obj(1).ae_setup(1).classification := 'Advances';
301 g_template_obj(1).ae_setup(1).exclusion_tag := 'ADVANCE';
302 g_template_obj(1).ae_setup(1).priority := -12000;
303
304 g_template_obj(1).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
305 g_template_obj(1).ae_setup(1).iv_setup(1).uom := 'M';
306 g_template_obj(1).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
307 g_template_obj(1).ae_setup(1).iv_setup(1).lookup_type := null;
308 g_template_obj(1).ae_setup(1).iv_setup(1).default_value := null;
309 g_template_obj(1).ae_setup(1).iv_setup(1).def_value_column := null;
310 g_template_obj(1).ae_setup(1).iv_setup(1).min_value := null;
311 g_template_obj(1).ae_setup(1).iv_setup(1).warn_or_error := null;
312 g_template_obj(1).ae_setup(1).iv_setup(1).balance_name := null;
313 g_template_obj(1).ae_setup(1).iv_setup(1).exclusion_tag := null;
314
315 g_template_obj(1).ae_setup(1).iv_setup(2).input_value_name := 'Advance Amount';
316 g_template_obj(1).ae_setup(1).iv_setup(2).uom := 'M';
317 g_template_obj(1).ae_setup(1).iv_setup(2).mandatory_flag := 'N';
318 g_template_obj(1).ae_setup(1).iv_setup(2).lookup_type := null;
319 g_template_obj(1).ae_setup(1).iv_setup(2).default_value := null;
320 g_template_obj(1).ae_setup(1).iv_setup(2).def_value_column := null;
321 g_template_obj(1).ae_setup(1).iv_setup(2).min_value := null;
322 g_template_obj(1).ae_setup(1).iv_setup(2).warn_or_error := null;
323 g_template_obj(1).ae_setup(1).iv_setup(2).balance_name := null;
324 g_template_obj(1).ae_setup(1).iv_setup(2).exclusion_tag := null;
325
326 g_template_obj(1).ae_setup(1).iv_setup(3).input_value_name := 'Excess Advance';
327 g_template_obj(1).ae_setup(1).iv_setup(3).uom := 'C';
328 g_template_obj(1).ae_setup(1).iv_setup(3).mandatory_flag := 'Y';
329 g_template_obj(1).ae_setup(1).iv_setup(3).lookup_type := 'IN_ADVANCE_OPTIONS';
330 g_template_obj(1).ae_setup(1).iv_setup(3).default_value := 'PENDING';
331 g_template_obj(1).ae_setup(1).iv_setup(3).def_value_column := null;
332 g_template_obj(1).ae_setup(1).iv_setup(3).min_value := null;
333 g_template_obj(1).ae_setup(1).iv_setup(3).warn_or_error := null;
334 g_template_obj(1).ae_setup(1).iv_setup(3).balance_name := null;
335 g_template_obj(1).ae_setup(1).iv_setup(3).exclusion_tag := null;
336
337 g_template_obj(1).ae_setup(1).iv_setup(4).input_value_name := 'Add to Net Pay';
338 g_template_obj(1).ae_setup(1).iv_setup(4).uom := 'C';
339 g_template_obj(1).ae_setup(1).iv_setup(4).mandatory_flag := 'Y';
340 g_template_obj(1).ae_setup(1).iv_setup(4).lookup_type := 'YES_NO';
341 g_template_obj(1).ae_setup(1).iv_setup(4).default_value := 'Y';
342 g_template_obj(1).ae_setup(1).iv_setup(4).def_value_column := null;
343 g_template_obj(1).ae_setup(1).iv_setup(4).min_value := null;
344 g_template_obj(1).ae_setup(1).iv_setup(4).warn_or_error := null;
345 g_template_obj(1).ae_setup(1).iv_setup(4).balance_name := null;
346 g_template_obj(1).ae_setup(1).iv_setup(4).exclusion_tag := null;
347
348 g_template_obj(1).ae_setup(1).iv_setup(5).input_value_name := 'Component Name';
349 g_template_obj(1).ae_setup(1).iv_setup(5).uom := 'C';
350 g_template_obj(1).ae_setup(1).iv_setup(5).mandatory_flag := 'X';
351 g_template_obj(1).ae_setup(1).iv_setup(5).lookup_type := null;
352 g_template_obj(1).ae_setup(1).iv_setup(5).default_value := null;
353 g_template_obj(1).ae_setup(1).iv_setup(5).def_value_column := 'CONFIGURATION_INFORMATION1';
354 g_template_obj(1).ae_setup(1).iv_setup(5).min_value := null;
355 g_template_obj(1).ae_setup(1).iv_setup(5).warn_or_error := null;
356 g_template_obj(1).ae_setup(1).iv_setup(5).balance_name := null;
357 g_template_obj(1).ae_setup(1).iv_setup(5).exclusion_tag := null;
358
359 g_template_obj(1).ae_setup(1).bf_setup(1).balance_name := 'Advance for Fringe Benefits';
360 g_template_obj(1).ae_setup(1).bf_setup(1).iv_name := 'Advance Amount';
361 g_template_obj(1).ae_setup(1).bf_setup(1).scale := 1;
362 g_template_obj(1).ae_setup(1).bf_setup(1).exclusion_tag := null;
363
364 g_template_obj(1).ae_setup(1).bf_setup(2).balance_name := 'Outstanding Advance for Fringe Benefits';
365 g_template_obj(1).ae_setup(1).bf_setup(2).iv_name := 'Advance Amount';
366 g_template_obj(1).ae_setup(1).bf_setup(2).scale := 1;
367 g_template_obj(1).ae_setup(1).bf_setup(2).exclusion_tag := null;
368
369 g_template_obj(1).ae_setup(1).uf_setup.formula_name := '_FB_ADV_CALC';
370 g_template_obj(1).ae_setup(1).uf_setup.status_rule_id := null;
371 g_template_obj(1).ae_setup(1).uf_setup.description := 'Advance Calculations for Earnings';
375 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).result_rule_type := 'D';
372
373
374 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
376 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
377 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).element_name := null;
378 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).severity_level := null;
379 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).exclusion_tag := null;
380
381 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(2).result_name := 'EXCESS_ADVANCE';
382 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(2).result_rule_type := 'I';
383 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(2).input_value_name := 'Excess Advance';
384 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(2).element_name := ' Excess Advance';
385 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(2).severity_level := null;
386 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(2).exclusion_tag := null;
387
388 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(3).result_name := 'COMPONENT_NAME';
389 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(3).result_rule_type := 'I';
390 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(3).input_value_name := 'Component Name';
391 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(3).element_name := ' Excess Advance';
392 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(3).severity_level := null;
393 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(3).exclusion_tag := null;
394
395
396 g_template_obj(1).ae_setup(2).element_name := ' Adjust';
397 g_template_obj(1).ae_setup(2).classification := 'Earnings';
398 g_template_obj(1).ae_setup(2).exclusion_tag := 'ADVANCE';
399 g_template_obj(1).ae_setup(2).priority := 4000;
400
401 g_template_obj(1).ae_setup(2).iv_setup(1).input_value_name := 'Pay Value';
402 g_template_obj(1).ae_setup(2).iv_setup(1).uom := 'M';
403 g_template_obj(1).ae_setup(2).iv_setup(1).mandatory_flag := 'X';
404 g_template_obj(1).ae_setup(2).iv_setup(1).lookup_type := null;
405 g_template_obj(1).ae_setup(2).iv_setup(1).default_value := null;
406 g_template_obj(1).ae_setup(2).iv_setup(1).def_value_column := null;
407 g_template_obj(1).ae_setup(2).iv_setup(1).min_value := null;
408 g_template_obj(1).ae_setup(2).iv_setup(1).warn_or_error := null;
409 g_template_obj(1).ae_setup(2).iv_setup(1).balance_name := null;
410 g_template_obj(1).ae_setup(2).iv_setup(1).exclusion_tag := null;
411
412 g_template_obj(1).ae_setup(2).iv_setup(2).input_value_name := 'Component Name';
413 g_template_obj(1).ae_setup(2).iv_setup(2).uom := 'C';
414 g_template_obj(1).ae_setup(2).iv_setup(2).mandatory_flag := 'X';
415 g_template_obj(1).ae_setup(2).iv_setup(2).lookup_type := null;
416 g_template_obj(1).ae_setup(2).iv_setup(2).default_value := 'Fringe Benefits';
417 g_template_obj(1).ae_setup(2).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
418 g_template_obj(1).ae_setup(2).iv_setup(2).min_value := null;
419 g_template_obj(1).ae_setup(2).iv_setup(2).warn_or_error := null;
420 g_template_obj(1).ae_setup(2).iv_setup(2).balance_name := null;
421 g_template_obj(1).ae_setup(2).iv_setup(2).exclusion_tag := null;
422
423 g_template_obj(1).ae_setup(2).bf_setup(1).balance_name := 'Outstanding Advance for Fringe Benefits';
424 g_template_obj(1).ae_setup(2).bf_setup(1).iv_name := 'Pay Value';
425 g_template_obj(1).ae_setup(2).bf_setup(1).scale := -1;
426 g_template_obj(1).ae_setup(2).bf_setup(1).exclusion_tag := null;
427
428 g_template_obj(1).ae_setup(3).element_name := ' Recover';
429 g_template_obj(1).ae_setup(3).classification := 'Voluntary Deductions';
430 g_template_obj(1).ae_setup(3).exclusion_tag := 'ADVANCE';
431 g_template_obj(1).ae_setup(3).priority := 26000;
432
433 g_template_obj(1).ae_setup(3).iv_setup(1).input_value_name := 'Pay Value';
434 g_template_obj(1).ae_setup(3).iv_setup(1).uom := 'M';
435 g_template_obj(1).ae_setup(3).iv_setup(1).mandatory_flag := 'X';
436 g_template_obj(1).ae_setup(3).iv_setup(1).lookup_type := null;
437 g_template_obj(1).ae_setup(3).iv_setup(1).default_value := null;
438 g_template_obj(1).ae_setup(2).iv_setup(1).def_value_column := null;
439 g_template_obj(1).ae_setup(3).iv_setup(1).min_value := null;
440 g_template_obj(1).ae_setup(3).iv_setup(1).warn_or_error := null;
441 g_template_obj(1).ae_setup(3).iv_setup(1).balance_name := null;
442 g_template_obj(1).ae_setup(3).iv_setup(1).exclusion_tag := null;
443
444 g_template_obj(1).ae_setup(3).iv_setup(2).input_value_name := 'Component Name';
445 g_template_obj(1).ae_setup(3).iv_setup(2).uom := 'C';
446 g_template_obj(1).ae_setup(3).iv_setup(2).mandatory_flag := 'X';
447 g_template_obj(1).ae_setup(3).iv_setup(2).lookup_type := null;
448 g_template_obj(1).ae_setup(3).iv_setup(2).default_value := null;
449 g_template_obj(1).ae_setup(3).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
450 g_template_obj(1).ae_setup(3).iv_setup(2).min_value := null;
451 g_template_obj(1).ae_setup(3).iv_setup(2).warn_or_error := null;
452 g_template_obj(1).ae_setup(3).iv_setup(2).balance_name := null;
453 g_template_obj(1).ae_setup(3).iv_setup(2).exclusion_tag := null;
454
455 g_template_obj(1).ae_setup(3).iv_setup(3).input_value_name := 'Adjustment Amount';
456 g_template_obj(1).ae_setup(3).iv_setup(3).uom := 'M';
457 g_template_obj(1).ae_setup(3).iv_setup(3).mandatory_flag := 'X';
458 g_template_obj(1).ae_setup(3).iv_setup(3).lookup_type := null;
462 g_template_obj(1).ae_setup(3).iv_setup(3).warn_or_error := null;
459 g_template_obj(1).ae_setup(3).iv_setup(3).default_value := null;
460 g_template_obj(1).ae_setup(3).iv_setup(3).def_value_column := null;
461 g_template_obj(1).ae_setup(3).iv_setup(3).min_value := null;
463 g_template_obj(1).ae_setup(3).iv_setup(3).balance_name := null;
464 g_template_obj(1).ae_setup(3).iv_setup(3).exclusion_tag := null;
465
466 g_template_obj(1).ae_setup(3).bf_setup(1).balance_name := 'Outstanding Advance for Fringe Benefits';
467 g_template_obj(1).ae_setup(3).bf_setup(1).iv_name := 'Pay Value';
468 g_template_obj(1).ae_setup(3).bf_setup(1).scale := -1;
469 g_template_obj(1).ae_setup(3).bf_setup(1).exclusion_tag := null;
470
471 g_template_obj(1).ae_setup(3).bf_setup(2).balance_name := 'Outstanding Advance for Fringe Benefits';
472 g_template_obj(1).ae_setup(3).bf_setup(2).iv_name := 'Adjustment Amount';
473 g_template_obj(1).ae_setup(3).bf_setup(2).scale := -1;
474 g_template_obj(1).ae_setup(3).bf_setup(2).exclusion_tag := null;
475
476 g_template_obj(1).ae_setup(4).element_name := ' Bills';
477 g_template_obj(1).ae_setup(4).classification := 'Information';
478 g_template_obj(1).ae_setup(4).exclusion_tag := null;
479 g_template_obj(1).ae_setup(4).priority := -12000;
480
481 g_template_obj(1).ae_setup(4).iv_setup(1).input_value_name := 'Bill Amount';
482 g_template_obj(1).ae_setup(4).iv_setup(1).uom := 'M';
483 g_template_obj(1).ae_setup(4).iv_setup(1).mandatory_flag := 'Y';
484 g_template_obj(1).ae_setup(4).iv_setup(1).lookup_type := null;
485 g_template_obj(1).ae_setup(4).iv_setup(1).default_value := null;
486 g_template_obj(1).ae_setup(4).iv_setup(1).def_value_column := null;
487 g_template_obj(1).ae_setup(4).iv_setup(1).min_value := null;
488 g_template_obj(1).ae_setup(4).iv_setup(1).warn_or_error := null;
489 g_template_obj(1).ae_setup(4).iv_setup(1).balance_name := 'Bills Submitted';
490 g_template_obj(1).ae_setup(4).iv_setup(1).exclusion_tag := null;
491
492 g_template_obj(1).ae_setup(4).iv_setup(2).input_value_name := 'Component Name';
493 g_template_obj(1).ae_setup(4).iv_setup(2).uom := 'C';
494 g_template_obj(1).ae_setup(4).iv_setup(2).mandatory_flag := 'X';
495 g_template_obj(1).ae_setup(4).iv_setup(2).lookup_type := null;
496 g_template_obj(1).ae_setup(4).iv_setup(2).default_value := null;
497 g_template_obj(1).ae_setup(4).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
498 g_template_obj(1).ae_setup(4).iv_setup(2).min_value := null;
499 g_template_obj(1).ae_setup(4).iv_setup(2).warn_or_error := null;
500 g_template_obj(1).ae_setup(4).iv_setup(2).balance_name := null;
501 g_template_obj(1).ae_setup(4).iv_setup(2).exclusion_tag := null;
502
503
504 ----------------------------------------------------------------
505 -- Balance Feeds for Medical Bills start
506 ----------------------------------------------------------------
507 g_template_obj(1).ae_setup(4).bf_setup(1).balance_name := 'Medical Bills';
508 g_template_obj(1).ae_setup(4).bf_setup(1).iv_name := 'Bill Amount';
509 g_template_obj(1).ae_setup(4).bf_setup(1).scale := 1;
510 g_template_obj(1).ae_setup(4).bf_setup(1).exclusion_tag := 'MEDICAL';
511
512
513 g_template_obj(1).ae_setup(5).element_name := ' Excess Advance';
514 g_template_obj(1).ae_setup(5).classification := 'Information';
515 g_template_obj(1).ae_setup(5).exclusion_tag := 'ADVANCE';
516 g_template_obj(1).ae_setup(5).priority := 2000;
517
518 g_template_obj(1).ae_setup(5).iv_setup(1).input_value_name := 'Excess Advance';
519 g_template_obj(1).ae_setup(5).iv_setup(1).uom := 'C';
520 g_template_obj(1).ae_setup(5).iv_setup(1).mandatory_flag := 'X';
521 g_template_obj(1).ae_setup(5).iv_setup(1).lookup_type := 'IN_ADVANCE_OPTIONS';
522 g_template_obj(1).ae_setup(5).iv_setup(1).default_value := 'PENDING';
523 g_template_obj(1).ae_setup(5).iv_setup(1).def_value_column := null;
524 g_template_obj(1).ae_setup(5).iv_setup(1).min_value := null;
525 g_template_obj(1).ae_setup(5).iv_setup(1).warn_or_error := null;
526 g_template_obj(1).ae_setup(5).iv_setup(1).balance_name := null;
527 g_template_obj(1).ae_setup(5).iv_setup(1).exclusion_tag := null;
528
529 g_template_obj(1).ae_setup(5).iv_setup(2).input_value_name := 'Component Name';
530 g_template_obj(1).ae_setup(5).iv_setup(2).uom := 'C';
531 g_template_obj(1).ae_setup(5).iv_setup(2).mandatory_flag := 'X';
532 g_template_obj(1).ae_setup(5).iv_setup(2).lookup_type := null;
533 g_template_obj(1).ae_setup(5).iv_setup(2).default_value := 'Fringe Benefits';
534 g_template_obj(1).ae_setup(5).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
535 g_template_obj(1).ae_setup(5).iv_setup(2).min_value := null;
536 g_template_obj(1).ae_setup(5).iv_setup(2).warn_or_error := null;
537 g_template_obj(1).ae_setup(5).iv_setup(2).balance_name := null;
538 g_template_obj(1).ae_setup(5).iv_setup(2).exclusion_tag := null;
539
540 g_template_obj(1).ae_setup(5).uf_setup.formula_name := '_FB_EXC_ADV';
541 g_template_obj(1).ae_setup(5).uf_setup.status_rule_id := null;
542 g_template_obj(1).ae_setup(5).uf_setup.description := 'Excess Advance Calculations for Fringe Benefits';
543
544 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(1).result_name := 'ADJUSTMENT_AMT';
545 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(1).result_rule_type := 'I';
546 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(1).input_value_name := 'Adjustment Amount';
550
547 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(1).element_name := ' Recover';
548 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(1).severity_level := null;
549 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(1).exclusion_tag := null;
551
552 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(2).result_name := 'RECOVERED_ADVANCE';
553 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(2).result_rule_type := 'I';
554 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
555 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(2).element_name := ' Recover';
556 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(2).severity_level := null;
557 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(2).exclusion_tag := null;
558
559 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(3).result_name := 'SALARY_SEC171';
560 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(3).result_rule_type := 'I';
561 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(3).input_value_name := 'Pay Value';
562 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(3).element_name := ' Adjust';
563 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(3).severity_level := null;
564 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(3).exclusion_tag := null;
565
566 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(4).result_name := 'COMPONENT_NAME_PAY';
567 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(4).result_rule_type := 'I';
568 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(4).input_value_name := 'Component Name';
569 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(4).element_name := ' Adjust';
570 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(4).severity_level := null;
571 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(4).exclusion_tag := null;
572
573 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(5).result_name := 'COMPONENT_NAME_REC';
574 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(5).result_rule_type := 'I';
575 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(5).input_value_name := 'Component Name';
576 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(5).element_name := ' Recover';
577 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(5).severity_level := null;
578 g_template_obj(1).ae_setup(5).uf_setup.frs_setup(5).exclusion_tag := null;
579
580 g_template_obj(1).ae_setup(6).element_name := ' Taxable Value';
581 g_template_obj(1).ae_setup(6).classification := 'Information';
582 g_template_obj(1).ae_setup(6).exclusion_tag := 'FBT';
583 g_template_obj(1).ae_setup(6).priority := 300;
584
585 g_template_obj(1).ae_setup(6).iv_setup(1).input_value_name := 'Taxable Fringe Benefit';
586 g_template_obj(1).ae_setup(6).iv_setup(1).uom := 'M';
587 g_template_obj(1).ae_setup(6).iv_setup(1).mandatory_flag := 'X';
588 g_template_obj(1).ae_setup(6).iv_setup(1).lookup_type := null;
589 g_template_obj(1).ae_setup(6).iv_setup(1).default_value := null;
590 g_template_obj(1).ae_setup(6).iv_setup(1).def_value_column := null;
591 g_template_obj(1).ae_setup(6).iv_setup(1).min_value := null;
592 g_template_obj(1).ae_setup(6).iv_setup(1).warn_or_error := null;
593 g_template_obj(1).ae_setup(6).iv_setup(1).balance_name := 'Taxable Fringe Benefit';
594 g_template_obj(1).ae_setup(6).iv_setup(1).exclusion_tag := null;
595
596 g_template_obj(1).ae_setup(6).iv_setup(2).input_value_name := 'Component Name';
597 g_template_obj(1).ae_setup(6).iv_setup(2).uom := 'C';
598 g_template_obj(1).ae_setup(6).iv_setup(2).mandatory_flag := 'X';
599 g_template_obj(1).ae_setup(6).iv_setup(2).lookup_type := null;
600 g_template_obj(1).ae_setup(6).iv_setup(2).default_value := null;
601 g_template_obj(1).ae_setup(6).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
602 g_template_obj(1).ae_setup(6).iv_setup(2).min_value := null;
603 g_template_obj(1).ae_setup(6).iv_setup(2).warn_or_error := null;
604 g_template_obj(1).ae_setup(6).iv_setup(2).balance_name := null;
605 g_template_obj(1).ae_setup(6).iv_setup(2).exclusion_tag := null;
606
607
608
609 ----------------------------------------------------------------
610 -- Add. Element Setup for Fringe Benefits Template ends
611 ----------------------------------------------------------------
612
613 ----------------------------------------------------------------
614 -- Add. Element Setup for Fringe Benefits Template ends
615 ----------------------------------------------------------------
616
617 ----------------------------------------------------------------
618 -- TEMPLATE FOR FRINGE BENEFITS ENDS
619 ----------------------------------------------------------------
620
621 ----------------------------------------------------------------
622 -- TEMPLATE FOR FIXED ALLOWANCES STARTS
623 ----------------------------------------------------------------
624 pay_in_utils.set_location(g_debug, l_procedure,30);
625 g_template_obj(2).template_name := 'Fixed Allowance';
626 g_template_obj(2).category := 'Allowances';
627 g_template_obj(2).priority := 9000;
628
629 ----------------------------------------------------------------
630 -- Exclusion Rules for Fixed Allowances Template start
631 ----------------------------------------------------------------
632 g_template_obj(2).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
633 g_template_obj(2).er_setup(1).value := 'N';
634 g_template_obj(2).er_setup(1).descr := 'Exclusion rule for Projections';
635 g_template_obj(2).er_setup(1).tag := 'PROJECT';
636 g_template_obj(2).er_setup(1).rule_id := null;
637
638 g_template_obj(2).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION3';
642 g_template_obj(2).er_setup(2).rule_id := null;
639 g_template_obj(2).er_setup(2).value := 'N';
640 g_template_obj(2).er_setup(2).descr := 'Exclusion rule for CEA/HEA';
641 g_template_obj(2).er_setup(2).tag := 'EXSEC10';
643
644 g_template_obj(2).er_setup(3).ff_column := 'CONFIGURATION_INFORMATION4';
645 g_template_obj(2).er_setup(3).value := 'N';
646 g_template_obj(2).er_setup(3).descr := 'Exclusion rule for Advances';
647 g_template_obj(2).er_setup(3).tag := 'ADVANCE';
648 g_template_obj(2).er_setup(3).rule_id := null;
649 ----------------------------------------------------------------
650 -- Exclusion Rules for Fixed Allowances Template end
651 ----------------------------------------------------------------
652
653 ----------------------------------------------------------------
654 -- Input Values for Fixed Allowances Template start
655 ----------------------------------------------------------------
656 g_template_obj(2).iv_setup(1).input_value_name := 'Pay Value';
657 g_template_obj(2).iv_setup(1).uom := 'M';
658 g_template_obj(2).iv_setup(1).mandatory_flag := 'X';
659 g_template_obj(2).iv_setup(1).lookup_type := null;
660 g_template_obj(2).iv_setup(1).default_value := null;
661 g_template_obj(2).iv_setup(1).def_value_column := null;
662 g_template_obj(2).iv_setup(1).min_value := null;
663 g_template_obj(2).iv_setup(1).warn_or_error := null;
664 g_template_obj(2).iv_setup(1).balance_name := null;
665 g_template_obj(2).iv_setup(1).exclusion_tag := null;
666
667 g_template_obj(2).iv_setup(2).input_value_name := 'Allowance Amount';
668 g_template_obj(2).iv_setup(2).uom := 'M';
669 g_template_obj(2).iv_setup(2).mandatory_flag := 'Y';
670 g_template_obj(2).iv_setup(2).lookup_type := null;
671 g_template_obj(2).iv_setup(2).default_value := null;
672 g_template_obj(2).iv_setup(2).def_value_column := null;
673 g_template_obj(2).iv_setup(2).min_value := null;
674 g_template_obj(2).iv_setup(2).warn_or_error := null;
675 g_template_obj(2).iv_setup(2).balance_name := null;
676 g_template_obj(2).iv_setup(2).exclusion_tag := null;
677
678 g_template_obj(2).iv_setup(3).input_value_name := 'Standard Value';
679 g_template_obj(2).iv_setup(3).uom := 'M';
680 g_template_obj(2).iv_setup(3).mandatory_flag := 'N';
681 g_template_obj(2).iv_setup(3).lookup_type := null;
682 g_template_obj(2).iv_setup(3).default_value := null;
683 g_template_obj(2).iv_setup(3).def_value_column := null;
684 g_template_obj(2).iv_setup(3).min_value := null;
685 g_template_obj(2).iv_setup(3).warn_or_error := null;
686 g_template_obj(2).iv_setup(3).balance_name := 'Allowances Standard Value';
687 g_template_obj(2).iv_setup(3).exclusion_tag := 'PROJECT';
688
689 g_template_obj(2).iv_setup(4).input_value_name := 'Taxable Value';
690 g_template_obj(2).iv_setup(4).uom := 'M';
691 g_template_obj(2).iv_setup(4).mandatory_flag := 'X';
692 g_template_obj(2).iv_setup(4).lookup_type := null;
693 g_template_obj(2).iv_setup(4).default_value := null;
694 g_template_obj(2).iv_setup(4).def_value_column := null;
695 g_template_obj(2).iv_setup(4).min_value := null;
696 g_template_obj(2).iv_setup(4).warn_or_error := null;
697 g_template_obj(2).iv_setup(4).balance_name := 'Taxable Allowances';
698 g_template_obj(2).iv_setup(4).exclusion_tag := null;
699
700 g_template_obj(2).iv_setup(5).input_value_name := 'Standard Taxable Value';
701 g_template_obj(2).iv_setup(5).uom := 'M';
702 g_template_obj(2).iv_setup(5).mandatory_flag := 'X';
703 g_template_obj(2).iv_setup(5).lookup_type := null;
704 g_template_obj(2).iv_setup(5).default_value := null;
705 g_template_obj(2).iv_setup(5).def_value_column := null;
706 g_template_obj(2).iv_setup(5).min_value := null;
707 g_template_obj(2).iv_setup(5).warn_or_error := null;
708 g_template_obj(2).iv_setup(5).balance_name := 'Taxable Allowances for Projection';
709 g_template_obj(2).iv_setup(5).exclusion_tag := 'PROJECT';
710
711 g_template_obj(2).iv_setup(6).input_value_name := 'Component Name';
712 g_template_obj(2).iv_setup(6).uom := 'C';
713 g_template_obj(2).iv_setup(6).mandatory_flag := 'X';
714 g_template_obj(2).iv_setup(6).lookup_type := null;
715 g_template_obj(2).iv_setup(6).default_value := null;
716 g_template_obj(2).iv_setup(6).def_value_column := 'CONFIGURATION_INFORMATION1';
717 g_template_obj(2).iv_setup(6).min_value := null;
718 g_template_obj(2).iv_setup(6).warn_or_error := null;
719 g_template_obj(2).iv_setup(6).balance_name := null;
720 g_template_obj(2).iv_setup(6).exclusion_tag := null;
721
722 g_template_obj(2).iv_setup(7).input_value_name := 'Claim Exemption Sec10';
723 g_template_obj(2).iv_setup(7).uom := 'C';
724 g_template_obj(2).iv_setup(7).mandatory_flag := 'Y';
725 g_template_obj(2).iv_setup(7).lookup_type := 'YES_NO';
726 g_template_obj(2).iv_setup(7).default_value := 'Y';
727 g_template_obj(2).iv_setup(7).def_value_column := null;
728 g_template_obj(2).iv_setup(7).min_value := null;
729 g_template_obj(2).iv_setup(7).warn_or_error := 'W';
730 g_template_obj(2).iv_setup(7).balance_name := null;
731 g_template_obj(2).iv_setup(7).exclusion_tag := 'EXSEC10';
732
733 g_template_obj(2).iv_setup(8).input_value_name := 'Adjusted Amount';
734 g_template_obj(2).iv_setup(8).uom := 'M';
735 g_template_obj(2).iv_setup(8).mandatory_flag := 'X';
736 g_template_obj(2).iv_setup(8).lookup_type := null;
737 g_template_obj(2).iv_setup(8).default_value := null;
741 g_template_obj(2).iv_setup(8).balance_name := 'Adjusted Advance for Allowances';
738 g_template_obj(2).iv_setup(8).def_value_column := null;
739 g_template_obj(2).iv_setup(8).min_value := null;
740 g_template_obj(2).iv_setup(8).warn_or_error := null;
742 g_template_obj(2).iv_setup(8).exclusion_tag := null;
743
744 ----------------------------------------------------------------
745 -- Input Values for Fixed Allowances Template end
746 ----------------------------------------------------------------
747
748 ----------------------------------------------------------------
749 -- Balance Feeds for Fixed Allowances Template start
750 ----------------------------------------------------------------
751 g_template_obj(2).bf_setup(1).balance_name := 'Actual Allowance Amount';
752 g_template_obj(2).bf_setup(1).iv_name := 'Allowance Amount';
753 g_template_obj(2).bf_setup(1).scale := 1;
754 g_template_obj(2).bf_setup(1).exclusion_tag := null;
755
756
757
758 g_template_obj(2).bf_setup(2).balance_name := 'Outstanding Advance for Allowances';
759 g_template_obj(2).bf_setup(2).iv_name := 'Adjusted Amount';
760 g_template_obj(2).bf_setup(2).scale := -1;
761 g_template_obj(2).bf_setup(2).exclusion_tag := null;
762
763 ----------------------------------------------------------------
764 -- Balance Feeds for Fixed Allowances Template end
765 ----------------------------------------------------------------
766
767 ----------------------------------------------------------------
768 -- Formula Setup for Fixed Allowances Template starts
769 ----------------------------------------------------------------
770 g_template_obj(2).uf_setup.formula_name := '_FIXED_CALC';
771 g_template_obj(2).uf_setup.status_rule_id := null;
772 g_template_obj(2).uf_setup.description := 'Formula for All Fixed Allowances';
773
774 g_template_obj(2).uf_setup.frs_setup(1).result_name := 'TAXABLE_VALUE';
775 g_template_obj(2).uf_setup.frs_setup(1).result_rule_type := 'D';
776 g_template_obj(2).uf_setup.frs_setup(1).input_value_name := 'Taxable Value';
777 g_template_obj(2).uf_setup.frs_setup(1).element_name := null;
778 g_template_obj(2).uf_setup.frs_setup(1).severity_level := null;
779 g_template_obj(2).uf_setup.frs_setup(1).exclusion_tag := null;
780
781 g_template_obj(2).uf_setup.frs_setup(2).result_name := 'ALLOWANCE_AMOUNT';
782 g_template_obj(2).uf_setup.frs_setup(2).result_rule_type := 'D';
783 g_template_obj(2).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
784 g_template_obj(2).uf_setup.frs_setup(2).element_name := null;
785 g_template_obj(2).uf_setup.frs_setup(2).severity_level := null;
786 g_template_obj(2).uf_setup.frs_setup(2).exclusion_tag := null;
787
788 g_template_obj(2).uf_setup.frs_setup(3).result_name := 'STANDARD_TAXABLE_VALUE';
789 g_template_obj(2).uf_setup.frs_setup(3).result_rule_type := 'D';
790 g_template_obj(2).uf_setup.frs_setup(3).input_value_name := 'Standard Taxable Value';
791 g_template_obj(2).uf_setup.frs_setup(3).element_name := null;
792 g_template_obj(2).uf_setup.frs_setup(3).severity_level := null;
793 g_template_obj(2).uf_setup.frs_setup(3).exclusion_tag := 'PROJECT';
794
795 g_template_obj(2).uf_setup.frs_setup(4).result_name := 'L_ERROR_MESG';
796 g_template_obj(2).uf_setup.frs_setup(4).result_rule_type := 'M';
797 g_template_obj(2).uf_setup.frs_setup(4).input_value_name := null;
798 g_template_obj(2).uf_setup.frs_setup(4).element_name := null;
799 g_template_obj(2).uf_setup.frs_setup(4).severity_level := 'F';
800 g_template_obj(2).uf_setup.frs_setup(4).exclusion_tag := 'EXSEC10';
801
802 g_template_obj(2).uf_setup.frs_setup(5).result_name := 'ADJUSTED_ADVANCE';
803 g_template_obj(2).uf_setup.frs_setup(5).result_rule_type := 'D';
804 g_template_obj(2).uf_setup.frs_setup(5).input_value_name := 'Adjusted Amount';
805 g_template_obj(2).uf_setup.frs_setup(5).element_name := null;
806 g_template_obj(2).uf_setup.frs_setup(5).severity_level := null;
807 g_template_obj(2).uf_setup.frs_setup(5).exclusion_tag := null;
808 ----------------------------------------------------------------
809 -- Formula Setup for Fixed Allowances Template ends
810 ----------------------------------------------------------------
811 ----------------------------------------------------------------
812 -- Add. Element Setup for Fixed Allowances Template starts
813 ----------------------------------------------------------------
814 g_template_obj(2).ae_setup(1).element_name := ' Advance';
815 g_template_obj(2).ae_setup(1).classification := 'Advances';
816 g_template_obj(2).ae_setup(1).exclusion_tag := 'ADVANCE';
817 g_template_obj(2).ae_setup(1).priority := -2000;
818
819 g_template_obj(2).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
820 g_template_obj(2).ae_setup(1).iv_setup(1).uom := 'M';
821 g_template_obj(2).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
822 g_template_obj(2).ae_setup(1).iv_setup(1).lookup_type := null;
823 g_template_obj(2).ae_setup(1).iv_setup(1).default_value := null;
824 g_template_obj(2).ae_setup(1).iv_setup(1).def_value_column := null;
825 g_template_obj(2).ae_setup(1).iv_setup(1).min_value := null;
826 g_template_obj(2).ae_setup(1).iv_setup(1).warn_or_error := null;
827 g_template_obj(2).ae_setup(1).iv_setup(1).balance_name := null;
828 g_template_obj(2).ae_setup(1).iv_setup(1).exclusion_tag := null;
829
830 g_template_obj(2).ae_setup(1).iv_setup(2).input_value_name := 'Advance Amount';
831 g_template_obj(2).ae_setup(1).iv_setup(2).uom := 'M';
835 g_template_obj(2).ae_setup(1).iv_setup(2).def_value_column := null;
832 g_template_obj(2).ae_setup(1).iv_setup(2).mandatory_flag := 'N';
833 g_template_obj(2).ae_setup(1).iv_setup(2).lookup_type := null;
834 g_template_obj(2).ae_setup(1).iv_setup(2).default_value := null;
836 g_template_obj(2).ae_setup(1).iv_setup(2).min_value := null;
837 g_template_obj(2).ae_setup(1).iv_setup(2).warn_or_error := null;
838 g_template_obj(2).ae_setup(1).iv_setup(2).balance_name := null;
839 g_template_obj(2).ae_setup(1).iv_setup(2).exclusion_tag := null;
840
841 g_template_obj(2).ae_setup(1).iv_setup(3).input_value_name := 'Excess Advance';
842 g_template_obj(2).ae_setup(1).iv_setup(3).uom := 'C';
843 g_template_obj(2).ae_setup(1).iv_setup(3).mandatory_flag := 'Y';
844 g_template_obj(2).ae_setup(1).iv_setup(3).lookup_type := 'IN_ADVANCE_OPTIONS';
845 g_template_obj(2).ae_setup(1).iv_setup(3).default_value := 'PENDING';
846 g_template_obj(2).ae_setup(1).iv_setup(3).def_value_column := null;
847 g_template_obj(2).ae_setup(1).iv_setup(3).min_value := null;
848 g_template_obj(2).ae_setup(1).iv_setup(3).warn_or_error := null;
849 g_template_obj(2).ae_setup(1).iv_setup(3).balance_name := null;
850 g_template_obj(2).ae_setup(1).iv_setup(3).exclusion_tag := null;
851
852 g_template_obj(2).ae_setup(1).iv_setup(4).input_value_name := 'Add to Net Pay';
853 g_template_obj(2).ae_setup(1).iv_setup(4).uom := 'C';
854 g_template_obj(2).ae_setup(1).iv_setup(4).mandatory_flag := 'Y';
855 g_template_obj(2).ae_setup(1).iv_setup(4).lookup_type := 'YES_NO';
856 g_template_obj(2).ae_setup(1).iv_setup(4).default_value := 'Y';
857 g_template_obj(2).ae_setup(1).iv_setup(4).def_value_column := null;
858 g_template_obj(2).ae_setup(1).iv_setup(4).min_value := null;
859 g_template_obj(2).ae_setup(1).iv_setup(4).warn_or_error := null;
860 g_template_obj(2).ae_setup(1).iv_setup(4).balance_name := null;
861 g_template_obj(2).ae_setup(1).iv_setup(4).exclusion_tag := null;
862
863 g_template_obj(2).ae_setup(1).iv_setup(5).input_value_name := 'Component Name';
864 g_template_obj(2).ae_setup(1).iv_setup(5).uom := 'C';
865 g_template_obj(2).ae_setup(1).iv_setup(5).mandatory_flag := 'X';
866 g_template_obj(2).ae_setup(1).iv_setup(5).lookup_type := null;
867 g_template_obj(2).ae_setup(1).iv_setup(5).default_value := null;
868 g_template_obj(2).ae_setup(1).iv_setup(5).def_value_column := 'CONFIGURATION_INFORMATION1';
869 g_template_obj(2).ae_setup(1).iv_setup(5).min_value := null;
870 g_template_obj(2).ae_setup(1).iv_setup(5).warn_or_error := null;
871 g_template_obj(2).ae_setup(1).iv_setup(5).balance_name := null;
872 g_template_obj(2).ae_setup(1).iv_setup(5).exclusion_tag := null;
873
874 g_template_obj(2).ae_setup(1).bf_setup(1).balance_name := 'Advance for Allowances';
875 g_template_obj(2).ae_setup(1).bf_setup(1).iv_name := 'Advance Amount';
876 g_template_obj(2).ae_setup(1).bf_setup(1).scale := 1;
877 g_template_obj(2).ae_setup(1).bf_setup(1).exclusion_tag := null;
878
879 g_template_obj(2).ae_setup(1).bf_setup(2).balance_name := 'Outstanding Advance for Allowances';
880 g_template_obj(2).ae_setup(1).bf_setup(2).iv_name := 'Advance Amount';
881 g_template_obj(2).ae_setup(1).bf_setup(2).scale := 1;
882 g_template_obj(2).ae_setup(1).bf_setup(2).exclusion_tag := null;
883
884 g_template_obj(2).ae_setup(1).uf_setup.formula_name := '_FX_ADV_CALC';
885 g_template_obj(2).ae_setup(1).uf_setup.status_rule_id := null;
886 g_template_obj(2).ae_setup(1).uf_setup.description := 'Advance Calculations for Fixed Allowances';
887
888
889 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
890 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(1).result_rule_type := 'D';
891 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
892 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(1).element_name := null;
893 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(1).severity_level := null;
894 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(1).exclusion_tag := null;
895
896 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(2).result_name := 'EXCESS_ADVANCE';
897 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(2).result_rule_type := 'I';
898 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(2).input_value_name := 'Excess Advance';
899 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(2).element_name := ' Excess Advance';
900 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(2).severity_level := null;
901 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(2).exclusion_tag := null;
902
903 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(3).result_name := 'COMPONENT_NAME';
904 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(3).result_rule_type := 'I';
905 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(3).input_value_name := 'Component Name';
906 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(3).element_name := ' Excess Advance';
907 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(3).severity_level := null;
908 g_template_obj(2).ae_setup(1).uf_setup.frs_setup(3).exclusion_tag := null;
909
910
911
912 g_template_obj(2).ae_setup(2).element_name := ' Adjust';
913 g_template_obj(2).ae_setup(2).classification := 'Earnings';
914 g_template_obj(2).ae_setup(2).exclusion_tag := 'ADVANCE';
915 g_template_obj(2).ae_setup(2).priority := 12000;
916
917 g_template_obj(2).ae_setup(2).iv_setup(1).input_value_name := 'Pay Value';
918 g_template_obj(2).ae_setup(2).iv_setup(1).uom := 'M';
922 g_template_obj(2).ae_setup(2).iv_setup(1).def_value_column := null;
919 g_template_obj(2).ae_setup(2).iv_setup(1).mandatory_flag := 'X';
920 g_template_obj(2).ae_setup(2).iv_setup(1).lookup_type := null;
921 g_template_obj(2).ae_setup(2).iv_setup(1).default_value := null;
923 g_template_obj(2).ae_setup(2).iv_setup(1).min_value := null;
924 g_template_obj(2).ae_setup(2).iv_setup(1).warn_or_error := null;
925 g_template_obj(2).ae_setup(2).iv_setup(1).balance_name := null;
926 g_template_obj(2).ae_setup(2).iv_setup(1).exclusion_tag := null;
927
928 g_template_obj(2).ae_setup(2).iv_setup(2).input_value_name := 'Component Name';
929 g_template_obj(2).ae_setup(2).iv_setup(2).uom := 'C';
930 g_template_obj(2).ae_setup(2).iv_setup(2).mandatory_flag := 'X';
931 g_template_obj(2).ae_setup(2).iv_setup(2).lookup_type := null;
932 g_template_obj(2).ae_setup(2).iv_setup(2).default_value := null;
933 g_template_obj(2).ae_setup(2).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
934 g_template_obj(2).ae_setup(2).iv_setup(2).min_value := null;
935 g_template_obj(2).ae_setup(2).iv_setup(2).warn_or_error := null;
936 g_template_obj(2).ae_setup(2).iv_setup(2).balance_name := null;
937 g_template_obj(2).ae_setup(2).iv_setup(2).exclusion_tag := null;
938
939 g_template_obj(2).ae_setup(2).bf_setup(1).balance_name := 'Outstanding Advance for Allowances';
940 g_template_obj(2).ae_setup(2).bf_setup(1).iv_name := 'Pay Value';
941 g_template_obj(2).ae_setup(2).bf_setup(1).scale := -1;
942 g_template_obj(2).ae_setup(2).bf_setup(1).exclusion_tag := null;
943
944 g_template_obj(2).ae_setup(3).element_name := ' Recover';
945 g_template_obj(2).ae_setup(3).classification := 'Voluntary Deductions';
946 g_template_obj(2).ae_setup(3).exclusion_tag := 'ADVANCE';
947 g_template_obj(2).ae_setup(3).priority := 36000;
948
949 g_template_obj(2).ae_setup(3).iv_setup(1).input_value_name := 'Pay Value';
950 g_template_obj(2).ae_setup(3).iv_setup(1).uom := 'M';
951 g_template_obj(2).ae_setup(3).iv_setup(1).mandatory_flag := 'X';
952 g_template_obj(2).ae_setup(3).iv_setup(1).lookup_type := null;
953 g_template_obj(2).ae_setup(3).iv_setup(1).default_value := null;
954 g_template_obj(2).ae_setup(2).iv_setup(1).def_value_column := null;
955 g_template_obj(2).ae_setup(3).iv_setup(1).min_value := null;
956 g_template_obj(2).ae_setup(3).iv_setup(1).warn_or_error := null;
957 g_template_obj(2).ae_setup(3).iv_setup(1).balance_name := null;
958 g_template_obj(2).ae_setup(3).iv_setup(1).exclusion_tag := null;
959
960 g_template_obj(2).ae_setup(3).iv_setup(2).input_value_name := 'Component Name';
961 g_template_obj(2).ae_setup(3).iv_setup(2).uom := 'C';
962 g_template_obj(2).ae_setup(3).iv_setup(2).mandatory_flag := 'X';
963 g_template_obj(2).ae_setup(3).iv_setup(2).lookup_type := null;
964 g_template_obj(2).ae_setup(3).iv_setup(2).default_value := null;
965 g_template_obj(2).ae_setup(3).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
966 g_template_obj(2).ae_setup(3).iv_setup(2).min_value := null;
967 g_template_obj(2).ae_setup(3).iv_setup(2).warn_or_error := null;
968 g_template_obj(2).ae_setup(3).iv_setup(2).balance_name := null;
969 g_template_obj(2).ae_setup(3).iv_setup(2).exclusion_tag := null;
970
971 g_template_obj(2).ae_setup(3).iv_setup(3).input_value_name := 'Adjustment Amount';
972 g_template_obj(2).ae_setup(3).iv_setup(3).uom := 'M';
973 g_template_obj(2).ae_setup(3).iv_setup(3).mandatory_flag := 'X';
974 g_template_obj(2).ae_setup(3).iv_setup(3).lookup_type := null;
975 g_template_obj(2).ae_setup(3).iv_setup(3).default_value := null;
976 g_template_obj(2).ae_setup(3).iv_setup(3).def_value_column := null;
977 g_template_obj(2).ae_setup(3).iv_setup(3).min_value := null;
978 g_template_obj(2).ae_setup(3).iv_setup(3).warn_or_error := null;
979 g_template_obj(2).ae_setup(3).iv_setup(3).balance_name := null;
980 g_template_obj(2).ae_setup(3).iv_setup(3).exclusion_tag := null;
981
982 g_template_obj(2).ae_setup(3).bf_setup(1).balance_name := 'Outstanding Advance for Allowances';
983 g_template_obj(2).ae_setup(3).bf_setup(1).iv_name := 'Pay Value';
984 g_template_obj(2).ae_setup(3).bf_setup(1).scale := -1;
985 g_template_obj(2).ae_setup(3).bf_setup(1).exclusion_tag := null;
986
987 g_template_obj(2).ae_setup(3).bf_setup(2).balance_name := 'Outstanding Advance for Allowances';
988 g_template_obj(2).ae_setup(3).bf_setup(2).iv_name := 'Adjustment Amount';
989 g_template_obj(2).ae_setup(3).bf_setup(2).scale := 1;
990 g_template_obj(2).ae_setup(3).bf_setup(2).exclusion_tag := null;
991
992 g_template_obj(2).ae_setup(4).element_name := ' Excess Advance';
993 g_template_obj(2).ae_setup(4).classification := 'Information';
994 g_template_obj(2).ae_setup(4).exclusion_tag := 'ADVANCE';
995 g_template_obj(2).ae_setup(4).priority := 11000;
996
997 g_template_obj(2).ae_setup(4).iv_setup(1).input_value_name := 'Excess Advance';
998 g_template_obj(2).ae_setup(4).iv_setup(1).uom := 'C';
999 g_template_obj(2).ae_setup(4).iv_setup(1).mandatory_flag := 'X';
1000 g_template_obj(2).ae_setup(4).iv_setup(1).lookup_type := 'IN_ADVANCE_OPTIONS';
1001 g_template_obj(2).ae_setup(4).iv_setup(1).default_value := 'PENDING';
1002 g_template_obj(2).ae_setup(4).iv_setup(1).def_value_column := null;
1003 g_template_obj(2).ae_setup(4).iv_setup(1).min_value := null;
1004 g_template_obj(2).ae_setup(4).iv_setup(1).warn_or_error := null;
1005 g_template_obj(2).ae_setup(4).iv_setup(1).balance_name := null;
1009 g_template_obj(2).ae_setup(4).iv_setup(2).uom := 'C';
1006 g_template_obj(2).ae_setup(4).iv_setup(1).exclusion_tag := null;
1007
1008 g_template_obj(2).ae_setup(4).iv_setup(2).input_value_name := 'Component Name';
1010 g_template_obj(2).ae_setup(4).iv_setup(2).mandatory_flag := 'X';
1011 g_template_obj(2).ae_setup(4).iv_setup(2).lookup_type := null;
1012 g_template_obj(2).ae_setup(4).iv_setup(2).default_value := null;
1013 g_template_obj(2).ae_setup(4).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
1014 g_template_obj(2).ae_setup(4).iv_setup(2).min_value := null;
1015 g_template_obj(2).ae_setup(4).iv_setup(2).warn_or_error := null;
1016 g_template_obj(2).ae_setup(4).iv_setup(2).balance_name := null;
1017 g_template_obj(2).ae_setup(4).iv_setup(2).exclusion_tag := null;
1018
1019 g_template_obj(2).ae_setup(4).uf_setup.formula_name := '_FX_EXC_ADV';
1020 g_template_obj(2).ae_setup(4).uf_setup.status_rule_id := null;
1021 g_template_obj(2).ae_setup(4).uf_setup.description := 'Excess Advance Calculations for Fixed allowances';
1022
1023 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).result_name := 'ADJUSTMENT_AMT';
1024 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).result_rule_type := 'I';
1025 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).input_value_name := 'Adjustment Amount';
1026 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).element_name := ' Recover';
1027 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).severity_level := null;
1028 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).exclusion_tag := null;
1029
1030
1031 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).result_name := 'RECOVERED_ADVANCE';
1032 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).result_rule_type := 'I';
1033 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
1034 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).element_name := ' Recover';
1035 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).severity_level := null;
1036 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).exclusion_tag := null;
1037
1038 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(3).result_name := 'SALARY_SEC171';
1039 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(3).result_rule_type := 'I';
1040 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(3).input_value_name := 'Pay Value';
1041 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(3).element_name := ' Adjust';
1042 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(3).severity_level := null;
1043 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(3).exclusion_tag := null;
1044
1045 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(4).result_name := 'COMPONENT_NAME_PAY';
1046 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(4).result_rule_type := 'I';
1047 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(4).input_value_name := 'Component Name';
1048 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(4).element_name := ' Adjust';
1049 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(4).severity_level := null;
1050 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(4).exclusion_tag := null;
1051
1052 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(5).result_name := 'COMPONENT_NAME_REC';
1053 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(5).result_rule_type := 'I';
1054 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(5).input_value_name := 'Component Name';
1055 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(5).element_name := ' Recover';
1056 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(5).severity_level := null;
1057 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(5).exclusion_tag := null;
1058 ----------------------------------------------------------------
1059 -- Add. Element Setup for Fixed Allowances Template ends
1060 ----------------------------------------------------------------
1061
1062 ----------------------------------------------------------------
1063 -- TEMPLATE FOR FIXED ALLOWANCES ENDS
1064 ----------------------------------------------------------------
1065
1066 ----------------------------------------------------------------
1067 -- TEMPLATE FOR ACTUAL EXPENDITURE ALLOWANCE STARTS
1068 ----------------------------------------------------------------
1069 pay_in_utils.set_location(g_debug, l_procedure,40);
1070 g_template_obj(3).template_name := 'Actual Expense Allowances';
1071 g_template_obj(3).category := 'Allowances';
1072 g_template_obj(3).priority := 9000;
1073
1074 ----------------------------------------------------------------
1075 -- Exclusion Rules for Actual Expense Template start
1076 ----------------------------------------------------------------
1077 g_template_obj(3).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
1078 g_template_obj(3).er_setup(1).value := 'N';
1079 g_template_obj(3).er_setup(1).descr := 'Exclusion rule for Expense Projections.';
1080 g_template_obj(3).er_setup(1).tag := 'PROJEXP';
1081 g_template_obj(3).er_setup(1).rule_id := null;
1082
1083 g_template_obj(3).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION3';
1084 g_template_obj(3).er_setup(2).value := 'N';
1085 g_template_obj(3).er_setup(2).descr := 'Exclusion rule for Advances';
1086 g_template_obj(3).er_setup(2).tag := 'ADVANCE';
1087 g_template_obj(3).er_setup(2).rule_id := null;
1088
1089 g_template_obj(3).er_setup(3).ff_column := 'CONFIGURATION_INFORMATION4';
1090 g_template_obj(3).er_setup(3).value := 'N';
1091 g_template_obj(3).er_setup(3).descr := 'Exclusion rule for Projections';
1092 g_template_obj(3).er_setup(3).tag := 'PROJECT';
1093 g_template_obj(3).er_setup(3).rule_id := null;
1094
1095 g_template_obj(3).er_setup(4).ff_column := 'CONFIGURATION_INFORMATION5';
1099 g_template_obj(3).er_setup(4).rule_id := null;
1096 g_template_obj(3).er_setup(4).value := 'N';
1097 g_template_obj(3).er_setup(4).descr := 'Exclusion rule for Expense Element';
1098 g_template_obj(3).er_setup(4).tag := 'EXPELMT';
1100
1101 g_template_obj(3).er_setup(5).ff_column := 'CONFIGURATION_INFORMATION6';
1102 g_template_obj(3).er_setup(5).value := 'N';
1103 g_template_obj(3).er_setup(5).descr := 'Exclusion rule for HRA';
1104 g_template_obj(3).er_setup(5).tag := 'HRALLWN';
1105 g_template_obj(3).er_setup(5).rule_id := null;
1106
1107 g_template_obj(3).er_setup(6).ff_column := 'CONFIGURATION_INFORMATION7';
1108 g_template_obj(3).er_setup(6).value := 'N';
1109 g_template_obj(3).er_setup(6).descr := 'Exclusion rule for Ent';
1110 g_template_obj(3).er_setup(6).tag := 'ENTALWN';
1111 g_template_obj(3).er_setup(6).rule_id := null;
1112
1113 g_template_obj(3).er_setup(7).ff_column := 'CONFIGURATION_INFORMATION8';
1114 g_template_obj(3).er_setup(7).value := 'N';
1115 g_template_obj(3).er_setup(7).descr := 'Exclusion rule for HRA + Advance';
1116 g_template_obj(3).er_setup(7).tag := 'HRAADVN';
1117 g_template_obj(3).er_setup(7).rule_id := null;
1118
1119 g_template_obj(3).er_setup(8).ff_column := 'CONFIGURATION_INFORMATION9';
1120 g_template_obj(3).er_setup(8).value := 'N';
1121 g_template_obj(3).er_setup(8).descr := 'Exclusion rule for Ent + Advance';
1122 g_template_obj(3).er_setup(8).tag := 'ENTADVN';
1123 g_template_obj(3).er_setup(8).rule_id := null;
1124
1125 ----------------------------------------------------------------
1126 -- Exclusion Rules for Actual Expense Template end
1127 ----------------------------------------------------------------
1128
1129 ----------------------------------------------------------------
1130 -- Input Values for Actual Expense Template start
1131 ----------------------------------------------------------------
1132 g_template_obj(3).iv_setup(1).input_value_name := 'Pay Value';
1133 g_template_obj(3).iv_setup(1).uom := 'M';
1134 g_template_obj(3).iv_setup(1).mandatory_flag := 'X';
1135 g_template_obj(3).iv_setup(1).lookup_type := null;
1136 g_template_obj(3).iv_setup(1).default_value := null;
1137 g_template_obj(3).iv_setup(1).def_value_column := null;
1138 g_template_obj(3).iv_setup(1).min_value := null;
1139 g_template_obj(3).iv_setup(1).warn_or_error := null;
1140 g_template_obj(3).iv_setup(1).balance_name := null;
1141 g_template_obj(3).iv_setup(1).exclusion_tag := null;
1142
1143 g_template_obj(3).iv_setup(2).input_value_name := 'Allowance Amount';
1144 g_template_obj(3).iv_setup(2).uom := 'M';
1145 g_template_obj(3).iv_setup(2).mandatory_flag := 'Y';
1146 g_template_obj(3).iv_setup(2).lookup_type := null;
1147 g_template_obj(3).iv_setup(2).default_value := null;
1148 g_template_obj(3).iv_setup(2).def_value_column := null;
1149 g_template_obj(3).iv_setup(2).min_value := null;
1150 g_template_obj(3).iv_setup(2).warn_or_error := null;
1151 g_template_obj(3).iv_setup(2).balance_name := null;
1152 g_template_obj(3).iv_setup(2).exclusion_tag := null;
1153
1154 g_template_obj(3).iv_setup(3).input_value_name := 'Standard Value';
1155 g_template_obj(3).iv_setup(3).uom := 'M';
1156 g_template_obj(3).iv_setup(3).mandatory_flag := 'Y';
1157 g_template_obj(3).iv_setup(3).lookup_type := null;
1158 g_template_obj(3).iv_setup(3).default_value := null;
1159 g_template_obj(3).iv_setup(3).def_value_column := null;
1160 g_template_obj(3).iv_setup(3).min_value := null;
1161 g_template_obj(3).iv_setup(3).warn_or_error := null;
1162 g_template_obj(3).iv_setup(3).balance_name := 'Allowances Standard Value';
1163 g_template_obj(3).iv_setup(3).exclusion_tag := 'PROJECT';
1164
1165 g_template_obj(3).iv_setup(4).input_value_name := 'Taxable Value';
1166 g_template_obj(3).iv_setup(4).uom := 'M';
1167 g_template_obj(3).iv_setup(4).mandatory_flag := 'X';
1168 g_template_obj(3).iv_setup(4).lookup_type := null;
1169 g_template_obj(3).iv_setup(4).default_value := null;
1170 g_template_obj(3).iv_setup(4).def_value_column := null;
1171 g_template_obj(3).iv_setup(4).min_value := null;
1172 g_template_obj(3).iv_setup(4).warn_or_error := null;
1173 g_template_obj(3).iv_setup(4).balance_name := 'Taxable Allowances';
1174 g_template_obj(3).iv_setup(4).exclusion_tag := null;
1175
1176 g_template_obj(3).iv_setup(5).input_value_name := 'Standard Taxable Value';
1177 g_template_obj(3).iv_setup(5).uom := 'M';
1178 g_template_obj(3).iv_setup(5).mandatory_flag := 'X';
1179 g_template_obj(3).iv_setup(5).lookup_type := null;
1180 g_template_obj(3).iv_setup(5).default_value := null;
1181 g_template_obj(3).iv_setup(5).def_value_column := null;
1182 g_template_obj(3).iv_setup(5).min_value := null;
1183 g_template_obj(3).iv_setup(5).warn_or_error := null;
1184 g_template_obj(3).iv_setup(5).balance_name := 'Taxable Allowances for Projection';
1185 g_template_obj(3).iv_setup(5).exclusion_tag := 'PROJECT';
1186
1187 g_template_obj(3).iv_setup(6).input_value_name := 'Component Name';
1188 g_template_obj(3).iv_setup(6).uom := 'C';
1189 g_template_obj(3).iv_setup(6).mandatory_flag := 'X';
1190 g_template_obj(3).iv_setup(6).lookup_type := null;
1191 g_template_obj(3).iv_setup(6).default_value := null;
1192 g_template_obj(3).iv_setup(6).def_value_column := 'CONFIGURATION_INFORMATION1';
1193 g_template_obj(3).iv_setup(6).min_value := null;
1194 g_template_obj(3).iv_setup(6).warn_or_error := null;
1195 g_template_obj(3).iv_setup(6).balance_name := null;
1199 g_template_obj(3).iv_setup(7).uom := 'M';
1196 g_template_obj(3).iv_setup(6).exclusion_tag := null;
1197
1198 g_template_obj(3).iv_setup(7).input_value_name := 'Actual Expenditure';
1200 g_template_obj(3).iv_setup(7).mandatory_flag := 'Y';
1201 g_template_obj(3).iv_setup(7).lookup_type := null;
1202 g_template_obj(3).iv_setup(7).default_value := null;
1203 g_template_obj(3).iv_setup(7).def_value_column := null;
1204 g_template_obj(3).iv_setup(7).min_value := 0;
1205 g_template_obj(3).iv_setup(7).warn_or_error := 'E';
1206 g_template_obj(3).iv_setup(7).balance_name := 'Allowance Expense Amount';
1207 g_template_obj(3).iv_setup(7).exclusion_tag := 'PROJEXP';
1208
1209 g_template_obj(3).iv_setup(8).input_value_name := 'Adjusted Amount';
1210 g_template_obj(3).iv_setup(8).uom := 'M';
1211 g_template_obj(3).iv_setup(8).mandatory_flag := 'X';
1212 g_template_obj(3).iv_setup(8).lookup_type := null;
1213 g_template_obj(3).iv_setup(8).default_value := null;
1214 g_template_obj(3).iv_setup(8).def_value_column := null;
1215 g_template_obj(3).iv_setup(8).min_value := null;
1216 g_template_obj(3).iv_setup(8).warn_or_error := null;
1217 g_template_obj(3).iv_setup(8).balance_name := null;
1218 g_template_obj(3).iv_setup(8).exclusion_tag := null;
1219 ----------------------------------------------------------------
1220 -- Input Values for Actual Expense Template end
1221 ----------------------------------------------------------------
1222
1223 ----------------------------------------------------------------
1224 -- Balance Feeds for Actual Expense Template start
1225 ----------------------------------------------------------------
1226 g_template_obj(3).bf_setup(1).balance_name := 'Actual Allowance Amount';
1227 g_template_obj(3).bf_setup(1).iv_name := 'Allowance Amount';
1228 g_template_obj(3).bf_setup(1).scale := 1;
1229 g_template_obj(3).bf_setup(1).exclusion_tag := null;
1230
1231 g_template_obj(3).bf_setup(2).balance_name := 'Adjusted Advance for Allowances';
1232 g_template_obj(3).bf_setup(2).iv_name := 'Adjusted Amount';
1233 g_template_obj(3).bf_setup(2).scale := 1;
1234 g_template_obj(3).bf_setup(2).exclusion_tag := null;
1235
1236 g_template_obj(3).bf_setup(3).balance_name := 'Standard House Rent Allowance';
1237 g_template_obj(3).bf_setup(3).iv_name := 'Standard Value';
1238 g_template_obj(3).bf_setup(3).scale := 1;
1239 g_template_obj(3).bf_setup(3).exclusion_tag := 'HRALLWN';
1240
1241 g_template_obj(3).bf_setup(4).balance_name := 'Standard Entertainment Allowance';
1242 g_template_obj(3).bf_setup(4).iv_name := 'Standard Value';
1243 g_template_obj(3).bf_setup(4).scale := 1;
1244 g_template_obj(3).bf_setup(4).exclusion_tag := 'ENTALWN';
1245
1246 g_template_obj(3).bf_setup(5).balance_name := 'Entertainment Allowance';
1247 g_template_obj(3).bf_setup(5).iv_name := 'Pay Value';
1248 g_template_obj(3).bf_setup(5).scale := 1;
1249 g_template_obj(3).bf_setup(5).exclusion_tag := 'ENTALWN';
1250
1251 g_template_obj(3).bf_setup(6).balance_name := 'Adjusted Advance for HRA';
1252 g_template_obj(3).bf_setup(6).iv_name := 'Adjusted Amount';
1253 g_template_obj(3).bf_setup(6).scale := 1;
1254 g_template_obj(3).bf_setup(6).exclusion_tag := 'HRALLWN';
1255
1256 g_template_obj(3).bf_setup(7).balance_name := 'Adjusted Advance for Entertainment Allowance';
1257 g_template_obj(3).bf_setup(7).iv_name := 'Adjusted Amount';
1258 g_template_obj(3).bf_setup(7).scale := 1;
1259 g_template_obj(3).bf_setup(7).exclusion_tag := 'ENTALWN';
1260
1261 g_template_obj(3).bf_setup(8).balance_name := 'Outstanding Advance for Allowances';
1262 g_template_obj(3).bf_setup(8).iv_name := 'Adjusted Amount';
1263 g_template_obj(3).bf_setup(8).scale := -1;
1264 g_template_obj(3).bf_setup(8).exclusion_tag := null;
1265
1266 g_template_obj(3).bf_setup(9).balance_name := 'House Rent Allowance';
1267 g_template_obj(3).bf_setup(9).iv_name := 'Pay Value';
1268 g_template_obj(3).bf_setup(9).scale := 1;
1269 g_template_obj(3).bf_setup(9).exclusion_tag := 'HRALLWN';
1270
1271 ----------------------------------------------------------------
1272 -- Balance Feeds for Actual Expense Template end
1273 ----------------------------------------------------------------
1274
1275 ----------------------------------------------------------------
1276 -- Formula Setup for Actual Expense Template starts
1277 ----------------------------------------------------------------
1278 g_template_obj(3).uf_setup.formula_name := '_ACTEXP_CALC';
1279 g_template_obj(3).uf_setup.status_rule_id := null;
1280 g_template_obj(3).uf_setup.description := 'Formula for Actual Expense Allowances';
1281
1282 g_template_obj(3).uf_setup.frs_setup(1).result_name := 'TAXABLE_VALUE';
1283 g_template_obj(3).uf_setup.frs_setup(1).result_rule_type := 'D';
1284 g_template_obj(3).uf_setup.frs_setup(1).input_value_name := 'Taxable Value';
1285 g_template_obj(3).uf_setup.frs_setup(1).element_name := null;
1286 g_template_obj(3).uf_setup.frs_setup(1).severity_level := null;
1287 g_template_obj(3).uf_setup.frs_setup(1).exclusion_tag := null;
1288
1289 g_template_obj(3).uf_setup.frs_setup(2).result_name := 'ALLOWANCE_AMOUNT';
1290 g_template_obj(3).uf_setup.frs_setup(2).result_rule_type := 'D';
1291 g_template_obj(3).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
1292 g_template_obj(3).uf_setup.frs_setup(2).element_name := null;
1293 g_template_obj(3).uf_setup.frs_setup(2).severity_level := null;
1297 g_template_obj(3).uf_setup.frs_setup(3).result_rule_type := 'D';
1294 g_template_obj(3).uf_setup.frs_setup(2).exclusion_tag := null;
1295
1296 g_template_obj(3).uf_setup.frs_setup(3).result_name := 'STANDARD_TAXABLE_VALUE';
1298 g_template_obj(3).uf_setup.frs_setup(3).input_value_name := 'Standard Taxable Value';
1299 g_template_obj(3).uf_setup.frs_setup(3).element_name := null;
1300 g_template_obj(3).uf_setup.frs_setup(3).severity_level := null;
1301 g_template_obj(3).uf_setup.frs_setup(3).exclusion_tag := 'PROJECT';
1302
1303 g_template_obj(3).uf_setup.frs_setup(4).result_name := 'ADJUSTED_ADVANCE';
1304 g_template_obj(3).uf_setup.frs_setup(4).result_rule_type := 'D';
1305 g_template_obj(3).uf_setup.frs_setup(4).input_value_name := 'Adjusted Amount';
1306 g_template_obj(3).uf_setup.frs_setup(4).element_name := null;
1307 g_template_obj(3).uf_setup.frs_setup(4).severity_level := null;
1308 g_template_obj(3).uf_setup.frs_setup(4).exclusion_tag := null;
1309
1310 ----------------------------------------------------------------
1311 -- Formula Setup for Actual Expense Template ends
1312 ----------------------------------------------------------------
1313
1314 ----------------------------------------------------------------
1315 -- Add. Element Setup for Actual Expense Template starts
1316 ----------------------------------------------------------------
1317 g_template_obj(3).ae_setup(1).element_name := ' Expense';
1318 g_template_obj(3).ae_setup(1).classification := 'Information';
1319 g_template_obj(3).ae_setup(1).exclusion_tag := 'EXPELMT';
1320 g_template_obj(3).ae_setup(1).priority := -8000;
1321
1322
1323 g_template_obj(3).ae_setup(1).iv_setup(1).input_value_name := 'Expense Amount';
1324 g_template_obj(3).ae_setup(1).iv_setup(1).uom := 'M';
1325 g_template_obj(3).ae_setup(1).iv_setup(1).mandatory_flag := 'Y';
1326 g_template_obj(3).ae_setup(1).iv_setup(1).lookup_type := null;
1327 g_template_obj(3).ae_setup(1).iv_setup(1).default_value := null;
1328 g_template_obj(3).ae_setup(1).iv_setup(1).def_value_column := null;
1329 g_template_obj(3).ae_setup(1).iv_setup(1).min_value := 0;
1330 g_template_obj(3).ae_setup(1).iv_setup(1).warn_or_error := 'E';
1331 g_template_obj(3).ae_setup(1).iv_setup(1).balance_name := 'Allowance Expense Amount';
1332 g_template_obj(3).ae_setup(1).iv_setup(1).exclusion_tag := null;
1333
1334 g_template_obj(3).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
1335 g_template_obj(3).ae_setup(1).iv_setup(2).uom := 'C';
1336 g_template_obj(3).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
1337 g_template_obj(3).ae_setup(1).iv_setup(2).lookup_type := null;
1338 g_template_obj(3).ae_setup(1).iv_setup(2).default_value := null;
1339 g_template_obj(3).ae_setup(1).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
1340 g_template_obj(3).ae_setup(1).iv_setup(2).min_value := null;
1341 g_template_obj(3).ae_setup(1).iv_setup(2).warn_or_error := null;
1342 g_template_obj(3).ae_setup(1).iv_setup(2).balance_name := null;
1343 g_template_obj(3).ae_setup(1).iv_setup(2).exclusion_tag := null;
1344
1345 g_template_obj(3).ae_setup(2).element_name := ' Advance';
1346 g_template_obj(3).ae_setup(2).classification := 'Advances';
1347 g_template_obj(3).ae_setup(2).exclusion_tag := 'ADVANCE';
1348 g_template_obj(3).ae_setup(2).priority := -2000;
1349
1350 g_template_obj(3).ae_setup(2).iv_setup(1).input_value_name := 'Pay Value';
1351 g_template_obj(3).ae_setup(2).iv_setup(1).uom := 'M';
1352 g_template_obj(3).ae_setup(2).iv_setup(1).mandatory_flag := 'X';
1353 g_template_obj(3).ae_setup(2).iv_setup(1).lookup_type := null;
1354 g_template_obj(3).ae_setup(2).iv_setup(1).default_value := null;
1355 g_template_obj(3).ae_setup(2).iv_setup(1).def_value_column := null;
1356 g_template_obj(3).ae_setup(2).iv_setup(1).min_value := null;
1357 g_template_obj(3).ae_setup(2).iv_setup(1).warn_or_error := null;
1358 g_template_obj(3).ae_setup(2).iv_setup(1).balance_name := null;
1359 g_template_obj(3).ae_setup(2).iv_setup(1).exclusion_tag := null;
1360
1361 g_template_obj(3).ae_setup(2).iv_setup(2).input_value_name := 'Advance Amount';
1362 g_template_obj(3).ae_setup(2).iv_setup(2).uom := 'M';
1363 g_template_obj(3).ae_setup(2).iv_setup(2).mandatory_flag := 'N';
1364 g_template_obj(3).ae_setup(2).iv_setup(2).lookup_type := null;
1365 g_template_obj(3).ae_setup(2).iv_setup(2).default_value := null;
1366 g_template_obj(3).ae_setup(2).iv_setup(2).def_value_column := null;
1367 g_template_obj(3).ae_setup(2).iv_setup(2).min_value := null;
1368 g_template_obj(3).ae_setup(2).iv_setup(2).warn_or_error := null;
1369 g_template_obj(3).ae_setup(2).iv_setup(2).balance_name := null;
1370 g_template_obj(3).ae_setup(2).iv_setup(2).exclusion_tag := null;
1371
1372 g_template_obj(3).ae_setup(2).iv_setup(3).input_value_name := 'Excess Advance';
1373 g_template_obj(3).ae_setup(2).iv_setup(3).uom := 'C';
1374 g_template_obj(3).ae_setup(2).iv_setup(3).mandatory_flag := 'Y';
1375 g_template_obj(3).ae_setup(2).iv_setup(3).lookup_type := 'IN_ADVANCE_OPTIONS';
1376 g_template_obj(3).ae_setup(2).iv_setup(3).default_value := 'PENDING';
1377 g_template_obj(3).ae_setup(2).iv_setup(3).def_value_column := null;
1378 g_template_obj(3).ae_setup(2).iv_setup(3).min_value := null;
1379 g_template_obj(3).ae_setup(2).iv_setup(3).warn_or_error := null;
1383 g_template_obj(3).ae_setup(2).iv_setup(4).input_value_name := 'Add to Net Pay';
1380 g_template_obj(3).ae_setup(2).iv_setup(3).balance_name := null;
1381 g_template_obj(3).ae_setup(2).iv_setup(3).exclusion_tag := null;
1382
1384 g_template_obj(3).ae_setup(2).iv_setup(4).uom := 'C';
1385 g_template_obj(3).ae_setup(2).iv_setup(4).mandatory_flag := 'Y';
1386 g_template_obj(3).ae_setup(2).iv_setup(4).lookup_type := 'YES_NO';
1387 g_template_obj(3).ae_setup(2).iv_setup(4).default_value := 'Y';
1388 g_template_obj(3).ae_setup(2).iv_setup(4).def_value_column := null;
1389 g_template_obj(3).ae_setup(2).iv_setup(4).min_value := null;
1390 g_template_obj(3).ae_setup(2).iv_setup(4).warn_or_error := null;
1391 g_template_obj(3).ae_setup(2).iv_setup(4).balance_name := null;
1392 g_template_obj(3).ae_setup(2).iv_setup(4).exclusion_tag := null;
1393
1394 g_template_obj(3).ae_setup(2).iv_setup(5).input_value_name := 'Component Name';
1395 g_template_obj(3).ae_setup(2).iv_setup(5).uom := 'C';
1396 g_template_obj(3).ae_setup(2).iv_setup(5).mandatory_flag := 'X';
1397 g_template_obj(3).ae_setup(2).iv_setup(5).lookup_type := null;
1398 g_template_obj(3).ae_setup(2).iv_setup(5).default_value := null;
1399 g_template_obj(3).ae_setup(2).iv_setup(5).def_value_column := 'CONFIGURATION_INFORMATION1';
1400 g_template_obj(3).ae_setup(2).iv_setup(5).min_value := null;
1401 g_template_obj(3).ae_setup(2).iv_setup(5).warn_or_error := null;
1402 g_template_obj(3).ae_setup(2).iv_setup(5).balance_name := null;
1403 g_template_obj(3).ae_setup(2).iv_setup(5).exclusion_tag := null;
1404
1405 g_template_obj(3).ae_setup(2).bf_setup(1).balance_name := 'Advance for Allowances';
1406 g_template_obj(3).ae_setup(2).bf_setup(1).iv_name := 'Advance Amount';
1407 g_template_obj(3).ae_setup(2).bf_setup(1).scale := 1;
1408 g_template_obj(3).ae_setup(2).bf_setup(1).exclusion_tag := null;
1409
1410 g_template_obj(3).ae_setup(2).bf_setup(2).balance_name := 'Outstanding Advance for Allowances';
1411 g_template_obj(3).ae_setup(2).bf_setup(2).iv_name := 'Advance Amount';
1412 g_template_obj(3).ae_setup(2).bf_setup(2).scale := 1;
1413 g_template_obj(3).ae_setup(2).bf_setup(2).exclusion_tag := null;
1414
1415 g_template_obj(3).ae_setup(2).uf_setup.formula_name := '_AE_ADV_CALC';
1416 g_template_obj(3).ae_setup(2).uf_setup.status_rule_id := null;
1417 g_template_obj(3).ae_setup(2).uf_setup.description := 'Advance Calculations for Fixed Allowances';
1418
1419
1420 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
1421 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(1).result_rule_type := 'D';
1422 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
1423 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(1).element_name := null;
1424 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(1).severity_level := null;
1425 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(1).exclusion_tag := null;
1426
1427 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(2).result_name := 'EXCESS_ADVANCE';
1428 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(2).result_rule_type := 'I';
1429 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(2).input_value_name := 'Excess Advance';
1430 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(2).element_name := ' Excess Advance';
1431 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(2).severity_level := null;
1432 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(2).exclusion_tag := null;
1433
1434
1435 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(3).result_name := 'COMPONENT_NAME';
1436 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(3).result_rule_type := 'I';
1437 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(3).input_value_name := 'Component Name';
1438 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(3).element_name := ' Excess Advance';
1439 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(3).severity_level := null;
1440 g_template_obj(3).ae_setup(2).uf_setup.frs_setup(3).exclusion_tag := null;
1441
1442
1443 g_template_obj(3).ae_setup(3).element_name := ' Adjust';
1444 g_template_obj(3).ae_setup(3).classification := 'Earnings';
1445 g_template_obj(3).ae_setup(3).exclusion_tag := 'ADVANCE';
1446 g_template_obj(3).ae_setup(3).priority := 14000;
1447
1448 g_template_obj(3).ae_setup(3).iv_setup(1).input_value_name := 'Pay Value';
1449 g_template_obj(3).ae_setup(3).iv_setup(1).uom := 'M';
1450 g_template_obj(3).ae_setup(3).iv_setup(1).mandatory_flag := 'X';
1451 g_template_obj(3).ae_setup(3).iv_setup(1).lookup_type := null;
1452 g_template_obj(3).ae_setup(3).iv_setup(1).default_value := null;
1453 g_template_obj(3).ae_setup(3).iv_setup(1).def_value_column := null;
1454 g_template_obj(3).ae_setup(3).iv_setup(1).min_value := null;
1455 g_template_obj(3).ae_setup(3).iv_setup(1).warn_or_error := null;
1456 g_template_obj(3).ae_setup(3).iv_setup(1).balance_name := null;
1457 g_template_obj(3).ae_setup(3).iv_setup(1).exclusion_tag := null;
1458
1459 g_template_obj(3).ae_setup(3).iv_setup(2).input_value_name := 'Component Name';
1460 g_template_obj(3).ae_setup(3).iv_setup(2).uom := 'C';
1461 g_template_obj(3).ae_setup(3).iv_setup(2).mandatory_flag := 'X';
1462 g_template_obj(3).ae_setup(3).iv_setup(2).lookup_type := null;
1463 g_template_obj(3).ae_setup(3).iv_setup(2).default_value := null;
1464 g_template_obj(3).ae_setup(3).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
1465 g_template_obj(3).ae_setup(3).iv_setup(2).min_value := null;
1466 g_template_obj(3).ae_setup(3).iv_setup(2).warn_or_error := null;
1470 g_template_obj(3).ae_setup(3).bf_setup(1).balance_name := 'Outstanding Advance for Allowances';
1467 g_template_obj(3).ae_setup(3).iv_setup(2).balance_name := null;
1468 g_template_obj(3).ae_setup(3).iv_setup(2).exclusion_tag := null;
1469
1471 g_template_obj(3).ae_setup(3).bf_setup(1).iv_name := 'Pay Value';
1472 g_template_obj(3).ae_setup(3).bf_setup(1).scale := -1;
1473 g_template_obj(3).ae_setup(3).bf_setup(1).exclusion_tag := null;
1474
1475 g_template_obj(3).ae_setup(4).element_name := ' Recover';
1476 g_template_obj(3).ae_setup(4).classification := 'Voluntary Deductions';
1477 g_template_obj(3).ae_setup(4).exclusion_tag := 'ADVANCE';
1478 g_template_obj(3).ae_setup(4).priority := 36000;
1479
1480 g_template_obj(3).ae_setup(4).iv_setup(1).input_value_name := 'Pay Value';
1481 g_template_obj(3).ae_setup(4).iv_setup(1).uom := 'M';
1482 g_template_obj(3).ae_setup(4).iv_setup(1).mandatory_flag := 'X';
1483 g_template_obj(3).ae_setup(4).iv_setup(1).lookup_type := null;
1484 g_template_obj(3).ae_setup(4).iv_setup(1).default_value := null;
1485 g_template_obj(3).ae_setup(4).iv_setup(1).def_value_column := null;
1486 g_template_obj(3).ae_setup(4).iv_setup(1).min_value := null;
1487 g_template_obj(3).ae_setup(4).iv_setup(1).warn_or_error := null;
1488 g_template_obj(3).ae_setup(4).iv_setup(1).balance_name := null;
1489 g_template_obj(3).ae_setup(4).iv_setup(1).exclusion_tag := null;
1490
1491 g_template_obj(3).ae_setup(4).iv_setup(2).input_value_name := 'Adjustment Amount';
1492 g_template_obj(3).ae_setup(4).iv_setup(2).uom := 'M';
1493 g_template_obj(3).ae_setup(4).iv_setup(2).mandatory_flag := 'X';
1494 g_template_obj(3).ae_setup(4).iv_setup(2).lookup_type := null;
1495 g_template_obj(3).ae_setup(4).iv_setup(2).default_value := null;
1496 g_template_obj(3).ae_setup(4).iv_setup(2).def_value_column := null;
1497 g_template_obj(3).ae_setup(4).iv_setup(2).min_value := null;
1498 g_template_obj(3).ae_setup(4).iv_setup(2).warn_or_error := null;
1499 g_template_obj(3).ae_setup(4).iv_setup(2).balance_name := 'Outstanding Advance for Allowances';
1500 g_template_obj(3).ae_setup(4).iv_setup(2).exclusion_tag := 'ADVANCE';
1501
1502 g_template_obj(3).ae_setup(4).iv_setup(3).input_value_name := 'Component Name';
1503 g_template_obj(3).ae_setup(4).iv_setup(3).uom := 'C';
1504 g_template_obj(3).ae_setup(4).iv_setup(3).mandatory_flag := 'X';
1505 g_template_obj(3).ae_setup(4).iv_setup(3).lookup_type := null;
1506 g_template_obj(3).ae_setup(4).iv_setup(3).default_value := null;
1507 g_template_obj(3).ae_setup(4).iv_setup(3).def_value_column := 'CONFIGURATION_INFORMATION1';
1508 g_template_obj(3).ae_setup(4).iv_setup(3).min_value := null;
1509 g_template_obj(3).ae_setup(4).iv_setup(3).warn_or_error := null;
1510 g_template_obj(3).ae_setup(4).iv_setup(3).balance_name := null;
1511 g_template_obj(3).ae_setup(4).iv_setup(3).exclusion_tag := null;
1512
1513 g_template_obj(3).ae_setup(4).bf_setup(1).balance_name := 'Outstanding Advance for Allowances';
1514 g_template_obj(3).ae_setup(4).bf_setup(1).iv_name := 'Pay Value';
1515 g_template_obj(3).ae_setup(4).bf_setup(1).scale := -1;
1516 g_template_obj(3).ae_setup(4).bf_setup(1).exclusion_tag := null;
1517
1518 g_template_obj(3).ae_setup(5).element_name := ' Excess Advance';
1519 g_template_obj(3).ae_setup(5).classification := 'Information';
1520 g_template_obj(3).ae_setup(5).exclusion_tag := 'ADVANCE';
1521 g_template_obj(3).ae_setup(5).priority := 12000;
1522
1523 g_template_obj(3).ae_setup(5).iv_setup(1).input_value_name := 'Excess Advance';
1524 g_template_obj(3).ae_setup(5).iv_setup(1).uom := 'C';
1525 g_template_obj(3).ae_setup(5).iv_setup(1).mandatory_flag := 'X';
1526 g_template_obj(3).ae_setup(5).iv_setup(1).lookup_type := 'IN_ADVANCE_OPTIONS';
1527 g_template_obj(3).ae_setup(5).iv_setup(1).default_value := 'PENDING';
1528 g_template_obj(3).ae_setup(5).iv_setup(1).def_value_column := null;
1529 g_template_obj(3).ae_setup(5).iv_setup(1).min_value := null;
1530 g_template_obj(3).ae_setup(5).iv_setup(1).warn_or_error := null;
1531 g_template_obj(3).ae_setup(5).iv_setup(1).balance_name := null;
1532 g_template_obj(3).ae_setup(5).iv_setup(1).exclusion_tag := null;
1533
1534 g_template_obj(3).ae_setup(5).iv_setup(2).input_value_name := 'Component Name';
1535 g_template_obj(3).ae_setup(5).iv_setup(2).uom := 'C';
1536 g_template_obj(3).ae_setup(5).iv_setup(2).mandatory_flag := 'X';
1537 g_template_obj(3).ae_setup(5).iv_setup(2).lookup_type := null;
1538 g_template_obj(3).ae_setup(5).iv_setup(2).default_value := null;
1539 g_template_obj(3).ae_setup(5).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
1540 g_template_obj(3).ae_setup(5).iv_setup(2).min_value := null;
1541 g_template_obj(3).ae_setup(5).iv_setup(2).warn_or_error := null;
1542 g_template_obj(3).ae_setup(5).iv_setup(2).balance_name := null;
1543 g_template_obj(3).ae_setup(5).iv_setup(2).exclusion_tag := null;
1544
1545 g_template_obj(3).ae_setup(5).uf_setup.formula_name := '_AE_EXC_ADV';
1546 g_template_obj(3).ae_setup(5).uf_setup.status_rule_id := null;
1547 g_template_obj(3).ae_setup(5).uf_setup.description := 'Excess Advance Calculations for Actual allowances';
1548
1549 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(1).result_name := 'ADJUSTMENT_AMT';
1550 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(1).result_rule_type := 'I';
1551 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(1).input_value_name := 'Adjustment Amount';
1552 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(1).element_name := ' Recover';
1556
1553 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(1).severity_level := null;
1554 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(1).exclusion_tag := null;
1555
1557 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(2).result_name := 'RECOVERED_ADVANCE';
1558 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(2).result_rule_type := 'I';
1559 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
1560 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(2).element_name := ' Recover';
1561 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(2).severity_level := null;
1562 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(2).exclusion_tag := null;
1563
1564 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(3).result_name := 'SALARY_SEC171';
1565 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(3).result_rule_type := 'I';
1566 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(3).input_value_name := 'Pay Value';
1567 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(3).element_name := ' Adjust';
1568 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(3).severity_level := null;
1569 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(3).exclusion_tag := null;
1570
1571 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(4).result_name := 'COMPONENT_NAME_PAY';
1572 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(4).result_rule_type := 'I';
1573 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(4).input_value_name := 'Component Name';
1574 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(4).element_name := ' Adjust';
1575 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(4).severity_level := null;
1576 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(4).exclusion_tag := null;
1577
1578 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(5).result_name := 'COMPONENT_NAME_REC';
1579 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(5).result_rule_type := 'I';
1580 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(5).input_value_name := 'Component Name';
1581 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(5).element_name := ' Recover';
1582 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(5).severity_level := null;
1583 g_template_obj(3).ae_setup(5).uf_setup.frs_setup(5).exclusion_tag := null;
1584 ----------------------------------------------------------------
1585 -- Add. Element Setup for Actual Expense Template ends
1586 ----------------------------------------------------------------
1587
1588 ----------------------------------------------------------------
1589 -- TEMPLATE FOR ACTUAL EXPENDITURE ALLOWANCE ENDS
1590 ----------------------------------------------------------------
1591
1592 ----------------------------------------------------------------
1593 -- TEMPLATE FOR FREE EDUCATION STARTS
1594 ----------------------------------------------------------------
1595 pay_in_utils.set_location(g_debug, l_procedure,50);
1596 g_template_obj(4).template_name := 'Free Education';
1597 g_template_obj(4).category := 'Perquisites';
1598 g_template_obj(4).priority := 9000;
1599
1600 ----------------------------------------------------------------
1601 -- Exclusion Rules for Free Education Template start
1602 ----------------------------------------------------------------
1603 g_template_obj(4).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
1604 g_template_obj(4).er_setup(1).value := 'N';
1605 g_template_obj(4).er_setup(1).descr := 'Exclusion rule for Projections.';
1606 g_template_obj(4).er_setup(1).tag := 'PROJECT';
1607 g_template_obj(4).er_setup(1).rule_id := null;
1608
1609 ----------------------------------------------------------------
1610 -- Exclusion Rules for Free Education Template end
1611 ----------------------------------------------------------------
1612
1613 ----------------------------------------------------------------
1614 -- Input Values for Free Education Template start
1615 ----------------------------------------------------------------
1616 g_template_obj(4).iv_setup(1).input_value_name := 'Pay Value';
1617 g_template_obj(4).iv_setup(1).uom := 'M';
1618 g_template_obj(4).iv_setup(1).mandatory_flag := 'X';
1619 g_template_obj(4).iv_setup(1).lookup_type := null;
1620 g_template_obj(4).iv_setup(1).default_value := null;
1621 g_template_obj(4).iv_setup(1).def_value_column := null;
1622 g_template_obj(4).iv_setup(1).min_value := null;
1623 g_template_obj(4).iv_setup(1).warn_or_error := null;
1624 g_template_obj(4).iv_setup(1).balance_name := null;
1625 g_template_obj(4).iv_setup(1).exclusion_tag := null;
1626
1627 g_template_obj(4).iv_setup(2).input_value_name := 'Benefit Start Date';
1628 g_template_obj(4).iv_setup(2).uom := 'D';
1629 g_template_obj(4).iv_setup(2).mandatory_flag := 'N';
1630 g_template_obj(4).iv_setup(2).lookup_type := null;
1631 g_template_obj(4).iv_setup(2).default_value := null;
1632 g_template_obj(4).iv_setup(2).def_value_column := null;
1633 g_template_obj(4).iv_setup(2).min_value := null;
1634 g_template_obj(4).iv_setup(2).warn_or_error := null;
1635 g_template_obj(4).iv_setup(2).balance_name := null;
1636 g_template_obj(4).iv_setup(2).exclusion_tag := null;
1637
1638 g_template_obj(4).iv_setup(3).input_value_name := 'Benefit End Date';
1639 g_template_obj(4).iv_setup(3).uom := 'D';
1640 g_template_obj(4).iv_setup(3).mandatory_flag := 'N';
1641 g_template_obj(4).iv_setup(3).lookup_type := null;
1642 g_template_obj(4).iv_setup(3).default_value := null;
1646 g_template_obj(4).iv_setup(3).balance_name := null;
1643 g_template_obj(4).iv_setup(3).def_value_column := null;
1644 g_template_obj(4).iv_setup(3).min_value := null;
1645 g_template_obj(4).iv_setup(3).warn_or_error := null;
1647 g_template_obj(4).iv_setup(3).exclusion_tag := null;
1648
1649 g_template_obj(4).iv_setup(4).input_value_name := 'Component Name';
1650 g_template_obj(4).iv_setup(4).uom := 'C';
1651 g_template_obj(4).iv_setup(4).mandatory_flag := 'X';
1652 g_template_obj(4).iv_setup(4).lookup_type := null;
1653 g_template_obj(4).iv_setup(4).default_value := 'Free Education';
1654 g_template_obj(4).iv_setup(4).def_value_column := null;
1655 g_template_obj(4).iv_setup(4).min_value := null;
1656 g_template_obj(4).iv_setup(4).warn_or_error := null;
1657 g_template_obj(4).iv_setup(4).balance_name := null;
1658 g_template_obj(4).iv_setup(4).exclusion_tag := null;
1659
1660 g_template_obj(4).iv_setup(5).input_value_name := 'Relationship';
1661 g_template_obj(4).iv_setup(5).uom := 'C';
1662 g_template_obj(4).iv_setup(5).mandatory_flag := 'N';
1663 g_template_obj(4).iv_setup(5).lookup_type := 'IN_EDU_RELATION';
1664 g_template_obj(4).iv_setup(5).default_value := 'CHILD';
1665 g_template_obj(4).iv_setup(5).def_value_column := null;
1666 g_template_obj(4).iv_setup(5).min_value := null;
1667 g_template_obj(4).iv_setup(5).warn_or_error := null;
1668 g_template_obj(4).iv_setup(5).balance_name := null;
1669 g_template_obj(4).iv_setup(5).exclusion_tag := null;
1670
1671 g_template_obj(4).iv_setup(6).input_value_name := 'Cost to Employer';
1672 g_template_obj(4).iv_setup(6).uom := 'M';
1673 g_template_obj(4).iv_setup(6).mandatory_flag := 'N';
1674 g_template_obj(4).iv_setup(6).lookup_type := null;
1675 g_template_obj(4).iv_setup(6).default_value := null;
1676 g_template_obj(4).iv_setup(6).def_value_column := null;
1677 g_template_obj(4).iv_setup(6).min_value := 0;
1678 g_template_obj(4).iv_setup(6).warn_or_error := 'E';
1679 g_template_obj(4).iv_setup(6).balance_name := 'Perquisite Employer Contribution';
1680 g_template_obj(4).iv_setup(6).exclusion_tag := null;
1681
1682 g_template_obj(4).iv_setup(7).input_value_name := 'Employee Contribution';
1683 g_template_obj(4).iv_setup(7).uom := 'M';
1684 g_template_obj(4).iv_setup(7).mandatory_flag := 'N';
1685 g_template_obj(4).iv_setup(7).lookup_type := null;
1686 g_template_obj(4).iv_setup(7).default_value := null;
1687 g_template_obj(4).iv_setup(7).def_value_column := null;
1688 g_template_obj(4).iv_setup(7).min_value := 0;
1689 g_template_obj(4).iv_setup(7).warn_or_error := 'E';
1690 g_template_obj(4).iv_setup(7).balance_name := 'Perquisite Employee Contribution';
1691 g_template_obj(4).iv_setup(7).exclusion_tag := null;
1692
1693 g_template_obj(4).iv_setup(8).input_value_name := 'Projected Taxable Value';
1694 g_template_obj(4).iv_setup(8).uom := 'M';
1695 g_template_obj(4).iv_setup(8).mandatory_flag := 'X';
1696 g_template_obj(4).iv_setup(8).lookup_type := null;
1697 g_template_obj(4).iv_setup(8).default_value := null;
1698 g_template_obj(4).iv_setup(8).def_value_column := null;
1699 g_template_obj(4).iv_setup(8).min_value := null;
1700 g_template_obj(4).iv_setup(8).warn_or_error := null;
1701 g_template_obj(4).iv_setup(8).balance_name := 'Taxable Perquisites for Projection';
1702 g_template_obj(4).iv_setup(8).exclusion_tag := 'PROJECT';
1703
1704 g_template_obj(4).iv_setup(9).input_value_name := 'Employer Paid Tax';
1705 g_template_obj(4).iv_setup(9).uom := 'C';
1706 g_template_obj(4).iv_setup(9).mandatory_flag := 'Y';
1707 g_template_obj(4).iv_setup(9).lookup_type := 'YES_NO';
1708 g_template_obj(4).iv_setup(9).default_value := 'N';
1709 g_template_obj(4).iv_setup(9).def_value_column := null;
1710 g_template_obj(4).iv_setup(9).min_value := null;
1711 g_template_obj(4).iv_setup(9).warn_or_error := null;
1712 g_template_obj(4).iv_setup(9).balance_name := null;
1716 g_template_obj(4).iv_setup(10).uom := 'M';
1713 g_template_obj(4).iv_setup(9).exclusion_tag := null;
1714
1715 g_template_obj(4).iv_setup(10).input_value_name := 'Employer Taxable Amount';
1717 g_template_obj(4).iv_setup(10).mandatory_flag := 'X';
1718 g_template_obj(4).iv_setup(10).lookup_type := null;
1719 g_template_obj(4).iv_setup(10).default_value := null;
1720 g_template_obj(4).iv_setup(10).def_value_column := null;
1721 g_template_obj(4).iv_setup(10).min_value := 0;
1722 g_template_obj(4).iv_setup(10).warn_or_error := 'E';
1726 ----------------------------------------------------------------
1723 g_template_obj(4).iv_setup(10).balance_name := null;
1724 g_template_obj(4).iv_setup(10).exclusion_tag := null;
1725
1727 -- Input Values for Free Education Template end
1728 ----------------------------------------------------------------
1729
1730 ----------------------------------------------------------------
1731 -- Balance Feeds for Free Education Template start
1732 ----------------------------------------------------------------
1733 ----------------------------------------------------------------
1734 -- Balance Feeds for Free Education Template end
1735 ----------------------------------------------------------------
1736
1737 ----------------------------------------------------------------
1738 -- Formula Setup for Free Education Template starts
1739 ----------------------------------------------------------------
1740 g_template_obj(4).sf_setup.formula_name := 'IN_FREE_EDUCATION';
1741 g_template_obj(4).sf_setup.status_rule_id := null;
1742 g_template_obj(4).sf_setup.description := null;
1743
1744 g_template_obj(4).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
1745 g_template_obj(4).sf_setup.frs_setup(1).result_rule_type := 'D';
1746 g_template_obj(4).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
1747 g_template_obj(4).sf_setup.frs_setup(1).element_name := null;
1748 g_template_obj(4).sf_setup.frs_setup(1).severity_level := null;
1749 g_template_obj(4).sf_setup.frs_setup(1).exclusion_tag := null;
1750
1751 g_template_obj(4).sf_setup.frs_setup(2).result_name := 'ACTUAL_COST_TO_EMPLOYER';
1752 g_template_obj(4).sf_setup.frs_setup(2).result_rule_type := 'D';
1753 g_template_obj(4).sf_setup.frs_setup(2).input_value_name := 'Cost to Employer';
1754 g_template_obj(4).sf_setup.frs_setup(2).element_name := null;
1755 g_template_obj(4).sf_setup.frs_setup(2).severity_level := null;
1756 g_template_obj(4).sf_setup.frs_setup(2).exclusion_tag := null;
1757
1758 g_template_obj(4).sf_setup.frs_setup(3).result_name := 'ACTUAL_EMPLOYEE_CONTRIBUTION';
1759 g_template_obj(4).sf_setup.frs_setup(3).result_rule_type := 'D';
1760 g_template_obj(4).sf_setup.frs_setup(3).input_value_name := 'Employee Contribution';
1761 g_template_obj(4).sf_setup.frs_setup(3).element_name := null;
1762 g_template_obj(4).sf_setup.frs_setup(3).severity_level := null;
1763 g_template_obj(4).sf_setup.frs_setup(3).exclusion_tag := null;
1764
1765 g_template_obj(4).sf_setup.frs_setup(4).result_name := 'PROJECTED_VALUE';
1766 g_template_obj(4).sf_setup.frs_setup(4).result_rule_type := 'D';
1767 g_template_obj(4).sf_setup.frs_setup(4).input_value_name := 'Projected Taxable Value';
1768 g_template_obj(4).sf_setup.frs_setup(4).element_name := null;
1769 g_template_obj(4).sf_setup.frs_setup(4).severity_level := null;
1770 g_template_obj(4).sf_setup.frs_setup(4).exclusion_tag := 'PROJECT';
1771
1772 g_template_obj(4).sf_setup.frs_setup(5).result_name := 'O_STOP_FLAG';
1773 g_template_obj(4).sf_setup.frs_setup(5).result_rule_type := 'S';
1774 g_template_obj(4).sf_setup.frs_setup(5).input_value_name := null;
1775 g_template_obj(4).sf_setup.frs_setup(5).element_name := null;
1776 g_template_obj(4).sf_setup.frs_setup(5).severity_level := null;
1777 g_template_obj(4).sf_setup.frs_setup(5).exclusion_tag := null;
1778
1779 g_template_obj(4).sf_setup.frs_setup(6).result_name := 'EMPR_TAX';
1780 g_template_obj(4).sf_setup.frs_setup(6).result_rule_type := 'D';
1781 g_template_obj(4).sf_setup.frs_setup(6).input_value_name := 'Employer Taxable Amount';
1782 g_template_obj(4).sf_setup.frs_setup(6).element_name := null;
1783 g_template_obj(4).sf_setup.frs_setup(6).severity_level := null;
1784 g_template_obj(4).sf_setup.frs_setup(6).exclusion_tag := null;
1785
1786 g_template_obj(4).sf_setup.frs_setup(7).result_name := 'FED_TO_NET_PAY';
1787 g_template_obj(4).sf_setup.frs_setup(7).result_rule_type := 'I';
1788 g_template_obj(4).sf_setup.frs_setup(7).input_value_name := null;
1789 g_template_obj(4).sf_setup.frs_setup(7).element_name := null;
1790 g_template_obj(4).sf_setup.frs_setup(7).severity_level := null;
1791 g_template_obj(4).sf_setup.frs_setup(7).exclusion_tag := null;
1792
1793 g_template_obj(4).sf_setup.frs_setup(8).result_name := 'ER_MP_TAXABLE_AMOUNT';
1794 g_template_obj(4).sf_setup.frs_setup(8).result_rule_type := 'I';
1795 g_template_obj(4).sf_setup.frs_setup(8).input_value_name := 'ER MP Taxable Amount';
1796 g_template_obj(4).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
1797 g_template_obj(4).sf_setup.frs_setup(8).severity_level := null;
1798 g_template_obj(4).sf_setup.frs_setup(8).exclusion_tag := null;
1799
1800 g_template_obj(4).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
1801 g_template_obj(4).sf_setup.frs_setup(9).result_rule_type := 'I';
1802 g_template_obj(4).sf_setup.frs_setup(9).input_value_name := 'Projected ER MP Taxable Amt';
1803 g_template_obj(4).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
1804 g_template_obj(4).sf_setup.frs_setup(9).severity_level := null;
1805 g_template_obj(4).sf_setup.frs_setup(9).exclusion_tag := null;
1806
1807 g_template_obj(4).sf_setup.frs_setup(10).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
1808 g_template_obj(4).sf_setup.frs_setup(10).result_rule_type := 'I';
1809 g_template_obj(4).sf_setup.frs_setup(10).input_value_name := 'ER MP Salary to be Excluded';
1810 g_template_obj(4).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
1811 g_template_obj(4).sf_setup.frs_setup(10).severity_level := null;
1812 g_template_obj(4).sf_setup.frs_setup(10).exclusion_tag := null;
1816 g_template_obj(4).sf_setup.frs_setup(11).input_value_name := 'ER NMP Taxable Amount';
1813
1814 g_template_obj(4).sf_setup.frs_setup(11).result_name := 'ER_NMP_TAXABLE_AMOUNT';
1815 g_template_obj(4).sf_setup.frs_setup(11).result_rule_type := 'I';
1820
1817 g_template_obj(4).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
1818 g_template_obj(4).sf_setup.frs_setup(11).severity_level := null;
1819 g_template_obj(4).sf_setup.frs_setup(11).exclusion_tag := null;
1821 g_template_obj(4).sf_setup.frs_setup(12).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
1822 g_template_obj(4).sf_setup.frs_setup(12).result_rule_type := 'I';
1823 g_template_obj(4).sf_setup.frs_setup(12).input_value_name := 'Projected ER NMP Taxable Amt';
1824 g_template_obj(4).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
1825 g_template_obj(4).sf_setup.frs_setup(12).severity_level := null;
1826 g_template_obj(4).sf_setup.frs_setup(12).exclusion_tag := null;
1827
1828 g_template_obj(4).sf_setup.frs_setup(13).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
1829 g_template_obj(4).sf_setup.frs_setup(13).result_rule_type := 'I';
1830 g_template_obj(4).sf_setup.frs_setup(13).input_value_name := 'ER NMP Salary to be Excluded';
1831 g_template_obj(4).sf_setup.frs_setup(13).element_name := 'Employer Tax Projection Element';
1832 g_template_obj(4).sf_setup.frs_setup(13).severity_level := null;
1833 g_template_obj(4).sf_setup.frs_setup(13).exclusion_tag := null;
1834
1835 g_template_obj(4).sf_setup.frs_setup(14).result_name := 'COMPONENT_NAME';
1836 g_template_obj(4).sf_setup.frs_setup(14).result_rule_type := 'I';
1837 g_template_obj(4).sf_setup.frs_setup(14).input_value_name := 'Component Name';
1838 g_template_obj(4).sf_setup.frs_setup(14).element_name := 'Employer Tax Projection Element';
1839 g_template_obj(4).sf_setup.frs_setup(14).severity_level := null;
1840 g_template_obj(4).sf_setup.frs_setup(14).exclusion_tag := null;
1841
1842 g_template_obj(4).sf_setup.frs_setup(15).result_name := 'NON_REC_VALUE';
1843 g_template_obj(4).sf_setup.frs_setup(15).result_rule_type := 'I';
1844 g_template_obj(4).sf_setup.frs_setup(15).input_value_name := 'Non Rec Perquisite';
1845 g_template_obj(4).sf_setup.frs_setup(15).element_name := 'Employer Tax Projection Element';
1846 g_template_obj(4).sf_setup.frs_setup(15).severity_level := null;
1847 g_template_obj(4).sf_setup.frs_setup(15).exclusion_tag := null;
1848 ----------------------------------------------------------------
1849 -- Formula Setup for Free Education Template ends
1850 ----------------------------------------------------------------
1851
1852 ----------------------------------------------------------------
1853 -- Add. Element Setup for Free Education Template starts
1854 ----------------------------------------------------------------
1855
1856 g_template_obj(4).ae_setup(1).element_name := ' Paid MP';
1857 g_template_obj(4).ae_setup(1).classification := 'Paid Monetary Perquisite';
1858 g_template_obj(4).ae_setup(1).exclusion_tag := 'Perquisite';
1859 g_template_obj(4).ae_setup(1).priority := 2000;
1860
1861 g_template_obj(4).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
1862 g_template_obj(4).ae_setup(1).iv_setup(1).uom := 'M';
1863 g_template_obj(4).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
1864 g_template_obj(4).ae_setup(1).iv_setup(1).lookup_type := null;
1865 g_template_obj(4).ae_setup(1).iv_setup(1).default_value := null;
1866 g_template_obj(4).ae_setup(1).iv_setup(1).def_value_column := null;
1867 g_template_obj(4).ae_setup(1).iv_setup(1).min_value := null;
1868 g_template_obj(4).ae_setup(1).iv_setup(1).warn_or_error := null;
1869 g_template_obj(4).ae_setup(1).iv_setup(1).balance_name := null;
1870 g_template_obj(4).ae_setup(1).iv_setup(1).exclusion_tag := null;
1871
1875 g_template_obj(4).ae_setup(1).iv_setup(2).lookup_type := null;
1872 g_template_obj(4).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
1873 g_template_obj(4).ae_setup(1).iv_setup(2).uom := 'C';
1874 g_template_obj(4).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
1876 g_template_obj(4).ae_setup(1).iv_setup(2).default_value := 'Free Education';
1877 g_template_obj(4).ae_setup(1).iv_setup(2).def_value_column := null;
1878 g_template_obj(4).ae_setup(1).iv_setup(2).min_value := null;
1879 g_template_obj(4).ae_setup(1).iv_setup(2).warn_or_error := null;
1880 g_template_obj(4).ae_setup(1).iv_setup(2).balance_name := null;
1881 g_template_obj(4).ae_setup(1).iv_setup(2).exclusion_tag := null;
1882
1883 ----------------------------------------------------------------
1884 -- Add. Element Setup for Free Education Template ends
1885 ----------------------------------------------------------------
1886
1887 ----------------------------------------------------------------
1888 -- TEMPLATE FOR FREE EDUCATION ENDS
1889 ----------------------------------------------------------------
1890
1891 ----------------------------------------------------------------
1892 -- TEMPLATE FOR ACCOMMODATION STARTS
1893 ----------------------------------------------------------------
1894 pay_in_utils.set_location(g_debug, l_procedure,60);
1895 g_template_obj(5).template_name := 'Company Accommodation';
1896 g_template_obj(5).category := 'Perquisites';
1897 g_template_obj(5).priority := 9000;
1898
1899 ----------------------------------------------------------------
1900 -- Exclusion Rules for Accommodation Template start
1901 ----------------------------------------------------------------
1902 g_template_obj(5).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
1903 g_template_obj(5).er_setup(1).value := 'N';
1904 g_template_obj(5).er_setup(1).descr := 'Exclusion rule for Projections.';
1905 g_template_obj(5).er_setup(1).tag := 'PROJECT';
1906 g_template_obj(5).er_setup(1).rule_id := null;
1907
1908
1909 ----------------------------------------------------------------
1910 -- Exclusion Rules for Accommodation Template end
1911 ----------------------------------------------------------------
1912
1913 ----------------------------------------------------------------
1914 -- Input Values for Accommodation Template start
1915 ----------------------------------------------------------------
1916 g_template_obj(5).iv_setup(1).input_value_name := 'Pay Value';
1917 g_template_obj(5).iv_setup(1).uom := 'M';
1918 g_template_obj(5).iv_setup(1).mandatory_flag := 'X';
1919 g_template_obj(5).iv_setup(1).lookup_type := null;
1920 g_template_obj(5).iv_setup(1).default_value := null;
1921 g_template_obj(5).iv_setup(1).def_value_column := null;
1922 g_template_obj(5).iv_setup(1).min_value := null;
1923 g_template_obj(5).iv_setup(1).warn_or_error := null;
1924 g_template_obj(5).iv_setup(1).balance_name := null;
1925 g_template_obj(5).iv_setup(1).exclusion_tag := null;
1926
1927 g_template_obj(5).iv_setup(2).input_value_name := 'Benefit Start Date';
1928 g_template_obj(5).iv_setup(2).uom := 'D';
1929 g_template_obj(5).iv_setup(2).mandatory_flag := 'N';
1930 g_template_obj(5).iv_setup(2).lookup_type := null;
1931 g_template_obj(5).iv_setup(2).default_value := null;
1932 g_template_obj(5).iv_setup(2).def_value_column := null;
1933 g_template_obj(5).iv_setup(2).min_value := null;
1934 g_template_obj(5).iv_setup(2).warn_or_error := null;
1935 g_template_obj(5).iv_setup(2).balance_name := null;
1936 g_template_obj(5).iv_setup(2).exclusion_tag := null;
1937
1938 g_template_obj(5).iv_setup(3).input_value_name := 'Benefit End Date';
1939 g_template_obj(5).iv_setup(3).uom := 'D';
1940 g_template_obj(5).iv_setup(3).mandatory_flag := 'N';
1941 g_template_obj(5).iv_setup(3).lookup_type := null;
1942 g_template_obj(5).iv_setup(3).default_value := null;
1943 g_template_obj(5).iv_setup(3).def_value_column := null;
1944 g_template_obj(5).iv_setup(3).min_value := null;
1945 g_template_obj(5).iv_setup(3).warn_or_error := null;
1946 g_template_obj(5).iv_setup(3).balance_name := null;
1947 g_template_obj(5).iv_setup(3).exclusion_tag := null;
1948
1949 g_template_obj(5).iv_setup(4).input_value_name := 'Component Name';
1950 g_template_obj(5).iv_setup(4).uom := 'C';
1951 g_template_obj(5).iv_setup(4).mandatory_flag := 'X';
1952 g_template_obj(5).iv_setup(4).lookup_type := null;
1953 g_template_obj(5).iv_setup(4).default_value := 'Company Accommodation';
1954 g_template_obj(5).iv_setup(4).def_value_column := null;
1955 g_template_obj(5).iv_setup(4).min_value := null;
1956 g_template_obj(5).iv_setup(4).warn_or_error := null;
1957 g_template_obj(5).iv_setup(4).balance_name := null;
1958 g_template_obj(5).iv_setup(4).exclusion_tag := null;
1959
1960 g_template_obj(5).iv_setup(5).input_value_name := 'Place';
1961 g_template_obj(5).iv_setup(5).uom := 'C';
1962 g_template_obj(5).iv_setup(5).mandatory_flag := 'Y';
1963 g_template_obj(5).iv_setup(5).lookup_type := 'IN_ACCOMMODATION_POPULATION';
1964 g_template_obj(5).iv_setup(5).default_value := null;
1965 g_template_obj(5).iv_setup(5).def_value_column := null;
1966 g_template_obj(5).iv_setup(5).min_value := null;
1967 g_template_obj(5).iv_setup(5).warn_or_error := null;
1968 g_template_obj(5).iv_setup(5).balance_name := null;
1969 g_template_obj(5).iv_setup(5).exclusion_tag := null;
1970
1971 g_template_obj(5).iv_setup(6).input_value_name := 'Property';
1975 g_template_obj(5).iv_setup(6).default_value := null;
1972 g_template_obj(5).iv_setup(6).uom := 'C';
1973 g_template_obj(5).iv_setup(6).mandatory_flag := 'Y';
1974 g_template_obj(5).iv_setup(6).lookup_type := 'IN_ACCOMMODATION_PROPERTY';
1976 g_template_obj(5).iv_setup(6).def_value_column := null;
1977 g_template_obj(5).iv_setup(6).min_value := null;
1978 g_template_obj(5).iv_setup(6).warn_or_error := null;
1979 g_template_obj(5).iv_setup(6).balance_name := null;
1980 g_template_obj(5).iv_setup(6).exclusion_tag := null;
1981
1982 g_template_obj(5).iv_setup(7).input_value_name := 'Cost of Furniture Owned';
1983 g_template_obj(5).iv_setup(7).uom := 'M';
1984 g_template_obj(5).iv_setup(7).mandatory_flag := 'N';
1985 g_template_obj(5).iv_setup(7).lookup_type := null;
1986 g_template_obj(5).iv_setup(7).default_value := null;
1987 g_template_obj(5).iv_setup(7).def_value_column := null;
1988 g_template_obj(5).iv_setup(7).min_value := 0;
1989 g_template_obj(5).iv_setup(7).warn_or_error := 'E';
1990 g_template_obj(5).iv_setup(7).balance_name := 'Cost and Rent of Furniture';
1991 g_template_obj(5).iv_setup(7).exclusion_tag := null;
1992
1993 g_template_obj(5).iv_setup(8).input_value_name := 'Rent of Furniture Leased';
1994 g_template_obj(5).iv_setup(8).uom := 'M';
1995 g_template_obj(5).iv_setup(8).mandatory_flag := 'N';
1996 g_template_obj(5).iv_setup(8).lookup_type := null;
1997 g_template_obj(5).iv_setup(8).default_value := null;
1998 g_template_obj(5).iv_setup(8).def_value_column := null;
1999 g_template_obj(5).iv_setup(8).min_value := 0;
2000 g_template_obj(5).iv_setup(8).warn_or_error := 'E';
2001 g_template_obj(5).iv_setup(8).balance_name := 'Cost and Rent of Furniture';
2002 g_template_obj(5).iv_setup(8).exclusion_tag := null;
2003
2004 g_template_obj(5).iv_setup(9).input_value_name := 'Rent Paid by Employer';
2005 g_template_obj(5).iv_setup(9).uom := 'M';
2006 g_template_obj(5).iv_setup(9).mandatory_flag := 'N';
2007 g_template_obj(5).iv_setup(9).lookup_type := null;
2008 g_template_obj(5).iv_setup(9).default_value := null;
2009 g_template_obj(5).iv_setup(9).def_value_column := null;
2010 g_template_obj(5).iv_setup(9).min_value := 0;
2011 g_template_obj(5).iv_setup(9).warn_or_error := 'E';
2012 g_template_obj(5).iv_setup(9).balance_name := 'Rent Paid by Employer';
2013 g_template_obj(5).iv_setup(9).exclusion_tag := null;
2014
2015 g_template_obj(5).iv_setup(10).input_value_name := 'Employee Contribution';
2016 g_template_obj(5).iv_setup(10).uom := 'M';
2017 g_template_obj(5).iv_setup(10).mandatory_flag := 'N';
2018 g_template_obj(5).iv_setup(10).lookup_type := null;
2019 g_template_obj(5).iv_setup(10).default_value := null;
2020 g_template_obj(5).iv_setup(10).def_value_column := null;
2021 g_template_obj(5).iv_setup(10).min_value := 0;
2022 g_template_obj(5).iv_setup(10).warn_or_error := 'E';
2023 g_template_obj(5).iv_setup(10).balance_name := 'Perquisite Employee Contribution';
2024 g_template_obj(5).iv_setup(10).exclusion_tag := null;
2025
2026 g_template_obj(5).iv_setup(11).input_value_name := 'Projected Taxable Value';
2027 g_template_obj(5).iv_setup(11).uom := 'M';
2028 g_template_obj(5).iv_setup(11).mandatory_flag := 'X';
2029 g_template_obj(5).iv_setup(11).lookup_type := null;
2030 g_template_obj(5).iv_setup(11).default_value := null;
2031 g_template_obj(5).iv_setup(11).def_value_column := null;
2032 g_template_obj(5).iv_setup(11).min_value := null;
2033 g_template_obj(5).iv_setup(11).warn_or_error := null;
2034 g_template_obj(5).iv_setup(11).balance_name := 'Taxable Perquisites for Projection';
2035 g_template_obj(5).iv_setup(11).exclusion_tag := 'PROJECT';
2036
2037 g_template_obj(5).iv_setup(12).input_value_name := 'Flat Reference No';
2041 g_template_obj(5).iv_setup(12).default_value := null;
2038 g_template_obj(5).iv_setup(12).uom := 'C';
2039 g_template_obj(5).iv_setup(12).mandatory_flag := 'N';
2040 g_template_obj(5).iv_setup(12).lookup_type := null;
2042 g_template_obj(5).iv_setup(12).def_value_column := null;
2043 g_template_obj(5).iv_setup(12).min_value := null;
2044 g_template_obj(5).iv_setup(12).warn_or_error := null;
2045 g_template_obj(5).iv_setup(12).balance_name := null;
2046 g_template_obj(5).iv_setup(12).exclusion_tag := null;
2047
2048 g_template_obj(5).iv_setup(13).input_value_name := 'Employer Paid Tax';
2049 g_template_obj(5).iv_setup(13).uom := 'C';
2050 g_template_obj(5).iv_setup(13).mandatory_flag := 'Y';
2051 g_template_obj(5).iv_setup(13).lookup_type := 'YES_NO';
2052 g_template_obj(5).iv_setup(13).default_value := 'N';
2053 g_template_obj(5).iv_setup(13).def_value_column := null;
2054 g_template_obj(5).iv_setup(13).min_value := null;
2055 g_template_obj(5).iv_setup(13).warn_or_error := null;
2056 g_template_obj(5).iv_setup(13).balance_name := null;
2057 g_template_obj(5).iv_setup(13).exclusion_tag := null;
2058
2059 g_template_obj(5).iv_setup(14).input_value_name := 'Employer Taxable Amount';
2060 g_template_obj(5).iv_setup(14).uom := 'M';
2061 g_template_obj(5).iv_setup(14).mandatory_flag := 'X';
2062 g_template_obj(5).iv_setup(14).lookup_type := null;
2063 g_template_obj(5).iv_setup(14).default_value := null;
2064 g_template_obj(5).iv_setup(14).def_value_column := null;
2065 g_template_obj(5).iv_setup(14).min_value := 0;
2066 g_template_obj(5).iv_setup(14).warn_or_error := 'E';
2067 g_template_obj(5).iv_setup(14).balance_name := null;
2068 g_template_obj(5).iv_setup(14).exclusion_tag := null;
2069
2070
2071 ----------------------------------------------------------------
2072 -- Input Values for Accommodation Template end
2073 ----------------------------------------------------------------
2074
2075 ----------------------------------------------------------------
2076 -- Balance Feeds for Accommodation Template start
2077 ----------------------------------------------------------------
2078 ----------------------------------------------------------------
2079 -- Balance Feeds for Accommodation Template end
2080 ----------------------------------------------------------------
2081
2082 ----------------------------------------------------------------
2083 -- Formula Setup for Accommodation Template starts
2084 ----------------------------------------------------------------
2085 g_template_obj(5).sf_setup.formula_name := 'IN_COMPANY_ACCOMMODATION';
2086 g_template_obj(5).sf_setup.status_rule_id := null;
2087 g_template_obj(5).sf_setup.description := null;
2088
2089 g_template_obj(5).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
2090 g_template_obj(5).sf_setup.frs_setup(1).result_rule_type := 'D';
2091 g_template_obj(5).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
2092 g_template_obj(5).sf_setup.frs_setup(1).element_name := null;
2093 g_template_obj(5).sf_setup.frs_setup(1).severity_level := null;
2094 g_template_obj(5).sf_setup.frs_setup(1).exclusion_tag := null;
2095
2096 g_template_obj(5).sf_setup.frs_setup(2).result_name := 'ACTUAL_RENT_OF_FURNITURE';
2100 g_template_obj(5).sf_setup.frs_setup(2).severity_level := null;
2097 g_template_obj(5).sf_setup.frs_setup(2).result_rule_type := 'D';
2098 g_template_obj(5).sf_setup.frs_setup(2).input_value_name := 'Rent of Furniture Leased';
2099 g_template_obj(5).sf_setup.frs_setup(2).element_name := null;
2101 g_template_obj(5).sf_setup.frs_setup(2).exclusion_tag := null;
2102
2103 g_template_obj(5).sf_setup.frs_setup(3).result_name := 'ACTUAL_RENT_PAID';
2104 g_template_obj(5).sf_setup.frs_setup(3).result_rule_type := 'D';
2105 g_template_obj(5).sf_setup.frs_setup(3).input_value_name := 'Rent Paid by Employer';
2106 g_template_obj(5).sf_setup.frs_setup(3).element_name := null;
2107 g_template_obj(5).sf_setup.frs_setup(3).severity_level := null;
2108 g_template_obj(5).sf_setup.frs_setup(3).exclusion_tag := null;
2109
2110 g_template_obj(5).sf_setup.frs_setup(4).result_name := 'ACTUAL_EMPLOYEE_CONTRIBUTION';
2111 g_template_obj(5).sf_setup.frs_setup(4).result_rule_type := 'D';
2112 g_template_obj(5).sf_setup.frs_setup(4).input_value_name := 'Employee Contribution';
2113 g_template_obj(5).sf_setup.frs_setup(4).element_name := null;
2114 g_template_obj(5).sf_setup.frs_setup(4).severity_level := null;
2115 g_template_obj(5).sf_setup.frs_setup(4).exclusion_tag := null;
2116
2117 g_template_obj(5).sf_setup.frs_setup(5).result_name := 'PROJECTED_VALUE';
2118 g_template_obj(5).sf_setup.frs_setup(5).result_rule_type := 'D';
2119 g_template_obj(5).sf_setup.frs_setup(5).input_value_name := 'Projected Taxable Value';
2120 g_template_obj(5).sf_setup.frs_setup(5).element_name := null;
2121 g_template_obj(5).sf_setup.frs_setup(5).severity_level := null;
2122 g_template_obj(5).sf_setup.frs_setup(5).exclusion_tag := 'PROJECT';
2123
2124 g_template_obj(5).sf_setup.frs_setup(6).result_name := 'O_STOP_FLAG';
2125 g_template_obj(5).sf_setup.frs_setup(6).result_rule_type := 'S';
2126 g_template_obj(5).sf_setup.frs_setup(6).input_value_name := null;
2127 g_template_obj(5).sf_setup.frs_setup(6).element_name := null;
2128 g_template_obj(5).sf_setup.frs_setup(6).severity_level := null;
2129 g_template_obj(5).sf_setup.frs_setup(6).exclusion_tag := null;
2130
2131 g_template_obj(5).sf_setup.frs_setup(7).result_name := 'COST_OF_FURNITURE';
2132 g_template_obj(5).sf_setup.frs_setup(7).result_rule_type := 'I';
2133 g_template_obj(5).sf_setup.frs_setup(7).input_value_name := 'Cost of Furniture';
2134 g_template_obj(5).sf_setup.frs_setup(7).element_name := 'Projected Company Accommodation';
2135 g_template_obj(5).sf_setup.frs_setup(7).severity_level := null;
2136 g_template_obj(5).sf_setup.frs_setup(7).exclusion_tag := null;
2137
2138 g_template_obj(5).sf_setup.frs_setup(8).result_name := 'ACTUAL_FURNITURE_PERQUISITE';
2139 g_template_obj(5).sf_setup.frs_setup(8).result_rule_type := 'I';
2140 g_template_obj(5).sf_setup.frs_setup(8).input_value_name := 'Monthly Furniture Perquisite';
2141 g_template_obj(5).sf_setup.frs_setup(8).element_name := 'Projected Company Accommodation';
2142 g_template_obj(5).sf_setup.frs_setup(8).severity_level := null;
2143 g_template_obj(5).sf_setup.frs_setup(8).exclusion_tag := null;
2144
2145 g_template_obj(5).sf_setup.frs_setup(9).result_name := 'PROJECTED_EMPLOYEE_CONTRIBUTION';
2146 g_template_obj(5).sf_setup.frs_setup(9).result_rule_type := 'I';
2147 g_template_obj(5).sf_setup.frs_setup(9).input_value_name := 'Employee Contribution';
2148 g_template_obj(5).sf_setup.frs_setup(9).element_name := 'Projected Company Accommodation';
2149 g_template_obj(5).sf_setup.frs_setup(9).severity_level := null;
2150 g_template_obj(5).sf_setup.frs_setup(9).exclusion_tag := 'PROJECT';
2151
2152 g_template_obj(5).sf_setup.frs_setup(10).result_name := 'PROJECTED_FURNITURE_PERQUISITE';
2153 g_template_obj(5).sf_setup.frs_setup(10).result_rule_type := 'I';
2154 g_template_obj(5).sf_setup.frs_setup(10).input_value_name := 'Furniture Perquisite';
2155 g_template_obj(5).sf_setup.frs_setup(10).element_name := 'Projected Company Accommodation';
2156 g_template_obj(5).sf_setup.frs_setup(10).severity_level := null;
2157 g_template_obj(5).sf_setup.frs_setup(10).exclusion_tag := 'PROJECT';
2158
2159 g_template_obj(5).sf_setup.frs_setup(11).result_name := 'PROJECTED_FURNITURE_COST';
2160 g_template_obj(5).sf_setup.frs_setup(11).result_rule_type := 'I';
2161 g_template_obj(5).sf_setup.frs_setup(11).input_value_name := 'Furniture Cost';
2162 g_template_obj(5).sf_setup.frs_setup(11).element_name := 'Projected Company Accommodation';
2163 g_template_obj(5).sf_setup.frs_setup(11).severity_level := null;
2164 g_template_obj(5).sf_setup.frs_setup(11).exclusion_tag := 'PROJECT';
2165
2166 g_template_obj(5).sf_setup.frs_setup(12).result_name := 'EMPR_TAX';
2167 g_template_obj(5).sf_setup.frs_setup(12).result_rule_type := 'D';
2168 g_template_obj(5).sf_setup.frs_setup(12).input_value_name := 'Employer Taxable Amount';
2169 g_template_obj(5).sf_setup.frs_setup(12).element_name := null;
2170 g_template_obj(5).sf_setup.frs_setup(12).severity_level := null;
2171 g_template_obj(5).sf_setup.frs_setup(12).exclusion_tag := null;
2172
2173 g_template_obj(5).sf_setup.frs_setup(13).result_name := 'ACTUAL_COMP_SAL';
2174 g_template_obj(5).sf_setup.frs_setup(13).result_rule_type := 'I';
2175 g_template_obj(5).sf_setup.frs_setup(13).input_value_name := 'Actual Salary';
2176 g_template_obj(5).sf_setup.frs_setup(13).element_name := 'Projected Company Accommodation';
2177 g_template_obj(5).sf_setup.frs_setup(13).severity_level := null;
2178 g_template_obj(5).sf_setup.frs_setup(13).exclusion_tag := null;
2179
2180 g_template_obj(5).sf_setup.frs_setup(14).result_name := 'FED_TO_NET_PAY';
2181 g_template_obj(5).sf_setup.frs_setup(14).result_rule_type := 'I';
2185 g_template_obj(5).sf_setup.frs_setup(14).exclusion_tag := null;
2182 g_template_obj(5).sf_setup.frs_setup(14).input_value_name := null;
2183 g_template_obj(5).sf_setup.frs_setup(14).element_name := null;
2184 g_template_obj(5).sf_setup.frs_setup(14).severity_level := null;
2186
2187 g_template_obj(5).sf_setup.frs_setup(15).result_name := 'ER_MP_TAXABLE_AMOUNT';
2188 g_template_obj(5).sf_setup.frs_setup(15).result_rule_type := 'I';
2189 g_template_obj(5).sf_setup.frs_setup(15).input_value_name := 'ER MP Taxable Amount';
2190 g_template_obj(5).sf_setup.frs_setup(15).element_name := 'Employer Tax Projection Element';
2191 g_template_obj(5).sf_setup.frs_setup(15).severity_level := null;
2192 g_template_obj(5).sf_setup.frs_setup(15).exclusion_tag := null;
2193
2194 g_template_obj(5).sf_setup.frs_setup(16).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
2195 g_template_obj(5).sf_setup.frs_setup(16).result_rule_type := 'I';
2196 g_template_obj(5).sf_setup.frs_setup(16).input_value_name := 'Projected ER MP Taxable Amt';
2197 g_template_obj(5).sf_setup.frs_setup(16).element_name := 'Employer Tax Projection Element';
2198 g_template_obj(5).sf_setup.frs_setup(16).severity_level := null;
2199 g_template_obj(5).sf_setup.frs_setup(16).exclusion_tag := null;
2200
2201 g_template_obj(5).sf_setup.frs_setup(17).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
2202 g_template_obj(5).sf_setup.frs_setup(17).result_rule_type := 'I';
2203 g_template_obj(5).sf_setup.frs_setup(17).input_value_name := 'ER MP Salary to be Excluded';
2204 g_template_obj(5).sf_setup.frs_setup(17).element_name := 'Employer Tax Projection Element';
2205 g_template_obj(5).sf_setup.frs_setup(17).severity_level := null;
2206 g_template_obj(5).sf_setup.frs_setup(17).exclusion_tag := null;
2207
2208 g_template_obj(5).sf_setup.frs_setup(18).result_name := 'ER_NMP_TAXABLE_AMOUNT';
2209 g_template_obj(5).sf_setup.frs_setup(18).result_rule_type := 'I';
2210 g_template_obj(5).sf_setup.frs_setup(18).input_value_name := 'ER NMP Taxable Amount';
2211 g_template_obj(5).sf_setup.frs_setup(18).element_name := 'Employer Tax Projection Element';
2212 g_template_obj(5).sf_setup.frs_setup(18).severity_level := null;
2213 g_template_obj(5).sf_setup.frs_setup(18).exclusion_tag := null;
2214
2215 g_template_obj(5).sf_setup.frs_setup(19).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
2216 g_template_obj(5).sf_setup.frs_setup(19).result_rule_type := 'I';
2217 g_template_obj(5).sf_setup.frs_setup(19).input_value_name := 'Projected ER NMP Taxable Amt';
2218 g_template_obj(5).sf_setup.frs_setup(19).element_name := 'Employer Tax Projection Element';
2219 g_template_obj(5).sf_setup.frs_setup(19).severity_level := null;
2220 g_template_obj(5).sf_setup.frs_setup(19).exclusion_tag := null;
2221
2222 g_template_obj(5).sf_setup.frs_setup(20).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
2223 g_template_obj(5).sf_setup.frs_setup(20).result_rule_type := 'I';
2224 g_template_obj(5).sf_setup.frs_setup(20).input_value_name := 'ER NMP Salary to be Excluded';
2225 g_template_obj(5).sf_setup.frs_setup(20).element_name := 'Employer Tax Projection Element';
2226 g_template_obj(5).sf_setup.frs_setup(20).severity_level := null;
2227 g_template_obj(5).sf_setup.frs_setup(20).exclusion_tag := null;
2228
2229 g_template_obj(5).sf_setup.frs_setup(21).result_name := 'COMPONENT_NAME';
2230 g_template_obj(5).sf_setup.frs_setup(21).result_rule_type := 'I';
2231 g_template_obj(5).sf_setup.frs_setup(21).input_value_name := 'Component Name';
2232 g_template_obj(5).sf_setup.frs_setup(21).element_name := 'Employer Tax Projection Element';
2233 g_template_obj(5).sf_setup.frs_setup(21).severity_level := null;
2234 g_template_obj(5).sf_setup.frs_setup(21).exclusion_tag := null;
2235
2236 g_template_obj(5).sf_setup.frs_setup(22).result_name := 'NON_REC_VALUE';
2237 g_template_obj(5).sf_setup.frs_setup(22).result_rule_type := 'I';
2238 g_template_obj(5).sf_setup.frs_setup(22).input_value_name := 'Non Rec Perquisite';
2239 g_template_obj(5).sf_setup.frs_setup(22).element_name := 'Employer Tax Projection Element';
2240 g_template_obj(5).sf_setup.frs_setup(22).severity_level := null;
2241 g_template_obj(5).sf_setup.frs_setup(22).exclusion_tag := null;
2242 ----------------------------------------------------------------
2243 -- Formula Setup for Accommodation Template ends
2244 ----------------------------------------------------------------
2245
2246 ----------------------------------------------------------------
2247 -- Add. Element Setup for Accommodation Template starts
2248 ----------------------------------------------------------------
2249
2250 g_template_obj(5).ae_setup(1).element_name := ' Paid MP';
2251 g_template_obj(5).ae_setup(1).classification := 'Paid Monetary Perquisite';
2252 g_template_obj(5).ae_setup(1).exclusion_tag := 'Perquisite';
2253 g_template_obj(5).ae_setup(1).priority := 2000;
2254
2255 g_template_obj(5).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
2256 g_template_obj(5).ae_setup(1).iv_setup(1).uom := 'M';
2257 g_template_obj(5).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
2258 g_template_obj(5).ae_setup(1).iv_setup(1).lookup_type := null;
2259 g_template_obj(5).ae_setup(1).iv_setup(1).default_value := null;
2260 g_template_obj(5).ae_setup(1).iv_setup(1).def_value_column := null;
2261 g_template_obj(5).ae_setup(1).iv_setup(1).min_value := null;
2262 g_template_obj(5).ae_setup(1).iv_setup(1).warn_or_error := null;
2263 g_template_obj(5).ae_setup(1).iv_setup(1).balance_name := null;
2264 g_template_obj(5).ae_setup(1).iv_setup(1).exclusion_tag := null;
2265
2266 g_template_obj(5).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
2270 g_template_obj(5).ae_setup(1).iv_setup(2).default_value := 'Company Accommodation';
2267 g_template_obj(5).ae_setup(1).iv_setup(2).uom := 'C';
2268 g_template_obj(5).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
2269 g_template_obj(5).ae_setup(1).iv_setup(2).lookup_type := null;
2271 g_template_obj(5).ae_setup(1).iv_setup(2).def_value_column := null;
2272 g_template_obj(5).ae_setup(1).iv_setup(2).min_value := null;
2273 g_template_obj(5).ae_setup(1).iv_setup(2).warn_or_error := null;
2274 g_template_obj(5).ae_setup(1).iv_setup(2).balance_name := null;
2275 g_template_obj(5).ae_setup(1).iv_setup(2).exclusion_tag := null;
2276
2277 ----------------------------------------------------------------
2278 -- Add. Element Setup for Accommodation Template ends
2279 ----------------------------------------------------------------
2280
2281 ----------------------------------------------------------------
2282 -- TEMPLATE FOR ACCOMMODATION ENDS
2283 ----------------------------------------------------------------
2284
2285 ----------------------------------------------------------------
2286 -- TEMPLATE FOR CONCESSIONAL LOAN STARTS
2287 ----------------------------------------------------------------
2288 pay_in_utils.set_location(g_debug, l_procedure,70);
2289 g_template_obj(6).template_name := 'Loan at Concessional Rate';
2290 g_template_obj(6).category := 'Perquisites';
2291 g_template_obj(6).priority := 17000;
2292
2293 ----------------------------------------------------------------
2294 -- Exclusion Rules for Concessional Loan Template start
2295 ----------------------------------------------------------------
2296 g_template_obj(6).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
2297 g_template_obj(6).er_setup(1).value := 'N';
2298 g_template_obj(6).er_setup(1).descr := 'Exclusion rule for Projections.';
2299 g_template_obj(6).er_setup(1).tag := 'PROJECT';
2300 g_template_obj(6).er_setup(1).rule_id := null;
2301
2302 ----------------------------------------------------------------
2303 -- Exclusion Rules for Concessional Loan Template end
2304 ----------------------------------------------------------------
2305
2306 ----------------------------------------------------------------
2307 -- Input Values for Concessional Loan Template start
2308 ----------------------------------------------------------------
2309 g_template_obj(6).iv_setup(1).input_value_name := 'Pay Value';
2310 g_template_obj(6).iv_setup(1).uom := 'M';
2311 g_template_obj(6).iv_setup(1).mandatory_flag := 'X';
2312 g_template_obj(6).iv_setup(1).lookup_type := null;
2313 g_template_obj(6).iv_setup(1).def_value_column := null;
2314 g_template_obj(6).iv_setup(1).default_value := null;
2315 g_template_obj(6).iv_setup(1).min_value := null;
2316 g_template_obj(6).iv_setup(1).warn_or_error := null;
2317 g_template_obj(6).iv_setup(1).balance_name := null;
2318 g_template_obj(6).iv_setup(1).exclusion_tag := null;
2319
2320 g_template_obj(6).iv_setup(2).input_value_name := 'Component Name';
2321 g_template_obj(6).iv_setup(2).uom := 'C';
2322 g_template_obj(6).iv_setup(2).mandatory_flag := 'X';
2323 g_template_obj(6).iv_setup(2).lookup_type := null;
2324 g_template_obj(6).iv_setup(2).default_value := 'Loan at Concessional Rate';
2325 g_template_obj(6).iv_setup(2).def_value_column := null;
2326 g_template_obj(6).iv_setup(2).min_value := null;
2327 g_template_obj(6).iv_setup(2).warn_or_error := null;
2328 g_template_obj(6).iv_setup(2).balance_name := null;
2329 g_template_obj(6).iv_setup(2).exclusion_tag := null;
2330
2331 g_template_obj(6).iv_setup(3).input_value_name := 'Loan Number';
2332 g_template_obj(6).iv_setup(3).uom := 'C';
2333 g_template_obj(6).iv_setup(3).mandatory_flag := 'Y';
2334 g_template_obj(6).iv_setup(3).lookup_type := null;
2335 g_template_obj(6).iv_setup(3).default_value := null;
2336 g_template_obj(6).iv_setup(3).def_value_column := null;
2337 g_template_obj(6).iv_setup(3).min_value := null;
2338 g_template_obj(6).iv_setup(3).warn_or_error := null;
2339 g_template_obj(6).iv_setup(3).balance_name := null;
2340 g_template_obj(6).iv_setup(3).exclusion_tag := null;
2341
2342 g_template_obj(6).iv_setup(4).input_value_name := 'Outstanding Balance';
2343 g_template_obj(6).iv_setup(4).uom := 'M';
2344 g_template_obj(6).iv_setup(4).mandatory_flag := 'X';
2345 g_template_obj(6).iv_setup(4).lookup_type := null;
2346 g_template_obj(6).iv_setup(4).default_value := null;
2347 g_template_obj(6).iv_setup(4).def_value_column := null;
2348 g_template_obj(6).iv_setup(4).min_value := 0;
2349 g_template_obj(6).iv_setup(4).warn_or_error := 'E';
2350 g_template_obj(6).iv_setup(4).balance_name := 'Maximum Outstanding Amount';
2351 g_template_obj(6).iv_setup(4).exclusion_tag := null;
2352
2353 g_template_obj(6).iv_setup(5).input_value_name := 'Monthly Installment';
2354 g_template_obj(6).iv_setup(5).uom := 'M';
2355 g_template_obj(6).iv_setup(5).mandatory_flag := 'Y';
2356 g_template_obj(6).iv_setup(5).lookup_type := null;
2357 g_template_obj(6).iv_setup(5).default_value := null;
2358 g_template_obj(6).iv_setup(5).def_value_column := null;
2359 g_template_obj(6).iv_setup(5).min_value := 0;
2360 g_template_obj(6).iv_setup(5).warn_or_error := 'E';
2361 g_template_obj(6).iv_setup(5).balance_name := null; -- Bug 13812328
2362 g_template_obj(6).iv_setup(5).exclusion_tag := null;
2363
2364 g_template_obj(6).iv_setup(6).input_value_name := 'Loan Type';
2365 g_template_obj(6).iv_setup(6).uom := 'C';
2366 g_template_obj(6).iv_setup(6).mandatory_flag := 'Y';
2370 g_template_obj(6).iv_setup(6).min_value := null;
2367 g_template_obj(6).iv_setup(6).lookup_type := 'IN_LOAN_TYPE';
2368 g_template_obj(6).iv_setup(6).default_value := null;
2369 g_template_obj(6).iv_setup(6).def_value_column := null;
2371 g_template_obj(6).iv_setup(6).warn_or_error := null;
2372 g_template_obj(6).iv_setup(6).balance_name := null;
2373 g_template_obj(6).iv_setup(6).exclusion_tag := null;
2374
2375 g_template_obj(6).iv_setup(7).input_value_name := 'Loan Principal Amount';
2376 g_template_obj(6).iv_setup(7).uom := 'M';
2377 g_template_obj(6).iv_setup(7).mandatory_flag := 'Y';
2378 g_template_obj(6).iv_setup(7).lookup_type := null;
2379 g_template_obj(6).iv_setup(7).default_value := null;
2380 g_template_obj(6).iv_setup(7).def_value_column := null;
2381 g_template_obj(6).iv_setup(7).min_value := 0;
2382 g_template_obj(6).iv_setup(7).warn_or_error := 'E';
2383 g_template_obj(6).iv_setup(7).balance_name := 'Loan Principal Amount';
2384 g_template_obj(6).iv_setup(7).exclusion_tag := null;
2385
2386 g_template_obj(6).iv_setup(8).input_value_name := 'Loan Duration in Months';
2387 g_template_obj(6).iv_setup(8).uom := 'N';
2388 g_template_obj(6).iv_setup(8).mandatory_flag := 'Y';
2389 g_template_obj(6).iv_setup(8).lookup_type := null;
2390 g_template_obj(6).iv_setup(8).default_value := null;
2391 g_template_obj(6).iv_setup(8).def_value_column := null;
2392 g_template_obj(6).iv_setup(8).min_value := 0;
2393 g_template_obj(6).iv_setup(8).warn_or_error := 'E';
2394 g_template_obj(6).iv_setup(8).balance_name := null;
2395 g_template_obj(6).iv_setup(8).exclusion_tag := null;
2396
2397 g_template_obj(6).iv_setup(9).input_value_name := 'Employer Interest Rate';
2398 g_template_obj(6).iv_setup(9).uom := 'N';
2399 g_template_obj(6).iv_setup(9).mandatory_flag := 'Y';
2400 g_template_obj(6).iv_setup(9).lookup_type := null;
2401 g_template_obj(6).iv_setup(9).default_value := null;
2402 g_template_obj(6).iv_setup(9).def_value_column := null;
2403 g_template_obj(6).iv_setup(9).min_value := 0;
2404 g_template_obj(6).iv_setup(9).warn_or_error := 'E';
2405 g_template_obj(6).iv_setup(9).balance_name := null;
2406 g_template_obj(6).iv_setup(9).exclusion_tag := null;
2407
2408 g_template_obj(6).iv_setup(10).input_value_name := 'Taxable Flag';
2409 g_template_obj(6).iv_setup(10).uom := 'C';
2410 g_template_obj(6).iv_setup(10).mandatory_flag := 'X';
2411 g_template_obj(6).iv_setup(10).lookup_type := 'YES_NO';
2412 g_template_obj(6).iv_setup(10).default_value := 'Y';
2413 g_template_obj(6).iv_setup(10).def_value_column := null;
2414 g_template_obj(6).iv_setup(10).min_value := null;
2415 g_template_obj(6).iv_setup(10).warn_or_error := null;
2416 g_template_obj(6).iv_setup(10).balance_name := null;
2417 g_template_obj(6).iv_setup(10).exclusion_tag := null;
2418
2419 g_template_obj(6).iv_setup(11).input_value_name := 'Principal Amount Balance';
2420 g_template_obj(6).iv_setup(11).uom := 'M';
2421 g_template_obj(6).iv_setup(11).mandatory_flag := 'X';
2422 g_template_obj(6).iv_setup(11).lookup_type := null;
2423 g_template_obj(6).iv_setup(11).default_value := null;
2424 g_template_obj(6).iv_setup(11).def_value_column := null;
2425 g_template_obj(6).iv_setup(11).min_value := 0;
2426 g_template_obj(6).iv_setup(11).warn_or_error := 'E';
2427 g_template_obj(6).iv_setup(11).balance_name := null;
2428 g_template_obj(6).iv_setup(11).exclusion_tag := null;
2429
2430 g_template_obj(6).iv_setup(12).input_value_name := 'Projected Taxable Value';
2431 g_template_obj(6).iv_setup(12).uom := 'M';
2432 g_template_obj(6).iv_setup(12).mandatory_flag := 'X';
2433 g_template_obj(6).iv_setup(12).lookup_type := null;
2434 g_template_obj(6).iv_setup(12).default_value := null;
2435 g_template_obj(6).iv_setup(12).def_value_column := null;
2436 g_template_obj(6).iv_setup(12).min_value := null;
2437 g_template_obj(6).iv_setup(12).warn_or_error := null;
2438 g_template_obj(6).iv_setup(12).balance_name := 'Taxable Perquisites for Projection';
2439 g_template_obj(6).iv_setup(12).exclusion_tag := 'PROJECT';
2440
2441 g_template_obj(6).iv_setup(13).input_value_name := 'Employer Paid Tax';
2442 g_template_obj(6).iv_setup(13).uom := 'C';
2443 g_template_obj(6).iv_setup(13).mandatory_flag := 'Y';
2444 g_template_obj(6).iv_setup(13).lookup_type := 'YES_NO';
2445 g_template_obj(6).iv_setup(13).default_value := 'N';
2446 g_template_obj(6).iv_setup(13).def_value_column := null;
2447 g_template_obj(6).iv_setup(13).min_value := null;
2448 g_template_obj(6).iv_setup(13).warn_or_error := null;
2449 g_template_obj(6).iv_setup(13).balance_name := null;
2450 g_template_obj(6).iv_setup(13).exclusion_tag := null;
2451
2452 g_template_obj(6).iv_setup(14).input_value_name := 'Employer Taxable Amount';
2453 g_template_obj(6).iv_setup(14).uom := 'M';
2454 g_template_obj(6).iv_setup(14).mandatory_flag := 'X';
2455 g_template_obj(6).iv_setup(14).lookup_type := null;
2456 g_template_obj(6).iv_setup(14).default_value := null;
2457 g_template_obj(6).iv_setup(14).def_value_column := null;
2458 g_template_obj(6).iv_setup(14).min_value := 0;
2459 g_template_obj(6).iv_setup(14).warn_or_error := 'E';
2460 g_template_obj(6).iv_setup(14).balance_name := null;
2461 g_template_obj(6).iv_setup(14).exclusion_tag := null;
2462
2463 g_template_obj(6).iv_setup(15).input_value_name := 'Additional Information';
2464 g_template_obj(6).iv_setup(15).uom := 'C';
2465 g_template_obj(6).iv_setup(15).mandatory_flag := 'N';
2469 g_template_obj(6).iv_setup(15).min_value := null;
2466 g_template_obj(6).iv_setup(15).lookup_type := 'IN_LOAN_INTEREST_TYPE';
2467 g_template_obj(6).iv_setup(15).default_value := null;
2468 g_template_obj(6).iv_setup(15).def_value_column := null;
2470 g_template_obj(6).iv_setup(15).warn_or_error := null;
2471 g_template_obj(6).iv_setup(15).balance_name := null;
2472 g_template_obj(6).iv_setup(15).exclusion_tag := null;
2473
2474
2475 ----------------------------------------------------------------
2476 -- Input Values for Concessional Loan Template end
2477 ----------------------------------------------------------------
2478
2479 ----------------------------------------------------------------
2480 -- Balance Feeds for Concessional Loan Template start
2481 ----------------------------------------------------------------
2482 g_template_obj(6).bf_setup(1).balance_name := 'Maximum Outstanding Amount';
2483 g_template_obj(6).bf_setup(1).iv_name := 'Monthly Installment';
2484 g_template_obj(6).bf_setup(1).scale := -1;
2485 g_template_obj(6).bf_setup(1).exclusion_tag := null;
2486
2487 ----------------------------------------------------------------
2488 -- Balance Feeds for Concessional Loan Template end
2489 ----------------------------------------------------------------
2490
2491 ----------------------------------------------------------------
2492 -- Formula Setup for Concessional Loan Template starts
2493 ----------------------------------------------------------------
2494 g_template_obj(6).sf_setup.formula_name := 'IN_CONCESSION_LOAN';
2495 g_template_obj(6).sf_setup.status_rule_id := null;
2496 g_template_obj(6).sf_setup.description := null;
2497
2498 g_template_obj(6).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
2499 g_template_obj(6).sf_setup.frs_setup(1).result_rule_type := 'D';
2500 g_template_obj(6).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
2501 g_template_obj(6).sf_setup.frs_setup(1).element_name := null;
2502 g_template_obj(6).sf_setup.frs_setup(1).severity_level := null;
2503 g_template_obj(6).sf_setup.frs_setup(1).exclusion_tag := null;
2504
2505 /* g_template_obj(6).sf_setup.frs_setup(2).result_rule_type := 'D';
2506 g_template_obj(6).sf_setup.frs_setup(2).input_value_name := 'Pay Value';
2507 g_template_obj(6).sf_setup.frs_setup(2).element_name := null;
2508 g_template_obj(6).sf_setup.frs_setup(2).severity_level := null;
2509 g_template_obj(6).sf_setup.frs_setup(1).exclusion_tag := null;
2510 */
2511 g_template_obj(6).sf_setup.frs_setup(2).result_name := 'PRINCIPAL_AMOUNT';
2512 g_template_obj(6).sf_setup.frs_setup(2).result_rule_type := 'D';
2513 g_template_obj(6).sf_setup.frs_setup(2).input_value_name := 'Principal Amount Balance';
2514 g_template_obj(6).sf_setup.frs_setup(2).element_name := null;
2515 g_template_obj(6).sf_setup.frs_setup(2).severity_level := null;
2516 g_template_obj(6).sf_setup.frs_setup(2).exclusion_tag := null;
2517
2518 g_template_obj(6).sf_setup.frs_setup(3).result_name := 'PROJECTED_VALUE';
2519 g_template_obj(6).sf_setup.frs_setup(3).result_rule_type := 'D';
2520 g_template_obj(6).sf_setup.frs_setup(3).input_value_name := 'Projected Taxable Value';
2521 g_template_obj(6).sf_setup.frs_setup(3).element_name := null;
2522 g_template_obj(6).sf_setup.frs_setup(3).severity_level := null;
2523 g_template_obj(6).sf_setup.frs_setup(3).exclusion_tag := 'PROJECT';
2524
2525 g_template_obj(6).sf_setup.frs_setup(4).result_name := 'O_STOP_FLAG';
2526 g_template_obj(6).sf_setup.frs_setup(4).result_rule_type := 'S';
2527 g_template_obj(6).sf_setup.frs_setup(4).input_value_name := null;
2528 g_template_obj(6).sf_setup.frs_setup(4).element_name := null;
2529 g_template_obj(6).sf_setup.frs_setup(4).severity_level := null;
2530 g_template_obj(6).sf_setup.frs_setup(4).exclusion_tag := null;
2531
2532 g_template_obj(6).sf_setup.frs_setup(5).result_name := 'EMPR_TAX';
2533 g_template_obj(6).sf_setup.frs_setup(5).result_rule_type := 'D';
2534 g_template_obj(6).sf_setup.frs_setup(5).input_value_name := 'Employer Taxable Amount';
2535 g_template_obj(6).sf_setup.frs_setup(5).element_name := null;
2536 g_template_obj(6).sf_setup.frs_setup(5).severity_level := null;
2537 g_template_obj(6).sf_setup.frs_setup(5).exclusion_tag := null;
2538
2539 g_template_obj(6).sf_setup.frs_setup(6).result_name := 'ER_MP_TAXABLE_AMOUNT';
2540 g_template_obj(6).sf_setup.frs_setup(6).result_rule_type := 'I';
2541 g_template_obj(6).sf_setup.frs_setup(6).input_value_name := 'ER MP Taxable Amount';
2542 g_template_obj(6).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
2543 g_template_obj(6).sf_setup.frs_setup(6).severity_level := null;
2544 g_template_obj(6).sf_setup.frs_setup(6).exclusion_tag := null;
2545
2546 g_template_obj(6).sf_setup.frs_setup(7).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
2547 g_template_obj(6).sf_setup.frs_setup(7).result_rule_type := 'I';
2548 g_template_obj(6).sf_setup.frs_setup(7).input_value_name := 'Projected ER MP Taxable Amt';
2549 g_template_obj(6).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
2550 g_template_obj(6).sf_setup.frs_setup(7).severity_level := null;
2551 g_template_obj(6).sf_setup.frs_setup(7).exclusion_tag := null;
2552
2553 g_template_obj(6).sf_setup.frs_setup(8).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
2554 g_template_obj(6).sf_setup.frs_setup(8).result_rule_type := 'I';
2555 g_template_obj(6).sf_setup.frs_setup(8).input_value_name := 'ER MP Salary to be Excluded';
2556 g_template_obj(6).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
2557 g_template_obj(6).sf_setup.frs_setup(8).severity_level := null;
2561 g_template_obj(6).sf_setup.frs_setup(9).result_rule_type := 'I';
2558 g_template_obj(6).sf_setup.frs_setup(8).exclusion_tag := null;
2559
2560 g_template_obj(6).sf_setup.frs_setup(9).result_name := 'ER_NMP_TAXABLE_AMOUNT';
2562 g_template_obj(6).sf_setup.frs_setup(9).input_value_name := 'ER NMP Taxable Amount';
2563 g_template_obj(6).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
2564 g_template_obj(6).sf_setup.frs_setup(9).severity_level := null;
2565 g_template_obj(6).sf_setup.frs_setup(9).exclusion_tag := null;
2566
2567 g_template_obj(6).sf_setup.frs_setup(10).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
2568 g_template_obj(6).sf_setup.frs_setup(10).result_rule_type := 'I';
2569 g_template_obj(6).sf_setup.frs_setup(10).input_value_name := 'Projected ER NMP Taxable Amt';
2570 g_template_obj(6).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
2571 g_template_obj(6).sf_setup.frs_setup(10).severity_level := null;
2572 g_template_obj(6).sf_setup.frs_setup(10).exclusion_tag := null;
2573
2574 g_template_obj(6).sf_setup.frs_setup(11).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
2575 g_template_obj(6).sf_setup.frs_setup(11).result_rule_type := 'I';
2576 g_template_obj(6).sf_setup.frs_setup(11).input_value_name := 'ER NMP Salary to be Excluded';
2577 g_template_obj(6).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
2578 g_template_obj(6).sf_setup.frs_setup(11).severity_level := null;
2579 g_template_obj(6).sf_setup.frs_setup(11).exclusion_tag := null;
2580
2581 g_template_obj(6).sf_setup.frs_setup(12).result_name := 'COMPONENT_NAME';
2582 g_template_obj(6).sf_setup.frs_setup(12).result_rule_type := 'I';
2583 g_template_obj(6).sf_setup.frs_setup(12).input_value_name := 'Component Name';
2584 g_template_obj(6).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
2585 g_template_obj(6).sf_setup.frs_setup(12).severity_level := null;
2586 g_template_obj(6).sf_setup.frs_setup(12).exclusion_tag := null;
2587
2588 g_template_obj(6).sf_setup.frs_setup(13).result_name := 'NON_REC_VALUE';
2589 g_template_obj(6).sf_setup.frs_setup(13).result_rule_type := 'I';
2590 g_template_obj(6).sf_setup.frs_setup(13).input_value_name := 'Non Rec Perquisite';
2591 g_template_obj(6).sf_setup.frs_setup(13).element_name := 'Employer Tax Projection Element';
2592 g_template_obj(6).sf_setup.frs_setup(13).severity_level := null;
2593 g_template_obj(6).sf_setup.frs_setup(13).exclusion_tag := null;
2594
2595 g_template_obj(6).sf_setup.frs_setup(14).result_name := 'L_ERROR_MESG';
2596 g_template_obj(6).sf_setup.frs_setup(14).result_rule_type := 'M';
2597 g_template_obj(6).sf_setup.frs_setup(14).input_value_name := null;
2598 g_template_obj(6).sf_setup.frs_setup(14).element_name := null;
2599 g_template_obj(6).sf_setup.frs_setup(14).severity_level := 'W';
2600 g_template_obj(6).sf_setup.frs_setup(14).exclusion_tag := null;
2601
2602 -- Bug 13812328 Start
2603 g_template_obj(6).sf_setup.frs_setup(15).result_name := 'ACTUAL_EMPLOYER_VALUE';
2604 g_template_obj(6).sf_setup.frs_setup(15).result_rule_type := 'I';
2605 g_template_obj(6).sf_setup.frs_setup(15).input_value_name := 'Interest';
2606 g_template_obj(6).sf_setup.frs_setup(15).element_name := 'Additional details for Concessional Loan';
2607 g_template_obj(6).sf_setup.frs_setup(15).severity_level := null;
2608 g_template_obj(6).sf_setup.frs_setup(15).exclusion_tag := null;
2609
2610 g_template_obj(6).sf_setup.frs_setup(16).result_name := 'COMPONENT_NAME';
2611 g_template_obj(6).sf_setup.frs_setup(16).result_rule_type := 'I';
2612 g_template_obj(6).sf_setup.frs_setup(16).input_value_name := 'Component Name';
2613 g_template_obj(6).sf_setup.frs_setup(16).element_name := 'Additional details for Concessional Loan';
2614 g_template_obj(6).sf_setup.frs_setup(16).severity_level := null;
2615 g_template_obj(6).sf_setup.frs_setup(16).exclusion_tag := null;
2616 -- Bug 13812328 End
2617
2618 ----------------------------------------------------------------
2619 -- Formula Setup for Concessional Loan Template ends
2620 ----------------------------------------------------------------
2621
2622 ----------------------------------------------------------------
2623 -- Add. Element Setup for Concessional Loan Template starts
2624 ----------------------------------------------------------------
2625 ----------------------------------------------------------------
2626 -- Add. Element Setup for Concessional Loan Template ends
2627 ----------------------------------------------------------------
2628
2629 ----------------------------------------------------------------
2630 -- TEMPLATE FOR CONCESSIONAL LOAN ENDS
2631 ----------------------------------------------------------------
2632
2633 ----------------------------------------------------------------
2634 -- TEMPLATE FOR COMPANY ASSETS STARTS
2635 ----------------------------------------------------------------
2636 pay_in_utils.set_location(g_debug, l_procedure,80);
2637 g_template_obj(7).template_name := 'Company Movable Assets';
2638 g_template_obj(7).category := 'Perquisites';
2639 g_template_obj(7).priority := 17000;
2640
2641 ----------------------------------------------------------------
2642 -- Exclusion Rules for Company Assets Template start
2643 ----------------------------------------------------------------
2644 g_template_obj(7).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
2645 g_template_obj(7).er_setup(1).value := 'N';
2646 g_template_obj(7).er_setup(1).descr := 'Exclusion rule for Projections.';
2647 g_template_obj(7).er_setup(1).tag := 'PROJECT';
2648 g_template_obj(7).er_setup(1).rule_id := null;
2649
2653
2650 ----------------------------------------------------------------
2651 -- Exclusion Rules for Company Assets Template end
2652 ----------------------------------------------------------------
2654 ----------------------------------------------------------------
2655 -- Input Values for Company Assets Template start
2656 ----------------------------------------------------------------
2657 g_template_obj(7).iv_setup(1).input_value_name := 'Pay Value';
2658 g_template_obj(7).iv_setup(1).uom := 'M';
2659 g_template_obj(7).iv_setup(1).mandatory_flag := 'X';
2660 g_template_obj(7).iv_setup(1).lookup_type := null;
2661 g_template_obj(7).iv_setup(1).default_value := null;
2662 g_template_obj(7).iv_setup(1).def_value_column := null;
2663 g_template_obj(7).iv_setup(1).min_value := null;
2664 g_template_obj(7).iv_setup(1).warn_or_error := null;
2665 g_template_obj(7).iv_setup(1).balance_name := null;
2666 g_template_obj(7).iv_setup(1).exclusion_tag := null;
2667
2668 g_template_obj(7).iv_setup(2).input_value_name := 'Benefit Start Date';
2669 g_template_obj(7).iv_setup(2).uom := 'D';
2670 g_template_obj(7).iv_setup(2).mandatory_flag := 'N';
2671 g_template_obj(7).iv_setup(2).lookup_type := null;
2672 g_template_obj(7).iv_setup(2).default_value := null;
2673 g_template_obj(7).iv_setup(2).def_value_column := null;
2674 g_template_obj(7).iv_setup(2).min_value := null;
2675 g_template_obj(7).iv_setup(2).warn_or_error := null;
2676 g_template_obj(7).iv_setup(2).balance_name := null;
2677 g_template_obj(7).iv_setup(2).exclusion_tag := null;
2678
2679 g_template_obj(7).iv_setup(3).input_value_name := 'Benefit End Date';
2680 g_template_obj(7).iv_setup(3).uom := 'D';
2681 g_template_obj(7).iv_setup(3).mandatory_flag := 'N';
2682 g_template_obj(7).iv_setup(3).lookup_type := null;
2683 g_template_obj(7).iv_setup(3).default_value := null;
2684 g_template_obj(7).iv_setup(3).def_value_column := null;
2685 g_template_obj(7).iv_setup(3).min_value := null;
2686 g_template_obj(7).iv_setup(3).warn_or_error := null;
2687 g_template_obj(7).iv_setup(3).balance_name := null;
2688 g_template_obj(7).iv_setup(3).exclusion_tag := null;
2689
2690 g_template_obj(7).iv_setup(4).input_value_name := 'Component Name';
2691 g_template_obj(7).iv_setup(4).uom := 'C';
2692 g_template_obj(7).iv_setup(4).mandatory_flag := 'X';
2693 g_template_obj(7).iv_setup(4).lookup_type := null;
2694 g_template_obj(7).iv_setup(4).default_value := 'Company Movable Assets';
2695 g_template_obj(7).iv_setup(4).def_value_column := null;
2696 g_template_obj(7).iv_setup(4).min_value := null;
2697 g_template_obj(7).iv_setup(4).warn_or_error := null;
2698 g_template_obj(7).iv_setup(4).balance_name := null;
2699 g_template_obj(7).iv_setup(4).exclusion_tag := null;
2700
2701 g_template_obj(7).iv_setup(5).input_value_name := 'Asset Category';
2702 g_template_obj(7).iv_setup(5).uom := 'C';
2703 g_template_obj(7).iv_setup(5).mandatory_flag := 'Y';
2704 g_template_obj(7).iv_setup(5).lookup_type := 'IN_ASSET_TYPE_TEMP';
2705 g_template_obj(7).iv_setup(5).default_value := null;
2706 g_template_obj(7).iv_setup(5).def_value_column := null;
2707 g_template_obj(7).iv_setup(5).min_value := null;
2708 g_template_obj(7).iv_setup(5).warn_or_error := null;
2709 g_template_obj(7).iv_setup(5).balance_name := null;
2710 g_template_obj(7).iv_setup(5).exclusion_tag := null;
2711
2712 g_template_obj(7).iv_setup(6).input_value_name := 'Asset Description';
2713 g_template_obj(7).iv_setup(6).uom := 'C';
2714 g_template_obj(7).iv_setup(6).mandatory_flag := 'N';
2715 g_template_obj(7).iv_setup(6).lookup_type := null;
2716 g_template_obj(7).iv_setup(6).default_value := null;
2717 g_template_obj(7).iv_setup(6).def_value_column := null;
2718 g_template_obj(7).iv_setup(6).min_value := null;
2719 g_template_obj(7).iv_setup(6).warn_or_error := null;
2720 g_template_obj(7).iv_setup(6).balance_name := null;
2721 g_template_obj(7).iv_setup(6).exclusion_tag := null;
2722
2723 g_template_obj(7).iv_setup(7).input_value_name := 'Usage';
2724 g_template_obj(7).iv_setup(7).uom := 'C';
2725 g_template_obj(7).iv_setup(7).mandatory_flag := 'Y';
2726 g_template_obj(7).iv_setup(7).lookup_type := 'IN_ASSET_USAGE_TYPE';
2727 g_template_obj(7).iv_setup(7).default_value := null;
2728 g_template_obj(7).iv_setup(7).def_value_column := null;
2729 g_template_obj(7).iv_setup(7).min_value := null;
2730 g_template_obj(7).iv_setup(7).warn_or_error := null;
2731 g_template_obj(7).iv_setup(7).balance_name := null;
2732 g_template_obj(7).iv_setup(7).exclusion_tag := null;
2733
2734 g_template_obj(7).iv_setup(8).input_value_name := 'Original Cost or Rental';
2735 g_template_obj(7).iv_setup(8).uom := 'M';
2736 g_template_obj(7).iv_setup(8).mandatory_flag := 'Y';
2737 g_template_obj(7).iv_setup(8).lookup_type := null;
2738 g_template_obj(7).iv_setup(8).default_value := null;
2739 g_template_obj(7).iv_setup(8).def_value_column := null;
2740 g_template_obj(7).iv_setup(8).min_value := 0;
2741 g_template_obj(7).iv_setup(8).warn_or_error := 'E';
2742 g_template_obj(7).iv_setup(8).balance_name := null;
2746 g_template_obj(7).iv_setup(9).uom := 'D';
2743 g_template_obj(7).iv_setup(8).exclusion_tag := null;
2744
2745 g_template_obj(7).iv_setup(9).input_value_name := 'Date of Purchase';
2747 g_template_obj(7).iv_setup(9).mandatory_flag := 'N';
2748 g_template_obj(7).iv_setup(9).lookup_type := null;
2749 g_template_obj(7).iv_setup(9).default_value := null;
2750 g_template_obj(7).iv_setup(9).def_value_column := null;
2751 g_template_obj(7).iv_setup(9).min_value := null;
2752 g_template_obj(7).iv_setup(9).warn_or_error := 'E';
2753 g_template_obj(7).iv_setup(9).balance_name := null;
2754 g_template_obj(7).iv_setup(9).exclusion_tag := null;
2755
2756 g_template_obj(7).iv_setup(10).input_value_name := 'Employee Contribution';
2757 g_template_obj(7).iv_setup(10).uom := 'M';
2758 g_template_obj(7).iv_setup(10).mandatory_flag := 'N';
2759 g_template_obj(7).iv_setup(10).lookup_type := null;
2760 g_template_obj(7).iv_setup(10).default_value := null;
2761 g_template_obj(7).iv_setup(10).def_value_column := null;
2762 g_template_obj(7).iv_setup(10).min_value := 0;
2763 g_template_obj(7).iv_setup(10).warn_or_error := 'E';
2764 g_template_obj(7).iv_setup(10).balance_name := 'Perquisite Employee Contribution';
2765 g_template_obj(7).iv_setup(10).exclusion_tag := null;
2766
2767 g_template_obj(7).iv_setup(11).input_value_name := 'Projected Taxable Value';
2768 g_template_obj(7).iv_setup(11).uom := 'M';
2769 g_template_obj(7).iv_setup(11).mandatory_flag := 'X';
2770 g_template_obj(7).iv_setup(11).lookup_type := null;
2771 g_template_obj(7).iv_setup(11).default_value := null;
2772 g_template_obj(7).iv_setup(11).def_value_column := null;
2773 g_template_obj(7).iv_setup(11).min_value := null;
2774 g_template_obj(7).iv_setup(11).warn_or_error := null;
2775 g_template_obj(7).iv_setup(11).balance_name := 'Taxable Perquisites for Projection';
2776 g_template_obj(7).iv_setup(11).exclusion_tag := 'PROJECT';
2777
2778 g_template_obj(7).iv_setup(12).input_value_name := 'Employer Paid Tax';
2779 g_template_obj(7).iv_setup(12).uom := 'C';
2780 g_template_obj(7).iv_setup(12).mandatory_flag := 'Y';
2781 g_template_obj(7).iv_setup(12).lookup_type := 'YES_NO';
2782 g_template_obj(7).iv_setup(12).default_value := 'N';
2783 g_template_obj(7).iv_setup(12).def_value_column := null;
2784 g_template_obj(7).iv_setup(12).min_value := null;
2785 g_template_obj(7).iv_setup(12).warn_or_error := null;
2786 g_template_obj(7).iv_setup(12).balance_name := null;
2787 g_template_obj(7).iv_setup(12).exclusion_tag := null;
2788
2789 g_template_obj(7).iv_setup(13).input_value_name := 'Employer Taxable Amount';
2790 g_template_obj(7).iv_setup(13).uom := 'M';
2791 g_template_obj(7).iv_setup(13).mandatory_flag := 'X';
2792 g_template_obj(7).iv_setup(13).lookup_type := null;
2793 g_template_obj(7).iv_setup(13).default_value := null;
2794 g_template_obj(7).iv_setup(13).def_value_column := null;
2795 g_template_obj(7).iv_setup(13).min_value := 0;
2796 g_template_obj(7).iv_setup(13).warn_or_error := 'E';
2797 g_template_obj(7).iv_setup(13).balance_name := null;
2798 g_template_obj(7).iv_setup(13).exclusion_tag := null;
2799
2800 ----------------------------------------------------------------
2801 -- Input Values for Company Assets Template end
2802 ----------------------------------------------------------------
2803
2804 ----------------------------------------------------------------
2805 -- Balance Feeds for Company Assets Template start
2806 ----------------------------------------------------------------
2807 ----------------------------------------------------------------
2808 -- Balance Feeds for Company Assets Template end
2809 ----------------------------------------------------------------
2810
2811 ----------------------------------------------------------------
2812 -- Formula Setup for Company Assets Template starts
2813 ----------------------------------------------------------------
2814 g_template_obj(7).sf_setup.formula_name := 'IN_MOVABLE_ASSET';
2815 g_template_obj(7).sf_setup.status_rule_id := null;
2816 g_template_obj(7).sf_setup.description := null;
2817
2818 g_template_obj(7).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
2819 g_template_obj(7).sf_setup.frs_setup(1).result_rule_type := 'D';
2820 g_template_obj(7).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
2821 g_template_obj(7).sf_setup.frs_setup(1).element_name := null;
2822 g_template_obj(7).sf_setup.frs_setup(1).severity_level := null;
2823 g_template_obj(7).sf_setup.frs_setup(1).exclusion_tag := null;
2824
2825 g_template_obj(7).sf_setup.frs_setup(2).result_name := 'RENTAL_VALUE';
2826 g_template_obj(7).sf_setup.frs_setup(2).result_rule_type := 'D';
2827 g_template_obj(7).sf_setup.frs_setup(2).input_value_name := 'Original Cost or Rental';
2828 g_template_obj(7).sf_setup.frs_setup(2).element_name := null;
2829 g_template_obj(7).sf_setup.frs_setup(2).severity_level := null;
2830 g_template_obj(7).sf_setup.frs_setup(2).exclusion_tag := null;
2831
2832 g_template_obj(7).sf_setup.frs_setup(3).result_name := 'ACTUAL_EMPLOYEE_CONTRIBUTION';
2833 g_template_obj(7).sf_setup.frs_setup(3).result_rule_type := 'D';
2834 g_template_obj(7).sf_setup.frs_setup(3).input_value_name := 'Employee Contribution';
2835 g_template_obj(7).sf_setup.frs_setup(3).element_name := null;
2836 g_template_obj(7).sf_setup.frs_setup(3).severity_level := null;
2840 g_template_obj(7).sf_setup.frs_setup(4).result_rule_type := 'D';
2837 g_template_obj(7).sf_setup.frs_setup(3).exclusion_tag := null;
2838
2839 g_template_obj(7).sf_setup.frs_setup(4).result_name := 'PROJECTED_VALUE';
2841 g_template_obj(7).sf_setup.frs_setup(4).input_value_name := 'Projected Taxable Value';
2842 g_template_obj(7).sf_setup.frs_setup(4).element_name := null;
2843 g_template_obj(7).sf_setup.frs_setup(4).severity_level := null;
2844 g_template_obj(7).sf_setup.frs_setup(4).exclusion_tag := 'PROJECT';
2845
2846 g_template_obj(7).sf_setup.frs_setup(5).result_name := 'O_STOP_FLAG';
2847 g_template_obj(7).sf_setup.frs_setup(5).result_rule_type := 'S';
2848 g_template_obj(7).sf_setup.frs_setup(5).input_value_name := null;
2849 g_template_obj(7).sf_setup.frs_setup(5).element_name := null;
2850 g_template_obj(7).sf_setup.frs_setup(5).severity_level := null;
2851 g_template_obj(7).sf_setup.frs_setup(5).exclusion_tag := null;
2852
2853 g_template_obj(7).sf_setup.frs_setup(6).result_name := 'EMPR_TAX';
2854 g_template_obj(7).sf_setup.frs_setup(6).result_rule_type := 'D';
2855 g_template_obj(7).sf_setup.frs_setup(6).input_value_name := 'Employer Taxable Amount';
2856 g_template_obj(7).sf_setup.frs_setup(6).element_name := null;
2857 g_template_obj(7).sf_setup.frs_setup(6).severity_level := null;
2858 g_template_obj(7).sf_setup.frs_setup(6).exclusion_tag := null;
2859
2860 g_template_obj(7).sf_setup.frs_setup(7).result_name := 'ER_MP_TAXABLE_AMOUNT';
2861 g_template_obj(7).sf_setup.frs_setup(7).result_rule_type := 'I';
2862 g_template_obj(7).sf_setup.frs_setup(7).input_value_name := 'ER MP Taxable Amount';
2863 g_template_obj(7).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
2864 g_template_obj(7).sf_setup.frs_setup(7).severity_level := null;
2865 g_template_obj(7).sf_setup.frs_setup(7).exclusion_tag := null;
2866
2867 g_template_obj(7).sf_setup.frs_setup(8).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
2868 g_template_obj(7).sf_setup.frs_setup(8).result_rule_type := 'I';
2869 g_template_obj(7).sf_setup.frs_setup(8).input_value_name := 'Projected ER MP Taxable Amt';
2870 g_template_obj(7).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
2871 g_template_obj(7).sf_setup.frs_setup(8).severity_level := null;
2872 g_template_obj(7).sf_setup.frs_setup(8).exclusion_tag := null;
2873
2874 g_template_obj(7).sf_setup.frs_setup(9).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
2875 g_template_obj(7).sf_setup.frs_setup(9).result_rule_type := 'I';
2876 g_template_obj(7).sf_setup.frs_setup(9).input_value_name := 'ER MP Salary to be Excluded';
2877 g_template_obj(7).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
2878 g_template_obj(7).sf_setup.frs_setup(9).severity_level := null;
2879 g_template_obj(7).sf_setup.frs_setup(9).exclusion_tag := null;
2880
2881 g_template_obj(7).sf_setup.frs_setup(10).result_name := 'ER_NMP_TAXABLE_AMOUNT';
2882 g_template_obj(7).sf_setup.frs_setup(10).result_rule_type := 'I';
2883 g_template_obj(7).sf_setup.frs_setup(10).input_value_name := 'ER NMP Taxable Amount';
2884 g_template_obj(7).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
2885 g_template_obj(7).sf_setup.frs_setup(10).severity_level := null;
2886 g_template_obj(7).sf_setup.frs_setup(10).exclusion_tag := null;
2887
2888 g_template_obj(7).sf_setup.frs_setup(11).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
2889 g_template_obj(7).sf_setup.frs_setup(11).result_rule_type := 'I';
2890 g_template_obj(7).sf_setup.frs_setup(11).input_value_name := 'Projected ER NMP Taxable Amt';
2891 g_template_obj(7).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
2892 g_template_obj(7).sf_setup.frs_setup(11).severity_level := null;
2893 g_template_obj(7).sf_setup.frs_setup(11).exclusion_tag := null;
2894
2895 g_template_obj(7).sf_setup.frs_setup(12).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
2896 g_template_obj(7).sf_setup.frs_setup(12).result_rule_type := 'I';
2897 g_template_obj(7).sf_setup.frs_setup(12).input_value_name := 'ER NMP Salary to be Excluded';
2898 g_template_obj(7).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
2899 g_template_obj(7).sf_setup.frs_setup(12).severity_level := null;
2900 g_template_obj(7).sf_setup.frs_setup(12).exclusion_tag := null;
2901
2902 g_template_obj(7).sf_setup.frs_setup(13).result_name := 'COMPONENT_NAME';
2903 g_template_obj(7).sf_setup.frs_setup(13).result_rule_type := 'I';
2904 g_template_obj(7).sf_setup.frs_setup(13).input_value_name := 'Component Name';
2905 g_template_obj(7).sf_setup.frs_setup(13).element_name := 'Employer Tax Projection Element';
2906 g_template_obj(7).sf_setup.frs_setup(13).severity_level := null;
2907 g_template_obj(7).sf_setup.frs_setup(13).exclusion_tag := null;
2908
2909 g_template_obj(7).sf_setup.frs_setup(14).result_name := 'NON_REC_VALUE';
2910 g_template_obj(7).sf_setup.frs_setup(14).result_rule_type := 'I';
2911 g_template_obj(7).sf_setup.frs_setup(14).input_value_name := 'Non Rec Perquisite';
2912 g_template_obj(7).sf_setup.frs_setup(14).element_name := 'Employer Tax Projection Element';
2913 g_template_obj(7).sf_setup.frs_setup(14).severity_level := null;
2914 g_template_obj(7).sf_setup.frs_setup(14).exclusion_tag := null;
2915 ----------------------------------------------------------------
2916 -- Formula Setup for Company Assets Template ends
2917 ----------------------------------------------------------------
2918
2919 ----------------------------------------------------------------
2920 -- Add. Element Setup for Company Assets Template starts
2921 ----------------------------------------------------------------
2925
2922 ----------------------------------------------------------------
2923 -- Add. Element Setup for Company Assets Template ends
2924 ----------------------------------------------------------------
2926 ----------------------------------------------------------------
2927 -- TEMPLATE FOR COMPANY ASSETS ENDS
2928 ----------------------------------------------------------------
2929
2930 ----------------------------------------------------------------
2931 -- TEMPLATE FOR OTHER PERQUISITES STARTS
2932 ----------------------------------------------------------------
2933 pay_in_utils.set_location(g_debug, l_procedure,90);
2934 g_template_obj(8).template_name := 'Other Perquisites';
2935 g_template_obj(8).category := 'Perquisites';
2936 g_template_obj(8).priority := 17000;
2937
2938 ----------------------------------------------------------------
2939 -- Exclusion Rules for Other Perquisites Template start
2940 ----------------------------------------------------------------
2941 g_template_obj(8).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
2942 g_template_obj(8).er_setup(1).value := 'N';
2943 g_template_obj(8).er_setup(1).descr := 'Exclusion rule for Projections.';
2944 g_template_obj(8).er_setup(1).tag := 'PROJECT';
2945 g_template_obj(8).er_setup(1).rule_id := null;
2946
2947 g_template_obj(8).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION5';
2948 g_template_obj(8).er_setup(2).value := 'N';
2949 g_template_obj(8).er_setup(2).descr := 'Exclusion rule for Club or Credit Card Perq.';
2950 g_template_obj(8).er_setup(2).tag := 'CLUBCREDIT';
2951 g_template_obj(8).er_setup(2).rule_id := null;
2952
2953 ----------------------------------------------------------------
2954 -- Exclusion Rules for Other Perquisites Template end
2955 ----------------------------------------------------------------
2956
2957 ----------------------------------------------------------------
2958 -- Input Values for Other Perquisites Template start
2959 ----------------------------------------------------------------
2960 g_template_obj(8).iv_setup(1).input_value_name := 'Pay Value';
2961 g_template_obj(8).iv_setup(1).uom := 'M';
2962 g_template_obj(8).iv_setup(1).mandatory_flag := 'X';
2963 g_template_obj(8).iv_setup(1).lookup_type := null;
2964 g_template_obj(8).iv_setup(1).default_value := null;
2965 g_template_obj(8).iv_setup(1).def_value_column := null;
2966 g_template_obj(8).iv_setup(1).min_value := null;
2967 g_template_obj(8).iv_setup(1).warn_or_error := null;
2968 g_template_obj(8).iv_setup(1).balance_name := 'Other Perquisites';
2969 g_template_obj(8).iv_setup(1).exclusion_tag := null;
2970
2971 g_template_obj(8).iv_setup(2).input_value_name := 'Component Name';
2972 g_template_obj(8).iv_setup(2).uom := 'C';
2973 g_template_obj(8).iv_setup(2).mandatory_flag := 'X';
2974 g_template_obj(8).iv_setup(2).lookup_type := null;
2975 g_template_obj(8).iv_setup(2).default_value := null;
2976 g_template_obj(8).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
2977 g_template_obj(8).iv_setup(2).min_value := null;
2978 g_template_obj(8).iv_setup(2).warn_or_error := null;
2979 g_template_obj(8).iv_setup(2).balance_name := null;
2980 g_template_obj(8).iv_setup(2).exclusion_tag := null;
2981
2982 g_template_obj(8).iv_setup(3).input_value_name := 'Cost to Employer';
2983 g_template_obj(8).iv_setup(3).uom := 'M';
2984 g_template_obj(8).iv_setup(3).mandatory_flag := 'N';
2985 g_template_obj(8).iv_setup(3).lookup_type := null;
2986 g_template_obj(8).iv_setup(3).default_value := null;
2987 g_template_obj(8).iv_setup(3).def_value_column := null;
2988 g_template_obj(8).iv_setup(3).min_value := 0;
2989 g_template_obj(8).iv_setup(3).warn_or_error := 'E';
2990 g_template_obj(8).iv_setup(3).balance_name := 'Perquisite Employer Contribution';
2991 g_template_obj(8).iv_setup(3).exclusion_tag := null;
2992
2993 g_template_obj(8).iv_setup(4).input_value_name := 'Employee Contribution';
2994 g_template_obj(8).iv_setup(4).uom := 'M';
2995 g_template_obj(8).iv_setup(4).mandatory_flag := 'N';
2996 g_template_obj(8).iv_setup(4).lookup_type := null;
2997 g_template_obj(8).iv_setup(4).default_value := null;
2998 g_template_obj(8).iv_setup(4).def_value_column := null;
2999 g_template_obj(8).iv_setup(4).min_value := 0;
3000 g_template_obj(8).iv_setup(4).warn_or_error := 'E';
3001 g_template_obj(8).iv_setup(4).balance_name := 'Perquisite Employee Contribution';
3002 g_template_obj(8).iv_setup(4).exclusion_tag := null;
3003
3004 g_template_obj(8).iv_setup(5).input_value_name := 'Official Purpose Expense';
3005 g_template_obj(8).iv_setup(5).uom := 'M';
3006 g_template_obj(8).iv_setup(5).mandatory_flag := 'N';
3007 g_template_obj(8).iv_setup(5).lookup_type := null;
3008 g_template_obj(8).iv_setup(5).default_value := null;
3009 g_template_obj(8).iv_setup(5).def_value_column := null;
3010 g_template_obj(8).iv_setup(5).min_value := 0;
3011 g_template_obj(8).iv_setup(5).warn_or_error := 'E';
3015 g_template_obj(8).iv_setup(6).input_value_name := 'Projected Taxable Value';
3012 g_template_obj(8).iv_setup(5).balance_name := 'Official Purpose Expense';
3013 g_template_obj(8).iv_setup(5).exclusion_tag := 'CLUBCREDIT';
3014
3016 g_template_obj(8).iv_setup(6).uom := 'M';
3017 g_template_obj(8).iv_setup(6).mandatory_flag := 'X';
3018 g_template_obj(8).iv_setup(6).lookup_type := null;
3019 g_template_obj(8).iv_setup(6).default_value := null;
3020 g_template_obj(8).iv_setup(6).def_value_column := null;
3021 g_template_obj(8).iv_setup(6).min_value := null;
3022 g_template_obj(8).iv_setup(6).warn_or_error := null;
3023 g_template_obj(8).iv_setup(6).balance_name := 'Taxable Perquisites for Projection';
3024 g_template_obj(8).iv_setup(6).exclusion_tag := 'PROJECT';
3025
3026 g_template_obj(8).iv_setup(7).input_value_name := 'Employer Paid Tax';
3027 g_template_obj(8).iv_setup(7).uom := 'C';
3028 g_template_obj(8).iv_setup(7).mandatory_flag := 'Y';
3029 g_template_obj(8).iv_setup(7).lookup_type := 'YES_NO';
3030 g_template_obj(8).iv_setup(7).default_value := 'N';
3031 g_template_obj(8).iv_setup(7).def_value_column := null;
3032 g_template_obj(8).iv_setup(7).min_value := null;
3033 g_template_obj(8).iv_setup(7).warn_or_error := null;
3034 g_template_obj(8).iv_setup(7).balance_name := null;
3035 g_template_obj(8).iv_setup(7).exclusion_tag := null;
3036
3037 g_template_obj(8).iv_setup(8).input_value_name := 'Employer Taxable Amount';
3038 g_template_obj(8).iv_setup(8).uom := 'M';
3039 g_template_obj(8).iv_setup(8).mandatory_flag := 'X';
3040 g_template_obj(8).iv_setup(8).lookup_type := null;
3041 g_template_obj(8).iv_setup(8).default_value := null;
3042 g_template_obj(8).iv_setup(8).def_value_column := null;
3043 g_template_obj(8).iv_setup(8).min_value := 0;
3044 g_template_obj(8).iv_setup(8).warn_or_error := 'E';
3045 g_template_obj(8).iv_setup(8).balance_name := null;
3046 g_template_obj(8).iv_setup(8).exclusion_tag := null;
3047
3048 ----------------------------------------------------------------
3049 -- Input Values for Other Perquisites Template end
3050 ----------------------------------------------------------------
3051
3052 ----------------------------------------------------------------
3053 -- Balance Feeds for Other Perquisites Template start
3054 ----------------------------------------------------------------
3055 g_template_obj(8).bf_setup(1).balance_name := 'Other Perquisites';
3056 g_template_obj(8).bf_setup(1).iv_name := 'Cost to Employer';
3057 g_template_obj(8).bf_setup(1).scale := -1;
3058 g_template_obj(8).bf_setup(1).exclusion_tag := null;
3059
3060 g_template_obj(8).bf_setup(2).balance_name := 'Other Perquisites';
3061 g_template_obj(8).bf_setup(2).iv_name := 'Employee Contribution';
3062 g_template_obj(8).bf_setup(2).scale := -1;
3063 g_template_obj(8).bf_setup(2).exclusion_tag := null;
3064 ----------------------------------------------------------------
3065 -- Balance Feeds for Other Perquisites Template end
3066 ----------------------------------------------------------------
3067
3068 ----------------------------------------------------------------
3069 -- Formula Setup for Other Perquisites Template starts
3070 ----------------------------------------------------------------
3071 g_template_obj(8).sf_setup.formula_name := 'IN_OTHER_PERQUISITES';
3072 g_template_obj(8).sf_setup.status_rule_id := null;
3073 g_template_obj(8).sf_setup.description := null;
3074
3075 g_template_obj(8).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
3076 g_template_obj(8).sf_setup.frs_setup(1).result_rule_type := 'D';
3077 g_template_obj(8).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
3078 g_template_obj(8).sf_setup.frs_setup(1).element_name := null;
3079 g_template_obj(8).sf_setup.frs_setup(1).severity_level := null;
3080 g_template_obj(8).sf_setup.frs_setup(1).exclusion_tag := null;
3081
3082 g_template_obj(8).sf_setup.frs_setup(2).result_name := 'PROJECTED_VALUE';
3083 g_template_obj(8).sf_setup.frs_setup(2).result_rule_type := 'D';
3084 g_template_obj(8).sf_setup.frs_setup(2).input_value_name := 'Projected Taxable Value';
3085 g_template_obj(8).sf_setup.frs_setup(2).element_name := null;
3086 g_template_obj(8).sf_setup.frs_setup(2).severity_level := null;
3087 g_template_obj(8).sf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
3088
3089 g_template_obj(8).sf_setup.frs_setup(3).result_name := 'EMPR_TAX';
3090 g_template_obj(8).sf_setup.frs_setup(3).result_rule_type := 'D';
3091 g_template_obj(8).sf_setup.frs_setup(3).input_value_name := 'Employer Taxable Amount';
3092 g_template_obj(8).sf_setup.frs_setup(3).element_name := null;
3093 g_template_obj(8).sf_setup.frs_setup(3).severity_level := null;
3094 g_template_obj(8).sf_setup.frs_setup(3).exclusion_tag := null;
3095
3096 g_template_obj(8).sf_setup.frs_setup(4).result_name := 'FED_TO_NET_PAY';
3097 g_template_obj(8).sf_setup.frs_setup(4).result_rule_type := 'I';
3098 g_template_obj(8).sf_setup.frs_setup(4).input_value_name := 'Pay Value';
3099 g_template_obj(8).sf_setup.frs_setup(4).element_name := null;
3100 g_template_obj(8).sf_setup.frs_setup(4).severity_level := null;
3101 g_template_obj(8).sf_setup.frs_setup(4).exclusion_tag := null;
3102
3103 g_template_obj(8).sf_setup.frs_setup(5).result_name := 'ER_MP_TAXABLE_AMOUNT';
3104 g_template_obj(8).sf_setup.frs_setup(5).result_rule_type := 'I';
3105 g_template_obj(8).sf_setup.frs_setup(5).input_value_name := 'ER MP Taxable Amount';
3106 g_template_obj(8).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
3107 g_template_obj(8).sf_setup.frs_setup(5).severity_level := null;
3108 g_template_obj(8).sf_setup.frs_setup(5).exclusion_tag := null;
3109
3110 g_template_obj(8).sf_setup.frs_setup(6).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
3111 g_template_obj(8).sf_setup.frs_setup(6).result_rule_type := 'I';
3112 g_template_obj(8).sf_setup.frs_setup(6).input_value_name := 'Projected ER MP Taxable Amt';
3113 g_template_obj(8).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
3114 g_template_obj(8).sf_setup.frs_setup(6).severity_level := null;
3115 g_template_obj(8).sf_setup.frs_setup(6).exclusion_tag := null;
3116
3117 g_template_obj(8).sf_setup.frs_setup(7).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
3118 g_template_obj(8).sf_setup.frs_setup(7).result_rule_type := 'I';
3119 g_template_obj(8).sf_setup.frs_setup(7).input_value_name := 'ER MP Salary to be Excluded';
3120 g_template_obj(8).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
3121 g_template_obj(8).sf_setup.frs_setup(7).severity_level := null;
3122 g_template_obj(8).sf_setup.frs_setup(7).exclusion_tag := null;
3123
3124 g_template_obj(8).sf_setup.frs_setup(8).result_name := 'ER_NMP_TAXABLE_AMOUNT';
3125 g_template_obj(8).sf_setup.frs_setup(8).result_rule_type := 'I';
3126 g_template_obj(8).sf_setup.frs_setup(8).input_value_name := 'ER NMP Taxable Amount';
3127 g_template_obj(8).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
3128 g_template_obj(8).sf_setup.frs_setup(8).severity_level := null;
3129 g_template_obj(8).sf_setup.frs_setup(8).exclusion_tag := null;
3130
3131 g_template_obj(8).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
3132 g_template_obj(8).sf_setup.frs_setup(9).result_rule_type := 'I';
3133 g_template_obj(8).sf_setup.frs_setup(9).input_value_name := 'Projected ER NMP Taxable Amt';
3134 g_template_obj(8).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
3135 g_template_obj(8).sf_setup.frs_setup(9).severity_level := null;
3136 g_template_obj(8).sf_setup.frs_setup(9).exclusion_tag := null;
3137
3138 g_template_obj(8).sf_setup.frs_setup(10).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
3139 g_template_obj(8).sf_setup.frs_setup(10).result_rule_type := 'I';
3140 g_template_obj(8).sf_setup.frs_setup(10).input_value_name := 'ER NMP Salary to be Excluded';
3141 g_template_obj(8).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
3142 g_template_obj(8).sf_setup.frs_setup(10).severity_level := null;
3143 g_template_obj(8).sf_setup.frs_setup(10).exclusion_tag := null;
3144
3145 g_template_obj(8).sf_setup.frs_setup(11).result_name := 'COMPONENT_NAME';
3146 g_template_obj(8).sf_setup.frs_setup(11).result_rule_type := 'I';
3147 g_template_obj(8).sf_setup.frs_setup(11).input_value_name := 'Component Name';
3148 g_template_obj(8).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
3149 g_template_obj(8).sf_setup.frs_setup(11).severity_level := null;
3150 g_template_obj(8).sf_setup.frs_setup(11).exclusion_tag := null;
3151
3152 g_template_obj(8).sf_setup.frs_setup(12).result_name := 'NON_REC_VALUE';
3153 g_template_obj(8).sf_setup.frs_setup(12).result_rule_type := 'I';
3154 g_template_obj(8).sf_setup.frs_setup(12).input_value_name := 'Non Rec Perquisite';
3155 g_template_obj(8).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
3156 g_template_obj(8).sf_setup.frs_setup(12).severity_level := null;
3157 g_template_obj(8).sf_setup.frs_setup(12).exclusion_tag := null;
3158 ----------------------------------------------------------------
3159 -- Formula Setup for Other Perquisites Template ends
3160 ----------------------------------------------------------------
3161
3162 ----------------------------------------------------------------
3163 -- Add. Element Setup for Other Perquisites Template starts
3164 ----------------------------------------------------------------
3165
3166 g_template_obj(8).ae_setup(1).element_name := ' Paid MP';
3167 g_template_obj(8).ae_setup(1).classification := 'Paid Monetary Perquisite';
3168 g_template_obj(8).ae_setup(1).exclusion_tag := 'Perquisite';
3169 g_template_obj(8).ae_setup(1).priority := 2000;
3170
3171 g_template_obj(8).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
3172 g_template_obj(8).ae_setup(1).iv_setup(1).uom := 'M';
3173 g_template_obj(8).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
3174 g_template_obj(8).ae_setup(1).iv_setup(1).lookup_type := null;
3175 g_template_obj(8).ae_setup(1).iv_setup(1).default_value := null;
3176 g_template_obj(8).ae_setup(1).iv_setup(1).def_value_column := null;
3177 g_template_obj(8).ae_setup(1).iv_setup(1).min_value := null;
3178 g_template_obj(8).ae_setup(1).iv_setup(1).warn_or_error := null;
3179 g_template_obj(8).ae_setup(1).iv_setup(1).balance_name := null;
3180 g_template_obj(8).ae_setup(1).iv_setup(1).exclusion_tag := null;
3181
3182 g_template_obj(8).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
3183 g_template_obj(8).ae_setup(1).iv_setup(2).uom := 'C';
3184 g_template_obj(8).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
3185 g_template_obj(8).ae_setup(1).iv_setup(2).lookup_type := null;
3186 g_template_obj(8).ae_setup(1).iv_setup(2).default_value := null;
3187 g_template_obj(8).ae_setup(1).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
3188 g_template_obj(8).ae_setup(1).iv_setup(2).min_value := null;
3189 g_template_obj(8).ae_setup(1).iv_setup(2).warn_or_error := null;
3190 g_template_obj(8).ae_setup(1).iv_setup(2).balance_name := null;
3191 g_template_obj(8).ae_setup(1).iv_setup(2).exclusion_tag := null;
3192
3193 ----------------------------------------------------------------
3194 -- Add. Element Setup for Other Perquisites Template ends
3195 ----------------------------------------------------------------
3196
3197 ----------------------------------------------------------------
3198 -- TEMPLATE FOR OTHER PERQUISITES ENDS
3199 ----------------------------------------------------------------
3200
3201 ----------------------------------------------------------------
3202 -- TEMPLATE FOR LEAVE TRAVEL CONCESSION STARTS
3203 ----------------------------------------------------------------
3204 pay_in_utils.set_location(g_debug, l_procedure,100);
3205 g_template_obj(9).template_name := 'Leave Travel Concession';
3206 g_template_obj(9).category := 'Earnings';
3207 g_template_obj(9).priority := 9000;
3208
3209 ----------------------------------------------------------------
3210 -- Exclusion Rules for Leave Travel Concession Template start
3211 ----------------------------------------------------------------
3212 g_template_obj(9).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
3213 g_template_obj(9).er_setup(1).value := 'N';
3214 g_template_obj(9).er_setup(1).descr := 'Exclusion rule for Advances.';
3215 g_template_obj(9).er_setup(1).tag := 'ADVANCE';
3216 g_template_obj(9).er_setup(1).rule_id := null;
3217
3218 ----------------------------------------------------------------
3219 -- Exclusion Rules for Leave Travel Concession Template end
3220 ----------------------------------------------------------------
3221
3222 ----------------------------------------------------------------
3223 -- Input Values for Leave Travel Concession Template start
3224 ----------------------------------------------------------------
3225 g_template_obj(9).iv_setup(1).input_value_name := 'Pay Value';
3226 g_template_obj(9).iv_setup(1).uom := 'M';
3227 g_template_obj(9).iv_setup(1).mandatory_flag := 'X';
3228 g_template_obj(9).iv_setup(1).lookup_type := null;
3229 g_template_obj(9).iv_setup(1).default_value := null;
3230 g_template_obj(9).iv_setup(1).def_value_column := null;
3231 g_template_obj(9).iv_setup(1).min_value := null;
3232 g_template_obj(9).iv_setup(1).warn_or_error := null;
3233 g_template_obj(9).iv_setup(1).balance_name := null;
3234 g_template_obj(9).iv_setup(1).exclusion_tag := null;
3235
3236 g_template_obj(9).iv_setup(2).input_value_name := 'Component Name';
3237 g_template_obj(9).iv_setup(2).uom := 'C';
3238 g_template_obj(9).iv_setup(2).mandatory_flag := 'X';
3239 g_template_obj(9).iv_setup(2).lookup_type := null;
3240 g_template_obj(9).iv_setup(2).default_value := 'Leave Travel Concession';
3241 g_template_obj(9).iv_setup(2).def_value_column := null;
3242 g_template_obj(9).iv_setup(2).min_value := null;
3243 g_template_obj(9).iv_setup(2).warn_or_error := null;
3247 g_template_obj(9).iv_setup(3).input_value_name := 'Ticket Fare';
3244 g_template_obj(9).iv_setup(2).balance_name := null;
3245 g_template_obj(9).iv_setup(2).exclusion_tag := null;
3246
3248 g_template_obj(9).iv_setup(3).uom := 'M';
3249 g_template_obj(9).iv_setup(3).mandatory_flag := 'Y';
3250 g_template_obj(9).iv_setup(3).lookup_type := null;
3251 g_template_obj(9).iv_setup(3).default_value := null;
3252 g_template_obj(9).iv_setup(3).def_value_column := null;
3253 g_template_obj(9).iv_setup(3).min_value := 0;
3254 g_template_obj(9).iv_setup(3).warn_or_error := 'E';
3255 g_template_obj(9).iv_setup(3).balance_name := 'Bills Submitted';
3256 g_template_obj(9).iv_setup(3).exclusion_tag := null;
3257
3258 g_template_obj(9).iv_setup(4).input_value_name := 'LTC Journey Block';
3259 g_template_obj(9).iv_setup(4).uom := 'C';
3260 g_template_obj(9).iv_setup(4).mandatory_flag := 'Y';
3261 g_template_obj(9).iv_setup(4).lookup_type := null;
3262 g_template_obj(9).iv_setup(4).default_value := null;
3263 g_template_obj(9).iv_setup(4).def_value_column := null;
3264 g_template_obj(9).iv_setup(4).min_value := null;
3265 g_template_obj(9).iv_setup(4).warn_or_error := null;
3266 g_template_obj(9).iv_setup(4).balance_name := null;
3267 g_template_obj(9).iv_setup(4).exclusion_tag := null;
3268
3269 g_template_obj(9).iv_setup(5).input_value_name := 'Employer Contribution';
3270 g_template_obj(9).iv_setup(5).uom := 'M';
3271 g_template_obj(9).iv_setup(5).mandatory_flag := 'Y';
3272 g_template_obj(9).iv_setup(5).lookup_type := null;
3273 g_template_obj(9).iv_setup(5).default_value := null;
3274 g_template_obj(9).iv_setup(5).def_value_column := null;
3275 g_template_obj(9).iv_setup(5).min_value := 0;
3276 g_template_obj(9).iv_setup(5).warn_or_error := 'E';
3277 g_template_obj(9).iv_setup(5).balance_name := 'Employer Contribution for LTC';
3278 g_template_obj(9).iv_setup(5).exclusion_tag := null;
3279
3280 g_template_obj(9).iv_setup(6).input_value_name := 'Carryover from Prev Block';
3281 g_template_obj(9).iv_setup(6).uom := 'C';
3282 g_template_obj(9).iv_setup(6).mandatory_flag := 'N';
3283 g_template_obj(9).iv_setup(6).lookup_type := 'YES_NO';
3284 g_template_obj(9).iv_setup(6).default_value := null;
3285 g_template_obj(9).iv_setup(6).def_value_column := null;
3286 g_template_obj(9).iv_setup(6).min_value := null;
3287 g_template_obj(9).iv_setup(6).warn_or_error := null;
3288 g_template_obj(9).iv_setup(6).balance_name := null;
3289 g_template_obj(9).iv_setup(6).exclusion_tag := null;
3290
3291 g_template_obj(9).iv_setup(7).input_value_name := 'Exempted';
3292 g_template_obj(9).iv_setup(7).uom := 'C';
3293 g_template_obj(9).iv_setup(7).mandatory_flag := 'X';
3294 g_template_obj(9).iv_setup(7).lookup_type := 'YES_NO';
3295 g_template_obj(9).iv_setup(7).default_value := null;
3296 g_template_obj(9).iv_setup(7).def_value_column := null;
3297 g_template_obj(9).iv_setup(7).min_value := null;
3298 g_template_obj(9).iv_setup(7).warn_or_error := null;
3299 g_template_obj(9).iv_setup(7).balance_name := null;
3300 g_template_obj(9).iv_setup(7).exclusion_tag := null;
3301
3302 g_template_obj(9).iv_setup(8).input_value_name :='LTC Exemption Amount';
3303 g_template_obj(9).iv_setup(8).uom := 'M';
3304 g_template_obj(9).iv_setup(8).mandatory_flag := 'X';
3305 g_template_obj(9).iv_setup(8).lookup_type := null;
3306 g_template_obj(9).iv_setup(8).default_value := null;
3307 g_template_obj(9).iv_setup(8).def_value_column := null;
3308 g_template_obj(9).iv_setup(8).min_value := null;
3309 g_template_obj(9).iv_setup(8).warn_or_error := null;
3310 g_template_obj(9).iv_setup(8).balance_name := null;
3311 g_template_obj(9).iv_setup(8).exclusion_tag := null;
3312
3313 g_template_obj(9).iv_setup(9).input_value_name := 'Adjusted Amount';
3314 g_template_obj(9).iv_setup(9).uom := 'M';
3315 g_template_obj(9).iv_setup(9).mandatory_flag := 'X';
3316 g_template_obj(9).iv_setup(9).lookup_type := null;
3317 g_template_obj(9).iv_setup(9).default_value := null;
3318 g_template_obj(9).iv_setup(9).def_value_column := null;
3319 g_template_obj(9).iv_setup(9).min_value := null;
3320 g_template_obj(9).iv_setup(9).warn_or_error := null;
3321 g_template_obj(9).iv_setup(9).balance_name := 'Adjusted Advance for Earnings';
3322 g_template_obj(9).iv_setup(9).exclusion_tag := null;
3323
3324 ----------------------------------------------------------------
3325 -- Input Values for Leave Travel Concession Template end
3326 ----------------------------------------------------------------
3327
3328 ----------------------------------------------------------------
3329 -- Balance Feeds for Leave Travel Concession Template start
3330 ----------------------------------------------------------------
3331 g_template_obj(9).bf_setup(1).balance_name := 'Taxable Allowances';
3332 g_template_obj(9).bf_setup(1).iv_name := 'LTC Exemption Amount';
3333 g_template_obj(9).bf_setup(1).scale := -1;
3334 g_template_obj(9).bf_setup(1).exclusion_tag := null;
3335
3336 g_template_obj(9).bf_setup(2).balance_name := 'Outstanding Advance for Earnings';
3337 g_template_obj(9).bf_setup(2).iv_name := 'Adjusted Amount';
3341 ----------------------------------------------------------------
3338 g_template_obj(9).bf_setup(2).scale := -1;
3339 g_template_obj(9).bf_setup(2).exclusion_tag := null;
3340
3342 -- Balance Feeds for Leave Travel Concession Template end
3343 ----------------------------------------------------------------
3344
3345 ----------------------------------------------------------------
3346 -- Formula Setup for Leave Travel Concession Template starts
3347 ----------------------------------------------------------------
3348 g_template_obj(9).uf_setup.formula_name := '_LTC_CALC';
3349 g_template_obj(9).uf_setup.status_rule_id := null;
3350 g_template_obj(9).uf_setup.description := 'Formula for Leave Travel Concession';
3351
3352 g_template_obj(9).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
3353 g_template_obj(9).uf_setup.frs_setup(1).result_rule_type := 'D';
3354 g_template_obj(9).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
3355 g_template_obj(9).uf_setup.frs_setup(1).element_name := null;
3356 g_template_obj(9).uf_setup.frs_setup(1).severity_level := null;
3357 g_template_obj(9).uf_setup.frs_setup(1).exclusion_tag := null;
3358
3359 g_template_obj(9).uf_setup.frs_setup(2).result_name := 'EXEMPTED_AMT';
3360 g_template_obj(9).uf_setup.frs_setup(2).result_rule_type := 'D';
3361 g_template_obj(9).uf_setup.frs_setup(2).input_value_name := 'LTC Exemption Amount';
3362 g_template_obj(9).uf_setup.frs_setup(2).element_name := null;
3363 g_template_obj(9).uf_setup.frs_setup(2).severity_level := null;
3364 g_template_obj(9).uf_setup.frs_setup(2).exclusion_tag := null;
3365
3366 g_template_obj(9).uf_setup.frs_setup(3).result_name := 'CARRY_OVER_FLAG';
3367 g_template_obj(9).uf_setup.frs_setup(3).result_rule_type := 'D';
3368 g_template_obj(9).uf_setup.frs_setup(3).input_value_name := 'Carryover from Prev Block';
3369 g_template_obj(9).uf_setup.frs_setup(3).element_name := null;
3370 g_template_obj(9).uf_setup.frs_setup(3).severity_level := null;
3371 g_template_obj(9).uf_setup.frs_setup(3).exclusion_tag := null;
3372
3373 g_template_obj(9).uf_setup.frs_setup(4).result_name := 'EXEMPTED_FLAG';
3374 g_template_obj(9).uf_setup.frs_setup(4).result_rule_type := 'D';
3375 g_template_obj(9).uf_setup.frs_setup(4).input_value_name := 'Exempted';
3376 g_template_obj(9).uf_setup.frs_setup(4).element_name := null;
3377 g_template_obj(9).uf_setup.frs_setup(4).severity_level := null;
3378 g_template_obj(9).uf_setup.frs_setup(4).exclusion_tag := null;
3379
3380 g_template_obj(9).uf_setup.frs_setup(5).result_name := 'ADJUSTED_ADVANCE';
3381 g_template_obj(9).uf_setup.frs_setup(5).result_rule_type := 'D';
3382 g_template_obj(9).uf_setup.frs_setup(5).input_value_name := 'Adjusted Amount';
3383 g_template_obj(9).uf_setup.frs_setup(5).element_name := null;
3384 g_template_obj(9).uf_setup.frs_setup(5).severity_level := null;
3385 g_template_obj(9).uf_setup.frs_setup(5).exclusion_tag := null;
3386
3387 ----------------------------------------------------------------
3388 -- Formula Setup for Leave Travel Concession Template ends
3389 ----------------------------------------------------------------
3390
3391 ----------------------------------------------------------------
3392 -- Add. Element Setup for Leave Travel Concession Template starts
3393 ----------------------------------------------------------------
3394 g_template_obj(9).ae_setup(1).element_name := ' Advance';
3395 g_template_obj(9).ae_setup(1).classification := 'Advances';
3396 g_template_obj(9).ae_setup(1).exclusion_tag := 'ADVANCE';
3397 g_template_obj(9).ae_setup(1).priority := -2000;
3398
3399 g_template_obj(9).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
3400 g_template_obj(9).ae_setup(1).iv_setup(1).uom := 'M';
3401 g_template_obj(9).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
3402 g_template_obj(9).ae_setup(1).iv_setup(1).lookup_type := null;
3403 g_template_obj(9).ae_setup(1).iv_setup(1).default_value := null;
3404 g_template_obj(9).ae_setup(1).iv_setup(1).def_value_column := null;
3405 g_template_obj(9).ae_setup(1).iv_setup(1).min_value := null;
3406 g_template_obj(9).ae_setup(1).iv_setup(1).warn_or_error := null;
3407 g_template_obj(9).ae_setup(1).iv_setup(1).balance_name := null;
3408 g_template_obj(9).ae_setup(1).iv_setup(1).exclusion_tag := null;
3409
3410 g_template_obj(9).ae_setup(1).iv_setup(2).input_value_name := 'Advance Amount';
3411 g_template_obj(9).ae_setup(1).iv_setup(2).uom := 'M';
3412 g_template_obj(9).ae_setup(1).iv_setup(2).mandatory_flag := 'N';
3413 g_template_obj(9).ae_setup(1).iv_setup(2).lookup_type := null;
3414 g_template_obj(9).ae_setup(1).iv_setup(2).default_value := null;
3415 g_template_obj(9).ae_setup(1).iv_setup(2).def_value_column := null;
3416 g_template_obj(9).ae_setup(1).iv_setup(2).min_value := null;
3417 g_template_obj(9).ae_setup(1).iv_setup(2).warn_or_error := null;
3418 g_template_obj(9).ae_setup(1).iv_setup(2).balance_name := null;
3419 g_template_obj(9).ae_setup(1).iv_setup(2).exclusion_tag := null;
3420
3421 g_template_obj(9).ae_setup(1).iv_setup(3).input_value_name := 'Excess Advance';
3422 g_template_obj(9).ae_setup(1).iv_setup(3).uom := 'C';
3423 g_template_obj(9).ae_setup(1).iv_setup(3).mandatory_flag := 'Y';
3424 g_template_obj(9).ae_setup(1).iv_setup(3).lookup_type := 'IN_ADVANCE_OPTIONS';
3425 g_template_obj(9).ae_setup(1).iv_setup(3).default_value := 'PENDING';
3426 g_template_obj(9).ae_setup(1).iv_setup(3).def_value_column := null;
3427 g_template_obj(9).ae_setup(1).iv_setup(3).min_value := null;
3428 g_template_obj(9).ae_setup(1).iv_setup(3).warn_or_error := null;
3429 g_template_obj(9).ae_setup(1).iv_setup(3).balance_name := null;
3430 g_template_obj(9).ae_setup(1).iv_setup(3).exclusion_tag := null;
3431
3432 g_template_obj(9).ae_setup(1).iv_setup(4).input_value_name := 'Add to Net Pay';
3433 g_template_obj(9).ae_setup(1).iv_setup(4).uom := 'C';
3434 g_template_obj(9).ae_setup(1).iv_setup(4).mandatory_flag := 'Y';
3435 g_template_obj(9).ae_setup(1).iv_setup(4).lookup_type := 'YES_NO';
3436 g_template_obj(9).ae_setup(1).iv_setup(4).default_value := 'Y';
3437 g_template_obj(9).ae_setup(1).iv_setup(4).def_value_column := null;
3438 g_template_obj(9).ae_setup(1).iv_setup(4).min_value := null;
3439 g_template_obj(9).ae_setup(1).iv_setup(4).warn_or_error := null;
3440 g_template_obj(9).ae_setup(1).iv_setup(4).balance_name := null;
3441 g_template_obj(9).ae_setup(1).iv_setup(4).exclusion_tag := null;
3442
3443 g_template_obj(9).ae_setup(1).iv_setup(5).input_value_name := 'Component Name';
3444 g_template_obj(9).ae_setup(1).iv_setup(5).uom := 'C';
3445 g_template_obj(9).ae_setup(1).iv_setup(5).mandatory_flag := 'X';
3446 g_template_obj(9).ae_setup(1).iv_setup(5).lookup_type := null;
3447 g_template_obj(9).ae_setup(1).iv_setup(5).default_value := 'Leave Travel Concession';
3448 g_template_obj(9).ae_setup(1).iv_setup(5).def_value_column := null;
3449 g_template_obj(9).ae_setup(1).iv_setup(5).min_value := null;
3450 g_template_obj(9).ae_setup(1).iv_setup(5).warn_or_error := null;
3451 g_template_obj(9).ae_setup(1).iv_setup(5).balance_name := null;
3452 g_template_obj(9).ae_setup(1).iv_setup(5).exclusion_tag := null;
3453
3454 g_template_obj(9).ae_setup(1).bf_setup(1).balance_name := 'Advance for Earnings';
3455 g_template_obj(9).ae_setup(1).bf_setup(1).iv_name := 'Advance Amount';
3456 g_template_obj(9).ae_setup(1).bf_setup(1).scale := 1;
3457 g_template_obj(9).ae_setup(1).bf_setup(1).exclusion_tag := null;
3458
3459 g_template_obj(9).ae_setup(1).bf_setup(2).balance_name := 'Outstanding Advance for Earnings';
3460 g_template_obj(9).ae_setup(1).bf_setup(2).iv_name := 'Advance Amount';
3461 g_template_obj(9).ae_setup(1).bf_setup(2).scale := 1;
3462 g_template_obj(9).ae_setup(1).bf_setup(2).exclusion_tag := null;
3463
3464 g_template_obj(9).ae_setup(1).uf_setup.formula_name := '_LTC_ADV_CALC';
3465 g_template_obj(9).ae_setup(1).uf_setup.status_rule_id := null;
3466 g_template_obj(9).ae_setup(1).uf_setup.description := 'Advance Calculations for Earnings';
3467
3468
3469 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
3470 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).result_rule_type := 'D';
3471 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
3472 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).element_name := null;
3473 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).severity_level := null;
3474 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).exclusion_tag := null;
3475
3476 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).result_name := 'EXCESS_ADVANCE';
3477 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).result_rule_type := 'I';
3478 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).input_value_name := 'Excess Advance';
3479 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).element_name := ' Excess Advance';
3480 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).severity_level := null;
3481 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).exclusion_tag := null;
3482
3483 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).result_name := 'COMPONENT_NAME';
3484 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).result_rule_type := 'I';
3485 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).input_value_name := 'Component Name';
3486 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).element_name := ' Excess Advance';
3487 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).severity_level := null;
3488 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).exclusion_tag := null;
3489
3490
3491 g_template_obj(9).ae_setup(2).element_name := ' Adjust';
3492 g_template_obj(9).ae_setup(2).classification := 'Earnings';
3493 g_template_obj(9).ae_setup(2).exclusion_tag := 'ADVANCE';
3494 g_template_obj(9).ae_setup(2).priority := 14000;
3495
3496 g_template_obj(9).ae_setup(2).iv_setup(1).input_value_name := 'Pay Value';
3497 g_template_obj(9).ae_setup(2).iv_setup(1).uom := 'M';
3498 g_template_obj(9).ae_setup(2).iv_setup(1).mandatory_flag := 'X';
3499 g_template_obj(9).ae_setup(2).iv_setup(1).lookup_type := null;
3500 g_template_obj(9).ae_setup(2).iv_setup(1).default_value := null;
3501 g_template_obj(9).ae_setup(2).iv_setup(1).def_value_column := null;
3502 g_template_obj(9).ae_setup(2).iv_setup(1).min_value := null;
3503 g_template_obj(9).ae_setup(2).iv_setup(1).warn_or_error := null;
3504 g_template_obj(9).ae_setup(2).iv_setup(1).balance_name := null;
3505 g_template_obj(9).ae_setup(2).iv_setup(1).exclusion_tag := null;
3506
3507 g_template_obj(9).ae_setup(2).iv_setup(2).input_value_name := 'Component Name';
3508 g_template_obj(9).ae_setup(2).iv_setup(2).uom := 'C';
3509 g_template_obj(9).ae_setup(2).iv_setup(2).mandatory_flag := 'X';
3510 g_template_obj(9).ae_setup(2).iv_setup(2).lookup_type := null;
3511 g_template_obj(9).ae_setup(2).iv_setup(2).default_value := 'Leave Travel Concession';
3512 g_template_obj(9).ae_setup(2).iv_setup(2).def_value_column := null;
3513 g_template_obj(9).ae_setup(2).iv_setup(2).min_value := null;
3514 g_template_obj(9).ae_setup(2).iv_setup(2).warn_or_error := null;
3515 g_template_obj(9).ae_setup(2).iv_setup(2).balance_name := null;
3516 g_template_obj(9).ae_setup(2).iv_setup(2).exclusion_tag := null;
3517
3518 g_template_obj(9).ae_setup(2).bf_setup(1).balance_name := 'Outstanding Advance for Earnings';
3519 g_template_obj(9).ae_setup(2).bf_setup(1).iv_name := 'Pay Value';
3520 g_template_obj(9).ae_setup(2).bf_setup(1).scale := -1;
3521 g_template_obj(9).ae_setup(2).bf_setup(1).exclusion_tag := null;
3522
3523 g_template_obj(9).ae_setup(3).element_name := ' Recover';
3524 g_template_obj(9).ae_setup(3).classification := 'Voluntary Deductions';
3525 g_template_obj(9).ae_setup(3).exclusion_tag := 'ADVANCE';
3526 g_template_obj(9).ae_setup(3).priority := 36000;
3527
3528 g_template_obj(9).ae_setup(3).iv_setup(1).input_value_name := 'Pay Value';
3529 g_template_obj(9).ae_setup(3).iv_setup(1).uom := 'M';
3530 g_template_obj(9).ae_setup(3).iv_setup(1).mandatory_flag := 'X';
3531 g_template_obj(9).ae_setup(3).iv_setup(1).lookup_type := null;
3532 g_template_obj(9).ae_setup(3).iv_setup(1).default_value := null;
3533 g_template_obj(9).ae_setup(3).iv_setup(1).def_value_column := null;
3534 g_template_obj(9).ae_setup(3).iv_setup(1).min_value := null;
3535 g_template_obj(9).ae_setup(3).iv_setup(1).warn_or_error := null;
3536 g_template_obj(9).ae_setup(3).iv_setup(1).balance_name := null;
3537 g_template_obj(9).ae_setup(3).iv_setup(1).exclusion_tag := null;
3538
3539 g_template_obj(9).ae_setup(3).iv_setup(2).input_value_name := 'Component Name';
3540 g_template_obj(9).ae_setup(3).iv_setup(2).uom := 'C';
3541 g_template_obj(9).ae_setup(3).iv_setup(2).mandatory_flag := 'X';
3542 g_template_obj(9).ae_setup(3).iv_setup(2).lookup_type := null;
3543 g_template_obj(9).ae_setup(3).iv_setup(2).default_value := 'Leave Travel Concession';
3544 g_template_obj(9).ae_setup(3).iv_setup(2).def_value_column := null;
3545 g_template_obj(9).ae_setup(3).iv_setup(2).min_value := null;
3546 g_template_obj(9).ae_setup(3).iv_setup(2).warn_or_error := null;
3547 g_template_obj(9).ae_setup(3).iv_setup(2).balance_name := null;
3548 g_template_obj(9).ae_setup(3).iv_setup(2).exclusion_tag := null;
3549
3550 g_template_obj(9).ae_setup(3).iv_setup(3).input_value_name := 'Adjustment Amount';
3551 g_template_obj(9).ae_setup(3).iv_setup(3).uom := 'M';
3552 g_template_obj(9).ae_setup(3).iv_setup(3).mandatory_flag := 'X';
3556 g_template_obj(9).ae_setup(3).iv_setup(3).min_value := null;
3553 g_template_obj(9).ae_setup(3).iv_setup(3).lookup_type := null;
3554 g_template_obj(9).ae_setup(3).iv_setup(3).default_value := null;
3555 g_template_obj(9).ae_setup(3).iv_setup(3).def_value_column := null;
3557 g_template_obj(9).ae_setup(3).iv_setup(3).warn_or_error := null;
3558 g_template_obj(9).ae_setup(3).iv_setup(3).balance_name := 'Outstanding Advance for Earnings';
3559 g_template_obj(9).ae_setup(3).iv_setup(3).exclusion_tag := null;
3560
3561 g_template_obj(9).ae_setup(3).bf_setup(1).balance_name := 'Outstanding Advance for Earnings';
3562 g_template_obj(9).ae_setup(3).bf_setup(1).iv_name := 'Pay Value';
3563 g_template_obj(9).ae_setup(3).bf_setup(1).scale := -1;
3564 g_template_obj(9).ae_setup(3).bf_setup(1).exclusion_tag := null;
3565
3566
3567 g_template_obj(9).ae_setup(4).element_name := ' Excess Advance';
3568 g_template_obj(9).ae_setup(4).classification := 'Information';
3569 g_template_obj(9).ae_setup(4).exclusion_tag := 'ADVANCE';
3570 g_template_obj(9).ae_setup(4).priority := 12000;
3571
3572 g_template_obj(9).ae_setup(4).iv_setup(1).input_value_name := 'Excess Advance';
3573 g_template_obj(9).ae_setup(4).iv_setup(1).uom := 'C';
3574 g_template_obj(9).ae_setup(4).iv_setup(1).mandatory_flag := 'X';
3575 g_template_obj(9).ae_setup(4).iv_setup(1).lookup_type := 'IN_ADVANCE_OPTIONS';
3576 g_template_obj(9).ae_setup(4).iv_setup(1).default_value := 'PENDING';
3577 g_template_obj(9).ae_setup(4).iv_setup(1).def_value_column := null;
3578 g_template_obj(9).ae_setup(4).iv_setup(1).min_value := null;
3579 g_template_obj(9).ae_setup(4).iv_setup(1).warn_or_error := null;
3580 g_template_obj(9).ae_setup(4).iv_setup(1).balance_name := null;
3581 g_template_obj(9).ae_setup(4).iv_setup(1).exclusion_tag := null;
3582
3583 g_template_obj(9).ae_setup(4).iv_setup(2).input_value_name := 'Component Name';
3584 g_template_obj(9).ae_setup(4).iv_setup(2).uom := 'C';
3585 g_template_obj(9).ae_setup(4).iv_setup(2).mandatory_flag := 'X';
3586 g_template_obj(9).ae_setup(4).iv_setup(2).lookup_type := null;
3587 g_template_obj(9).ae_setup(4).iv_setup(2).default_value := 'Leave Travel Concession';
3588 g_template_obj(9).ae_setup(4).iv_setup(2).def_value_column := null;
3589 g_template_obj(9).ae_setup(4).iv_setup(2).min_value := null;
3590 g_template_obj(9).ae_setup(4).iv_setup(2).warn_or_error := null;
3591 g_template_obj(9).ae_setup(4).iv_setup(2).balance_name := null;
3592 g_template_obj(9).ae_setup(4).iv_setup(2).exclusion_tag := null;
3593
3594 g_template_obj(9).ae_setup(4).uf_setup.formula_name := '_LTC_EXC_ADV';
3595 g_template_obj(9).ae_setup(4).uf_setup.status_rule_id := null;
3596 g_template_obj(9).ae_setup(4).uf_setup.description := 'Excess Advance Calculations for Actual allowances';
3597
3598 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).result_name := 'ADJUSTMENT_AMT';
3599 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).result_rule_type := 'I';
3600 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).input_value_name := 'Adjustment Amount';
3601 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).element_name := ' Recover';
3602 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).severity_level := null;
3603 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).exclusion_tag := null;
3604
3605
3606 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).result_name := 'RECOVERED_ADVANCE';
3607 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).result_rule_type := 'I';
3608 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
3609 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).element_name := ' Recover';
3610 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).severity_level := null;
3611 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).exclusion_tag := null;
3612
3613 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).result_name := 'SALARY_SEC171';
3614 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).result_rule_type := 'I';
3615 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).input_value_name := 'Pay Value';
3616 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).element_name := ' Adjust';
3617 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).severity_level := null;
3618 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).exclusion_tag := null;
3619
3620 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).result_name := 'COMPONENT_NAME_PAY';
3621 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).result_rule_type := 'I';
3622 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).input_value_name := 'Component Name';
3623 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).element_name := ' Adjust';
3624 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).severity_level := null;
3625 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).exclusion_tag := null;
3626
3627 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).result_name := 'COMPONENT_NAME_REC';
3628 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).result_rule_type := 'I';
3629 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).input_value_name := 'Component Name';
3630 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).element_name := ' Recover';
3631 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).severity_level := null;
3632 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).exclusion_tag := null;
3633 ----------------------------------------------------------------
3634 -- Add. Element Setup for Leave Travel Concession Template ends
3635 ----------------------------------------------------------------
3636
3637 ----------------------------------------------------------------
3641 -- TEMPLATE FOR EARNINGS STARTS
3638 -- TEMPLATE FOR LEAVE TRAVEL CONCESSION ENDS
3639 ----------------------------------------------------------------
3640 ----------------------------------------------------------------
3642 ----------------------------------------------------------------
3643 pay_in_utils.set_location(g_debug, l_procedure,120);
3644 g_template_obj(10).template_name := 'Earnings';
3645 g_template_obj(10).category := 'Earnings';
3646 g_template_obj(10).priority := 9000;
3647
3648 ----------------------------------------------------------------
3649 -- Exclusion Rules for Earnings Template start
3650 ----------------------------------------------------------------
3651 g_template_obj(10).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION1';
3652 g_template_obj(10).er_setup(1).value := 'N';
3653 g_template_obj(10).er_setup(1).descr := 'Exclusion rule for Projections.';
3654 g_template_obj(10).er_setup(1).tag := 'PROJECT';
3655 g_template_obj(10).er_setup(1).rule_id := null;
3656
3657 g_template_obj(10).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION2';
3658 g_template_obj(10).er_setup(2).value := 'N';
3659 g_template_obj(10).er_setup(2).descr := 'Exclusion rule for ESI Eligibility.';
3660 g_template_obj(10).er_setup(2).tag := 'ESIELIG';
3661 g_template_obj(10).er_setup(2).rule_id := null;
3662
3663 g_template_obj(10).er_setup(3).ff_column := 'CONFIGURATION_INFORMATION3';
3664 g_template_obj(10).er_setup(3).value := 'N';
3665 g_template_obj(10).er_setup(3).descr := 'Exclusion rule for ESI Computation.';
3666 g_template_obj(10).er_setup(3).tag := 'ESICOMP';
3667 g_template_obj(10).er_setup(3).rule_id := null;
3668
3669 g_template_obj(10).er_setup(4).ff_column := 'CONFIGURATION_INFORMATION4';
3670 g_template_obj(10).er_setup(4).value := 'N';
3671 g_template_obj(10).er_setup(4).descr := 'Exclusion rule for PF Computation.';
3672 g_template_obj(10).er_setup(4).tag := 'SPFCOMP';
3673 g_template_obj(10).er_setup(4).rule_id := null;
3674
3675 g_template_obj(10).er_setup(5).ff_column := 'CONFIGURATION_INFORMATION5';
3676 g_template_obj(10).er_setup(5).value := 'N';
3677 g_template_obj(10).er_setup(5).descr := 'Exclusion rule for PT Computation.';
3678 g_template_obj(10).er_setup(5).tag := 'SPTCOMP';
3679 g_template_obj(10).er_setup(5).rule_id := null;
3680
3681 g_template_obj(10).er_setup(6).ff_column := 'CONFIGURATION_INFORMATION6';
3682 g_template_obj(10).er_setup(6).value := 'N';
3683 g_template_obj(10).er_setup(6).descr := 'Exclusion rule for HRA and Related Exemptions.';
3684 g_template_obj(10).er_setup(6).tag := 'HRACOMP';
3685 g_template_obj(10).er_setup(6).rule_id := null;
3686
3687 g_template_obj(10).er_setup(7).ff_column := 'CONFIGURATION_INFORMATION7';
3688 g_template_obj(10).er_setup(7).value := 'N';
3689 g_template_obj(10).er_setup(7).descr := 'Exclusion rule for Company Accommodation.';
3690 g_template_obj(10).er_setup(7).tag := 'CMACOMP';
3691 g_template_obj(10).er_setup(7).rule_id := null;
3692
3693 g_template_obj(10).er_setup(8).ff_column := 'CONFIGURATION_INFORMATION8';
3694 g_template_obj(10).er_setup(8).value := 'N';
3695 g_template_obj(10).er_setup(8).descr := 'Exclusion rule for Notice Pay Base.';
3696 g_template_obj(10).er_setup(8).tag := 'TNPCOMP';
3697 g_template_obj(10).er_setup(8).rule_id := null;
3698
3699 g_template_obj(10).er_setup(9).ff_column := 'CONFIGURATION_INFORMATION9';
3700 g_template_obj(10).er_setup(9).value := 'N';
3701 g_template_obj(10).er_setup(9).descr := 'Exclusion rule for Leave Encashment Base.';
3702 g_template_obj(10).er_setup(9).tag := 'TLECOMP';
3703 g_template_obj(10).er_setup(9).rule_id := null;
3704
3705 g_template_obj(10).er_setup(10).ff_column := 'CONFIGURATION_INFORMATION10';
3706 g_template_obj(10).er_setup(10).value := 'N';
3707 g_template_obj(10).er_setup(10).descr := 'Exclusion rule for Gratuity Eligibility.';
3708 g_template_obj(10).er_setup(10).tag := 'TGPCOMP';
3709 g_template_obj(10).er_setup(10).rule_id := null;
3710
3711 g_template_obj(10).er_setup(11).ff_column := 'CONFIGURATION_INFORMATION11';
3712 g_template_obj(10).er_setup(11).value := 'N';
3713 g_template_obj(10).er_setup(11).descr := 'Exclusion rule for Pension Computation Salary.';
3714 g_template_obj(10).er_setup(11).tag := 'TPCSCOMP';
3715 g_template_obj(10).er_setup(11).rule_id := null;
3716
3717 g_template_obj(10).er_setup(12).ff_column := 'CONFIGURATION_INFORMATION12';
3718 g_template_obj(10).er_setup(12).value := 'N';
3719 g_template_obj(10).er_setup(12).descr := 'Exclusion rule for Pension Exemption Salary.';
3720 g_template_obj(10).er_setup(12).tag := 'TPESCOMP';
3721 g_template_obj(10).er_setup(12).rule_id := null;
3722
3723 g_template_obj(10).er_setup(13).ff_column := 'CONFIGURATION_INFORMATION13';
3724 g_template_obj(10).er_setup(13).value := 'N';
3725 g_template_obj(10).er_setup(13).descr := 'Exclusion rule for PT Projection.';
3726 g_template_obj(10).er_setup(13).tag := 'SPTPROJ';
3727 g_template_obj(10).er_setup(13).rule_id := null;
3728
3729 ----------------------------------------------------------------
3730 -- Exclusion Rules for Earnings Template end
3731 ----------------------------------------------------------------
3732
3733 ----------------------------------------------------------------
3734 -- Input Values for Earnings Template start
3735 ----------------------------------------------------------------
3736 g_template_obj(10).iv_setup(1).input_value_name := 'Pay Value';
3737 g_template_obj(10).iv_setup(1).uom := 'M';
3738 g_template_obj(10).iv_setup(1).mandatory_flag := 'N';
3739 g_template_obj(10).iv_setup(1).lookup_type := null;
3740 g_template_obj(10).iv_setup(1).default_value := null;
3741 g_template_obj(10).iv_setup(1).def_value_column := null;
3742 g_template_obj(10).iv_setup(1).min_value := null;
3743 g_template_obj(10).iv_setup(1).warn_or_error := null;
3744 g_template_obj(10).iv_setup(1).balance_name := null;
3745 g_template_obj(10).iv_setup(1).exclusion_tag := null;
3746
3747 g_template_obj(10).iv_setup(2).input_value_name := 'Standard Value';
3748 g_template_obj(10).iv_setup(2).uom := 'M';
3749 g_template_obj(10).iv_setup(2).mandatory_flag := 'N';
3750 g_template_obj(10).iv_setup(2).lookup_type := null;
3751 g_template_obj(10).iv_setup(2).default_value := null;
3752 g_template_obj(10).iv_setup(2).def_value_column := null;
3753 g_template_obj(10).iv_setup(2).min_value := null;
3754 g_template_obj(10).iv_setup(2).warn_or_error := null;
3755 g_template_obj(10).iv_setup(2).balance_name := null;
3756 g_template_obj(10).iv_setup(2).exclusion_tag := 'PROJECT';
3757
3758 ----------------------------------------------------------------
3759 -- Input Values for Earnings Template end
3760 ----------------------------------------------------------------
3761
3762 ----------------------------------------------------------------
3763 -- Balance Feeds for Earnings Template start
3764 ----------------------------------------------------------------
3765 g_template_obj(10).bf_setup(1).balance_name := 'ESI Eligible Salary';
3766 g_template_obj(10).bf_setup(1).iv_name := 'Standard Value';
3767 g_template_obj(10).bf_setup(1).scale := 1;
3768 g_template_obj(10).bf_setup(1).exclusion_tag := 'ESIELIG';
3769
3770 g_template_obj(10).bf_setup(2).balance_name := 'ESI Computation Salary';
3771 g_template_obj(10).bf_setup(2).iv_name := 'Pay Value';
3772 g_template_obj(10).bf_setup(2).scale := 1;
3773 g_template_obj(10).bf_setup(2).exclusion_tag := 'ESICOMP';
3774
3775 g_template_obj(10).bf_setup(3).balance_name := 'Earnings for Projection';
3776 g_template_obj(10).bf_setup(3).iv_name := 'Standard Value';
3777 g_template_obj(10).bf_setup(3).scale := 1;
3778 g_template_obj(10).bf_setup(3).exclusion_tag := 'PROJECT';
3779
3780 g_template_obj(10).bf_setup(4).balance_name := 'PF Computation Salary';
3781 g_template_obj(10).bf_setup(4).iv_name := 'Pay Value';
3782 g_template_obj(10).bf_setup(4).scale := 1;
3783 g_template_obj(10).bf_setup(4).exclusion_tag := 'SPFCOMP';
3784
3785 g_template_obj(10).bf_setup(5).balance_name := 'Professional Tax Salary';
3786 g_template_obj(10).bf_setup(5).iv_name := 'Pay Value';
3787 g_template_obj(10).bf_setup(5).scale := 1;
3788 g_template_obj(10).bf_setup(5).exclusion_tag := 'SPTCOMP';
3789
3790 g_template_obj(10).bf_setup(6).balance_name := 'Salary for HRA and Related Exemptions';
3791 g_template_obj(10).bf_setup(6).iv_name := 'Pay Value';
3792 g_template_obj(10).bf_setup(6).scale := 1;
3793 g_template_obj(10).bf_setup(6).exclusion_tag := 'HRACOMP';
3794
3795 g_template_obj(10).bf_setup(7).balance_name := 'Salary for Company Accommodation';
3796 g_template_obj(10).bf_setup(7).iv_name := 'Pay Value';
3797 g_template_obj(10).bf_setup(7).scale := 1;
3798 g_template_obj(10).bf_setup(7).exclusion_tag := 'CMACOMP';
3799
3800 g_template_obj(10).bf_setup(8).balance_name := 'Salary for Notice Period';
3801 g_template_obj(10).bf_setup(8).iv_name := 'Standard Value';
3802 g_template_obj(10).bf_setup(8).scale := 1;
3803 g_template_obj(10).bf_setup(8).exclusion_tag := 'TNPCOMP';
3804
3805 g_template_obj(10).bf_setup(9).balance_name := 'Salary for Leave Encashment';
3806 g_template_obj(10).bf_setup(9).iv_name := 'Standard Value';
3807 g_template_obj(10).bf_setup(9).scale := 1;
3808 g_template_obj(10).bf_setup(9).exclusion_tag := 'TLECOMP';
3809
3810 g_template_obj(10).bf_setup(10).balance_name := 'Gratuity Eligible Salary';
3811 g_template_obj(10).bf_setup(10).iv_name := 'Standard Value';
3812 g_template_obj(10).bf_setup(10).scale := 1;
3813 g_template_obj(10).bf_setup(10).exclusion_tag := 'TGPCOMP';
3814
3815 g_template_obj(10).bf_setup(11).balance_name := 'PF Computation Standard Salary';
3816 g_template_obj(10).bf_setup(11).iv_name := 'Standard Value';
3817 g_template_obj(10).bf_setup(11).scale := 1;
3818 g_template_obj(10).bf_setup(11).exclusion_tag := 'SPFCOMP';
3819
3820 g_template_obj(10).bf_setup(12).balance_name := 'Standard Salary for HRA and Related Exemptions';
3821 g_template_obj(10).bf_setup(12).iv_name := 'Standard Value';
3822 g_template_obj(10).bf_setup(12).scale := 1;
3823 g_template_obj(10).bf_setup(12).exclusion_tag := 'HRACOMP';
3824
3825 g_template_obj(10).bf_setup(13).balance_name := 'Standard Salary for Company Accommodation';
3826 g_template_obj(10).bf_setup(13).iv_name := 'Standard Value';
3827 g_template_obj(10).bf_setup(13).scale := 1;
3828 g_template_obj(10).bf_setup(13).exclusion_tag := 'CMACOMP';
3829
3830 g_template_obj(10).bf_setup(14).balance_name := 'Pension Computation Salary';
3831 g_template_obj(10).bf_setup(14).iv_name := 'Pay Value';
3832 g_template_obj(10).bf_setup(14).scale := 1;
3833 g_template_obj(10).bf_setup(14).exclusion_tag := 'TPCSCOMP';
3834
3835 g_template_obj(10).bf_setup(15).balance_name := 'Pension Computation Standard Salary';
3836 g_template_obj(10).bf_setup(15).iv_name := 'Standard Value';
3837 g_template_obj(10).bf_setup(15).scale := 1;
3838 g_template_obj(10).bf_setup(15).exclusion_tag := 'TPCSCOMP';
3839
3840 g_template_obj(10).bf_setup(16).balance_name := 'Pension Exemption Salary';
3841 g_template_obj(10).bf_setup(16).iv_name := 'Pay Value';
3842 g_template_obj(10).bf_setup(16).scale := 1;
3843 g_template_obj(10).bf_setup(16).exclusion_tag := 'TPESCOMP';
3844
3845 g_template_obj(10).bf_setup(17).balance_name := 'Pension Exemption Standard Salary';
3846 g_template_obj(10).bf_setup(17).iv_name := 'Standard Value';
3847 g_template_obj(10).bf_setup(17).scale := 1;
3848 g_template_obj(10).bf_setup(17).exclusion_tag := 'TPESCOMP';
3849
3850 g_template_obj(10).bf_setup(18).balance_name := 'Professional Tax Salary for Projection';
3851 g_template_obj(10).bf_setup(18).iv_name := 'Standard Value';
3852 g_template_obj(10).bf_setup(18).scale := 1;
3853 g_template_obj(10).bf_setup(18).exclusion_tag := 'SPTPROJ';
3854
3855
3856 ----------------------------------------------------------------
3857 -- Balance Feeds for Earnings Template end
3858 ----------------------------------------------------------------
3859
3860 ----------------------------------------------------------------
3861 -- Formula Setup for Earnings Template starts
3862 ----------------------------------------------------------------
3863 ----------------------------------------------------------------
3864 -- Formula Setup for Earnings Template ends
3865 ----------------------------------------------------------------
3866
3867 ----------------------------------------------------------------
3868 -- Add. Element Setup for Earnings Template starts
3869 ----------------------------------------------------------------
3870 ----------------------------------------------------------------
3871 -- Add. Element Setup for Earnings Template ends
3872 ----------------------------------------------------------------
3873
3874 ----------------------------------------------------------------
3875 -- TEMPLATE FOR EARNINGS ENDS
3876 ----------------------------------------------------------------
3877
3878 -------------------------------------------------------------
3879 ---- TEMPLATE FOR TRANSFER OF COMPANY ASSETS STARTS
3880 -------------------------------------------------------------
3881
3882 pay_in_utils.set_location(g_debug, l_procedure, 130 );
3883 g_template_obj(11).template_name := 'Transfer of Company Assets';
3884 g_template_obj(11).category := 'Perquisites';
3885 g_template_obj(11).priority := 17000;
3886
3887
3888 --------------------------------------------------------------
3889 --- INPUT VALUES FOR TRANSFER OF COMPANY ASSETS STARTS
3890 --------------------------------------------------------------
3891
3892 g_template_obj(11).iv_setup(1).input_value_name := 'Pay Value';
3893 g_template_obj(11).iv_setup(1).uom := 'M';
3894 g_template_obj(11).iv_setup(1).mandatory_flag := 'X';
3895 g_template_obj(11).iv_setup(1).lookup_type := null;
3896 g_template_obj(11).iv_setup(1).default_value := null;
3897 g_template_obj(11).iv_setup(1).def_value_column := null;
3898 g_template_obj(11).iv_setup(1).min_value := null;
3899 g_template_obj(11).iv_setup(1).warn_or_error := null;
3900 g_template_obj(11).iv_setup(1).balance_name := null;
3901 g_template_obj(11).iv_setup(1).exclusion_tag := null;
3902
3903 g_template_obj(11).iv_setup(2).input_value_name := 'Asset Category';
3904 g_template_obj(11).iv_setup(2).uom := 'C';
3905 g_template_obj(11).iv_setup(2).mandatory_flag := 'Y';
3906 g_template_obj(11).iv_setup(2).lookup_type := 'IN_ASSET_TYPE_TRANSFER';
3907 g_template_obj(11).iv_setup(2).default_value := null;
3908 g_template_obj(11).iv_setup(2).def_value_column := null;
3909 g_template_obj(11).iv_setup(2).min_value := null;
3910 g_template_obj(11).iv_setup(2).warn_or_error := null;
3911 g_template_obj(11).iv_setup(2).balance_name := null;
3912 g_template_obj(11).iv_setup(2).exclusion_tag := null;
3913
3914 g_template_obj(11).iv_setup(3).input_value_name := 'Asset Description';
3915 g_template_obj(11).iv_setup(3).uom := 'C';
3916 g_template_obj(11).iv_setup(3).mandatory_flag := 'N';
3917 g_template_obj(11).iv_setup(3).lookup_type := null;
3918 g_template_obj(11).iv_setup(3).default_value := null;
3919 g_template_obj(11).iv_setup(3).def_value_column := null;
3920 g_template_obj(11).iv_setup(3).min_value := null;
3921 g_template_obj(11).iv_setup(3).warn_or_error := null;
3922 g_template_obj(11).iv_setup(3).balance_name := null;
3923 g_template_obj(11).iv_setup(3).exclusion_tag := null;
3924
3925 g_template_obj(11).iv_setup(4).input_value_name := 'Original Cost';
3926 g_template_obj(11).iv_setup(4).uom := 'M';
3927 g_template_obj(11).iv_setup(4).mandatory_flag := 'Y';
3928 g_template_obj(11).iv_setup(4).lookup_type := null;
3929 g_template_obj(11).iv_setup(4).default_value := null;
3930 g_template_obj(11).iv_setup(4).def_value_column := null;
3931 g_template_obj(11).iv_setup(4).min_value := 0;
3932 g_template_obj(11).iv_setup(4).warn_or_error := 'E';
3933 g_template_obj(11).iv_setup(4).balance_name := null;
3934 g_template_obj(11).iv_setup(4).exclusion_tag := null;
3935
3936 g_template_obj(11).iv_setup(5).input_value_name := 'Date of Purchase';
3937 g_template_obj(11).iv_setup(5).uom := 'D';
3938 g_template_obj(11).iv_setup(5).mandatory_flag := 'Y';
3939 g_template_obj(11).iv_setup(5).lookup_type := null;
3940 g_template_obj(11).iv_setup(5).default_value := null;
3941 g_template_obj(11).iv_setup(5).def_value_column := null;
3942 g_template_obj(11).iv_setup(5).min_value := null;
3943 g_template_obj(11).iv_setup(5).warn_or_error := null;
3944 g_template_obj(11).iv_setup(5).balance_name := null;
3945 g_template_obj(11).iv_setup(5).exclusion_tag := null;
3946
3947 g_template_obj(11).iv_setup(6).input_value_name := 'Employee Contribution';
3948 g_template_obj(11).iv_setup(6).uom := 'M';
3949 g_template_obj(11).iv_setup(6).mandatory_flag := 'N';
3950 g_template_obj(11).iv_setup(6).lookup_type := null;
3951 g_template_obj(11).iv_setup(6).default_value := null;
3952 g_template_obj(11).iv_setup(6).def_value_column := null;
3953 g_template_obj(11).iv_setup(6).min_value := 0;
3954 g_template_obj(11).iv_setup(6).warn_or_error := 'E';
3955 g_template_obj(11).iv_setup(6).balance_name :='Perquisite Employee Contribution';
3956 g_template_obj(11).iv_setup(6).exclusion_tag := null;
3957
3958 g_template_obj(11).iv_setup(7).input_value_name := 'Component Name';
3959 g_template_obj(11).iv_setup(7).uom := 'C';
3960 g_template_obj(11).iv_setup(7).mandatory_flag := 'X';
3961 g_template_obj(11).iv_setup(7).lookup_type := null;
3962 g_template_obj(11).iv_setup(7).default_value := 'Transfer of Company Assets';
3963 g_template_obj(11).iv_setup(7).def_value_column := null;
3964 g_template_obj(11).iv_setup(7).min_value := null;
3965 g_template_obj(11).iv_setup(7).warn_or_error := null;
3966 g_template_obj(11).iv_setup(7).balance_name := null;
3967 g_template_obj(11).iv_setup(7).exclusion_tag := null;
3968
3969 g_template_obj(11).iv_setup(8).input_value_name := 'Employer Paid Tax';
3970 g_template_obj(11).iv_setup(8).uom := 'C';
3971 g_template_obj(11).iv_setup(8).mandatory_flag := 'Y';
3972 g_template_obj(11).iv_setup(8).lookup_type := 'YES_NO';
3973 g_template_obj(11).iv_setup(8).default_value := 'N';
3974 g_template_obj(11).iv_setup(8).def_value_column := null;
3975 g_template_obj(11).iv_setup(8).min_value := null;
3976 g_template_obj(11).iv_setup(8).warn_or_error := null;
3977 g_template_obj(11).iv_setup(8).balance_name := null;
3978 g_template_obj(11).iv_setup(8).exclusion_tag := null;
3979
3980 g_template_obj(11).iv_setup(9).input_value_name := 'Employer Taxable Amount';
3981 g_template_obj(11).iv_setup(9).uom := 'M';
3982 g_template_obj(11).iv_setup(9).mandatory_flag := 'X';
3983 g_template_obj(11).iv_setup(9).lookup_type := null;
3984 g_template_obj(11).iv_setup(9).default_value := null;
3985 g_template_obj(11).iv_setup(9).def_value_column := null;
3986 g_template_obj(11).iv_setup(9).min_value := 0;
3987 g_template_obj(11).iv_setup(9).warn_or_error := 'E';
3988 g_template_obj(11).iv_setup(9).balance_name := null;
3989 g_template_obj(11).iv_setup(9).exclusion_tag := null;
3990
3991 --------------------------------------------------------------
3992 --- INPUT VALUES FOR TRANSFER OF COMPANY ASSETS ENDS
3993 --------------------------------------------------------------
3994
3995
3996 --------------------------------------------------------------
3997 --- FORMULAE SET UP FOR TRANSFER OF COMPANY ASSETS STARTS
3998 --------------------------------------------------------------
3999 g_template_obj(11).sf_setup.formula_name := 'IN_TRANSFER_OF_ASSETS';
4000 g_template_obj(11).sf_setup.status_rule_id := null;
4001 g_template_obj(11).sf_setup.description := null;
4002
4003 g_template_obj(11).sf_setup.frs_setup(1).result_name := 'PERQUISITE_VALUE';
4004 g_template_obj(11).sf_setup.frs_setup(1).result_rule_type := 'D';
4005 g_template_obj(11).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
4006 g_template_obj(11).sf_setup.frs_setup(1).element_name := null;
4007 g_template_obj(11).sf_setup.frs_setup(1).severity_level := null;
4008 g_template_obj(11).sf_setup.frs_setup(1).exclusion_tag := null;
4009
4010 g_template_obj(11).sf_setup.frs_setup(2).result_name := 'EMPR_TAX';
4011 g_template_obj(11).sf_setup.frs_setup(2).result_rule_type := 'D';
4012 g_template_obj(11).sf_setup.frs_setup(2).input_value_name := 'Employer Taxable Amount';
4013 g_template_obj(11).sf_setup.frs_setup(2).element_name := null;
4014 g_template_obj(11).sf_setup.frs_setup(2).severity_level := null;
4015 g_template_obj(11).sf_setup.frs_setup(2).exclusion_tag := null;
4016
4017 g_template_obj(11).sf_setup.frs_setup(3).result_name := 'ER_MP_TAXABLE_AMOUNT';
4018 g_template_obj(11).sf_setup.frs_setup(3).result_rule_type := 'I';
4019 g_template_obj(11).sf_setup.frs_setup(3).input_value_name := 'ER MP Taxable Amount';
4020 g_template_obj(11).sf_setup.frs_setup(3).element_name := 'Employer Tax Projection Element';
4021 g_template_obj(11).sf_setup.frs_setup(3).severity_level := null;
4022 g_template_obj(11).sf_setup.frs_setup(3).exclusion_tag := null;
4023
4024 g_template_obj(11).sf_setup.frs_setup(4).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
4025 g_template_obj(11).sf_setup.frs_setup(4).result_rule_type := 'I';
4026 g_template_obj(11).sf_setup.frs_setup(4).input_value_name := 'Projected ER MP Taxable Amt';
4027 g_template_obj(11).sf_setup.frs_setup(4).element_name := 'Employer Tax Projection Element';
4028 g_template_obj(11).sf_setup.frs_setup(4).severity_level := null;
4029 g_template_obj(11).sf_setup.frs_setup(4).exclusion_tag := null;
4030
4031 g_template_obj(11).sf_setup.frs_setup(5).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
4032 g_template_obj(11).sf_setup.frs_setup(5).result_rule_type := 'I';
4033 g_template_obj(11).sf_setup.frs_setup(5).input_value_name := 'ER MP Salary to be Excluded';
4034 g_template_obj(11).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
4035 g_template_obj(11).sf_setup.frs_setup(5).severity_level := null;
4036 g_template_obj(11).sf_setup.frs_setup(5).exclusion_tag := null;
4037
4038 g_template_obj(11).sf_setup.frs_setup(6).result_name := 'ER_NMP_TAXABLE_AMOUNT';
4039 g_template_obj(11).sf_setup.frs_setup(6).result_rule_type := 'I';
4040 g_template_obj(11).sf_setup.frs_setup(6).input_value_name := 'ER NMP Taxable Amount';
4041 g_template_obj(11).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
4042 g_template_obj(11).sf_setup.frs_setup(6).severity_level := null;
4043 g_template_obj(11).sf_setup.frs_setup(6).exclusion_tag := null;
4044
4045 g_template_obj(11).sf_setup.frs_setup(7).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
4046 g_template_obj(11).sf_setup.frs_setup(7).result_rule_type := 'I';
4047 g_template_obj(11).sf_setup.frs_setup(7).input_value_name := 'Projected ER NMP Taxable Amt';
4048 g_template_obj(11).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
4049 g_template_obj(11).sf_setup.frs_setup(7).severity_level := null;
4050 g_template_obj(11).sf_setup.frs_setup(7).exclusion_tag := null;
4051
4052 g_template_obj(11).sf_setup.frs_setup(8).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
4053 g_template_obj(11).sf_setup.frs_setup(8).result_rule_type := 'I';
4054 g_template_obj(11).sf_setup.frs_setup(8).input_value_name := 'ER NMP Salary to be Excluded';
4055 g_template_obj(11).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
4056 g_template_obj(11).sf_setup.frs_setup(8).severity_level := null;
4057 g_template_obj(11).sf_setup.frs_setup(8).exclusion_tag := null;
4058
4059
4060 g_template_obj(11).sf_setup.frs_setup(9).result_name := 'COMPONENT_NAME';
4061 g_template_obj(11).sf_setup.frs_setup(9).result_rule_type := 'I';
4062 g_template_obj(11).sf_setup.frs_setup(9).input_value_name := 'Component Name';
4063 g_template_obj(11).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
4064 g_template_obj(11).sf_setup.frs_setup(9).severity_level := null;
4065 g_template_obj(11).sf_setup.frs_setup(9).exclusion_tag := null;
4066
4067 g_template_obj(11).sf_setup.frs_setup(10).result_name := 'NON_REC_VALUE';
4068 g_template_obj(11).sf_setup.frs_setup(10).result_rule_type := 'I';
4069 g_template_obj(11).sf_setup.frs_setup(10).input_value_name := 'Non Rec Perquisite';
4070 g_template_obj(11).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
4071 g_template_obj(11).sf_setup.frs_setup(10).severity_level := null;
4072 g_template_obj(11).sf_setup.frs_setup(10).exclusion_tag := null;
4073 --------------------------------------------------------------
4074 --- FORMULAE SET UP FOR TRANSFER OF COMPANY ASSETS ENDS
4075 --------------------------------------------------------------
4076
4077
4078 -------------------------------------------------------------
4079 ---- TEMPLATE FOR TRANSFER OF COMPANY ASSETS ENDS
4080 -------------------------------------------------------------
4081
4082 ----------------------------------------------------------------
4083 -- TEMPLATE FOR Employer Charges STARTS
4084 ----------------------------------------------------------------
4085 pay_in_utils.set_location(g_debug, l_procedure,110);
4086 g_template_obj(12).template_name := 'Pension Fund 80CCD';
4087 g_template_obj(12).category := 'Employer Charges';
4088 g_template_obj(12).priority := 21000;
4089
4090 ----------------------------------------------------------------
4091 -- Exclusion Rules for Employer Charges Template start
4092 ----------------------------------------------------------------
4093 g_template_obj(12).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION1';
4094 g_template_obj(12).er_setup(1).value := 'N';
4095 g_template_obj(12).er_setup(1).descr := 'Exclusion rule for Projections.';
4096 g_template_obj(12).er_setup(1).tag := 'PROJECT';
4097 g_template_obj(12).er_setup(1).rule_id := null;
4098
4099 ----------------------------------------------------------------
4100 -- Exclusion Rules for Employer Charges Template end
4101 ----------------------------------------------------------------
4102
4103 ----------------------------------------------------------------
4104 -- Input Values for Employer Charges Template start
4105 ----------------------------------------------------------------
4106 g_template_obj(12).iv_setup(1).input_value_name := 'Pay Value';
4107 g_template_obj(12).iv_setup(1).uom := 'M';
4108 g_template_obj(12).iv_setup(1).mandatory_flag := 'N';
4109 g_template_obj(12).iv_setup(1).lookup_type := null;
4110 g_template_obj(12).iv_setup(1).default_value := null;
4111 g_template_obj(12).iv_setup(1).def_value_column := null;
4112 g_template_obj(12).iv_setup(1).min_value := null;
4113 g_template_obj(12).iv_setup(1).warn_or_error := null;
4114 g_template_obj(12).iv_setup(1).balance_name := null;
4115 g_template_obj(12).iv_setup(1).exclusion_tag := null;
4116
4117 g_template_obj(12).iv_setup(2).input_value_name := 'Standard Value';
4118 g_template_obj(12).iv_setup(2).uom := 'M';
4119 g_template_obj(12).iv_setup(2).mandatory_flag := 'N';
4120 g_template_obj(12).iv_setup(2).lookup_type := null;
4121 g_template_obj(12).iv_setup(2).default_value := null;
4122 g_template_obj(12).iv_setup(2).def_value_column := null;
4123 g_template_obj(12).iv_setup(2).min_value := null;
4124 g_template_obj(12).iv_setup(2).warn_or_error := null;
4125 g_template_obj(12).iv_setup(2).balance_name := null;
4126 g_template_obj(12).iv_setup(2).exclusion_tag := 'PROJECT';
4127
4128 g_template_obj(12).iv_setup(3).input_value_name := 'Contribution Percentage';
4129 g_template_obj(12).iv_setup(3).uom := 'N';
4130 g_template_obj(12).iv_setup(3).mandatory_flag := 'N';
4131 g_template_obj(12).iv_setup(3).lookup_type := null;
4132 g_template_obj(12).iv_setup(3).default_value := null;
4133 g_template_obj(12).iv_setup(3).def_value_column := null;
4134 g_template_obj(12).iv_setup(3).min_value := null;
4135 g_template_obj(12).iv_setup(3).warn_or_error := null;
4136 g_template_obj(12).iv_setup(3).balance_name := null;
4137 g_template_obj(12).iv_setup(3).exclusion_tag := null;
4138
4139 ----------------------------------------------------------------
4140 -- Input Values for Employer Charges Template end
4141 ----------------------------------------------------------------
4142
4143 ----------------------------------------------------------------
4144 -- Balance Feeds for Employer Charges Template start
4148 g_template_obj(12).bf_setup(1).scale := 1;
4145 ----------------------------------------------------------------
4146 g_template_obj(12).bf_setup(1).balance_name := 'Employer Pension Contribution';
4147 g_template_obj(12).bf_setup(1).iv_name := 'Pay Value';
4149 g_template_obj(12).bf_setup(1).exclusion_tag := null;
4150
4151 g_template_obj(12).bf_setup(2).balance_name := 'Employer Standard Pension Contribution';
4152 g_template_obj(12).bf_setup(2).iv_name := 'Standard Value';
4153 g_template_obj(12).bf_setup(2).scale := 1;
4154 g_template_obj(12).bf_setup(2).exclusion_tag := 'PROJECT';
4155 ----------------------------------------------------------------
4156 -- Balance Feeds for Employer Charges Template end
4157 ----------------------------------------------------------------
4158
4159 ----------------------------------------------------------------
4160 -- Formula Setup for Employer Charges Template starts
4161 ----------------------------------------------------------------
4162 g_template_obj(12).uf_setup.formula_name := '_EC_CALC';
4163 g_template_obj(12).uf_setup.status_rule_id := null;
4164 g_template_obj(12).uf_setup.description := 'Formula for Employer Charges';
4165
4166 g_template_obj(12).uf_setup.frs_setup(1).result_name := 'EC_PAY_VALUE';
4167 g_template_obj(12).uf_setup.frs_setup(1).result_rule_type := 'D';
4168 g_template_obj(12).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
4169 g_template_obj(12).uf_setup.frs_setup(1).element_name := null;
4170 g_template_obj(12).uf_setup.frs_setup(1).severity_level := null;
4171 g_template_obj(12).uf_setup.frs_setup(1).exclusion_tag := null;
4172
4173 g_template_obj(12).uf_setup.frs_setup(2).result_name := 'EC_STANDARD_VALUE';
4174 g_template_obj(12).uf_setup.frs_setup(2).result_rule_type := 'D';
4175 g_template_obj(12).uf_setup.frs_setup(2).input_value_name := 'Standard Value';
4176 g_template_obj(12).uf_setup.frs_setup(2).element_name := null;
4177 g_template_obj(12).uf_setup.frs_setup(2).severity_level := null;
4178 g_template_obj(12).uf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
4179 ----------------------------------------------------------------
4180 -- Formula Setup for Employer Charges Template ends
4181 ----------------------------------------------------------------
4182
4183 ----------------------------------------------------------------
4184 -- Add. Element Setup for Employer Charges Template starts
4185 ----------------------------------------------------------------
4186 ----------------------------------------------------------------
4187 -- Add. Element Setup for Employer Charges Template ends
4188 ----------------------------------------------------------------
4189
4190 ----------------------------------------------------------------
4191 -- TEMPLATE FOR Employer Charges ENDS
4192 ----------------------------------------------------------------
4193
4194
4195 ----------------------------------------------------------------
4196 -- TEMPLATE FOR LUNCH PERQUISITE STARTS
4197 ----------------------------------------------------------------
4198 pay_in_utils.set_location(g_debug, l_procedure,50);
4199 g_template_obj(13).template_name := 'Lunch Perquisite';
4200 g_template_obj(13).category := 'Perquisites';
4201 g_template_obj(13).priority := 9000;
4202
4203 ----------------------------------------------------------------
4204 -- Exclusion Rules for LUNCH PERQUISITE Template start
4205 ----------------------------------------------------------------
4206 g_template_obj(13).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
4207 g_template_obj(13).er_setup(1).value := 'N';
4208 g_template_obj(13).er_setup(1).descr := 'Exclusion rule for Projections.';
4209 g_template_obj(13).er_setup(1).tag := 'PROJECT';
4210 g_template_obj(13).er_setup(1).rule_id := null;
4211
4212 ----------------------------------------------------------------
4213 -- Exclusion Rules for LUNCH PERQUISITE Template end
4214 ----------------------------------------------------------------
4215
4216 ----------------------------------------------------------------
4217 -- Input Values for LUNCH PERQUISITE Template start
4218 ----------------------------------------------------------------
4219 g_template_obj(13).iv_setup(1).input_value_name := 'Pay Value';
4220 g_template_obj(13).iv_setup(1).uom := 'M';
4221 g_template_obj(13).iv_setup(1).mandatory_flag := 'X';
4222 g_template_obj(13).iv_setup(1).lookup_type := null;
4223 g_template_obj(13).iv_setup(1).default_value := null;
4224 g_template_obj(13).iv_setup(1).def_value_column := null;
4225 g_template_obj(13).iv_setup(1).min_value := null;
4226 g_template_obj(13).iv_setup(1).warn_or_error := null;
4227 g_template_obj(13).iv_setup(1).balance_name := null;
4228 g_template_obj(13).iv_setup(1).exclusion_tag := null;
4229
4230 g_template_obj(13).iv_setup(2).input_value_name := 'Component Name';
4231 g_template_obj(13).iv_setup(2).uom := 'C';
4232 g_template_obj(13).iv_setup(2).mandatory_flag := 'X';
4233 g_template_obj(13).iv_setup(2).lookup_type := null;
4234 g_template_obj(13).iv_setup(2).default_value := 'Lunch Perquisite';
4235 g_template_obj(13).iv_setup(2).def_value_column := null;
4236 g_template_obj(13).iv_setup(2).min_value := null;
4237 g_template_obj(13).iv_setup(2).warn_or_error := null;
4238 g_template_obj(13).iv_setup(2).balance_name := null;
4239 g_template_obj(13).iv_setup(2).exclusion_tag := null;
4240
4241 g_template_obj(13).iv_setup(3).input_value_name := 'Cost to Employer';
4242 g_template_obj(13).iv_setup(3).uom := 'M';
4243 g_template_obj(13).iv_setup(3).mandatory_flag := 'N';
4244 g_template_obj(13).iv_setup(3).lookup_type := null;
4245 g_template_obj(13).iv_setup(3).default_value := null;
4246 g_template_obj(13).iv_setup(3).def_value_column := null;
4247 g_template_obj(13).iv_setup(3).min_value := 0;
4248 g_template_obj(13).iv_setup(3).warn_or_error := 'E';
4249 g_template_obj(13).iv_setup(3).balance_name := 'Perquisite Employer Contribution';
4250 g_template_obj(13).iv_setup(3).exclusion_tag := null;
4251
4252
4253 g_template_obj(13).iv_setup(4).input_value_name := 'Employee Contribution';
4254 g_template_obj(13).iv_setup(4).uom := 'M';
4255 g_template_obj(13).iv_setup(4).mandatory_flag := 'N';
4256 g_template_obj(13).iv_setup(4).lookup_type := null;
4257 g_template_obj(13).iv_setup(4).default_value := null;
4258 g_template_obj(13).iv_setup(4).def_value_column := null;
4259 g_template_obj(13).iv_setup(4).min_value := 0;
4260 g_template_obj(13).iv_setup(4).warn_or_error := 'E';
4261 g_template_obj(13).iv_setup(4).balance_name := 'Perquisite Employee Contribution';
4262 g_template_obj(13).iv_setup(4).exclusion_tag := null;
4263
4264 g_template_obj(13).iv_setup(5).input_value_name := 'Number of Days';
4265 g_template_obj(13).iv_setup(5).uom := 'N';
4266 g_template_obj(13).iv_setup(5).mandatory_flag := 'N';
4267 g_template_obj(13).iv_setup(5).lookup_type := null;
4268 g_template_obj(13).iv_setup(5).default_value := null;
4269 g_template_obj(13).iv_setup(5).def_value_column := null;
4270 g_template_obj(13).iv_setup(5).min_value := null;
4271 g_template_obj(13).iv_setup(5).warn_or_error := null;
4272 g_template_obj(13).iv_setup(5).balance_name := null;
4273 g_template_obj(13).iv_setup(5).exclusion_tag := null;
4274
4275 g_template_obj(13).iv_setup(6).input_value_name := 'Projected Taxable Value';
4276 g_template_obj(13).iv_setup(6).uom := 'M';
4277 g_template_obj(13).iv_setup(6).mandatory_flag := 'X';
4278 g_template_obj(13).iv_setup(6).lookup_type := null;
4279 g_template_obj(13).iv_setup(6).default_value := null;
4280 g_template_obj(13).iv_setup(6).def_value_column := null;
4281 g_template_obj(13).iv_setup(6).min_value := null;
4282 g_template_obj(13).iv_setup(6).warn_or_error := null;
4283 g_template_obj(13).iv_setup(6).balance_name := 'Taxable Perquisites for Projection';
4284 g_template_obj(13).iv_setup(6).exclusion_tag := 'PROJECT';
4285
4286 g_template_obj(13).iv_setup(7).input_value_name := 'Employer Paid Tax';
4287 g_template_obj(13).iv_setup(7).uom := 'C';
4288 g_template_obj(13).iv_setup(7).mandatory_flag := 'Y';
4289 g_template_obj(13).iv_setup(7).lookup_type := 'YES_NO';
4290 g_template_obj(13).iv_setup(7).default_value := 'N';
4291 g_template_obj(13).iv_setup(7).def_value_column := null;
4292 g_template_obj(13).iv_setup(7).min_value := null;
4293 g_template_obj(13).iv_setup(7).warn_or_error := null;
4294 g_template_obj(13).iv_setup(7).balance_name := null;
4295 g_template_obj(13).iv_setup(7).exclusion_tag := null;
4296
4297 g_template_obj(13).iv_setup(8).input_value_name := 'Employer Taxable Amount';
4298 g_template_obj(13).iv_setup(8).uom := 'M';
4299 g_template_obj(13).iv_setup(8).mandatory_flag := 'X';
4300 g_template_obj(13).iv_setup(8).lookup_type := null;
4301 g_template_obj(13).iv_setup(8).default_value := null;
4302 g_template_obj(13).iv_setup(8).def_value_column := null;
4303 g_template_obj(13).iv_setup(8).min_value := 0;
4304 g_template_obj(13).iv_setup(8).warn_or_error := 'E';
4305 g_template_obj(13).iv_setup(8).balance_name := null;
4306 g_template_obj(13).iv_setup(8).exclusion_tag := null;
4307
4308 ----------------------------------------------------------------
4309 -- Input Values for LUNCH PERQUISITE Template end
4310 ----------------------------------------------------------------
4311
4312 ----------------------------------------------------------------
4313 -- Balance Feeds for LUNCH PERQUISITE Template start
4314 ----------------------------------------------------------------
4315 ----------------------------------------------------------------
4316 -- Balance Feeds for LUNCH PERQUISITE Template end
4317 ----------------------------------------------------------------
4318
4319 ----------------------------------------------------------------
4320 -- Formula Setup for LUNCH PERQUISITE Template starts
4321 ----------------------------------------------------------------
4322 g_template_obj(13).sf_setup.formula_name := 'IN_LUNCH_PERQUISITE';
4323 g_template_obj(13).sf_setup.status_rule_id := null;
4324 g_template_obj(13).sf_setup.description := null;
4325
4326 g_template_obj(13).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
4330 g_template_obj(13).sf_setup.frs_setup(1).severity_level := null;
4327 g_template_obj(13).sf_setup.frs_setup(1).result_rule_type := 'D';
4328 g_template_obj(13).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
4329 g_template_obj(13).sf_setup.frs_setup(1).element_name := null;
4331 g_template_obj(13).sf_setup.frs_setup(1).exclusion_tag := null;
4332
4333 g_template_obj(13).sf_setup.frs_setup(2).result_name := 'PROJECTED_VALUE';
4334 g_template_obj(13).sf_setup.frs_setup(2).result_rule_type := 'D';
4335 g_template_obj(13).sf_setup.frs_setup(2).input_value_name := 'Projected Taxable Value';
4336 g_template_obj(13).sf_setup.frs_setup(2).element_name := null;
4337 g_template_obj(13).sf_setup.frs_setup(2).severity_level := null;
4338 g_template_obj(13).sf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
4339
4340 g_template_obj(13).sf_setup.frs_setup(3).result_name := 'EMPR_TAX';
4341 g_template_obj(13).sf_setup.frs_setup(3).result_rule_type := 'D';
4342 g_template_obj(13).sf_setup.frs_setup(3).input_value_name := 'Employer Taxable Amount';
4343 g_template_obj(13).sf_setup.frs_setup(3).element_name := null;
4344 g_template_obj(13).sf_setup.frs_setup(3).severity_level := null;
4345 g_template_obj(13).sf_setup.frs_setup(3).exclusion_tag := null;
4346
4347 g_template_obj(13).sf_setup.frs_setup(4).result_name := 'FED_TO_NET_PAY';
4348 g_template_obj(13).sf_setup.frs_setup(4).result_rule_type := 'I';
4349 g_template_obj(13).sf_setup.frs_setup(4).input_value_name := 'Pay Value';
4350 g_template_obj(13).sf_setup.frs_setup(4).element_name := null;
4351 g_template_obj(13).sf_setup.frs_setup(4).severity_level := null;
4352 g_template_obj(13).sf_setup.frs_setup(4).exclusion_tag := null;
4353
4354 g_template_obj(13).sf_setup.frs_setup(5).result_name := 'ER_MP_TAXABLE_AMOUNT';
4355 g_template_obj(13).sf_setup.frs_setup(5).result_rule_type := 'I';
4356 g_template_obj(13).sf_setup.frs_setup(5).input_value_name := 'ER MP Taxable Amount';
4357 g_template_obj(13).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
4358 g_template_obj(13).sf_setup.frs_setup(5).severity_level := null;
4359 g_template_obj(13).sf_setup.frs_setup(5).exclusion_tag := null;
4360
4361 g_template_obj(13).sf_setup.frs_setup(6).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
4362 g_template_obj(13).sf_setup.frs_setup(6).result_rule_type := 'I';
4363 g_template_obj(13).sf_setup.frs_setup(6).input_value_name := 'Projected ER MP Taxable Amt';
4364 g_template_obj(13).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
4365 g_template_obj(13).sf_setup.frs_setup(6).severity_level := null;
4366 g_template_obj(13).sf_setup.frs_setup(6).exclusion_tag := null;
4367
4368 g_template_obj(13).sf_setup.frs_setup(7).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
4369 g_template_obj(13).sf_setup.frs_setup(7).result_rule_type := 'I';
4370 g_template_obj(13).sf_setup.frs_setup(7).input_value_name := 'ER MP Salary to be Excluded';
4371 g_template_obj(13).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
4372 g_template_obj(13).sf_setup.frs_setup(7).severity_level := null;
4373 g_template_obj(13).sf_setup.frs_setup(7).exclusion_tag := null;
4374
4375 g_template_obj(13).sf_setup.frs_setup(8).result_name := 'ER_NMP_TAXABLE_AMOUNT';
4376 g_template_obj(13).sf_setup.frs_setup(8).result_rule_type := 'I';
4377 g_template_obj(13).sf_setup.frs_setup(8).input_value_name := 'ER NMP Taxable Amount';
4378 g_template_obj(13).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
4379 g_template_obj(13).sf_setup.frs_setup(8).severity_level := null;
4380 g_template_obj(13).sf_setup.frs_setup(8).exclusion_tag := null;
4381
4382 g_template_obj(13).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
4383 g_template_obj(13).sf_setup.frs_setup(9).result_rule_type := 'I';
4384 g_template_obj(13).sf_setup.frs_setup(9).input_value_name := 'Projected ER NMP Taxable Amt';
4385 g_template_obj(13).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
4386 g_template_obj(13).sf_setup.frs_setup(9).severity_level := null;
4387 g_template_obj(13).sf_setup.frs_setup(9).exclusion_tag := null;
4388
4389 g_template_obj(13).sf_setup.frs_setup(10).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
4390 g_template_obj(13).sf_setup.frs_setup(10).result_rule_type := 'I';
4391 g_template_obj(13).sf_setup.frs_setup(10).input_value_name := 'ER NMP Salary to be Excluded';
4392 g_template_obj(13).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
4393 g_template_obj(13).sf_setup.frs_setup(10).severity_level := null;
4394 g_template_obj(13).sf_setup.frs_setup(10).exclusion_tag := null;
4395
4396 g_template_obj(13).sf_setup.frs_setup(11).result_name := 'COMPONENT_NAME';
4397 g_template_obj(13).sf_setup.frs_setup(11).result_rule_type := 'I';
4398 g_template_obj(13).sf_setup.frs_setup(11).input_value_name := 'Component Name';
4399 g_template_obj(13).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
4400 g_template_obj(13).sf_setup.frs_setup(11).severity_level := null;
4401 g_template_obj(13).sf_setup.frs_setup(11).exclusion_tag := null;
4402
4403 g_template_obj(13).sf_setup.frs_setup(12).result_name := 'NON_REC_VALUE';
4404 g_template_obj(13).sf_setup.frs_setup(12).result_rule_type := 'I';
4405 g_template_obj(13).sf_setup.frs_setup(12).input_value_name := 'Non Rec Perquisite';
4406 g_template_obj(13).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
4407 g_template_obj(13).sf_setup.frs_setup(12).severity_level := null;
4408 g_template_obj(13).sf_setup.frs_setup(12).exclusion_tag := null;
4409
4410 g_template_obj(13).sf_setup.frs_setup(13).result_name := 'Cost_to_Employer';
4414 g_template_obj(13).sf_setup.frs_setup(13).severity_level := null;
4411 g_template_obj(13).sf_setup.frs_setup(13).result_rule_type := 'D';
4412 g_template_obj(13).sf_setup.frs_setup(13).input_value_name := 'Cost to Employer';
4413 g_template_obj(13).sf_setup.frs_setup(13).element_name := null;
4415 g_template_obj(13).sf_setup.frs_setup(13).exclusion_tag := null;
4416
4417 g_template_obj(13).sf_setup.frs_setup(14).result_name := 'Employee_Contribution';
4418 g_template_obj(13).sf_setup.frs_setup(14).result_rule_type := 'D';
4419 g_template_obj(13).sf_setup.frs_setup(14).input_value_name := 'Employee Contribution';
4420 g_template_obj(13).sf_setup.frs_setup(14).element_name := null;
4421 g_template_obj(13).sf_setup.frs_setup(14).severity_level := null;
4422 g_template_obj(13).sf_setup.frs_setup(14).exclusion_tag := null;
4423 ----------------------------------------------------------------
4424 -- Formula Setup for LUNCH PERQUISITE Template ends
4425 ----------------------------------------------------------------
4426
4427 ----------------------------------------------------------------
4428 -- Add. Element Setup for LUNCH PERQUISITE Template starts
4429 ----------------------------------------------------------------
4430
4431 g_template_obj(13).ae_setup(1).element_name := ' Paid MP';
4432 g_template_obj(13).ae_setup(1).classification := 'Paid Monetary Perquisite';
4433 g_template_obj(13).ae_setup(1).exclusion_tag := 'Perquisite';
4434 g_template_obj(13).ae_setup(1).priority := 2000;
4435
4436 g_template_obj(13).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
4437 g_template_obj(13).ae_setup(1).iv_setup(1).uom := 'M';
4438 g_template_obj(13).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
4439 g_template_obj(13).ae_setup(1).iv_setup(1).lookup_type := null;
4440 g_template_obj(13).ae_setup(1).iv_setup(1).default_value := null;
4441 g_template_obj(13).ae_setup(1).iv_setup(1).def_value_column := null;
4442 g_template_obj(13).ae_setup(1).iv_setup(1).min_value := null;
4443 g_template_obj(13).ae_setup(1).iv_setup(1).warn_or_error := null;
4444 g_template_obj(13).ae_setup(1).iv_setup(1).balance_name := null;
4445 g_template_obj(13).ae_setup(1).iv_setup(1).exclusion_tag := null;
4446
4447 g_template_obj(13).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
4448 g_template_obj(13).ae_setup(1).iv_setup(2).uom := 'C';
4449 g_template_obj(13).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
4450 g_template_obj(13).ae_setup(1).iv_setup(2).lookup_type := null;
4451 g_template_obj(13).ae_setup(1).iv_setup(2).default_value := 'Lunch Perquisite';
4452 g_template_obj(13).ae_setup(1).iv_setup(2).def_value_column := null;
4453 g_template_obj(13).ae_setup(1).iv_setup(2).min_value := null;
4454 g_template_obj(13).ae_setup(1).iv_setup(2).warn_or_error := null;
4455 g_template_obj(13).ae_setup(1).iv_setup(2).balance_name := null;
4456 g_template_obj(13).ae_setup(1).iv_setup(2).exclusion_tag := null;
4457
4458 ----------------------------------------------------------------
4459 -- Add. Element Setup for LUNCH PERQUISITE Template ends
4460 ----------------------------------------------------------------
4461
4462 ----------------------------------------------------------------
4463 -- TEMPLATE FOR LUNCH PERQUISITE ENDS
4464 ----------------------------------------------------------------
4465 ----------------------------------------------------------------
4466 -- TEMPLATE FOR CAR PERQUISITE STARTS
4467 ----------------------------------------------------------------
4468 pay_in_utils.set_location(g_debug, l_procedure,50);
4469 g_template_obj(14).template_name := 'Motor Car Perquisite';
4470 g_template_obj(14).category := 'Perquisites';
4471 g_template_obj(14).priority := 9000;
4472
4473 ----------------------------------------------------------------
4474 -- Exclusion Rules for CAR PERQUISITE Template start
4475 ----------------------------------------------------------------
4476 g_template_obj(14).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
4477 g_template_obj(14).er_setup(1).value := 'N';
4478 g_template_obj(14).er_setup(1).descr := 'Exclusion rule for Projections.';
4479 g_template_obj(14).er_setup(1).tag := 'PROJECT';
4480 g_template_obj(14).er_setup(1).rule_id := null;
4481
4482 ----------------------------------------------------------------
4483 -- Exclusion Rules for CAR PERQUISITE Template end
4484 ----------------------------------------------------------------
4485
4486 ----------------------------------------------------------------
4487 -- Input Values for CAR PERQUISITE Template start
4488 ----------------------------------------------------------------
4489 g_template_obj(14).iv_setup(1).input_value_name := 'Pay Value';
4490 g_template_obj(14).iv_setup(1).uom := 'M';
4491 g_template_obj(14).iv_setup(1).mandatory_flag := 'X';
4492 g_template_obj(14).iv_setup(1).lookup_type := null;
4493 g_template_obj(14).iv_setup(1).default_value := null;
4494 g_template_obj(14).iv_setup(1).def_value_column := null;
4495 g_template_obj(14).iv_setup(1).min_value := null;
4496 g_template_obj(14).iv_setup(1).warn_or_error := null;
4497 g_template_obj(14).iv_setup(1).balance_name := null;
4498 g_template_obj(14).iv_setup(1).exclusion_tag := null;
4499
4500 g_template_obj(14).iv_setup(2).input_value_name := 'Component Name';
4501 g_template_obj(14).iv_setup(2).uom := 'C';
4502 g_template_obj(14).iv_setup(2).mandatory_flag := 'X';
4503 g_template_obj(14).iv_setup(2).lookup_type := null;
4504 g_template_obj(14).iv_setup(2).default_value := 'Motor Car Perquisite';
4505 g_template_obj(14).iv_setup(2).def_value_column := null;
4506 g_template_obj(14).iv_setup(2).min_value := null;
4507 g_template_obj(14).iv_setup(2).warn_or_error := null;
4508 g_template_obj(14).iv_setup(2).balance_name := null;
4509 g_template_obj(14).iv_setup(2).exclusion_tag := null;
4510
4511 g_template_obj(14).iv_setup(3).input_value_name := 'Benefit Start Date';
4512 g_template_obj(14).iv_setup(3).uom := 'D';
4513 g_template_obj(14).iv_setup(3).mandatory_flag := 'N';
4514 g_template_obj(14).iv_setup(3).lookup_type := null;
4515 g_template_obj(14).iv_setup(3).default_value := null;
4516 g_template_obj(14).iv_setup(3).def_value_column := null;
4517 g_template_obj(14).iv_setup(3).min_value := null;
4518 g_template_obj(14).iv_setup(3).warn_or_error := null;
4519 g_template_obj(14).iv_setup(3).balance_name := null;
4520 g_template_obj(14).iv_setup(3).exclusion_tag := null;
4521
4522 g_template_obj(14).iv_setup(4).input_value_name := 'Benefit End Date';
4523 g_template_obj(14).iv_setup(4).uom := 'D';
4524 g_template_obj(14).iv_setup(4).mandatory_flag := 'N';
4525 g_template_obj(14).iv_setup(4).lookup_type := null;
4526 g_template_obj(14).iv_setup(4).default_value := null;
4527 g_template_obj(14).iv_setup(4).def_value_column := null;
4528 g_template_obj(14).iv_setup(4).min_value := null;
4529 g_template_obj(14).iv_setup(4).warn_or_error := null;
4530 g_template_obj(14).iv_setup(4).balance_name := null;
4531 g_template_obj(14).iv_setup(4).exclusion_tag := null;
4532
4533 g_template_obj(14).iv_setup(5).input_value_name := 'Type of Automotive';
4534 g_template_obj(14).iv_setup(5).uom := 'C';
4535 g_template_obj(14).iv_setup(5).mandatory_flag := 'Y';
4536 g_template_obj(14).iv_setup(5).lookup_type := 'IN_CAR_TYPE';
4537 g_template_obj(14).iv_setup(5).default_value := null;
4538 g_template_obj(14).iv_setup(5).def_value_column := null;
4539 g_template_obj(14).iv_setup(5).min_value := null;
4540 g_template_obj(14).iv_setup(5).warn_or_error := null;
4541 g_template_obj(14).iv_setup(5).balance_name := null;
4545 g_template_obj(14).iv_setup(6).uom := 'C';
4542 g_template_obj(14).iv_setup(5).exclusion_tag := null;
4543
4544 g_template_obj(14).iv_setup(6).input_value_name := 'Category of Car';
4546 g_template_obj(14).iv_setup(6).mandatory_flag := 'Y';
4547 g_template_obj(14).iv_setup(6).lookup_type := 'IN_CAR_CATEGORY';
4548 g_template_obj(14).iv_setup(6).default_value := null;
4549 g_template_obj(14).iv_setup(6).def_value_column := null;
4550 g_template_obj(14).iv_setup(6).min_value := null;
4551 g_template_obj(14).iv_setup(6).warn_or_error := null;
4552 g_template_obj(14).iv_setup(6).balance_name := null;
4553 g_template_obj(14).iv_setup(6).exclusion_tag := null;
4554
4555 g_template_obj(14).iv_setup(7).input_value_name := 'Usage of Car';
4556 g_template_obj(14).iv_setup(7).uom := 'C';
4557 g_template_obj(14).iv_setup(7).mandatory_flag := 'Y';
4558 g_template_obj(14).iv_setup(7).lookup_type := 'IN_CAR_USAGE';
4559 g_template_obj(14).iv_setup(7).default_value := null;
4560 g_template_obj(14).iv_setup(7).def_value_column := null;
4561 g_template_obj(14).iv_setup(7).min_value := null;
4562 g_template_obj(14).iv_setup(7).warn_or_error := null;
4563 g_template_obj(14).iv_setup(7).balance_name := null;
4564 g_template_obj(14).iv_setup(7).exclusion_tag := null;
4565
4566 g_template_obj(14).iv_setup(8).input_value_name := 'Actual Expenditure';
4567 g_template_obj(14).iv_setup(8).uom := 'M';
4568 g_template_obj(14).iv_setup(8).mandatory_flag := 'N';
4569 g_template_obj(14).iv_setup(8).lookup_type := null;
4570 g_template_obj(14).iv_setup(8).default_value := null;
4571 g_template_obj(14).iv_setup(8).def_value_column := null;
4572 g_template_obj(14).iv_setup(8).min_value := null;
4573 g_template_obj(14).iv_setup(8).warn_or_error := null;
4574 g_template_obj(14).iv_setup(8).balance_name := null;
4575 g_template_obj(14).iv_setup(8).exclusion_tag := null;
4576
4577 g_template_obj(14).iv_setup(9).input_value_name := 'Chauffeur by Employer';
4578 g_template_obj(14).iv_setup(9).uom := 'C';
4579 g_template_obj(14).iv_setup(9).mandatory_flag := 'Y';
4580 g_template_obj(14).iv_setup(9).lookup_type := 'YES_NO';
4581 g_template_obj(14).iv_setup(9).default_value := null;
4582 g_template_obj(14).iv_setup(9).def_value_column := null;
4583 g_template_obj(14).iv_setup(9).min_value := null;
4584 g_template_obj(14).iv_setup(9).warn_or_error := null;
4585 g_template_obj(14).iv_setup(9).balance_name := null;
4586 g_template_obj(14).iv_setup(9).exclusion_tag := null;
4587
4588 g_template_obj(14).iv_setup(10).input_value_name := 'Engine Capacity';
4589 g_template_obj(14).iv_setup(10).uom := 'C';
4590 g_template_obj(14).iv_setup(10).mandatory_flag := 'Y';
4591 g_template_obj(14).iv_setup(10).lookup_type := 'IN_CAR_CAPACITY';
4592 g_template_obj(14).iv_setup(10).default_value := null;
4593 g_template_obj(14).iv_setup(10).def_value_column := null;
4594 g_template_obj(14).iv_setup(10).min_value := null;
4595 g_template_obj(14).iv_setup(10).warn_or_error := null;
4596 g_template_obj(14).iv_setup(10).balance_name := null;
4597 g_template_obj(14).iv_setup(10).exclusion_tag := null;
4598
4599 g_template_obj(14).iv_setup(11).input_value_name := 'Operational Expenses by';
4600 g_template_obj(14).iv_setup(11).uom := 'C';
4601 g_template_obj(14).iv_setup(11).mandatory_flag := 'Y';
4602 g_template_obj(14).iv_setup(11).lookup_type := 'IN_CAR_MAINT_EXPENSES';
4603 g_template_obj(14).iv_setup(11).default_value := null;
4604 g_template_obj(14).iv_setup(11).def_value_column := null;
4605 g_template_obj(14).iv_setup(11).min_value := null;
4606 g_template_obj(14).iv_setup(11).warn_or_error := null;
4607 g_template_obj(14).iv_setup(11).balance_name := null;
4608 g_template_obj(14).iv_setup(11).exclusion_tag := null;
4609
4610
4611 g_template_obj(14).iv_setup(12).input_value_name := 'Employee Contribution';
4612 g_template_obj(14).iv_setup(12).uom := 'M';
4613 g_template_obj(14).iv_setup(12).mandatory_flag := 'N';
4614 g_template_obj(14).iv_setup(12).lookup_type := null;
4615 g_template_obj(14).iv_setup(12).default_value := null;
4616 g_template_obj(14).iv_setup(12).def_value_column := null;
4617 g_template_obj(14).iv_setup(12).min_value := null;
4618 g_template_obj(14).iv_setup(12).warn_or_error := null;
4619 g_template_obj(14).iv_setup(12).balance_name := 'Perquisite Employee Contribution';
4620 g_template_obj(14).iv_setup(12).exclusion_tag := null;
4621
4622
4623 g_template_obj(14).iv_setup(13).input_value_name := 'Projected Taxable Value';
4624 g_template_obj(14).iv_setup(13).uom := 'M';
4625 g_template_obj(14).iv_setup(13).mandatory_flag := 'X';
4626 g_template_obj(14).iv_setup(13).lookup_type := null;
4627 g_template_obj(14).iv_setup(13).default_value := null;
4628 g_template_obj(14).iv_setup(13).def_value_column := null;
4629 g_template_obj(14).iv_setup(13).min_value := null;
4630 g_template_obj(14).iv_setup(13).warn_or_error := null;
4631 g_template_obj(14).iv_setup(13).balance_name := 'Taxable Perquisites for Projection';
4632 g_template_obj(14).iv_setup(13).exclusion_tag := 'PROJECT';
4633
4634 g_template_obj(14).iv_setup(14).input_value_name := 'Employer Paid Tax';
4635 g_template_obj(14).iv_setup(14).uom := 'C';
4636 g_template_obj(14).iv_setup(14).mandatory_flag := 'Y';
4637 g_template_obj(14).iv_setup(14).lookup_type := 'YES_NO';
4638 g_template_obj(14).iv_setup(14).default_value := 'N';
4639 g_template_obj(14).iv_setup(14).def_value_column := null;
4640 g_template_obj(14).iv_setup(14).min_value := null;
4641 g_template_obj(14).iv_setup(14).warn_or_error := null;
4642 g_template_obj(14).iv_setup(14).balance_name := null;
4643 g_template_obj(14).iv_setup(14).exclusion_tag := null;
4644
4645 g_template_obj(14).iv_setup(15).input_value_name := 'Employer Taxable Amount';
4646 g_template_obj(14).iv_setup(15).uom := 'M';
4647 g_template_obj(14).iv_setup(15).mandatory_flag := 'X';
4648 g_template_obj(14).iv_setup(15).lookup_type := null;
4649 g_template_obj(14).iv_setup(15).default_value := null;
4650 g_template_obj(14).iv_setup(15).def_value_column := null;
4651 g_template_obj(14).iv_setup(15).min_value := 0;
4652 g_template_obj(14).iv_setup(15).warn_or_error := 'E';
4653 g_template_obj(14).iv_setup(15).balance_name := null;
4654 g_template_obj(14).iv_setup(15).exclusion_tag := null;
4655
4656 ----------------------------------------------------------------
4657 -- Input Values for CAR PERQUISITE Template end
4658 ----------------------------------------------------------------
4659
4660 ----------------------------------------------------------------
4661 -- Balance Feeds for CAR PERQUISITE Template start
4662 ----------------------------------------------------------------
4663 ----------------------------------------------------------------
4664 -- Balance Feeds for CAR PERQUISITE Template end
4665 ----------------------------------------------------------------
4666
4667 ----------------------------------------------------------------
4668 -- Formula Setup for CAR PERQUISITE Template starts
4669 ----------------------------------------------------------------
4670 g_template_obj(14).sf_setup.formula_name := 'IN_MOTOR_CAR';
4671 g_template_obj(14).sf_setup.status_rule_id := null;
4672 g_template_obj(14).sf_setup.description := null;
4673
4674 g_template_obj(14).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
4675 g_template_obj(14).sf_setup.frs_setup(1).result_rule_type := 'D';
4676 g_template_obj(14).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
4677 g_template_obj(14).sf_setup.frs_setup(1).element_name := null;
4678 g_template_obj(14).sf_setup.frs_setup(1).severity_level := null;
4679 g_template_obj(14).sf_setup.frs_setup(1).exclusion_tag := null;
4680
4681 g_template_obj(14).sf_setup.frs_setup(2).result_name := 'PROJECTED_VALUE';
4682 g_template_obj(14).sf_setup.frs_setup(2).result_rule_type := 'D';
4683 g_template_obj(14).sf_setup.frs_setup(2).input_value_name := 'Projected Taxable Value';
4684 g_template_obj(14).sf_setup.frs_setup(2).element_name := null;
4685 g_template_obj(14).sf_setup.frs_setup(2).severity_level := null;
4686 g_template_obj(14).sf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
4687
4688 g_template_obj(14).sf_setup.frs_setup(3).result_name := 'EMPR_TAX';
4689 g_template_obj(14).sf_setup.frs_setup(3).result_rule_type := 'D';
4690 g_template_obj(14).sf_setup.frs_setup(3).input_value_name := 'Employer Taxable Amount';
4691 g_template_obj(14).sf_setup.frs_setup(3).element_name := null;
4692 g_template_obj(14).sf_setup.frs_setup(3).severity_level := null;
4693 g_template_obj(14).sf_setup.frs_setup(3).exclusion_tag := null;
4694
4695 g_template_obj(14).sf_setup.frs_setup(4).result_name := 'FED_TO_NET_PAY';
4696 g_template_obj(14).sf_setup.frs_setup(4).result_rule_type := 'I';
4697 g_template_obj(14).sf_setup.frs_setup(4).input_value_name := 'Pay Value';
4698 g_template_obj(14).sf_setup.frs_setup(4).element_name := null;
4699 g_template_obj(14).sf_setup.frs_setup(4).severity_level := null;
4700 g_template_obj(14).sf_setup.frs_setup(4).exclusion_tag := null;
4701
4702 g_template_obj(14).sf_setup.frs_setup(5).result_name := 'ER_MP_TAXABLE_AMOUNT';
4703 g_template_obj(14).sf_setup.frs_setup(5).result_rule_type := 'I';
4704 g_template_obj(14).sf_setup.frs_setup(5).input_value_name := 'ER MP Taxable Amount';
4705 g_template_obj(14).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
4706 g_template_obj(14).sf_setup.frs_setup(5).severity_level := null;
4707 g_template_obj(14).sf_setup.frs_setup(5).exclusion_tag := null;
4708
4709 g_template_obj(14).sf_setup.frs_setup(6).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
4710 g_template_obj(14).sf_setup.frs_setup(6).result_rule_type := 'I';
4711 g_template_obj(14).sf_setup.frs_setup(6).input_value_name := 'Projected ER MP Taxable Amt';
4712 g_template_obj(14).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
4713 g_template_obj(14).sf_setup.frs_setup(6).severity_level := null;
4714 g_template_obj(14).sf_setup.frs_setup(6).exclusion_tag := null;
4715
4716 g_template_obj(14).sf_setup.frs_setup(7).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
4717 g_template_obj(14).sf_setup.frs_setup(7).result_rule_type := 'I';
4721 g_template_obj(14).sf_setup.frs_setup(7).exclusion_tag := null;
4718 g_template_obj(14).sf_setup.frs_setup(7).input_value_name := 'ER MP Salary to be Excluded';
4719 g_template_obj(14).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
4720 g_template_obj(14).sf_setup.frs_setup(7).severity_level := null;
4722
4723 g_template_obj(14).sf_setup.frs_setup(8).result_name := 'ER_NMP_TAXABLE_AMOUNT';
4724 g_template_obj(14).sf_setup.frs_setup(8).result_rule_type := 'I';
4725 g_template_obj(14).sf_setup.frs_setup(8).input_value_name := 'ER NMP Taxable Amount';
4726 g_template_obj(14).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
4727 g_template_obj(14).sf_setup.frs_setup(8).severity_level := null;
4728 g_template_obj(14).sf_setup.frs_setup(8).exclusion_tag := null;
4729
4730 g_template_obj(14).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
4731 g_template_obj(14).sf_setup.frs_setup(9).result_rule_type := 'I';
4732 g_template_obj(14).sf_setup.frs_setup(9).input_value_name := 'Projected ER NMP Taxable Amt';
4733 g_template_obj(14).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
4734 g_template_obj(14).sf_setup.frs_setup(9).severity_level := null;
4735 g_template_obj(14).sf_setup.frs_setup(9).exclusion_tag := null;
4736
4737 g_template_obj(14).sf_setup.frs_setup(10).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
4738 g_template_obj(14).sf_setup.frs_setup(10).result_rule_type := 'I';
4739 g_template_obj(14).sf_setup.frs_setup(10).input_value_name := 'ER NMP Salary to be Excluded';
4740 g_template_obj(14).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
4741 g_template_obj(14).sf_setup.frs_setup(10).severity_level := null;
4742 g_template_obj(14).sf_setup.frs_setup(10).exclusion_tag := null;
4743
4744 g_template_obj(14).sf_setup.frs_setup(11).result_name := 'COMPONENT_NAME';
4745 g_template_obj(14).sf_setup.frs_setup(11).result_rule_type := 'I';
4746 g_template_obj(14).sf_setup.frs_setup(11).input_value_name := 'Component Name';
4747 g_template_obj(14).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
4748 g_template_obj(14).sf_setup.frs_setup(11).severity_level := null;
4749 g_template_obj(14).sf_setup.frs_setup(11).exclusion_tag := null;
4750
4751 g_template_obj(14).sf_setup.frs_setup(12).result_name := 'NON_REC_VALUE';
4752 g_template_obj(14).sf_setup.frs_setup(12).result_rule_type := 'I';
4753 g_template_obj(14).sf_setup.frs_setup(12).input_value_name := 'Non Rec Perquisite';
4754 g_template_obj(14).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
4755 g_template_obj(14).sf_setup.frs_setup(12).severity_level := null;
4756 g_template_obj(14).sf_setup.frs_setup(12).exclusion_tag := null;
4757 ----------------------------------------------------------------
4758 -- Formula Setup for CAR PERQUISITE Template ends
4759 ----------------------------------------------------------------
4760
4761 ----------------------------------------------------------------
4762 -- Add. Element Setup for CAR PERQUISITE Template starts
4763 ----------------------------------------------------------------
4764
4765 g_template_obj(14).ae_setup(1).element_name := ' Paid MP';
4766 g_template_obj(14).ae_setup(1).classification := 'Paid Monetary Perquisite';
4767 g_template_obj(14).ae_setup(1).exclusion_tag := 'Perquisite';
4768 g_template_obj(14).ae_setup(1).priority := 2000;
4769
4770 g_template_obj(14).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
4771 g_template_obj(14).ae_setup(1).iv_setup(1).uom := 'M';
4772 g_template_obj(14).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
4773 g_template_obj(14).ae_setup(1).iv_setup(1).lookup_type := null;
4774 g_template_obj(14).ae_setup(1).iv_setup(1).default_value := null;
4775 g_template_obj(14).ae_setup(1).iv_setup(1).def_value_column := null;
4776 g_template_obj(14).ae_setup(1).iv_setup(1).min_value := null;
4777 g_template_obj(14).ae_setup(1).iv_setup(1).warn_or_error := null;
4778 g_template_obj(14).ae_setup(1).iv_setup(1).balance_name := null;
4779 g_template_obj(14).ae_setup(1).iv_setup(1).exclusion_tag := null;
4780
4781 g_template_obj(14).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
4782 g_template_obj(14).ae_setup(1).iv_setup(2).uom := 'C';
4783 g_template_obj(14).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
4784 g_template_obj(14).ae_setup(1).iv_setup(2).lookup_type := null;
4785 g_template_obj(14).ae_setup(1).iv_setup(2).default_value := 'Motor Car Perquisite';
4786 g_template_obj(14).ae_setup(1).iv_setup(2).def_value_column := null;
4787 g_template_obj(14).ae_setup(1).iv_setup(2).min_value := null;
4788 g_template_obj(14).ae_setup(1).iv_setup(2).warn_or_error := null;
4789 g_template_obj(14).ae_setup(1).iv_setup(2).balance_name := null;
4790 g_template_obj(14).ae_setup(1).iv_setup(2).exclusion_tag := null;
4791
4792 ----------------------------------------------------------------
4793 -- Add. Element Setup for CAR PERQUISITE Template ends
4794 ----------------------------------------------------------------
4795
4796 ----------------------------------------------------------------
4797 -- TEMPLATE FOR CAR PERQUISITE ENDS
4798 ----------------------------------------------------------------
4799
4800 pay_in_utils.set_location(g_debug,'Leaving:'|| l_procedure,150);
4801 EXCEPTION
4802 WHEN OTHERS THEN
4803 pay_in_utils.set_location(g_debug, 'Leaving: '||l_procedure,160);
4804 l_message := pay_in_utils.get_pay_message
4805 ('PER_IN_ORACLE_GENERIC_ERROR',
4806 'FUNCTION:'||l_procedure,
4807 'SQLERRMC:'||SQLERRM);
4811 END init_code;
4808 pay_in_utils.trace('SQLERRM',l_message);
4809 RAISE ;
4810
4812
4813 --------------------------------------------------------------------------
4814 -- Name : INIT_FORMULA --
4815 -- Type : PROCEDURE --
4816 -- Access : Public --
4817 -- Description : Procedure to initialize the formulas for ETW --
4818 -- Parameters : --
4819 -- IN : N/A --
4820 -- OUT : N/A --
4821 -- RETURN : N/A --
4822 -- Change History : --
4823 --------------------------------------------------------------------------
4824 -- Bug# Date Userid Description --
4825 --------------------------------------------------------------------------
4826 -- 5332442 26-JUL-06 statkar Created --
4827 --------------------------------------------------------------------------
4828 PROCEDURE init_formula
4829 IS
4830 l_procedure CONSTANT VARCHAR2(100):= g_package||'init_formula';
4831
4832 BEGIN
4833 g_debug := hr_utility.debug_enabled;
4834 pay_in_utils.set_location(g_debug, 'Entering: '||l_procedure,10);
4835
4836 ----------------------------------------------------------------
4837 -- FORMULA FOR FIXED ALLOWANCES
4838 ----------------------------------------------------------------
4839 pay_in_utils.set_location(g_debug, l_procedure,20);
4840 g_formula_obj(1).name := '_FIXED_CALC';
4841 g_formula_obj(1).text :=
4842 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
4843 /* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
4844
4845 /*----------------------------------------------------------------------
4846 FORMULA NAME : <BASE NAME>_FIXED_CALC
4847 FORMULA TYPE : Oracle Payroll
4848 -----------------------------------------------------------------------*/
4849 /* DEFAULT SECTION */
4850 /* Default for Database Items */
4851 DEFAULT FOR EXEMPTION_AMOUNT IS ''-1''
4852 DEFAULT FOR IN_HOSTEL_CHILDREN_ENTRY_COUNT is 0
4853 DEFAULT FOR ALLOWANCE_NAME IS ''XXXX''
4854
4855 /* Default for Input Values */
4856 DEFAULT FOR Allowance_amount is 0
4857 DEFAULT FOR Standard_Value is 0
4858 DEFAULT FOR Claim_Exemption_Sec10 is ''N''
4859 DEFAULT FOR Component_name is ''Null''
4860
4861 /* Default for defined balances */
4862 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
4863
4864
4865 /* INPUT SECTION */
4866 INPUTS ARE Allowance_amount,
4867 Standard_Value,
4868 Claim_Exemption_Sec10(text),
4869 Component_name(text)
4870
4871 /* INITIALIZATION SECTION */
4872 /* Initialization of local variables */
4873 l_max_exem_amt = TO_NUMBER(EXEMPTION_AMOUNT)
4874 l_exp_nature = ''X''
4875 l_disable_catg = ''X''
4876 l_disable_percent = 0
4877 l_disable_proof = ''N''
4878
4879 l_lt_outstanding_adv =Outstanding_Advance_for_Allowances_ASG_COMP_LTD
4880
4881 /* Initialization of out variables */
4882 Taxable_Value = 0
4883 Standard_Taxable_Value = 0
4884 Benefit_Amount = Allowance_amount
4885
4886
4887 /* CODE SECTION */
4888 IF ALLOWANCE_NAME = ''Children Education Allowance''
4889 OR ALLOWANCE_NAME = ''Hostel Expenditure Allowance'' THEN
4890 (
4891 IF IN_HOSTEL_CHILDREN_ENTRY_COUNT > 2 THEN
4892 (
4893 l_error_mesg = IN_GET_PAY_MESSAGE(''PAY_IN_MAX_CHILD_EXCEEDED'')
4894 RETURN l_error_mesg
4895 )
4896
4897 IF Claim_Exemption_Sec10 <> ''Y'' THEN
4898 l_max_exem_amt = 0
4899 )
4900
4901 IF ALLOWANCE_NAME = ''Transport Allowance'' Then
4902 (
4903 l_disable_details = IN_DISABILITY_DETAILS
4904 (l_disable_catg,
4905 l_disable_percent,
4906 l_disable_proof)
4907
4908 IF ((l_disable_catg = ''BLIND'' OR l_disable_catg = ''OH'')
4909 AND l_disable_proof= ''Y'') THEN
4910 l_max_exem_amt = 1600
4911
4912 )
4913
4914 IF ALLOWANCE_NAME = ''Entertainment Allowance'' THEN
4915 l_max_exem_amt = 0
4916
4917 /* Common Code for all Fixed Allowances */
4918 Taxable_Value = Allowance_Amount
4919 - LEAST(Allowance_Amount, l_max_exem_amt)
4920
4921 Standard_Taxable_Value = Standard_Value
4922 - LEAST(Standard_Value, l_max_exem_amt)
4923
4924 /* Advance functionality*/
4925 Actual_allowance_amount = Allowance_amount
4926 Pending_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
4927 Allowance_amount = GREATEST((Actual_allowance_amount - Pending_Advance),0)
4928 Adjusted_advance = GREATEST((Actual_allowance_amount - Allowance_amount),0)
4929
4930
4931
4932 /* RETURN SECTION */
4933
4934 Return Taxable_Value,
4935 Standard_Taxable_Value,
4936 Allowance_amount,
4937 Adjusted_advance
4938
4939
4940 /* End of Formula */ ';
4941
4942 ----------------------------------------------------------------
4943 -- FORMULA FOR ACTUAL EXPENSE ALLOWANCE
4944 ----------------------------------------------------------------
4945 pay_in_utils.set_location(g_debug, l_procedure,40);
4946 g_formula_obj(2).name := '_ACTEXP_CALC';
4947 g_formula_obj(2).text :=
4948 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
4949 /*----------------------------------------------------------------------
4950 FORMULA NAME : <BASE NAME>_ACTEXP_CALC
4951 FORMULA TYPE : Oracle Payroll
4952 DESCRIPTION : Formula for Allowances in India Localization
4953 -----------------------------------------------------------------------*/
4954 /* DEFAULT SECTION */
4955 /* Default for Database Items */
4956 DEFAULT FOR ALLOWANCE_NAME IS ''XXXX''
4957 DEFAULT FOR EXEMPTION_AMOUNT IS ''0''
4958 DEFAULT FOR NATURE_OF_EXPENSE IS ''R''
4959
4960 /* Default for Input Values */
4961 DEFAULT FOR Allowance_amount is 0
4962 DEFAULT FOR Standard_Value is 0
4963 DEFAULT FOR Actual_Expenditure is 0
4964 DEFAULT FOR Component_Name IS ''No Component''
4965
4966 /* Default for Defined Balances */
4967 DEFAULT FOR Allowance_Amount_ASG_COMP_PTD IS 0
4968 DEFAULT FOR Taxable_Allowances_ASG_COMP_PTD IS 0
4969 DEFAULT FOR Taxable_Allowances_For_Projection_ASG_COMP_PTD IS 0
4970 DEFAULT FOR Allowance_Expense_Amount_ASG_COMP_PTD IS 0
4971 DEFAULT FOR Allowances_Standard_Value_ASG_COMP_PTD IS 0
4972
4973 DEFAULT FOR Allowance_Amount_ASG_LE_COMP_YTD IS 0
4974 DEFAULT FOR Taxable_Allowances_ASG_LE_COMP_YTD IS 0
4975 DEFAULT FOR Taxable_Allowances_For_Projection_ASG_COMP_YTD IS 0
4976 DEFAULT FOR Allowance_Expense_Amount_ASG_LE_COMP_YTD IS 0
4977 DEFAULT FOR Allowances_Standard_Value_ASG_COMP_YTD IS 0
4978 DEFAULT FOR Adjusted_Advance_for_Allowances_ASG_LE_COMP_YTD IS 0
4979
4980 /* INPUT SECTION */
4981 INPUTS ARE Allowance_amount,
4982 Standard_Value,
4983 Actual_Expenditure,
4984 Component_Name (text)
4985
4986
4987 /* INITIALIZATION SECTION */
4988 /* Initialization of local variables */
4989 l_Allowance_Amount = 0
4990 l_Actual_Expenditure = 0
4991 l_max_exem_amt = TO_NUMBER(EXEMPTION_AMOUNT)
4992 Projected_Expense = 0
4993 /* Initialization of out variables */
4994 Taxable_Value = 0
4995 Standard_Taxable_Value = 0
4996 l_success =''X''
4997
4998 /* Initialization for latest balances */
4999 l_lt_alw_amt = Allowance_Amount_ASG_COMP_PTD
5000 l_lt_tax_alw_amt = Taxable_Allowances_ASG_COMP_PTD
5001 l_lt_tax_alw_proj_amt = Taxable_Allowances_For_Projection_ASG_COMP_PTD
5002 l_lt_alw_exp_amt = Allowance_Expense_Amount_ASG_COMP_PTD
5003 l_lt_alw_std_amt = Allowances_Standard_Value_ASG_COMP_PTD
5004 l_lty_alw_amt = Allowance_Amount_ASG_LE_COMP_YTD
5005 l_lty_tax_alw_amt = Taxable_Allowances_ASG_LE_COMP_YTD
5006 l_lty_tax_alw_proj_amt = Taxable_Allowances_For_Projection_ASG_COMP_YTD
5007 l_lty_alw_exp_amt = Allowance_Expense_Amount_ASG_LE_COMP_YTD
5008 l_lty_alw_std_amt = Allowances_Standard_Value_ASG_COMP_YTD
5009 l_lty_adj_alw_amt = Adjusted_Advance_for_Allowances_ASG_LE_COMP_YTD
5010
5011
5012 /* CODE SECTION */
5013
5014 l_allowance_le_start = IN_VALUE_ON_LE_START(''Allowance Amount'',
5015 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5016 + IN_VALUE_ON_LE_START(''Adjusted Advance for Allowances'',
5017 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5018
5019 l_expenditure_le_start = IN_VALUE_ON_LE_START(''Allowance Expense Amount'',
5020 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5021 l_taxable_le_start = IN_VALUE_ON_LE_START(''Taxable Allowances'',
5022 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5023
5024 l_Allowance_Amount = Allowance_Amount_ASG_LE_COMP_YTD
5025 - l_allowance_le_start
5026 + Adjusted_Advance_for_Allowances_ASG_LE_COMP_YTD
5027 + Allowance_Amount
5028
5029 IF NATURE_OF_EXPENSE = ''R'' THEN
5030 Projected_Expense = Actual_Expenditure
5031
5032 l_Actual_Expenditure = Allowance_Expense_Amount_ASG_LE_COMP_YTD
5033 - l_expenditure_le_start
5034 + Actual_Expenditure
5035
5036 Taxable_Value = l_Allowance_Amount
5037 - LEAST(l_Allowance_Amount, l_Actual_Expenditure, l_max_exem_amt)
5038 - (Taxable_Allowances_ASG_LE_COMP_YTD - l_taxable_le_start)
5039
5043 /* Advance functionality*/
5040 Standard_Taxable_Value = Standard_Value -
5041 LEAST(Standard_Value,Projected_Expense, l_max_exem_amt)
5042
5044 Actual_allowance_amount = Allowance_amount
5045 Pending_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5046 Allowance_amount = GREATEST((Actual_allowance_amount - Pending_Advance),0)
5047 Adjusted_advance = GREATEST((Actual_allowance_amount - Allowance_amount),0)
5048
5049
5050
5051 /* RETURN SECTION */
5052
5053 RETURN Taxable_Value,
5054 Standard_Taxable_Value,
5055 Allowance_amount,
5056 Adjusted_advance
5057
5058 /* End of Formula */ ';
5059
5060 ----------------------------------------------------------------
5061 -- FORMULA FOR LTC EARNINGS
5062 ----------------------------------------------------------------
5063 pay_in_utils.set_location(g_debug, l_procedure,50);
5064 g_formula_obj(3).name := '_LTC_CALC';
5065 g_formula_obj(3).text :=
5066 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5067 /*----------------------------------------------------------------------
5068 FORMULA NAME : <BASE NAME>_LTC_CALC
5069 FORMULA TYPE : Oracle Payroll
5070 DESCRIPTION : Formula for LTC Earnings in India Localization
5071 -----------------------------------------------------------------------*/
5072 /* DEFAULT SECTION */
5073 /* Input Value Defaults */
5074 DEFAULT FOR Carryover_from_Prev_Block IS ''N''
5075 DEFAULT FOR Exempted IS ''N''
5076 DEFAULT FOR Component_Name IS ''Leave Travel Concession''
5077
5078 /* Defined Balance Defaults */
5079 DEFAULT FOR Outstanding_Advance_for_Earnings_ASG_COMP_LTD IS 0
5080
5081 DEFAULT FOR Employer_Contribution_for_LTC_ASG_COMP_RUN IS 0
5082
5083 /* INPUT SECTION */
5084 INPUTS ARE Employer_Contribution
5085 ,Ticket_Fare
5086 ,Exempted(text)
5087 ,Carryover_from_Prev_Block(text)
5088 ,Component_Name(text)
5089
5090 /* Following is intended to initialize latest balances */
5091 l_lt_advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5092
5093 /* INITIALIZATION SECTION */
5094 /* Initialization of Out Variables */
5095 Carry_Over_Flag = Carryover_from_Prev_Block
5096 Exempted_Flag = Exempted
5097 Payable_Value = 0
5098 adjusted_advance = 0
5099 Exempted_Amt = 0
5100
5101 /* CODE SECTION */
5102 l_count = IN_LTC_DETAILS(Carry_Over_Flag,Exempted_Flag)
5103
5104 IF (Exempted_Flag = ''Y'') THEN
5105 Exempted_Amt = LEAST(Employer_Contribution ,Ticket_Fare)
5106
5107
5108 Approved_benefit_Value = Employer_Contribution
5109
5110 /* Adjust with any outstanding advance */
5111
5112 Pending_Advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5113 Payable_Value = GREATEST((Approved_benefit_Value - Pending_Advance ),0)
5114 Adjusted_advance = GREATEST((Approved_benefit_Value - Payable_Value),0)
5115
5116
5117 IF Ticket_Fare = 0 THEN
5118 Exempted_Flag = ''N''
5119
5120 /* RETURN SECTION */
5121 RETURN Payable_Value,
5122 adjusted_advance,
5123 Exempted_Amt,
5124 Exempted_Flag,
5125 Carry_Over_Flag
5126
5127 /* End of Formula */ ';
5128
5129 ----------------------------------------------------------------
5130 -- FORMULA FOR ADVANCES ON EARNINGS
5131 ----------------------------------------------------------------
5132 pay_in_utils.set_location(g_debug, l_procedure,60);
5133 g_formula_obj(4).name := '_LTC_ADV_CALC';
5134 g_formula_obj(4).text :=
5135 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5136 /*----------------------------------------------------------------------
5137 FORMULA NAME : <BASE NAME>_LTC_ADV_CALC
5138 FORMULA TYPE : Oracle Payroll
5139 DESCRIPTION : Formula for Advances on Earnings in India Localization
5140 -----------------------------------------------------------------------*/
5141 /* DEFAULT SECTION */
5142 DEFAULT FOR Excess_Advance IS ''PENDING''
5143 DEFAULT FOR Advance_Amount IS 0
5144 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5145
5146 /* Default for Database Items */
5147 DEFAULT FOR Outstanding_Advance_for_Earnings_ASG_COMP_LTD IS 0
5148
5149
5150
5151 /* INPUT SECTION */
5152 INPUTS ARE Advance_Amount,
5153 Excess_Advance(text),
5154 Add_to_Net_Pay (text),
5155 Component_Name (text)
5156
5157 /* Initialisation of latest balances */
5158 l_lt_outstanding_adv = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5159
5160 IF (Add_to_Net_Pay =''Y'') THEN
5161 Payable_Value = Advance_Amount
5162 ELSE
5163 Payable_Value = 0
5164
5165 IF(Excess_Advance = ''PENDING'') THEN
5166 RETURN Payable_Value
5167 ELSE
5168 RETURN Payable_Value,
5169 Excess_Advance,
5170 Component_Name
5171
5172 /* End of Formula */ ';
5173
5174 ----------------------------------------------------------------
5175 -- FORMULA FOR FRINGE BENEFIT CALCULATIONS
5176 ----------------------------------------------------------------
5177 pay_in_utils.set_location(g_debug, l_procedure,70);
5178 g_formula_obj(5).name := '_FB_CALC';
5179 g_formula_obj(5).text :=
5180 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5181
5182 /*----------------------------------------------------------------------
5183 FORMULA NAME : MED_BEN_FB_CALC
5184 FORMULA TYPE : Oracle Payroll
5185 DESCRIPTION : Formula for Fringe Benefits in India Localization
5186 -----------------------------------------------------------------------*/
5187 /* DEFAULT SECTION */
5188 DEFAULT FOR EMP_TERM_DATE IS ''4712/12/31 00:00:00'' (date)
5189 DEFAULT FOR EMP_HIRE_DATE IS ''1900/01/01 00:00:00'' (date)
5190 DEFAULT FOR PAY_PROC_PERIOD_END_DATE IS ''4712/12/31 00:00:00'' (date)
5191 DEFAULT FOR PAY_PROC_PERIOD_START_DATE IS ''2004/01/01 00:00:00'' (date)
5192 DEFAULT FOR IN_PAY_PROC_PERIOD_NUM is -99
5193 /* Input Value Defaults */
5194
5195 DEFAULT FOR Benefit_Amount is 0
5196 DEFAULT FOR Salary_under_Sec_17 IS 0
5197 DEFAULT FOR Maximum_Annual_Limit IS 0
5198 DEFAULT FOR Add_to_Net_Pay IS ''N''
5199 DEFAULT FOR Medical_Benefit IS ''N''
5200
5201 /* Defined Balance Defaults */
5202 DEFAULT FOR Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD IS 0
5203 DEFAULT FOR Reimbursement_Amount_ASG_COMP_YTD IS 0
5204 DEFAULT FOR Reimbursement_Amount_ASG_COMP_PTD IS 0
5205 DEFAULT FOR Medical_Reimbursement_Amount_ASG_YTD IS 0
5206 DEFAULT FOR Medical_Reimbursement_Amount_ASG_PTD IS 0
5207 DEFAULT FOR Bills_Submitted_ASG_COMP_RUN IS 0
5208 DEFAULT FOR Salary_under_Section_17_ASG_COMP_YTD IS 0
5209 DEFAULT FOR Medical_Bills_ASG_YTD IS 0
5210 DEFAULT FOR Annual_Projection_for_Reimbursement_ASG_COMP_PTD IS 0
5211
5212 /* INPUT SECTION */
5213 INPUTS ARE Benefit_Amount,
5214 Salary_under_Sec_17,
5215 Maximum_Annual_Limit,
5216 Add_to_Net_Pay(text),
5217 Component_Name(text),
5218 Medical_Benefit(text)
5219
5220
5221 /* INITIALIZATION SECTION */
5222 /* Initialization of Out Variables */
5223 Payable_value = 0
5224 Fringe_Benefit_Value = 0
5225 adjusted_advance = 0
5226 Salary_under_Sec171 = Salary_under_Sec_17
5227 l_annual_projected_value = 0
5228 l_ann_ben_amt = 0
5229 Projected_salary_under_sec171 = 0
5230 taxable_fringe_benefit = 0
5231
5232 /* Initialization of Local Variables */
5233 l_med_benefit = 0
5234
5235 LRPP = IN_GET_PAY_PERIODS(PAY_PROC_PERIOD_END_DATE,
5236 EMP_TERM_DATE,
5237 IN_PAY_PROC_PERIOD_NUM,
5238 ''X'')
5239 RECURRING = IN_GET_PROCESSING_TYPE()
5240
5241 /* Code Section */
5242 /* IF Benefit_Amount WAS DEFAULTED THEN
5243 Benefit_Amount = Bills_Submitted_ASG_COMP_RUN*/
5244
5245
5246
5247 /* Reimbursement_Amount_ASG_COMP_YTD - Holds the fringe benefit amount under each component.
5248 Do not use this for Superannuation . For each component, tax varies . It could be 10% or 20% depending on component */
5249
5250 /* For Superannuation use the Taxable_Fringe_Benefit_ASG_COMP_YTD and apply FBT on top of it */
5251
5252 /* Salary_under_Section_17_ASG_COMP_YTD - Taxable to employee for Medical benefit */
5253
5254
5255 /* Ensure total money paid out to employee does not exceed Maximum_Annual_Limit
5256 Adjust against outstanding advance
5257 Determine payable in current period
5258 */
5259
5260 IF Maximum_Annual_Limit WAS NOT DEFAULTED THEN
5261 (
5262 Annual_Approved_value =
5263 LEAST(Maximum_Annual_Limit,
5264 (Reimbursement_Amount_ASG_COMP_YTD + Taxable_Fringe_Benefit_ASG_COMP_YTD + Benefit_Amount + Salary_under_Section_17_ASG_COMP_YTD)
5265 )
5266
5267 Approved_Benefit_in_Current_Period = GREATEST((Annual_Approved_value - Reimbursement_Amount_ASG_COMP_YTD - Taxable_Fringe_Benefit_ASG_COMP_YTD - Salary_under_Section_17_ASG_COMP_YTD),0)
5268
5269 payable_value = GREATEST((Approved_Benefit_in_Current_Period - Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD ),0)
5270 )
5271 ELSE
5272 (
5273 Approved_Benefit_in_Current_Period = Benefit_Amount
5274 payable_value = GREATEST((Approved_Benefit_in_Current_Period - Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD ),0)
5275 )
5276
5277 adjusted_advance = Approved_Benefit_in_Current_Period - payable_value
5278 Fringe_Benefit_Value = Approved_Benefit_in_Current_Period
5279
5280 l_fbt_value_till_date = Reimbursement_Amount_ASG_COMP_YTD + Taxable_Fringe_Benefit_ASG_COMP_YTD + Fringe_Benefit_Value
5281 l_projection_for_rpp = (Fringe_Benefit_Value + Reimbursement_Amount_ASG_COMP_PTD + Taxable_Fringe_Benefit_ASG_COMP_PTD)*LRPP
5282
5283 /* Medical Benefit - Special Handling */
5284 IF (Component_Name =''Employees Welfare Expense'' AND Medical_Benefit = ''Y'') THEN
5285 (
5286 prev_med_reimburse_amt = IN_PREV_MEDICAL_REIMBURSEMENT()
5287 l_max_exempted_amt = GREATEST((IN_EXEMPT_MEDICAL_PERQUISITE - prev_med_reimburse_amt),0)
5288
5289 l_med_benefit = Medical_Reimbursement_Amount_ASG_YTD
5290 + Approved_Benefit_in_Current_Period
5291 + Salary_under_Section_17_ASG_COMP_YTD
5292
5293
5294
5295 IF(Medical_Bills_ASG_YTD < l_max_exempted_amt) THEN
5296 (
5297 Salary_under_Sec171 = l_med_benefit - Medical_Bills_ASG_YTD
5298 )
5299 ELSE
5300 (
5301 l_tax_exempt = LEAST(Medical_Bills_ASG_YTD,l_max_exempted_amt)
5302 Salary_under_Sec171 = l_med_benefit - l_tax_exempt
5303 )
5304
5305 /* Reimbursement projection Start*/
5306 IF RECURRING = ''R'' THEN
5307 (
5308 IF Maximum_Annual_Limit WAS NOT DEFAULTED THEN
5309 (
5310 Projected_salary_under_sec171 = LEAST((l_med_benefit + Benefit_Amount*LRPP),Maximum_Annual_Limit) - l_med_benefit
5311 )
5312 ELSE
5313 (
5314 Projected_salary_under_sec171 = Benefit_Amount*LRPP
5315 )
5316 IF Salary_under_Sec171 < 0 THEN
5317 (
5318 Projected_salary_under_sec171 = Projected_salary_under_sec171 + Salary_under_Sec171
5319 )
5320 Projected_salary_under_sec171 = GREATEST(Projected_salary_under_sec171,0)
5321 )
5322 Salary_under_Sec171 = GREATEST(Salary_under_Sec171,0)
5323 Salary_under_Sec171 = Salary_under_Sec171 - Salary_under_Section_17_ASG_COMP_YTD
5324 Fringe_Benefit_Value = Fringe_Benefit_Value - Salary_under_Sec171
5325 l_fbt_value_till_date = Medical_Reimbursement_Amount_ASG_YTD + Fringe_Benefit_Value
5326 l_tot_fringe_benefit = LEAST( Medical_Bills_ASG_YTD,l_max_exempted_amt)
5327 l_projection_for_rpp = l_tot_fringe_benefit - l_fbt_value_till_date
5328 )
5329 IF RECURRING = ''R'' THEN
5330 (
5331 IF Maximum_Annual_Limit WAS NOT DEFAULTED THEN
5332 (
5333 l_annual_projected_value = LEAST(l_fbt_value_till_date + l_projection_for_rpp,
5334 Maximum_Annual_Limit)
5335
5336 )
5337 ELSE
5338 (
5339 l_annual_projected_value = l_fbt_value_till_date + l_projection_for_rpp
5340 )
5341 IF (Component_Name =''Employees Welfare Expense'' AND Medical_Benefit = ''Y'') THEN
5342 (
5343 l_ann_ben_amt = Salary_under_Section_17_ASG_COMP_YTD + Salary_under_Sec171
5344 + Medical_Reimbursement_Amount_ASG_YTD + Fringe_Benefit_Value
5345 + (Benefit_Amount * LRPP)
5346 l_annual_projected_value = LEAST(l_annual_projected_value,l_ann_ben_amt)
5347 )
5348 )
5349 Annual_projected_value = l_annual_projected_value - Annual_Projection_for_Reimbursement_ASG_COMP_PTD
5350 /* Reimbursement projection End */
5351
5352 IF (Add_to_Net_Pay =''N'') THEN
5353 Payable_Value = 0
5354
5355 /* Superannuation - Special handling */
5356 IF Component_Name = ''Superannuation Fund'' THEN
5357 (
5358 IF Reimbursement_Amount_ASG_COMP_YTD + Fringe_Benefit_Value > IN_SUPERANNUATION_FBT THEN
5359 (
5363 Fringe_Benefit_Value = 0 - Reimbursement_Amount_ASG_COMP_YTD
5360 taxable_fringe_benefit = Fringe_Benefit_Value
5361 + Reimbursement_Amount_ASG_COMP_YTD
5362
5364 )
5365 ELSE IF Taxable_Fringe_Benefit_ASG_COMP_YTD + Fringe_Benefit_Value > IN_SUPERANNUATION_FBT THEN
5366 (
5367 taxable_fringe_benefit = Fringe_Benefit_Value
5368 Fringe_Benefit_Value = 0
5369 )
5370 )
5371
5372
5373 /* RETURN SECTION */
5374 RETURN Payable_value,
5375 Fringe_Benefit_Value,
5376 adjusted_advance,
5377 Salary_under_Sec171,
5378 Annual_projected_value,
5379 Projected_salary_under_sec171,
5380 taxable_fringe_benefit,
5381 Component_Name
5382 /* End of Formula */
5383 ';
5384
5385 ----------------------------------------------------------------
5386 -- FORMULA FOR ADVANCES ON FRINGE BENEFITS
5387 ----------------------------------------------------------------
5388 pay_in_utils.set_location(g_debug, l_procedure,80);
5389 g_formula_obj(6).name := '_FB_ADV_CALC';
5390 g_formula_obj(6).text :=
5391 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5392
5393 /*----------------------------------------------------------------------
5394 FORMULA NAME : <BASE NAME>_FB_ADV_CALC
5395 FORMULA TYPE : Oracle Payroll
5396 DESCRIPTION : Formula for Advance Calculation for Fringe Benefits in India Localization
5397 -----------------------------------------------------------------------*/
5398 /* DEFAULT SECTION */
5399 DEFAULT FOR Excess_Advance IS ''PENDING''
5400 DEFAULT FOR Advance_Amount IS 0
5401 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5402
5403 /* Default for Database Items */
5404 DEFAULT FOR Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD IS 0
5405
5406
5407
5408
5409 /* INPUT SECTION */
5410 INPUTS ARE Advance_Amount,
5411 Excess_Advance(text),
5412 Add_to_Net_Pay (text),
5413 Component_Name (text)
5414
5415 /* Initialisation of latest balances */
5416 l_lt_outstanding_adv = Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD
5417
5418 IF (Add_to_Net_Pay =''Y'') THEN
5419 Payable_Value = Advance_Amount
5420 ELSE
5421 Payable_Value = 0
5422
5423 IF(Excess_Advance = ''PENDING'') THEN
5424 RETURN Payable_Value
5425 ELSE
5426 RETURN Payable_Value,
5427 Excess_Advance,
5428 Component_Name
5429
5430 /* End of Formula */
5431 ';
5432
5433 pay_in_utils.set_location(g_debug,'Leaving: '|| l_procedure,100);
5434
5435 ----------------------------------------------------------------
5436 -- FORMULA FOR ADVANCES ON FIXED ALLOWANCES
5437 ----------------------------------------------------------------
5438 pay_in_utils.set_location(g_debug, l_procedure,80);
5439 g_formula_obj(7).name := '_FX_ADV_CALC';
5440 g_formula_obj(7).text :=
5441 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5442 /*----------------------------------------------------------------------
5443 FORMULA NAME : <BASE NAME>_FX_ADV_CALC
5444 FORMULA TYPE : Oracle Payroll
5445 DESCRIPTION : Formula for Advances on Fix Allowances in India Localization
5446 -----------------------------------------------------------------------*/
5447 /* DEFAULT SECTION */
5448 DEFAULT FOR Excess_Advance IS ''PENDING''
5449 DEFAULT FOR Advance_Amount IS 0
5450 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5451
5452 /* Default for Database Items */
5453 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5454
5455
5456
5457
5458 /* INPUT SECTION */
5459 INPUTS ARE Advance_Amount,
5460 Excess_Advance(text),
5461 Add_to_Net_Pay (text),
5462 Component_Name (text)
5463
5464 /* Initialisation of latest balances */
5465 l_lt_outstanding_adv =Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5466
5467 IF (Add_to_Net_Pay =''Y'') THEN
5468 Payable_Value = Advance_Amount
5469 ELSE
5470 Payable_Value = 0
5471
5472 IF(Excess_Advance = ''PENDING'') THEN
5473 RETURN Payable_Value
5474 ELSE
5475 RETURN Payable_Value,
5476 Excess_Advance,
5477 Component_Name
5478
5479 /* End of Formula */
5480 ';
5481
5482 ----------------------------------------------------------------
5483 -- FORMULA FOR ADVANCES ON ACTUAL EXPENSE ALLOWANCES
5484 ----------------------------------------------------------------
5485 pay_in_utils.set_location(g_debug, l_procedure,80);
5486 g_formula_obj(8).name := '_AE_ADV_CALC';
5487 g_formula_obj(8).text :=
5488 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5489 /*----------------------------------------------------------------------
5490 FORMULA NAME : <BASE NAME>_AE_ADV_CALC
5491 FORMULA TYPE : Oracle Payroll
5492 DESCRIPTION : Formula for Advances on Actual allowances in India Localization
5493 -----------------------------------------------------------------------*/
5494 /* DEFAULT SECTION */
5495 DEFAULT FOR Excess_Advance IS ''PENDING''
5496 DEFAULT FOR Advance_Amount IS 0
5497 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5498
5499 /* Default for Database Items */
5500 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5501
5502 /* INPUT SECTION */
5503 INPUTS ARE Advance_Amount,
5504 Excess_Advance(text),
5505 Add_to_Net_Pay (text),
5506 Component_Name (text)
5507
5508 /* Initialisation of latest balances */
5509 l_lt_outstanding_adv =Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5510
5511 IF (Add_to_Net_Pay =''Y'') THEN
5512 Payable_Value = Advance_Amount
5513 ELSE
5514 Payable_Value = 0
5515
5516 IF(Excess_Advance = ''PENDING'') THEN
5517 RETURN Payable_Value
5518 ELSE
5519 RETURN Payable_Value,
5520 Excess_Advance,
5521 Component_Name
5522
5523 /* End of Formula */
5524 ';
5525
5526 ----------------------------------------------------------------
5527 -- FORMULA FOR EXCESS ADVANCES ON FRINGE BENEFITS
5528 ----------------------------------------------------------------
5529 g_formula_obj(9).name := '_FB_EXC_ADV';
5530 g_formula_obj(9).text :=
5531 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5532
5533 /*----------------------------------------------------------------------
5534 FORMULA NAME : <BASE NAME>_FB_EXC_ADV
5535 FORMULA TYPE : Oracle Payroll
5536 DESCRIPTION : Formula for Excess Advance Calculation for Fringe Benefits in India Localization
5537 -----------------------------------------------------------------------*/
5538
5539
5540 /* DEFAULT SECTION */
5541 /* Input Value Defaults */
5542 DEFAULT FOR Excess_Advance IS ''PENDING''
5543 DEFAULT FOR Advance_Amount IS 0
5544
5545
5546 /* Default for Database Items */
5547 DEFAULT FOR Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD IS 0
5548
5549
5550
5551
5552 /* INPUT SECTION */
5553 INPUTS ARE Excess_Advance(text),
5554 Component_Name (text)
5555
5556
5557
5558 /* INITIALIZATION SECTION */
5559 /* Initialization of out variables */
5560
5561 Recovered_Advance = 0
5562 Salary_Sec171 = 0
5563 Adjustment_Amt = 0
5564 Component_Name_Pay = Component_Name
5565 Component_Name_Rec = Component_Name
5566
5567
5568 IF (Excess_Advance =''PAY'' ) THEN
5569 (
5570
5571 Salary_Sec171 = Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD
5572 Recovered_Advance = Salary_Sec171
5573 Adjustment_Amt = Recovered_Advance
5574
5575
5576 IF(Recovered_Advance <> 0) THEN
5577 (
5578
5579 RETURN Salary_Sec171,
5580 Recovered_Advance,
5581 Adjustment_Amt,
5582 Component_Name_Pay,
5583 Component_Name_Rec
5584 )
5585
5586 )
5587 ELSE IF (Excess_Advance =''RECOVER'' ) THEN
5588 (
5589 Recovered_Advance = Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD
5590
5591 IF Recovered_Advance <> 0 THEN
5592 RETURN Recovered_Advance,
5593 Component_Name_Rec
5594 )
5595
5596 RETURN
5597
5598 /* End of Formula */
5599 ';
5600
5601 pay_in_utils.set_location(g_debug,'Leaving: '|| l_procedure,100);
5602
5603 ----------------------------------------------------------------
5604 -- FORMULA FOR EXCESS ADVANCES ON FIXED ALLOWANCES
5605 ----------------------------------------------------------------
5606 pay_in_utils.set_location(g_debug, l_procedure,80);
5607 g_formula_obj(10).name := '_FX_EXC_ADV';
5608 g_formula_obj(10).text :=
5609 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5610 /*----------------------------------------------------------------------
5611 FORMULA NAME : <BASE NAME>_FX_EXC_ADV
5612 FORMULA TYPE : Oracle Payroll
5613 DESCRIPTION : Formula for Excess Advances on Fix Allowances in India Localization
5614 -----------------------------------------------------------------------*/
5615
5616 /* DEFAULT SECTION */
5617 DEFAULT FOR Excess_Advance IS ''PENDING''
5618
5619 /* Default for Database Items */
5620 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5621
5622
5623
5624
5625 /* INPUT SECTION */
5626 INPUTS ARE Excess_Advance(text),
5627 Component_Name (text)
5628
5629 /* INITIALIZATION SECTION */
5630 /* Initialization of local variables */
5631
5632 Recovered_Advance = 0
5633 Salary_Sec171 = 0
5634 Adjustment_Amt = 0
5635 Component_Name_Pay = Component_Name
5636 Component_Name_Rec = Component_Name
5637
5638
5639
5640 IF (Excess_Advance = ''PAY'' ) THEN
5641 (
5642
5643 Salary_Sec171 = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5644 Recovered_Advance = Salary_Sec171
5645 Adjustment_Amt = Recovered_Advance
5646
5647
5648 IF(Recovered_Advance <> 0) THEN
5649 (
5650 RETURN Salary_Sec171,
5651 Recovered_Advance,
5652 Adjustment_Amt,
5653 Component_Name_Pay,
5654 Component_Name_Rec
5655 )
5656 )
5657 ELSE IF (Excess_Advance = ''RECOVER'' ) THEN
5658 (
5659
5660 Recovered_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5661
5662
5663 IF Recovered_Advance <> 0 THEN
5664 RETURN Recovered_Advance,
5665 Component_Name_Rec
5666 )
5667
5668 RETURN
5669
5670 /* End of Formula */
5671 ';
5672
5673 ----------------------------------------------------------------
5674 -- FORMULA FOR excess ADVANCES ON ACTUAL EXPENSE ALLOWANCES
5675 ----------------------------------------------------------------
5676 pay_in_utils.set_location(g_debug, l_procedure,80);
5677 g_formula_obj(11).name := '_AE_EXC_ADV';
5678 g_formula_obj(11).text :=
5679 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5680 /*----------------------------------------------------------------------
5681 FORMULA NAME : <BASE NAME>_AE_EXC_ADV
5682 FORMULA TYPE : Oracle Payroll
5683 DESCRIPTION : Formula for Advances on Actual allowances in India Localization
5684 -----------------------------------------------------------------------*/
5685
5686 /* DEFAULT SECTION */
5687 DEFAULT FOR Excess_Advance IS ''PENDING''
5688
5689 /* Default for Database Items */
5690 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5691
5692
5693
5694
5695 /* INPUT SECTION */
5696 INPUTS ARE Excess_Advance(text),
5697 Component_Name (text)
5698
5699 /* INITIALIZATION SECTION */
5700 /* Initialization of local variables */
5701
5702 Recovered_Advance = 0
5703 Salary_Sec171 = 0
5704 Adjustment_Amt = 0
5705 Component_Name_Pay = Component_Name
5706 Component_Name_Rec = Component_Name
5707
5708
5709
5710 IF (Excess_Advance =''PAY'' ) THEN
5711 (
5712
5713 Salary_Sec171 = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5714 Recovered_Advance = Salary_Sec171
5715 Adjustment_Amt = Recovered_Advance
5716
5717
5718 IF(Recovered_Advance <> 0) THEN
5719 (
5720 RETURN Salary_Sec171,
5721 Recovered_Advance,
5722 Adjustment_Amt,
5723 Component_Name_Pay,
5724 Component_Name_Rec
5725 )
5726 )
5727 ELSE IF (Excess_Advance =''RECOVER'' ) THEN
5728 (
5729
5730 Recovered_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5731
5732
5733 IF Recovered_Advance <> 0 THEN
5734 RETURN Recovered_Advance,
5735 Component_Name_Rec
5736 )
5737
5738 RETURN
5739
5740 /* End of Formula */
5741
5742 ';
5743 ----------------------------------------------------------------
5744 -- FORMULA FOR excess ADVANCES ON ACTUAL EXPENSE ALLOWANCES
5745 ----------------------------------------------------------------
5746 pay_in_utils.set_location(g_debug, l_procedure,80);
5747 g_formula_obj(12).name := '_LTC_EXC_ADV';
5748 g_formula_obj(12).text :=
5749 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5750 /*----------------------------------------------------------------------
5751 FORMULA NAME : <BASE NAME>_LTC_EXC_ADV
5752 FORMULA TYPE : Oracle Payroll
5753 DESCRIPTION : Formula for Excess Advances on LTC in India Localization
5754 -----------------------------------------------------------------------*/
5755 /* DEFAULT SECTION */
5756 /* Input Value Defaults */
5757 DEFAULT FOR Excess_Advance IS ''PENDING''
5758
5759 /* Defined Balance Defaults */
5760 DEFAULT FOR Outstanding_Advance_for_Earnings_ASG_COMP_LTD IS 0
5761 DEFAULT FOR Excess_Advance_for_Earnings_ASG_COMP_RUN IS 0
5762
5763
5764
5765 /* INPUT SECTION */
5766 INPUTS ARE Excess_Advance(text),
5767 Component_Name (text)
5768
5769 /* Following is intended to initialize latest balances */
5770 l_lt_advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5771
5772 /* INITIALIZATION SECTION */
5773 /* Initialization of out variables */
5774 Recovered_Advance = 0
5775 Salary_Sec171 = 0
5776 Adjustment_Amt = 0
5777 Component_Name_Pay = Component_Name
5778 Component_Name_Rec = Component_Name
5779
5780
5781 IF (Excess_Advance =''PAY'' ) THEN
5782 (
5783
5784 Salary_Sec171 = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5785 Recovered_Advance = Salary_Sec171
5786 Adjustment_Amt = Recovered_Advance
5787
5788
5789 IF(Recovered_Advance <> 0) THEN
5790 (
5791
5792 RETURN Salary_Sec171,
5793 Recovered_Advance,
5794 Adjustment_Amt,
5795 Component_Name_Pay,
5796 Component_Name_Rec
5797 )
5798 )
5799 ELSE IF (Excess_Advance =''RECOVER'' ) THEN
5800 (
5801 Recovered_Advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5802
5803 IF Recovered_Advance <> 0 THEN
5804 (
5805 RETURN Recovered_Advance,
5806 Component_Name_Rec
5807 )
5808 )
5809
5810 RETURN
5811
5812 /* End of Formula */';
5813
5814 ----------------------------------------------------------------
5815 -- FORMULA FOR EMPLOYER CHARGES
5816 ----------------------------------------------------------------
5817 pay_in_utils.set_location(g_debug, l_procedure,60);
5818 g_formula_obj(13).name := '_EC_CALC';
5819 g_formula_obj(13).text :=
5820 '/* $Header: pyinetst.pkb 120.16.12020000.3 2012/07/06 11:03:20 vmaripal ship $ */
5821 /*----------------------------------------------------------------------
5822 FORMULA NAME : <BASE NAME>_EC_CALC
5823 FORMULA TYPE : Oracle Payroll
5824 DESCRIPTION : Formula for Employer Charges in India Localization
5825 -----------------------------------------------------------------------*/
5826 /* DEFAULT SECTION */
5827
5828 /* Default for Database Items */
5829 DEFAULT FOR PENSION_COMPUTATION_SALARY_ASG_PTD IS 0
5830 DEFAULT FOR PENSION_COMPUTATION_STANDARD_SALARY_ASG_PTD IS 0
5831 DEFAULT FOR EMPLOYER_PENSION_CONTRIBUTION_ASG_PTD IS 0
5832 DEFAULT FOR EMPLOYER_STANDARD_PENSION_CONTRIBUTION_ASG_PTD IS 0
5833
5834 /* INPUT SECTION */
5835 INPUTS ARE Contribution_Percentage
5836
5837
5838
5839 EC_PAY_VALUE=(PENSION_COMPUTATION_SALARY_ASG_PTD*Contribution_Percentage)/100-
5840 EMPLOYER_PENSION_CONTRIBUTION_ASG_PTD
5841 EC_STANDARD_VALUE=(PENSION_COMPUTATION_STANDARD_SALARY_ASG_PTD*Contribution_Percentage)/100 -
5842 EMPLOYER_STANDARD_PENSION_CONTRIBUTION_ASG_PTD
5843
5844
5845 RETURN EC_PAY_VALUE,
5846 EC_STANDARD_VALUE
5847
5848 /* End of Formula */ ';
5849
5850
5851 pay_in_utils.set_location(g_debug,'Leaving: '|| l_procedure,100);
5852 END init_formula;
5853
5854 END pay_in_etw_struct;