[Home] [Help]
PACKAGE BODY: APPS.PAY_IN_ETW_STRUCT
Source
1 PACKAGE BODY pay_in_etw_struct AS
2 /* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj 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 ----------------------------------------------------------------
90 -- Input Values for Fringe Benefits Template start
91 ----------------------------------------------------------------
92 g_template_obj(1).iv_setup(1).input_value_name := 'Pay Value';
93 g_template_obj(1).iv_setup(1).uom := 'M';
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;
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
191 g_template_obj(1).iv_setup(10).input_value_name := 'Projected Taxable Value';
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';
280 g_template_obj(1).uf_setup.frs_setup(7).severity_level := null;
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';
281 g_template_obj(1).uf_setup.frs_setup(7).exclusion_tag := 'FBT';
282
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';
286 g_template_obj(1).uf_setup.frs_setup(8).element_name := ' Taxable Value';
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';
364 g_template_obj(1).ae_setup(1).bf_setup(2).balance_name := 'Outstanding Advance for Fringe Benefits';
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
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';
372
373
374 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
375 g_template_obj(1).ae_setup(1).uf_setup.frs_setup(1).result_rule_type := 'D';
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;
445 g_template_obj(1).ae_setup(3).iv_setup(2).uom := 'C';
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';
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;
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;
462 g_template_obj(1).ae_setup(3).iv_setup(3).warn_or_error := 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;
529 g_template_obj(1).ae_setup(5).iv_setup(2).input_value_name := 'Component Name';
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
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';
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;
550
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;
607
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
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';
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';
642 g_template_obj(2).er_setup(2).rule_id := null;
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;
707 g_template_obj(2).iv_setup(5).warn_or_error := 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;
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;
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;
741 g_template_obj(2).iv_setup(8).balance_name := 'Adjusted Advance for Allowances';
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;
801
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';
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';
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;
835 g_template_obj(2).ae_setup(1).iv_setup(2).def_value_column := 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;
880 g_template_obj(2).ae_setup(1).bf_setup(2).iv_name := 'Advance Amount';
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';
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';
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;
922 g_template_obj(2).ae_setup(2).iv_setup(1).def_value_column := 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';
949 g_template_obj(2).ae_setup(3).iv_setup(1).input_value_name := 'Pay Value';
946 g_template_obj(2).ae_setup(3).exclusion_tag := 'ADVANCE';
947 g_template_obj(2).ae_setup(3).priority := 36000;
948
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;
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';
1009 g_template_obj(2).ae_setup(4).iv_setup(2).uom := 'C';
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;
1031 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(2).result_name := 'RECOVERED_ADVANCE';
1028 g_template_obj(2).ae_setup(4).uf_setup.frs_setup(1).exclusion_tag := null;
1029
1030
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';
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';
1099 g_template_obj(3).er_setup(4).rule_id := null;
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
1122 g_template_obj(3).er_setup(8).tag := 'ENTADVN';
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';
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;
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';
1199 g_template_obj(3).iv_setup(7).uom := 'M';
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;
1216 g_template_obj(3).iv_setup(8).warn_or_error := 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;
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;
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';
1297 g_template_obj(3).uf_setup.frs_setup(3).result_rule_type := 'D';
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';
1309
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;
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;
1381 g_template_obj(3).ae_setup(2).iv_setup(3).exclusion_tag := 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;
1380 g_template_obj(3).ae_setup(2).iv_setup(3).balance_name := null;
1382
1383 g_template_obj(3).ae_setup(2).iv_setup(4).input_value_name := 'Add to Net Pay';
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';
1465 g_template_obj(3).ae_setup(3).iv_setup(2).min_value := null;
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';
1466 g_template_obj(3).ae_setup(3).iv_setup(2).warn_or_error := null;
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
1470 g_template_obj(3).ae_setup(3).bf_setup(1).balance_name := 'Outstanding Advance for Allowances';
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
1548
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';
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';
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
1556
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;
1635 g_template_obj(4).iv_setup(2).balance_name := 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;
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;
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;
1646 g_template_obj(4).iv_setup(3).balance_name := 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;
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';
1716 g_template_obj(4).iv_setup(10).uom := 'M';
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';
1723 g_template_obj(4).iv_setup(10).balance_name := null;
1724 g_template_obj(4).iv_setup(10).exclusion_tag := null;
1725
1726 ----------------------------------------------------------------
1730 ----------------------------------------------------------------
1727 -- Input Values for Free Education Template end
1728 ----------------------------------------------------------------
1729
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;
1815 g_template_obj(4).sf_setup.frs_setup(11).result_rule_type := 'I';
1812 g_template_obj(4).sf_setup.frs_setup(10).exclusion_tag := null;
1813
1814 g_template_obj(4).sf_setup.frs_setup(11).result_name := 'ER_NMP_TAXABLE_AMOUNT';
1816 g_template_obj(4).sf_setup.frs_setup(11).input_value_name := 'ER NMP Taxable Amount';
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;
1820
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
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';
1875 g_template_obj(4).ae_setup(1).iv_setup(2).lookup_type := null;
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 ----------------------------------------------------------------
1903 g_template_obj(5).er_setup(1).value := 'N';
1900 -- Exclusion Rules for Accommodation Template start
1901 ----------------------------------------------------------------
1902 g_template_obj(5).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
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';
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';
1975 g_template_obj(5).iv_setup(6).default_value := null;
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;
2000 g_template_obj(5).iv_setup(8).warn_or_error := 'E';
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;
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';
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;
2041 g_template_obj(5).iv_setup(12).default_value := 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';
2095
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;
2096 g_template_obj(5).sf_setup.frs_setup(2).result_name := 'ACTUAL_RENT_OF_FURNITURE';
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;
2100 g_template_obj(5).sf_setup.frs_setup(2).severity_level := 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;
2160 g_template_obj(5).sf_setup.frs_setup(11).result_rule_type := 'I';
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';
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';
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;
2185 g_template_obj(5).sf_setup.frs_setup(14).exclusion_tag := 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';
2221
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;
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';
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;
2270 g_template_obj(5).ae_setup(1).iv_setup(2).default_value := 'Company Accommodation';
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
2311 g_template_obj(6).iv_setup(1).mandatory_flag := 'X';
2308 ----------------------------------------------------------------
2309 g_template_obj(6).iv_setup(1).input_value_name := 'Pay Value';
2310 g_template_obj(6).iv_setup(1).uom := 'M';
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 := 'Perquisite Employee Contribution';
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';
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;
2370 g_template_obj(6).iv_setup(6).min_value := 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;
2406 g_template_obj(6).iv_setup(9).exclusion_tag := 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;
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';
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;
2469 g_template_obj(6).iv_setup(15).min_value := 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';
2503 g_template_obj(6).sf_setup.frs_setup(1).exclusion_tag := null;
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;
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;
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';
2561 g_template_obj(6).sf_setup.frs_setup(9).result_rule_type := 'I';
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';
2585 g_template_obj(6).sf_setup.frs_setup(12).severity_level := null;
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';
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 -- Formula Setup for Concessional Loan Template ends
2603 ----------------------------------------------------------------
2604
2605 ----------------------------------------------------------------
2606 -- Add. Element Setup for Concessional Loan Template starts
2607 ----------------------------------------------------------------
2608 ----------------------------------------------------------------
2609 -- Add. Element Setup for Concessional Loan Template ends
2610 ----------------------------------------------------------------
2611
2612 ----------------------------------------------------------------
2613 -- TEMPLATE FOR CONCESSIONAL LOAN ENDS
2614 ----------------------------------------------------------------
2615
2616 ----------------------------------------------------------------
2617 -- TEMPLATE FOR COMPANY ASSETS STARTS
2618 ----------------------------------------------------------------
2619 pay_in_utils.set_location(g_debug, l_procedure,80);
2620 g_template_obj(7).template_name := 'Company Movable Assets';
2621 g_template_obj(7).category := 'Perquisites';
2622 g_template_obj(7).priority := 17000;
2623
2624 ----------------------------------------------------------------
2625 -- Exclusion Rules for Company Assets Template start
2626 ----------------------------------------------------------------
2627 g_template_obj(7).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
2628 g_template_obj(7).er_setup(1).value := 'N';
2629 g_template_obj(7).er_setup(1).descr := 'Exclusion rule for Projections.';
2630 g_template_obj(7).er_setup(1).tag := 'PROJECT';
2631 g_template_obj(7).er_setup(1).rule_id := null;
2632
2633 ----------------------------------------------------------------
2634 -- Exclusion Rules for Company Assets Template end
2635 ----------------------------------------------------------------
2636
2637 ----------------------------------------------------------------
2638 -- Input Values for Company Assets Template start
2639 ----------------------------------------------------------------
2640 g_template_obj(7).iv_setup(1).input_value_name := 'Pay Value';
2641 g_template_obj(7).iv_setup(1).uom := 'M';
2642 g_template_obj(7).iv_setup(1).mandatory_flag := 'X';
2643 g_template_obj(7).iv_setup(1).lookup_type := null;
2644 g_template_obj(7).iv_setup(1).default_value := null;
2645 g_template_obj(7).iv_setup(1).def_value_column := null;
2646 g_template_obj(7).iv_setup(1).min_value := null;
2647 g_template_obj(7).iv_setup(1).warn_or_error := null;
2648 g_template_obj(7).iv_setup(1).balance_name := null;
2649 g_template_obj(7).iv_setup(1).exclusion_tag := null;
2650
2651 g_template_obj(7).iv_setup(2).input_value_name := 'Benefit Start Date';
2652 g_template_obj(7).iv_setup(2).uom := 'D';
2653 g_template_obj(7).iv_setup(2).mandatory_flag := 'N';
2654 g_template_obj(7).iv_setup(2).lookup_type := null;
2655 g_template_obj(7).iv_setup(2).default_value := null;
2656 g_template_obj(7).iv_setup(2).def_value_column := null;
2657 g_template_obj(7).iv_setup(2).min_value := null;
2658 g_template_obj(7).iv_setup(2).warn_or_error := null;
2659 g_template_obj(7).iv_setup(2).balance_name := null;
2660 g_template_obj(7).iv_setup(2).exclusion_tag := null;
2661
2662 g_template_obj(7).iv_setup(3).input_value_name := 'Benefit End Date';
2663 g_template_obj(7).iv_setup(3).uom := 'D';
2664 g_template_obj(7).iv_setup(3).mandatory_flag := 'N';
2665 g_template_obj(7).iv_setup(3).lookup_type := null;
2666 g_template_obj(7).iv_setup(3).default_value := null;
2667 g_template_obj(7).iv_setup(3).def_value_column := null;
2668 g_template_obj(7).iv_setup(3).min_value := null;
2669 g_template_obj(7).iv_setup(3).warn_or_error := null;
2670 g_template_obj(7).iv_setup(3).balance_name := null;
2671 g_template_obj(7).iv_setup(3).exclusion_tag := null;
2672
2673 g_template_obj(7).iv_setup(4).input_value_name := 'Component Name';
2674 g_template_obj(7).iv_setup(4).uom := 'C';
2675 g_template_obj(7).iv_setup(4).mandatory_flag := 'X';
2679 g_template_obj(7).iv_setup(4).min_value := null;
2676 g_template_obj(7).iv_setup(4).lookup_type := null;
2677 g_template_obj(7).iv_setup(4).default_value := 'Company Movable Assets';
2678 g_template_obj(7).iv_setup(4).def_value_column := null;
2680 g_template_obj(7).iv_setup(4).warn_or_error := null;
2681 g_template_obj(7).iv_setup(4).balance_name := null;
2682 g_template_obj(7).iv_setup(4).exclusion_tag := null;
2683
2684 g_template_obj(7).iv_setup(5).input_value_name := 'Asset Category';
2685 g_template_obj(7).iv_setup(5).uom := 'C';
2686 g_template_obj(7).iv_setup(5).mandatory_flag := 'Y';
2687 g_template_obj(7).iv_setup(5).lookup_type := 'IN_ASSET_TYPE_TEMP';
2688 g_template_obj(7).iv_setup(5).default_value := null;
2689 g_template_obj(7).iv_setup(5).def_value_column := null;
2690 g_template_obj(7).iv_setup(5).min_value := null;
2691 g_template_obj(7).iv_setup(5).warn_or_error := null;
2692 g_template_obj(7).iv_setup(5).balance_name := null;
2693 g_template_obj(7).iv_setup(5).exclusion_tag := null;
2694
2695 g_template_obj(7).iv_setup(6).input_value_name := 'Asset Description';
2696 g_template_obj(7).iv_setup(6).uom := 'C';
2697 g_template_obj(7).iv_setup(6).mandatory_flag := 'N';
2698 g_template_obj(7).iv_setup(6).lookup_type := null;
2699 g_template_obj(7).iv_setup(6).default_value := null;
2700 g_template_obj(7).iv_setup(6).def_value_column := null;
2701 g_template_obj(7).iv_setup(6).min_value := null;
2702 g_template_obj(7).iv_setup(6).warn_or_error := null;
2703 g_template_obj(7).iv_setup(6).balance_name := null;
2704 g_template_obj(7).iv_setup(6).exclusion_tag := null;
2705
2706 g_template_obj(7).iv_setup(7).input_value_name := 'Usage';
2707 g_template_obj(7).iv_setup(7).uom := 'C';
2708 g_template_obj(7).iv_setup(7).mandatory_flag := 'Y';
2709 g_template_obj(7).iv_setup(7).lookup_type := 'IN_ASSET_USAGE_TYPE';
2710 g_template_obj(7).iv_setup(7).default_value := null;
2711 g_template_obj(7).iv_setup(7).def_value_column := null;
2712 g_template_obj(7).iv_setup(7).min_value := null;
2713 g_template_obj(7).iv_setup(7).warn_or_error := null;
2714 g_template_obj(7).iv_setup(7).balance_name := null;
2715 g_template_obj(7).iv_setup(7).exclusion_tag := null;
2716
2717 g_template_obj(7).iv_setup(8).input_value_name := 'Original Cost or Rental';
2718 g_template_obj(7).iv_setup(8).uom := 'M';
2719 g_template_obj(7).iv_setup(8).mandatory_flag := 'Y';
2720 g_template_obj(7).iv_setup(8).lookup_type := null;
2721 g_template_obj(7).iv_setup(8).default_value := null;
2722 g_template_obj(7).iv_setup(8).def_value_column := null;
2723 g_template_obj(7).iv_setup(8).min_value := 0;
2724 g_template_obj(7).iv_setup(8).warn_or_error := 'E';
2725 g_template_obj(7).iv_setup(8).balance_name := null;
2726 g_template_obj(7).iv_setup(8).exclusion_tag := null;
2727
2728 g_template_obj(7).iv_setup(9).input_value_name := 'Date of Purchase';
2729 g_template_obj(7).iv_setup(9).uom := 'D';
2730 g_template_obj(7).iv_setup(9).mandatory_flag := 'N';
2731 g_template_obj(7).iv_setup(9).lookup_type := null;
2732 g_template_obj(7).iv_setup(9).default_value := null;
2733 g_template_obj(7).iv_setup(9).def_value_column := null;
2734 g_template_obj(7).iv_setup(9).min_value := null;
2735 g_template_obj(7).iv_setup(9).warn_or_error := 'E';
2736 g_template_obj(7).iv_setup(9).balance_name := null;
2737 g_template_obj(7).iv_setup(9).exclusion_tag := null;
2738
2739 g_template_obj(7).iv_setup(10).input_value_name := 'Employee Contribution';
2740 g_template_obj(7).iv_setup(10).uom := 'M';
2741 g_template_obj(7).iv_setup(10).mandatory_flag := 'N';
2742 g_template_obj(7).iv_setup(10).lookup_type := null;
2743 g_template_obj(7).iv_setup(10).default_value := null;
2744 g_template_obj(7).iv_setup(10).def_value_column := null;
2745 g_template_obj(7).iv_setup(10).min_value := 0;
2746 g_template_obj(7).iv_setup(10).warn_or_error := 'E';
2747 g_template_obj(7).iv_setup(10).balance_name := 'Perquisite Employee Contribution';
2748 g_template_obj(7).iv_setup(10).exclusion_tag := null;
2749
2750 g_template_obj(7).iv_setup(11).input_value_name := 'Projected Taxable Value';
2751 g_template_obj(7).iv_setup(11).uom := 'M';
2752 g_template_obj(7).iv_setup(11).mandatory_flag := 'X';
2753 g_template_obj(7).iv_setup(11).lookup_type := null;
2754 g_template_obj(7).iv_setup(11).default_value := null;
2755 g_template_obj(7).iv_setup(11).def_value_column := null;
2756 g_template_obj(7).iv_setup(11).min_value := null;
2757 g_template_obj(7).iv_setup(11).warn_or_error := null;
2758 g_template_obj(7).iv_setup(11).balance_name := 'Taxable Perquisites for Projection';
2759 g_template_obj(7).iv_setup(11).exclusion_tag := 'PROJECT';
2760
2761 g_template_obj(7).iv_setup(12).input_value_name := 'Employer Paid Tax';
2762 g_template_obj(7).iv_setup(12).uom := 'C';
2763 g_template_obj(7).iv_setup(12).mandatory_flag := 'Y';
2764 g_template_obj(7).iv_setup(12).lookup_type := 'YES_NO';
2765 g_template_obj(7).iv_setup(12).default_value := 'N';
2766 g_template_obj(7).iv_setup(12).def_value_column := null;
2767 g_template_obj(7).iv_setup(12).min_value := null;
2768 g_template_obj(7).iv_setup(12).warn_or_error := null;
2769 g_template_obj(7).iv_setup(12).balance_name := null;
2773 g_template_obj(7).iv_setup(13).uom := 'M';
2770 g_template_obj(7).iv_setup(12).exclusion_tag := null;
2771
2772 g_template_obj(7).iv_setup(13).input_value_name := 'Employer Taxable Amount';
2774 g_template_obj(7).iv_setup(13).mandatory_flag := 'X';
2775 g_template_obj(7).iv_setup(13).lookup_type := null;
2776 g_template_obj(7).iv_setup(13).default_value := null;
2777 g_template_obj(7).iv_setup(13).def_value_column := null;
2778 g_template_obj(7).iv_setup(13).min_value := 0;
2779 g_template_obj(7).iv_setup(13).warn_or_error := 'E';
2780 g_template_obj(7).iv_setup(13).balance_name := null;
2781 g_template_obj(7).iv_setup(13).exclusion_tag := null;
2782
2783 ----------------------------------------------------------------
2784 -- Input Values for Company Assets Template end
2785 ----------------------------------------------------------------
2786
2787 ----------------------------------------------------------------
2788 -- Balance Feeds for Company Assets Template start
2789 ----------------------------------------------------------------
2790 ----------------------------------------------------------------
2791 -- Balance Feeds for Company Assets Template end
2792 ----------------------------------------------------------------
2793
2794 ----------------------------------------------------------------
2795 -- Formula Setup for Company Assets Template starts
2796 ----------------------------------------------------------------
2797 g_template_obj(7).sf_setup.formula_name := 'IN_MOVABLE_ASSET';
2798 g_template_obj(7).sf_setup.status_rule_id := null;
2799 g_template_obj(7).sf_setup.description := null;
2800
2801 g_template_obj(7).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
2802 g_template_obj(7).sf_setup.frs_setup(1).result_rule_type := 'D';
2803 g_template_obj(7).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
2804 g_template_obj(7).sf_setup.frs_setup(1).element_name := null;
2805 g_template_obj(7).sf_setup.frs_setup(1).severity_level := null;
2806 g_template_obj(7).sf_setup.frs_setup(1).exclusion_tag := null;
2807
2808 g_template_obj(7).sf_setup.frs_setup(2).result_name := 'RENTAL_VALUE';
2809 g_template_obj(7).sf_setup.frs_setup(2).result_rule_type := 'D';
2810 g_template_obj(7).sf_setup.frs_setup(2).input_value_name := 'Original Cost or Rental';
2811 g_template_obj(7).sf_setup.frs_setup(2).element_name := null;
2812 g_template_obj(7).sf_setup.frs_setup(2).severity_level := null;
2813 g_template_obj(7).sf_setup.frs_setup(2).exclusion_tag := null;
2814
2815 g_template_obj(7).sf_setup.frs_setup(3).result_name := 'ACTUAL_EMPLOYEE_CONTRIBUTION';
2816 g_template_obj(7).sf_setup.frs_setup(3).result_rule_type := 'D';
2817 g_template_obj(7).sf_setup.frs_setup(3).input_value_name := 'Employee Contribution';
2818 g_template_obj(7).sf_setup.frs_setup(3).element_name := null;
2819 g_template_obj(7).sf_setup.frs_setup(3).severity_level := null;
2820 g_template_obj(7).sf_setup.frs_setup(3).exclusion_tag := null;
2821
2822 g_template_obj(7).sf_setup.frs_setup(4).result_name := 'PROJECTED_VALUE';
2823 g_template_obj(7).sf_setup.frs_setup(4).result_rule_type := 'D';
2824 g_template_obj(7).sf_setup.frs_setup(4).input_value_name := 'Projected Taxable Value';
2825 g_template_obj(7).sf_setup.frs_setup(4).element_name := null;
2826 g_template_obj(7).sf_setup.frs_setup(4).severity_level := null;
2827 g_template_obj(7).sf_setup.frs_setup(4).exclusion_tag := 'PROJECT';
2828
2829 g_template_obj(7).sf_setup.frs_setup(5).result_name := 'O_STOP_FLAG';
2830 g_template_obj(7).sf_setup.frs_setup(5).result_rule_type := 'S';
2831 g_template_obj(7).sf_setup.frs_setup(5).input_value_name := null;
2832 g_template_obj(7).sf_setup.frs_setup(5).element_name := null;
2833 g_template_obj(7).sf_setup.frs_setup(5).severity_level := null;
2834 g_template_obj(7).sf_setup.frs_setup(5).exclusion_tag := null;
2835
2836 g_template_obj(7).sf_setup.frs_setup(6).result_name := 'EMPR_TAX';
2837 g_template_obj(7).sf_setup.frs_setup(6).result_rule_type := 'D';
2838 g_template_obj(7).sf_setup.frs_setup(6).input_value_name := 'Employer Taxable Amount';
2839 g_template_obj(7).sf_setup.frs_setup(6).element_name := null;
2840 g_template_obj(7).sf_setup.frs_setup(6).severity_level := null;
2841 g_template_obj(7).sf_setup.frs_setup(6).exclusion_tag := null;
2842
2843 g_template_obj(7).sf_setup.frs_setup(7).result_name := 'ER_MP_TAXABLE_AMOUNT';
2844 g_template_obj(7).sf_setup.frs_setup(7).result_rule_type := 'I';
2845 g_template_obj(7).sf_setup.frs_setup(7).input_value_name := 'ER MP Taxable Amount';
2846 g_template_obj(7).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
2847 g_template_obj(7).sf_setup.frs_setup(7).severity_level := null;
2848 g_template_obj(7).sf_setup.frs_setup(7).exclusion_tag := null;
2849
2850 g_template_obj(7).sf_setup.frs_setup(8).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
2851 g_template_obj(7).sf_setup.frs_setup(8).result_rule_type := 'I';
2852 g_template_obj(7).sf_setup.frs_setup(8).input_value_name := 'Projected ER MP Taxable Amt';
2853 g_template_obj(7).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
2854 g_template_obj(7).sf_setup.frs_setup(8).severity_level := null;
2855 g_template_obj(7).sf_setup.frs_setup(8).exclusion_tag := null;
2856
2857 g_template_obj(7).sf_setup.frs_setup(9).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
2858 g_template_obj(7).sf_setup.frs_setup(9).result_rule_type := 'I';
2862 g_template_obj(7).sf_setup.frs_setup(9).exclusion_tag := null;
2859 g_template_obj(7).sf_setup.frs_setup(9).input_value_name := 'ER MP Salary to be Excluded';
2860 g_template_obj(7).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
2861 g_template_obj(7).sf_setup.frs_setup(9).severity_level := null;
2863
2864 g_template_obj(7).sf_setup.frs_setup(10).result_name := 'ER_NMP_TAXABLE_AMOUNT';
2865 g_template_obj(7).sf_setup.frs_setup(10).result_rule_type := 'I';
2866 g_template_obj(7).sf_setup.frs_setup(10).input_value_name := 'ER NMP Taxable Amount';
2867 g_template_obj(7).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
2868 g_template_obj(7).sf_setup.frs_setup(10).severity_level := null;
2869 g_template_obj(7).sf_setup.frs_setup(10).exclusion_tag := null;
2870
2871 g_template_obj(7).sf_setup.frs_setup(11).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
2872 g_template_obj(7).sf_setup.frs_setup(11).result_rule_type := 'I';
2873 g_template_obj(7).sf_setup.frs_setup(11).input_value_name := 'Projected ER NMP Taxable Amt';
2874 g_template_obj(7).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
2875 g_template_obj(7).sf_setup.frs_setup(11).severity_level := null;
2876 g_template_obj(7).sf_setup.frs_setup(11).exclusion_tag := null;
2877
2878 g_template_obj(7).sf_setup.frs_setup(12).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
2879 g_template_obj(7).sf_setup.frs_setup(12).result_rule_type := 'I';
2880 g_template_obj(7).sf_setup.frs_setup(12).input_value_name := 'ER NMP Salary to be Excluded';
2881 g_template_obj(7).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
2882 g_template_obj(7).sf_setup.frs_setup(12).severity_level := null;
2883 g_template_obj(7).sf_setup.frs_setup(12).exclusion_tag := null;
2884
2885 g_template_obj(7).sf_setup.frs_setup(13).result_name := 'COMPONENT_NAME';
2886 g_template_obj(7).sf_setup.frs_setup(13).result_rule_type := 'I';
2887 g_template_obj(7).sf_setup.frs_setup(13).input_value_name := 'Component Name';
2888 g_template_obj(7).sf_setup.frs_setup(13).element_name := 'Employer Tax Projection Element';
2889 g_template_obj(7).sf_setup.frs_setup(13).severity_level := null;
2890 g_template_obj(7).sf_setup.frs_setup(13).exclusion_tag := null;
2891
2892 g_template_obj(7).sf_setup.frs_setup(14).result_name := 'NON_REC_VALUE';
2893 g_template_obj(7).sf_setup.frs_setup(14).result_rule_type := 'I';
2894 g_template_obj(7).sf_setup.frs_setup(14).input_value_name := 'Non Rec Perquisite';
2895 g_template_obj(7).sf_setup.frs_setup(14).element_name := 'Employer Tax Projection Element';
2896 g_template_obj(7).sf_setup.frs_setup(14).severity_level := null;
2897 g_template_obj(7).sf_setup.frs_setup(14).exclusion_tag := null;
2898 ----------------------------------------------------------------
2899 -- Formula Setup for Company Assets Template ends
2900 ----------------------------------------------------------------
2901
2902 ----------------------------------------------------------------
2903 -- Add. Element Setup for Company Assets Template starts
2904 ----------------------------------------------------------------
2905 ----------------------------------------------------------------
2906 -- Add. Element Setup for Company Assets Template ends
2907 ----------------------------------------------------------------
2908
2909 ----------------------------------------------------------------
2910 -- TEMPLATE FOR COMPANY ASSETS ENDS
2911 ----------------------------------------------------------------
2912
2913 ----------------------------------------------------------------
2914 -- TEMPLATE FOR OTHER PERQUISITES STARTS
2915 ----------------------------------------------------------------
2916 pay_in_utils.set_location(g_debug, l_procedure,90);
2917 g_template_obj(8).template_name := 'Other Perquisites';
2918 g_template_obj(8).category := 'Perquisites';
2919 g_template_obj(8).priority := 17000;
2920
2921 ----------------------------------------------------------------
2922 -- Exclusion Rules for Other Perquisites Template start
2923 ----------------------------------------------------------------
2924 g_template_obj(8).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
2925 g_template_obj(8).er_setup(1).value := 'N';
2926 g_template_obj(8).er_setup(1).descr := 'Exclusion rule for Projections.';
2927 g_template_obj(8).er_setup(1).tag := 'PROJECT';
2928 g_template_obj(8).er_setup(1).rule_id := null;
2929
2930 g_template_obj(8).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION5';
2931 g_template_obj(8).er_setup(2).value := 'N';
2932 g_template_obj(8).er_setup(2).descr := 'Exclusion rule for Club or Credit Card Perq.';
2933 g_template_obj(8).er_setup(2).tag := 'CLUBCREDIT';
2934 g_template_obj(8).er_setup(2).rule_id := null;
2935
2936 ----------------------------------------------------------------
2937 -- Exclusion Rules for Other Perquisites Template end
2938 ----------------------------------------------------------------
2939
2940 ----------------------------------------------------------------
2941 -- Input Values for Other Perquisites Template start
2942 ----------------------------------------------------------------
2943 g_template_obj(8).iv_setup(1).input_value_name := 'Pay Value';
2944 g_template_obj(8).iv_setup(1).uom := 'M';
2945 g_template_obj(8).iv_setup(1).mandatory_flag := 'X';
2946 g_template_obj(8).iv_setup(1).lookup_type := null;
2947 g_template_obj(8).iv_setup(1).default_value := null;
2948 g_template_obj(8).iv_setup(1).def_value_column := null;
2952 g_template_obj(8).iv_setup(1).exclusion_tag := null;
2949 g_template_obj(8).iv_setup(1).min_value := null;
2950 g_template_obj(8).iv_setup(1).warn_or_error := null;
2951 g_template_obj(8).iv_setup(1).balance_name := 'Other Perquisites';
2953
2954 g_template_obj(8).iv_setup(2).input_value_name := 'Component Name';
2955 g_template_obj(8).iv_setup(2).uom := 'C';
2956 g_template_obj(8).iv_setup(2).mandatory_flag := 'X';
2957 g_template_obj(8).iv_setup(2).lookup_type := null;
2958 g_template_obj(8).iv_setup(2).default_value := null;
2959 g_template_obj(8).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
2960 g_template_obj(8).iv_setup(2).min_value := null;
2961 g_template_obj(8).iv_setup(2).warn_or_error := null;
2962 g_template_obj(8).iv_setup(2).balance_name := null;
2963 g_template_obj(8).iv_setup(2).exclusion_tag := null;
2964
2965 g_template_obj(8).iv_setup(3).input_value_name := 'Cost to Employer';
2966 g_template_obj(8).iv_setup(3).uom := 'M';
2967 g_template_obj(8).iv_setup(3).mandatory_flag := 'N';
2968 g_template_obj(8).iv_setup(3).lookup_type := null;
2969 g_template_obj(8).iv_setup(3).default_value := null;
2970 g_template_obj(8).iv_setup(3).def_value_column := null;
2971 g_template_obj(8).iv_setup(3).min_value := 0;
2972 g_template_obj(8).iv_setup(3).warn_or_error := 'E';
2973 g_template_obj(8).iv_setup(3).balance_name := 'Perquisite Employer Contribution';
2974 g_template_obj(8).iv_setup(3).exclusion_tag := null;
2975
2976 g_template_obj(8).iv_setup(4).input_value_name := 'Employee Contribution';
2977 g_template_obj(8).iv_setup(4).uom := 'M';
2978 g_template_obj(8).iv_setup(4).mandatory_flag := 'N';
2979 g_template_obj(8).iv_setup(4).lookup_type := null;
2980 g_template_obj(8).iv_setup(4).default_value := null;
2981 g_template_obj(8).iv_setup(4).def_value_column := null;
2982 g_template_obj(8).iv_setup(4).min_value := 0;
2983 g_template_obj(8).iv_setup(4).warn_or_error := 'E';
2984 g_template_obj(8).iv_setup(4).balance_name := 'Perquisite Employee Contribution';
2985 g_template_obj(8).iv_setup(4).exclusion_tag := null;
2986
2987 g_template_obj(8).iv_setup(5).input_value_name := 'Official Purpose Expense';
2988 g_template_obj(8).iv_setup(5).uom := 'M';
2989 g_template_obj(8).iv_setup(5).mandatory_flag := 'N';
2990 g_template_obj(8).iv_setup(5).lookup_type := null;
2991 g_template_obj(8).iv_setup(5).default_value := null;
2992 g_template_obj(8).iv_setup(5).def_value_column := null;
2993 g_template_obj(8).iv_setup(5).min_value := 0;
2994 g_template_obj(8).iv_setup(5).warn_or_error := 'E';
2995 g_template_obj(8).iv_setup(5).balance_name := 'Official Purpose Expense';
2996 g_template_obj(8).iv_setup(5).exclusion_tag := 'CLUBCREDIT';
2997
2998 g_template_obj(8).iv_setup(6).input_value_name := 'Projected Taxable Value';
2999 g_template_obj(8).iv_setup(6).uom := 'M';
3000 g_template_obj(8).iv_setup(6).mandatory_flag := 'X';
3001 g_template_obj(8).iv_setup(6).lookup_type := null;
3002 g_template_obj(8).iv_setup(6).default_value := null;
3003 g_template_obj(8).iv_setup(6).def_value_column := null;
3004 g_template_obj(8).iv_setup(6).min_value := null;
3005 g_template_obj(8).iv_setup(6).warn_or_error := null;
3006 g_template_obj(8).iv_setup(6).balance_name := 'Taxable Perquisites for Projection';
3007 g_template_obj(8).iv_setup(6).exclusion_tag := 'PROJECT';
3008
3009 g_template_obj(8).iv_setup(7).input_value_name := 'Employer Paid Tax';
3010 g_template_obj(8).iv_setup(7).uom := 'C';
3011 g_template_obj(8).iv_setup(7).mandatory_flag := 'Y';
3012 g_template_obj(8).iv_setup(7).lookup_type := 'YES_NO';
3013 g_template_obj(8).iv_setup(7).default_value := 'N';
3014 g_template_obj(8).iv_setup(7).def_value_column := null;
3015 g_template_obj(8).iv_setup(7).min_value := null;
3016 g_template_obj(8).iv_setup(7).warn_or_error := null;
3017 g_template_obj(8).iv_setup(7).balance_name := null;
3018 g_template_obj(8).iv_setup(7).exclusion_tag := null;
3019
3020 g_template_obj(8).iv_setup(8).input_value_name := 'Employer Taxable Amount';
3021 g_template_obj(8).iv_setup(8).uom := 'M';
3022 g_template_obj(8).iv_setup(8).mandatory_flag := 'X';
3023 g_template_obj(8).iv_setup(8).lookup_type := null;
3024 g_template_obj(8).iv_setup(8).default_value := null;
3025 g_template_obj(8).iv_setup(8).def_value_column := null;
3026 g_template_obj(8).iv_setup(8).min_value := 0;
3027 g_template_obj(8).iv_setup(8).warn_or_error := 'E';
3028 g_template_obj(8).iv_setup(8).balance_name := null;
3029 g_template_obj(8).iv_setup(8).exclusion_tag := null;
3030
3031 ----------------------------------------------------------------
3032 -- Input Values for Other Perquisites Template end
3033 ----------------------------------------------------------------
3034
3035 ----------------------------------------------------------------
3036 -- Balance Feeds for Other Perquisites Template start
3037 ----------------------------------------------------------------
3038 g_template_obj(8).bf_setup(1).balance_name := 'Other Perquisites';
3039 g_template_obj(8).bf_setup(1).iv_name := 'Cost to Employer';
3040 g_template_obj(8).bf_setup(1).scale := -1;
3041 g_template_obj(8).bf_setup(1).exclusion_tag := null;
3042
3043 g_template_obj(8).bf_setup(2).balance_name := 'Other Perquisites';
3047 ----------------------------------------------------------------
3044 g_template_obj(8).bf_setup(2).iv_name := 'Employee Contribution';
3045 g_template_obj(8).bf_setup(2).scale := -1;
3046 g_template_obj(8).bf_setup(2).exclusion_tag := null;
3048 -- Balance Feeds for Other Perquisites Template end
3049 ----------------------------------------------------------------
3050
3051 ----------------------------------------------------------------
3052 -- Formula Setup for Other Perquisites Template starts
3053 ----------------------------------------------------------------
3054 g_template_obj(8).sf_setup.formula_name := 'IN_OTHER_PERQUISITES';
3055 g_template_obj(8).sf_setup.status_rule_id := null;
3056 g_template_obj(8).sf_setup.description := null;
3057
3058 g_template_obj(8).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
3059 g_template_obj(8).sf_setup.frs_setup(1).result_rule_type := 'D';
3060 g_template_obj(8).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
3061 g_template_obj(8).sf_setup.frs_setup(1).element_name := null;
3062 g_template_obj(8).sf_setup.frs_setup(1).severity_level := null;
3063 g_template_obj(8).sf_setup.frs_setup(1).exclusion_tag := null;
3064
3065 g_template_obj(8).sf_setup.frs_setup(2).result_name := 'PROJECTED_VALUE';
3066 g_template_obj(8).sf_setup.frs_setup(2).result_rule_type := 'D';
3067 g_template_obj(8).sf_setup.frs_setup(2).input_value_name := 'Projected Taxable Value';
3068 g_template_obj(8).sf_setup.frs_setup(2).element_name := null;
3069 g_template_obj(8).sf_setup.frs_setup(2).severity_level := null;
3070 g_template_obj(8).sf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
3071
3072 g_template_obj(8).sf_setup.frs_setup(3).result_name := 'EMPR_TAX';
3073 g_template_obj(8).sf_setup.frs_setup(3).result_rule_type := 'D';
3074 g_template_obj(8).sf_setup.frs_setup(3).input_value_name := 'Employer Taxable Amount';
3075 g_template_obj(8).sf_setup.frs_setup(3).element_name := null;
3076 g_template_obj(8).sf_setup.frs_setup(3).severity_level := null;
3077 g_template_obj(8).sf_setup.frs_setup(3).exclusion_tag := null;
3078
3079 g_template_obj(8).sf_setup.frs_setup(4).result_name := 'FED_TO_NET_PAY';
3080 g_template_obj(8).sf_setup.frs_setup(4).result_rule_type := 'I';
3081 g_template_obj(8).sf_setup.frs_setup(4).input_value_name := 'Pay Value';
3082 g_template_obj(8).sf_setup.frs_setup(4).element_name := null;
3083 g_template_obj(8).sf_setup.frs_setup(4).severity_level := null;
3084 g_template_obj(8).sf_setup.frs_setup(4).exclusion_tag := null;
3085
3086 g_template_obj(8).sf_setup.frs_setup(5).result_name := 'ER_MP_TAXABLE_AMOUNT';
3087 g_template_obj(8).sf_setup.frs_setup(5).result_rule_type := 'I';
3088 g_template_obj(8).sf_setup.frs_setup(5).input_value_name := 'ER MP Taxable Amount';
3089 g_template_obj(8).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
3090 g_template_obj(8).sf_setup.frs_setup(5).severity_level := null;
3091 g_template_obj(8).sf_setup.frs_setup(5).exclusion_tag := null;
3092
3093 g_template_obj(8).sf_setup.frs_setup(6).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
3094 g_template_obj(8).sf_setup.frs_setup(6).result_rule_type := 'I';
3095 g_template_obj(8).sf_setup.frs_setup(6).input_value_name := 'Projected ER MP Taxable Amt';
3096 g_template_obj(8).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
3097 g_template_obj(8).sf_setup.frs_setup(6).severity_level := null;
3098 g_template_obj(8).sf_setup.frs_setup(6).exclusion_tag := null;
3099
3100 g_template_obj(8).sf_setup.frs_setup(7).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
3101 g_template_obj(8).sf_setup.frs_setup(7).result_rule_type := 'I';
3102 g_template_obj(8).sf_setup.frs_setup(7).input_value_name := 'ER MP Salary to be Excluded';
3103 g_template_obj(8).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
3104 g_template_obj(8).sf_setup.frs_setup(7).severity_level := null;
3105 g_template_obj(8).sf_setup.frs_setup(7).exclusion_tag := null;
3106
3107 g_template_obj(8).sf_setup.frs_setup(8).result_name := 'ER_NMP_TAXABLE_AMOUNT';
3108 g_template_obj(8).sf_setup.frs_setup(8).result_rule_type := 'I';
3109 g_template_obj(8).sf_setup.frs_setup(8).input_value_name := 'ER NMP Taxable Amount';
3110 g_template_obj(8).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
3111 g_template_obj(8).sf_setup.frs_setup(8).severity_level := null;
3112 g_template_obj(8).sf_setup.frs_setup(8).exclusion_tag := null;
3113
3114 g_template_obj(8).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
3115 g_template_obj(8).sf_setup.frs_setup(9).result_rule_type := 'I';
3116 g_template_obj(8).sf_setup.frs_setup(9).input_value_name := 'Projected ER NMP Taxable Amt';
3117 g_template_obj(8).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
3118 g_template_obj(8).sf_setup.frs_setup(9).severity_level := null;
3119 g_template_obj(8).sf_setup.frs_setup(9).exclusion_tag := null;
3120
3121 g_template_obj(8).sf_setup.frs_setup(10).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
3122 g_template_obj(8).sf_setup.frs_setup(10).result_rule_type := 'I';
3123 g_template_obj(8).sf_setup.frs_setup(10).input_value_name := 'ER NMP Salary to be Excluded';
3124 g_template_obj(8).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
3125 g_template_obj(8).sf_setup.frs_setup(10).severity_level := null;
3126 g_template_obj(8).sf_setup.frs_setup(10).exclusion_tag := null;
3130 g_template_obj(8).sf_setup.frs_setup(11).input_value_name := 'Component Name';
3127
3128 g_template_obj(8).sf_setup.frs_setup(11).result_name := 'COMPONENT_NAME';
3129 g_template_obj(8).sf_setup.frs_setup(11).result_rule_type := 'I';
3131 g_template_obj(8).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
3132 g_template_obj(8).sf_setup.frs_setup(11).severity_level := null;
3133 g_template_obj(8).sf_setup.frs_setup(11).exclusion_tag := null;
3134
3135 g_template_obj(8).sf_setup.frs_setup(12).result_name := 'NON_REC_VALUE';
3136 g_template_obj(8).sf_setup.frs_setup(12).result_rule_type := 'I';
3137 g_template_obj(8).sf_setup.frs_setup(12).input_value_name := 'Non Rec Perquisite';
3138 g_template_obj(8).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
3139 g_template_obj(8).sf_setup.frs_setup(12).severity_level := null;
3140 g_template_obj(8).sf_setup.frs_setup(12).exclusion_tag := null;
3141 ----------------------------------------------------------------
3142 -- Formula Setup for Other Perquisites Template ends
3143 ----------------------------------------------------------------
3144
3145 ----------------------------------------------------------------
3146 -- Add. Element Setup for Other Perquisites Template starts
3147 ----------------------------------------------------------------
3148
3149 g_template_obj(8).ae_setup(1).element_name := ' Paid MP';
3150 g_template_obj(8).ae_setup(1).classification := 'Paid Monetary Perquisite';
3151 g_template_obj(8).ae_setup(1).exclusion_tag := 'Perquisite';
3152 g_template_obj(8).ae_setup(1).priority := 2000;
3153
3154 g_template_obj(8).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
3155 g_template_obj(8).ae_setup(1).iv_setup(1).uom := 'M';
3156 g_template_obj(8).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
3157 g_template_obj(8).ae_setup(1).iv_setup(1).lookup_type := null;
3158 g_template_obj(8).ae_setup(1).iv_setup(1).default_value := null;
3159 g_template_obj(8).ae_setup(1).iv_setup(1).def_value_column := null;
3160 g_template_obj(8).ae_setup(1).iv_setup(1).min_value := null;
3161 g_template_obj(8).ae_setup(1).iv_setup(1).warn_or_error := null;
3162 g_template_obj(8).ae_setup(1).iv_setup(1).balance_name := null;
3163 g_template_obj(8).ae_setup(1).iv_setup(1).exclusion_tag := null;
3164
3165 g_template_obj(8).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
3166 g_template_obj(8).ae_setup(1).iv_setup(2).uom := 'C';
3167 g_template_obj(8).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
3168 g_template_obj(8).ae_setup(1).iv_setup(2).lookup_type := null;
3169 g_template_obj(8).ae_setup(1).iv_setup(2).default_value := null;
3170 g_template_obj(8).ae_setup(1).iv_setup(2).def_value_column := 'CONFIGURATION_INFORMATION1';
3171 g_template_obj(8).ae_setup(1).iv_setup(2).min_value := null;
3172 g_template_obj(8).ae_setup(1).iv_setup(2).warn_or_error := null;
3173 g_template_obj(8).ae_setup(1).iv_setup(2).balance_name := null;
3174 g_template_obj(8).ae_setup(1).iv_setup(2).exclusion_tag := null;
3175
3176 ----------------------------------------------------------------
3177 -- Add. Element Setup for Other Perquisites Template ends
3178 ----------------------------------------------------------------
3179
3180 ----------------------------------------------------------------
3181 -- TEMPLATE FOR OTHER PERQUISITES ENDS
3182 ----------------------------------------------------------------
3183
3184 ----------------------------------------------------------------
3185 -- TEMPLATE FOR LEAVE TRAVEL CONCESSION STARTS
3186 ----------------------------------------------------------------
3187 pay_in_utils.set_location(g_debug, l_procedure,100);
3188 g_template_obj(9).template_name := 'Leave Travel Concession';
3189 g_template_obj(9).category := 'Earnings';
3190 g_template_obj(9).priority := 9000;
3191
3192 ----------------------------------------------------------------
3193 -- Exclusion Rules for Leave Travel Concession Template start
3194 ----------------------------------------------------------------
3195 g_template_obj(9).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
3196 g_template_obj(9).er_setup(1).value := 'N';
3197 g_template_obj(9).er_setup(1).descr := 'Exclusion rule for Advances.';
3198 g_template_obj(9).er_setup(1).tag := 'ADVANCE';
3199 g_template_obj(9).er_setup(1).rule_id := null;
3200
3201 ----------------------------------------------------------------
3202 -- Exclusion Rules for Leave Travel Concession Template end
3203 ----------------------------------------------------------------
3204
3205 ----------------------------------------------------------------
3206 -- Input Values for Leave Travel Concession Template start
3207 ----------------------------------------------------------------
3208 g_template_obj(9).iv_setup(1).input_value_name := 'Pay Value';
3209 g_template_obj(9).iv_setup(1).uom := 'M';
3210 g_template_obj(9).iv_setup(1).mandatory_flag := 'X';
3211 g_template_obj(9).iv_setup(1).lookup_type := null;
3212 g_template_obj(9).iv_setup(1).default_value := null;
3213 g_template_obj(9).iv_setup(1).def_value_column := null;
3214 g_template_obj(9).iv_setup(1).min_value := null;
3215 g_template_obj(9).iv_setup(1).warn_or_error := null;
3216 g_template_obj(9).iv_setup(1).balance_name := null;
3217 g_template_obj(9).iv_setup(1).exclusion_tag := null;
3218
3219 g_template_obj(9).iv_setup(2).input_value_name := 'Component Name';
3223 g_template_obj(9).iv_setup(2).default_value := 'Leave Travel Concession';
3220 g_template_obj(9).iv_setup(2).uom := 'C';
3221 g_template_obj(9).iv_setup(2).mandatory_flag := 'X';
3222 g_template_obj(9).iv_setup(2).lookup_type := null;
3224 g_template_obj(9).iv_setup(2).def_value_column := null;
3225 g_template_obj(9).iv_setup(2).min_value := null;
3226 g_template_obj(9).iv_setup(2).warn_or_error := null;
3227 g_template_obj(9).iv_setup(2).balance_name := null;
3228 g_template_obj(9).iv_setup(2).exclusion_tag := null;
3229
3230 g_template_obj(9).iv_setup(3).input_value_name := 'Ticket Fare';
3231 g_template_obj(9).iv_setup(3).uom := 'M';
3232 g_template_obj(9).iv_setup(3).mandatory_flag := 'Y';
3233 g_template_obj(9).iv_setup(3).lookup_type := null;
3234 g_template_obj(9).iv_setup(3).default_value := null;
3235 g_template_obj(9).iv_setup(3).def_value_column := null;
3236 g_template_obj(9).iv_setup(3).min_value := 0;
3237 g_template_obj(9).iv_setup(3).warn_or_error := 'E';
3238 g_template_obj(9).iv_setup(3).balance_name := 'Bills Submitted';
3239 g_template_obj(9).iv_setup(3).exclusion_tag := null;
3240
3241 g_template_obj(9).iv_setup(4).input_value_name := 'LTC Journey Block';
3242 g_template_obj(9).iv_setup(4).uom := 'C';
3243 g_template_obj(9).iv_setup(4).mandatory_flag := 'Y';
3244 g_template_obj(9).iv_setup(4).lookup_type := null;
3245 g_template_obj(9).iv_setup(4).default_value := null;
3246 g_template_obj(9).iv_setup(4).def_value_column := null;
3247 g_template_obj(9).iv_setup(4).min_value := null;
3248 g_template_obj(9).iv_setup(4).warn_or_error := null;
3249 g_template_obj(9).iv_setup(4).balance_name := null;
3250 g_template_obj(9).iv_setup(4).exclusion_tag := null;
3251
3252 g_template_obj(9).iv_setup(5).input_value_name := 'Employer Contribution';
3253 g_template_obj(9).iv_setup(5).uom := 'M';
3254 g_template_obj(9).iv_setup(5).mandatory_flag := 'Y';
3255 g_template_obj(9).iv_setup(5).lookup_type := null;
3256 g_template_obj(9).iv_setup(5).default_value := null;
3257 g_template_obj(9).iv_setup(5).def_value_column := null;
3258 g_template_obj(9).iv_setup(5).min_value := 0;
3259 g_template_obj(9).iv_setup(5).warn_or_error := 'E';
3260 g_template_obj(9).iv_setup(5).balance_name := 'Employer Contribution for LTC';
3261 g_template_obj(9).iv_setup(5).exclusion_tag := null;
3262
3263 g_template_obj(9).iv_setup(6).input_value_name := 'Carryover from Prev Block';
3264 g_template_obj(9).iv_setup(6).uom := 'C';
3265 g_template_obj(9).iv_setup(6).mandatory_flag := 'N';
3266 g_template_obj(9).iv_setup(6).lookup_type := 'YES_NO';
3267 g_template_obj(9).iv_setup(6).default_value := null;
3268 g_template_obj(9).iv_setup(6).def_value_column := null;
3269 g_template_obj(9).iv_setup(6).min_value := null;
3270 g_template_obj(9).iv_setup(6).warn_or_error := null;
3271 g_template_obj(9).iv_setup(6).balance_name := null;
3272 g_template_obj(9).iv_setup(6).exclusion_tag := null;
3273
3274 g_template_obj(9).iv_setup(7).input_value_name := 'Exempted';
3275 g_template_obj(9).iv_setup(7).uom := 'C';
3276 g_template_obj(9).iv_setup(7).mandatory_flag := 'X';
3277 g_template_obj(9).iv_setup(7).lookup_type := 'YES_NO';
3278 g_template_obj(9).iv_setup(7).default_value := null;
3279 g_template_obj(9).iv_setup(7).def_value_column := null;
3280 g_template_obj(9).iv_setup(7).min_value := null;
3281 g_template_obj(9).iv_setup(7).warn_or_error := null;
3282 g_template_obj(9).iv_setup(7).balance_name := null;
3283 g_template_obj(9).iv_setup(7).exclusion_tag := null;
3284
3285 g_template_obj(9).iv_setup(8).input_value_name := 'Sec 17 Adjustment Amount';
3286 g_template_obj(9).iv_setup(8).uom := 'M';
3287 g_template_obj(9).iv_setup(8).mandatory_flag := 'X';
3288 g_template_obj(9).iv_setup(8).lookup_type := null;
3289 g_template_obj(9).iv_setup(8).default_value := null;
3290 g_template_obj(9).iv_setup(8).def_value_column := null;
3291 g_template_obj(9).iv_setup(8).min_value := null;
3292 g_template_obj(9).iv_setup(8).warn_or_error := null;
3293 g_template_obj(9).iv_setup(8).balance_name := null;
3294 g_template_obj(9).iv_setup(8).exclusion_tag := null;
3295
3296 g_template_obj(9).iv_setup(9).input_value_name := 'Adjusted Amount';
3297 g_template_obj(9).iv_setup(9).uom := 'M';
3298 g_template_obj(9).iv_setup(9).mandatory_flag := 'X';
3299 g_template_obj(9).iv_setup(9).lookup_type := null;
3300 g_template_obj(9).iv_setup(9).default_value := null;
3301 g_template_obj(9).iv_setup(9).def_value_column := null;
3302 g_template_obj(9).iv_setup(9).min_value := null;
3303 g_template_obj(9).iv_setup(9).warn_or_error := null;
3304 g_template_obj(9).iv_setup(9).balance_name := 'Adjusted Advance for Earnings';
3305 g_template_obj(9).iv_setup(9).exclusion_tag := null;
3306
3307 ----------------------------------------------------------------
3308 -- Input Values for Leave Travel Concession Template end
3309 ----------------------------------------------------------------
3310
3311 ----------------------------------------------------------------
3312 -- Balance Feeds for Leave Travel Concession Template start
3313 ----------------------------------------------------------------
3314 g_template_obj(9).bf_setup(1).balance_name := 'Salary under Section 17';
3318
3315 g_template_obj(9).bf_setup(1).iv_name := 'Sec 17 Adjustment Amount';
3316 g_template_obj(9).bf_setup(1).scale := -1;
3317 g_template_obj(9).bf_setup(1).exclusion_tag := null;
3319 g_template_obj(9).bf_setup(2).balance_name := 'Outstanding Advance for Earnings';
3320 g_template_obj(9).bf_setup(2).iv_name := 'Adjusted Amount';
3321 g_template_obj(9).bf_setup(2).scale := -1;
3322 g_template_obj(9).bf_setup(2).exclusion_tag := null;
3323
3324 ----------------------------------------------------------------
3325 -- Balance Feeds for Leave Travel Concession Template end
3326 ----------------------------------------------------------------
3327
3328 ----------------------------------------------------------------
3329 -- Formula Setup for Leave Travel Concession Template starts
3330 ----------------------------------------------------------------
3331 g_template_obj(9).uf_setup.formula_name := '_LTC_CALC';
3332 g_template_obj(9).uf_setup.status_rule_id := null;
3333 g_template_obj(9).uf_setup.description := 'Formula for Leave Travel Concession';
3334
3335 g_template_obj(9).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
3336 g_template_obj(9).uf_setup.frs_setup(1).result_rule_type := 'D';
3337 g_template_obj(9).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
3338 g_template_obj(9).uf_setup.frs_setup(1).element_name := null;
3339 g_template_obj(9).uf_setup.frs_setup(1).severity_level := null;
3340 g_template_obj(9).uf_setup.frs_setup(1).exclusion_tag := null;
3341
3342 g_template_obj(9).uf_setup.frs_setup(2).result_name := 'EXEMPTED_AMT';
3343 g_template_obj(9).uf_setup.frs_setup(2).result_rule_type := 'D';
3344 g_template_obj(9).uf_setup.frs_setup(2).input_value_name := 'Sec 17 Adjustment Amount';
3345 g_template_obj(9).uf_setup.frs_setup(2).element_name := null;
3346 g_template_obj(9).uf_setup.frs_setup(2).severity_level := null;
3347 g_template_obj(9).uf_setup.frs_setup(2).exclusion_tag := null;
3348
3349 g_template_obj(9).uf_setup.frs_setup(3).result_name := 'CARRY_OVER_FLAG';
3350 g_template_obj(9).uf_setup.frs_setup(3).result_rule_type := 'D';
3351 g_template_obj(9).uf_setup.frs_setup(3).input_value_name := 'Carryover from Prev Block';
3352 g_template_obj(9).uf_setup.frs_setup(3).element_name := null;
3353 g_template_obj(9).uf_setup.frs_setup(3).severity_level := null;
3354 g_template_obj(9).uf_setup.frs_setup(3).exclusion_tag := null;
3355
3356 g_template_obj(9).uf_setup.frs_setup(4).result_name := 'EXEMPTED_FLAG';
3357 g_template_obj(9).uf_setup.frs_setup(4).result_rule_type := 'D';
3358 g_template_obj(9).uf_setup.frs_setup(4).input_value_name := 'Exempted';
3359 g_template_obj(9).uf_setup.frs_setup(4).element_name := null;
3360 g_template_obj(9).uf_setup.frs_setup(4).severity_level := null;
3361 g_template_obj(9).uf_setup.frs_setup(4).exclusion_tag := null;
3362
3363 g_template_obj(9).uf_setup.frs_setup(5).result_name := 'ADJUSTED_ADVANCE';
3364 g_template_obj(9).uf_setup.frs_setup(5).result_rule_type := 'D';
3365 g_template_obj(9).uf_setup.frs_setup(5).input_value_name := 'Adjusted Amount';
3366 g_template_obj(9).uf_setup.frs_setup(5).element_name := null;
3367 g_template_obj(9).uf_setup.frs_setup(5).severity_level := null;
3368 g_template_obj(9).uf_setup.frs_setup(5).exclusion_tag := null;
3369
3370 ----------------------------------------------------------------
3371 -- Formula Setup for Leave Travel Concession Template ends
3372 ----------------------------------------------------------------
3373
3374 ----------------------------------------------------------------
3375 -- Add. Element Setup for Leave Travel Concession Template starts
3376 ----------------------------------------------------------------
3377 g_template_obj(9).ae_setup(1).element_name := ' Advance';
3378 g_template_obj(9).ae_setup(1).classification := 'Advances';
3379 g_template_obj(9).ae_setup(1).exclusion_tag := 'ADVANCE';
3380 g_template_obj(9).ae_setup(1).priority := -2000;
3381
3382 g_template_obj(9).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
3383 g_template_obj(9).ae_setup(1).iv_setup(1).uom := 'M';
3384 g_template_obj(9).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
3385 g_template_obj(9).ae_setup(1).iv_setup(1).lookup_type := null;
3386 g_template_obj(9).ae_setup(1).iv_setup(1).default_value := null;
3387 g_template_obj(9).ae_setup(1).iv_setup(1).def_value_column := null;
3388 g_template_obj(9).ae_setup(1).iv_setup(1).min_value := null;
3389 g_template_obj(9).ae_setup(1).iv_setup(1).warn_or_error := null;
3390 g_template_obj(9).ae_setup(1).iv_setup(1).balance_name := null;
3391 g_template_obj(9).ae_setup(1).iv_setup(1).exclusion_tag := null;
3392
3393 g_template_obj(9).ae_setup(1).iv_setup(2).input_value_name := 'Advance Amount';
3394 g_template_obj(9).ae_setup(1).iv_setup(2).uom := 'M';
3395 g_template_obj(9).ae_setup(1).iv_setup(2).mandatory_flag := 'N';
3396 g_template_obj(9).ae_setup(1).iv_setup(2).lookup_type := null;
3397 g_template_obj(9).ae_setup(1).iv_setup(2).default_value := null;
3398 g_template_obj(9).ae_setup(1).iv_setup(2).def_value_column := null;
3399 g_template_obj(9).ae_setup(1).iv_setup(2).min_value := null;
3400 g_template_obj(9).ae_setup(1).iv_setup(2).warn_or_error := null;
3401 g_template_obj(9).ae_setup(1).iv_setup(2).balance_name := null;
3402 g_template_obj(9).ae_setup(1).iv_setup(2).exclusion_tag := null;
3403
3404 g_template_obj(9).ae_setup(1).iv_setup(3).input_value_name := 'Excess Advance';
3408 g_template_obj(9).ae_setup(1).iv_setup(3).default_value := 'PENDING';
3405 g_template_obj(9).ae_setup(1).iv_setup(3).uom := 'C';
3406 g_template_obj(9).ae_setup(1).iv_setup(3).mandatory_flag := 'Y';
3407 g_template_obj(9).ae_setup(1).iv_setup(3).lookup_type := 'IN_ADVANCE_OPTIONS';
3409 g_template_obj(9).ae_setup(1).iv_setup(3).def_value_column := null;
3410 g_template_obj(9).ae_setup(1).iv_setup(3).min_value := null;
3411 g_template_obj(9).ae_setup(1).iv_setup(3).warn_or_error := null;
3412 g_template_obj(9).ae_setup(1).iv_setup(3).balance_name := null;
3413 g_template_obj(9).ae_setup(1).iv_setup(3).exclusion_tag := null;
3414
3415 g_template_obj(9).ae_setup(1).iv_setup(4).input_value_name := 'Add to Net Pay';
3416 g_template_obj(9).ae_setup(1).iv_setup(4).uom := 'C';
3417 g_template_obj(9).ae_setup(1).iv_setup(4).mandatory_flag := 'Y';
3418 g_template_obj(9).ae_setup(1).iv_setup(4).lookup_type := 'YES_NO';
3419 g_template_obj(9).ae_setup(1).iv_setup(4).default_value := 'Y';
3420 g_template_obj(9).ae_setup(1).iv_setup(4).def_value_column := null;
3421 g_template_obj(9).ae_setup(1).iv_setup(4).min_value := null;
3422 g_template_obj(9).ae_setup(1).iv_setup(4).warn_or_error := null;
3423 g_template_obj(9).ae_setup(1).iv_setup(4).balance_name := null;
3424 g_template_obj(9).ae_setup(1).iv_setup(4).exclusion_tag := null;
3425
3426 g_template_obj(9).ae_setup(1).iv_setup(5).input_value_name := 'Component Name';
3427 g_template_obj(9).ae_setup(1).iv_setup(5).uom := 'C';
3428 g_template_obj(9).ae_setup(1).iv_setup(5).mandatory_flag := 'X';
3429 g_template_obj(9).ae_setup(1).iv_setup(5).lookup_type := null;
3430 g_template_obj(9).ae_setup(1).iv_setup(5).default_value := 'Leave Travel Concession';
3431 g_template_obj(9).ae_setup(1).iv_setup(5).def_value_column := null;
3432 g_template_obj(9).ae_setup(1).iv_setup(5).min_value := null;
3433 g_template_obj(9).ae_setup(1).iv_setup(5).warn_or_error := null;
3434 g_template_obj(9).ae_setup(1).iv_setup(5).balance_name := null;
3435 g_template_obj(9).ae_setup(1).iv_setup(5).exclusion_tag := null;
3436
3437 g_template_obj(9).ae_setup(1).bf_setup(1).balance_name := 'Advance for Earnings';
3438 g_template_obj(9).ae_setup(1).bf_setup(1).iv_name := 'Advance Amount';
3439 g_template_obj(9).ae_setup(1).bf_setup(1).scale := 1;
3440 g_template_obj(9).ae_setup(1).bf_setup(1).exclusion_tag := null;
3441
3442 g_template_obj(9).ae_setup(1).bf_setup(2).balance_name := 'Outstanding Advance for Earnings';
3443 g_template_obj(9).ae_setup(1).bf_setup(2).iv_name := 'Advance Amount';
3444 g_template_obj(9).ae_setup(1).bf_setup(2).scale := 1;
3445 g_template_obj(9).ae_setup(1).bf_setup(2).exclusion_tag := null;
3446
3447 g_template_obj(9).ae_setup(1).uf_setup.formula_name := '_LTC_ADV_CALC';
3448 g_template_obj(9).ae_setup(1).uf_setup.status_rule_id := null;
3449 g_template_obj(9).ae_setup(1).uf_setup.description := 'Advance Calculations for Earnings';
3450
3451
3452 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).result_name := 'PAYABLE_VALUE';
3453 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).result_rule_type := 'D';
3454 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
3455 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).element_name := null;
3456 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).severity_level := null;
3457 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(1).exclusion_tag := null;
3458
3459 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).result_name := 'EXCESS_ADVANCE';
3460 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).result_rule_type := 'I';
3461 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).input_value_name := 'Excess Advance';
3462 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).element_name := ' Excess Advance';
3463 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).severity_level := null;
3464 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(2).exclusion_tag := null;
3465
3466 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).result_name := 'COMPONENT_NAME';
3467 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).result_rule_type := 'I';
3468 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).input_value_name := 'Component Name';
3469 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).element_name := ' Excess Advance';
3470 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).severity_level := null;
3471 g_template_obj(9).ae_setup(1).uf_setup.frs_setup(3).exclusion_tag := null;
3472
3473
3474 g_template_obj(9).ae_setup(2).element_name := ' Adjust';
3475 g_template_obj(9).ae_setup(2).classification := 'Earnings';
3476 g_template_obj(9).ae_setup(2).exclusion_tag := 'ADVANCE';
3477 g_template_obj(9).ae_setup(2).priority := 14000;
3478
3479 g_template_obj(9).ae_setup(2).iv_setup(1).input_value_name := 'Pay Value';
3480 g_template_obj(9).ae_setup(2).iv_setup(1).uom := 'M';
3481 g_template_obj(9).ae_setup(2).iv_setup(1).mandatory_flag := 'X';
3482 g_template_obj(9).ae_setup(2).iv_setup(1).lookup_type := null;
3483 g_template_obj(9).ae_setup(2).iv_setup(1).default_value := null;
3484 g_template_obj(9).ae_setup(2).iv_setup(1).def_value_column := null;
3485 g_template_obj(9).ae_setup(2).iv_setup(1).min_value := null;
3486 g_template_obj(9).ae_setup(2).iv_setup(1).warn_or_error := null;
3490 g_template_obj(9).ae_setup(2).iv_setup(2).input_value_name := 'Component Name';
3487 g_template_obj(9).ae_setup(2).iv_setup(1).balance_name := null;
3488 g_template_obj(9).ae_setup(2).iv_setup(1).exclusion_tag := null;
3489
3491 g_template_obj(9).ae_setup(2).iv_setup(2).uom := 'C';
3492 g_template_obj(9).ae_setup(2).iv_setup(2).mandatory_flag := 'X';
3493 g_template_obj(9).ae_setup(2).iv_setup(2).lookup_type := null;
3494 g_template_obj(9).ae_setup(2).iv_setup(2).default_value := 'Leave Travel Concession';
3495 g_template_obj(9).ae_setup(2).iv_setup(2).def_value_column := null;
3496 g_template_obj(9).ae_setup(2).iv_setup(2).min_value := null;
3497 g_template_obj(9).ae_setup(2).iv_setup(2).warn_or_error := null;
3498 g_template_obj(9).ae_setup(2).iv_setup(2).balance_name := null;
3499 g_template_obj(9).ae_setup(2).iv_setup(2).exclusion_tag := null;
3500
3501 g_template_obj(9).ae_setup(2).bf_setup(1).balance_name := 'Outstanding Advance for Earnings';
3502 g_template_obj(9).ae_setup(2).bf_setup(1).iv_name := 'Pay Value';
3503 g_template_obj(9).ae_setup(2).bf_setup(1).scale := -1;
3504 g_template_obj(9).ae_setup(2).bf_setup(1).exclusion_tag := null;
3505
3506 g_template_obj(9).ae_setup(3).element_name := ' Recover';
3507 g_template_obj(9).ae_setup(3).classification := 'Voluntary Deductions';
3508 g_template_obj(9).ae_setup(3).exclusion_tag := 'ADVANCE';
3509 g_template_obj(9).ae_setup(3).priority := 36000;
3510
3511 g_template_obj(9).ae_setup(3).iv_setup(1).input_value_name := 'Pay Value';
3512 g_template_obj(9).ae_setup(3).iv_setup(1).uom := 'M';
3513 g_template_obj(9).ae_setup(3).iv_setup(1).mandatory_flag := 'X';
3514 g_template_obj(9).ae_setup(3).iv_setup(1).lookup_type := null;
3515 g_template_obj(9).ae_setup(3).iv_setup(1).default_value := null;
3516 g_template_obj(9).ae_setup(3).iv_setup(1).def_value_column := null;
3517 g_template_obj(9).ae_setup(3).iv_setup(1).min_value := null;
3518 g_template_obj(9).ae_setup(3).iv_setup(1).warn_or_error := null;
3519 g_template_obj(9).ae_setup(3).iv_setup(1).balance_name := null;
3520 g_template_obj(9).ae_setup(3).iv_setup(1).exclusion_tag := null;
3521
3522 g_template_obj(9).ae_setup(3).iv_setup(2).input_value_name := 'Component Name';
3523 g_template_obj(9).ae_setup(3).iv_setup(2).uom := 'C';
3524 g_template_obj(9).ae_setup(3).iv_setup(2).mandatory_flag := 'X';
3525 g_template_obj(9).ae_setup(3).iv_setup(2).lookup_type := null;
3526 g_template_obj(9).ae_setup(3).iv_setup(2).default_value := 'Leave Travel Concession';
3527 g_template_obj(9).ae_setup(3).iv_setup(2).def_value_column := null;
3528 g_template_obj(9).ae_setup(3).iv_setup(2).min_value := null;
3529 g_template_obj(9).ae_setup(3).iv_setup(2).warn_or_error := null;
3530 g_template_obj(9).ae_setup(3).iv_setup(2).balance_name := null;
3531 g_template_obj(9).ae_setup(3).iv_setup(2).exclusion_tag := null;
3532
3533 g_template_obj(9).ae_setup(3).iv_setup(3).input_value_name := 'Adjustment Amount';
3534 g_template_obj(9).ae_setup(3).iv_setup(3).uom := 'M';
3535 g_template_obj(9).ae_setup(3).iv_setup(3).mandatory_flag := 'X';
3536 g_template_obj(9).ae_setup(3).iv_setup(3).lookup_type := null;
3537 g_template_obj(9).ae_setup(3).iv_setup(3).default_value := null;
3538 g_template_obj(9).ae_setup(3).iv_setup(3).def_value_column := null;
3539 g_template_obj(9).ae_setup(3).iv_setup(3).min_value := null;
3540 g_template_obj(9).ae_setup(3).iv_setup(3).warn_or_error := null;
3541 g_template_obj(9).ae_setup(3).iv_setup(3).balance_name := 'Outstanding Advance for Earnings';
3542 g_template_obj(9).ae_setup(3).iv_setup(3).exclusion_tag := null;
3543
3544 g_template_obj(9).ae_setup(3).bf_setup(1).balance_name := 'Outstanding Advance for Earnings';
3545 g_template_obj(9).ae_setup(3).bf_setup(1).iv_name := 'Pay Value';
3546 g_template_obj(9).ae_setup(3).bf_setup(1).scale := -1;
3547 g_template_obj(9).ae_setup(3).bf_setup(1).exclusion_tag := null;
3548
3549
3550 g_template_obj(9).ae_setup(4).element_name := ' Excess Advance';
3551 g_template_obj(9).ae_setup(4).classification := 'Information';
3552 g_template_obj(9).ae_setup(4).exclusion_tag := 'ADVANCE';
3553 g_template_obj(9).ae_setup(4).priority := 12000;
3554
3555 g_template_obj(9).ae_setup(4).iv_setup(1).input_value_name := 'Excess Advance';
3556 g_template_obj(9).ae_setup(4).iv_setup(1).uom := 'C';
3557 g_template_obj(9).ae_setup(4).iv_setup(1).mandatory_flag := 'X';
3558 g_template_obj(9).ae_setup(4).iv_setup(1).lookup_type := 'IN_ADVANCE_OPTIONS';
3559 g_template_obj(9).ae_setup(4).iv_setup(1).default_value := 'PENDING';
3560 g_template_obj(9).ae_setup(4).iv_setup(1).def_value_column := null;
3561 g_template_obj(9).ae_setup(4).iv_setup(1).min_value := null;
3562 g_template_obj(9).ae_setup(4).iv_setup(1).warn_or_error := null;
3563 g_template_obj(9).ae_setup(4).iv_setup(1).balance_name := null;
3564 g_template_obj(9).ae_setup(4).iv_setup(1).exclusion_tag := null;
3565
3566 g_template_obj(9).ae_setup(4).iv_setup(2).input_value_name := 'Component Name';
3567 g_template_obj(9).ae_setup(4).iv_setup(2).uom := 'C';
3568 g_template_obj(9).ae_setup(4).iv_setup(2).mandatory_flag := 'X';
3569 g_template_obj(9).ae_setup(4).iv_setup(2).lookup_type := null;
3570 g_template_obj(9).ae_setup(4).iv_setup(2).default_value := 'Leave Travel Concession';
3574 g_template_obj(9).ae_setup(4).iv_setup(2).balance_name := null;
3571 g_template_obj(9).ae_setup(4).iv_setup(2).def_value_column := null;
3572 g_template_obj(9).ae_setup(4).iv_setup(2).min_value := null;
3573 g_template_obj(9).ae_setup(4).iv_setup(2).warn_or_error := null;
3575 g_template_obj(9).ae_setup(4).iv_setup(2).exclusion_tag := null;
3576
3577 g_template_obj(9).ae_setup(4).uf_setup.formula_name := '_LTC_EXC_ADV';
3578 g_template_obj(9).ae_setup(4).uf_setup.status_rule_id := null;
3579 g_template_obj(9).ae_setup(4).uf_setup.description := 'Excess Advance Calculations for Actual allowances';
3580
3581 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).result_name := 'ADJUSTMENT_AMT';
3582 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).result_rule_type := 'I';
3583 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).input_value_name := 'Adjustment Amount';
3584 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).element_name := ' Recover';
3585 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).severity_level := null;
3586 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(1).exclusion_tag := null;
3587
3588
3589 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).result_name := 'RECOVERED_ADVANCE';
3590 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).result_rule_type := 'I';
3591 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).input_value_name := 'Pay Value';
3592 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).element_name := ' Recover';
3593 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).severity_level := null;
3594 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(2).exclusion_tag := null;
3595
3596 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).result_name := 'SALARY_SEC171';
3597 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).result_rule_type := 'I';
3598 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).input_value_name := 'Pay Value';
3599 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).element_name := ' Adjust';
3600 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).severity_level := null;
3601 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(3).exclusion_tag := null;
3602
3603 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).result_name := 'COMPONENT_NAME_PAY';
3604 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).result_rule_type := 'I';
3605 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).input_value_name := 'Component Name';
3606 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).element_name := ' Adjust';
3607 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).severity_level := null;
3608 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(4).exclusion_tag := null;
3609
3610 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).result_name := 'COMPONENT_NAME_REC';
3611 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).result_rule_type := 'I';
3612 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).input_value_name := 'Component Name';
3613 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).element_name := ' Recover';
3614 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).severity_level := null;
3615 g_template_obj(9).ae_setup(4).uf_setup.frs_setup(5).exclusion_tag := null;
3616 ----------------------------------------------------------------
3617 -- Add. Element Setup for Leave Travel Concession Template ends
3618 ----------------------------------------------------------------
3619
3620 ----------------------------------------------------------------
3621 -- TEMPLATE FOR LEAVE TRAVEL CONCESSION ENDS
3622 ----------------------------------------------------------------
3623 ----------------------------------------------------------------
3624 -- TEMPLATE FOR EARNINGS STARTS
3625 ----------------------------------------------------------------
3626 pay_in_utils.set_location(g_debug, l_procedure,120);
3627 g_template_obj(10).template_name := 'Earnings';
3628 g_template_obj(10).category := 'Earnings';
3629 g_template_obj(10).priority := 9000;
3630
3631 ----------------------------------------------------------------
3632 -- Exclusion Rules for Earnings Template start
3633 ----------------------------------------------------------------
3634 g_template_obj(10).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION1';
3635 g_template_obj(10).er_setup(1).value := 'N';
3636 g_template_obj(10).er_setup(1).descr := 'Exclusion rule for Projections.';
3637 g_template_obj(10).er_setup(1).tag := 'PROJECT';
3638 g_template_obj(10).er_setup(1).rule_id := null;
3639
3640 g_template_obj(10).er_setup(2).ff_column := 'CONFIGURATION_INFORMATION2';
3641 g_template_obj(10).er_setup(2).value := 'N';
3642 g_template_obj(10).er_setup(2).descr := 'Exclusion rule for ESI Eligibility.';
3643 g_template_obj(10).er_setup(2).tag := 'ESIELIG';
3644 g_template_obj(10).er_setup(2).rule_id := null;
3645
3646 g_template_obj(10).er_setup(3).ff_column := 'CONFIGURATION_INFORMATION3';
3647 g_template_obj(10).er_setup(3).value := 'N';
3648 g_template_obj(10).er_setup(3).descr := 'Exclusion rule for ESI Computation.';
3649 g_template_obj(10).er_setup(3).tag := 'ESICOMP';
3650 g_template_obj(10).er_setup(3).rule_id := null;
3651
3652 g_template_obj(10).er_setup(4).ff_column := 'CONFIGURATION_INFORMATION4';
3653 g_template_obj(10).er_setup(4).value := 'N';
3654 g_template_obj(10).er_setup(4).descr := 'Exclusion rule for PF Computation.';
3655 g_template_obj(10).er_setup(4).tag := 'SPFCOMP';
3656 g_template_obj(10).er_setup(4).rule_id := null;
3657
3661 g_template_obj(10).er_setup(5).tag := 'SPTCOMP';
3658 g_template_obj(10).er_setup(5).ff_column := 'CONFIGURATION_INFORMATION5';
3659 g_template_obj(10).er_setup(5).value := 'N';
3660 g_template_obj(10).er_setup(5).descr := 'Exclusion rule for PT Computation.';
3662 g_template_obj(10).er_setup(5).rule_id := null;
3663
3664 g_template_obj(10).er_setup(6).ff_column := 'CONFIGURATION_INFORMATION6';
3665 g_template_obj(10).er_setup(6).value := 'N';
3666 g_template_obj(10).er_setup(6).descr := 'Exclusion rule for HRA and Related Exemptions.';
3667 g_template_obj(10).er_setup(6).tag := 'HRACOMP';
3668 g_template_obj(10).er_setup(6).rule_id := null;
3669
3670 g_template_obj(10).er_setup(7).ff_column := 'CONFIGURATION_INFORMATION7';
3671 g_template_obj(10).er_setup(7).value := 'N';
3672 g_template_obj(10).er_setup(7).descr := 'Exclusion rule for Company Accommodation.';
3673 g_template_obj(10).er_setup(7).tag := 'CMACOMP';
3674 g_template_obj(10).er_setup(7).rule_id := null;
3675
3676 g_template_obj(10).er_setup(8).ff_column := 'CONFIGURATION_INFORMATION8';
3677 g_template_obj(10).er_setup(8).value := 'N';
3678 g_template_obj(10).er_setup(8).descr := 'Exclusion rule for Notice Pay Base.';
3679 g_template_obj(10).er_setup(8).tag := 'TNPCOMP';
3680 g_template_obj(10).er_setup(8).rule_id := null;
3681
3682 g_template_obj(10).er_setup(9).ff_column := 'CONFIGURATION_INFORMATION9';
3683 g_template_obj(10).er_setup(9).value := 'N';
3684 g_template_obj(10).er_setup(9).descr := 'Exclusion rule for Leave Encashment Base.';
3685 g_template_obj(10).er_setup(9).tag := 'TLECOMP';
3686 g_template_obj(10).er_setup(9).rule_id := null;
3687
3688 g_template_obj(10).er_setup(10).ff_column := 'CONFIGURATION_INFORMATION10';
3689 g_template_obj(10).er_setup(10).value := 'N';
3690 g_template_obj(10).er_setup(10).descr := 'Exclusion rule for Gratuity Eligibility.';
3691 g_template_obj(10).er_setup(10).tag := 'TGPCOMP';
3692 g_template_obj(10).er_setup(10).rule_id := null;
3693
3694 g_template_obj(10).er_setup(11).ff_column := 'CONFIGURATION_INFORMATION11';
3695 g_template_obj(10).er_setup(11).value := 'N';
3696 g_template_obj(10).er_setup(11).descr := 'Exclusion rule for Pension Computation Salary.';
3697 g_template_obj(10).er_setup(11).tag := 'TPCSCOMP';
3698 g_template_obj(10).er_setup(11).rule_id := null;
3699
3700 g_template_obj(10).er_setup(12).ff_column := 'CONFIGURATION_INFORMATION12';
3701 g_template_obj(10).er_setup(12).value := 'N';
3702 g_template_obj(10).er_setup(12).descr := 'Exclusion rule for Pension Exemption Salary.';
3703 g_template_obj(10).er_setup(12).tag := 'TPESCOMP';
3704 g_template_obj(10).er_setup(12).rule_id := null;
3705
3706 g_template_obj(10).er_setup(13).ff_column := 'CONFIGURATION_INFORMATION13';
3707 g_template_obj(10).er_setup(13).value := 'N';
3708 g_template_obj(10).er_setup(13).descr := 'Exclusion rule for PT Projection.';
3709 g_template_obj(10).er_setup(13).tag := 'SPTPROJ';
3710 g_template_obj(10).er_setup(13).rule_id := null;
3711
3712 ----------------------------------------------------------------
3713 -- Exclusion Rules for Earnings Template end
3714 ----------------------------------------------------------------
3715
3716 ----------------------------------------------------------------
3717 -- Input Values for Earnings Template start
3718 ----------------------------------------------------------------
3719 g_template_obj(10).iv_setup(1).input_value_name := 'Pay Value';
3720 g_template_obj(10).iv_setup(1).uom := 'M';
3721 g_template_obj(10).iv_setup(1).mandatory_flag := 'N';
3722 g_template_obj(10).iv_setup(1).lookup_type := null;
3723 g_template_obj(10).iv_setup(1).default_value := null;
3724 g_template_obj(10).iv_setup(1).def_value_column := null;
3725 g_template_obj(10).iv_setup(1).min_value := null;
3726 g_template_obj(10).iv_setup(1).warn_or_error := null;
3727 g_template_obj(10).iv_setup(1).balance_name := null;
3728 g_template_obj(10).iv_setup(1).exclusion_tag := null;
3729
3730 g_template_obj(10).iv_setup(2).input_value_name := 'Standard Value';
3731 g_template_obj(10).iv_setup(2).uom := 'M';
3732 g_template_obj(10).iv_setup(2).mandatory_flag := 'N';
3733 g_template_obj(10).iv_setup(2).lookup_type := null;
3734 g_template_obj(10).iv_setup(2).default_value := null;
3735 g_template_obj(10).iv_setup(2).def_value_column := null;
3736 g_template_obj(10).iv_setup(2).min_value := null;
3737 g_template_obj(10).iv_setup(2).warn_or_error := null;
3738 g_template_obj(10).iv_setup(2).balance_name := null;
3739 g_template_obj(10).iv_setup(2).exclusion_tag := 'PROJECT';
3740
3741 ----------------------------------------------------------------
3742 -- Input Values for Earnings Template end
3743 ----------------------------------------------------------------
3744
3745 ----------------------------------------------------------------
3746 -- Balance Feeds for Earnings Template start
3747 ----------------------------------------------------------------
3748 g_template_obj(10).bf_setup(1).balance_name := 'ESI Eligible Salary';
3749 g_template_obj(10).bf_setup(1).iv_name := 'Standard Value';
3750 g_template_obj(10).bf_setup(1).scale := 1;
3751 g_template_obj(10).bf_setup(1).exclusion_tag := 'ESIELIG';
3752
3753 g_template_obj(10).bf_setup(2).balance_name := 'ESI Computation Salary';
3757
3754 g_template_obj(10).bf_setup(2).iv_name := 'Pay Value';
3755 g_template_obj(10).bf_setup(2).scale := 1;
3756 g_template_obj(10).bf_setup(2).exclusion_tag := 'ESICOMP';
3758 g_template_obj(10).bf_setup(3).balance_name := 'Earnings for Projection';
3759 g_template_obj(10).bf_setup(3).iv_name := 'Standard Value';
3760 g_template_obj(10).bf_setup(3).scale := 1;
3761 g_template_obj(10).bf_setup(3).exclusion_tag := 'PROJECT';
3762
3763 g_template_obj(10).bf_setup(4).balance_name := 'PF Computation Salary';
3764 g_template_obj(10).bf_setup(4).iv_name := 'Pay Value';
3765 g_template_obj(10).bf_setup(4).scale := 1;
3766 g_template_obj(10).bf_setup(4).exclusion_tag := 'SPFCOMP';
3767
3768 g_template_obj(10).bf_setup(5).balance_name := 'Professional Tax Salary';
3769 g_template_obj(10).bf_setup(5).iv_name := 'Pay Value';
3770 g_template_obj(10).bf_setup(5).scale := 1;
3771 g_template_obj(10).bf_setup(5).exclusion_tag := 'SPTCOMP';
3772
3773 g_template_obj(10).bf_setup(6).balance_name := 'Salary for HRA and Related Exemptions';
3774 g_template_obj(10).bf_setup(6).iv_name := 'Pay Value';
3775 g_template_obj(10).bf_setup(6).scale := 1;
3776 g_template_obj(10).bf_setup(6).exclusion_tag := 'HRACOMP';
3777
3778 g_template_obj(10).bf_setup(7).balance_name := 'Salary for Company Accommodation';
3779 g_template_obj(10).bf_setup(7).iv_name := 'Pay Value';
3780 g_template_obj(10).bf_setup(7).scale := 1;
3781 g_template_obj(10).bf_setup(7).exclusion_tag := 'CMACOMP';
3782
3783 g_template_obj(10).bf_setup(8).balance_name := 'Salary for Notice Period';
3784 g_template_obj(10).bf_setup(8).iv_name := 'Standard Value';
3785 g_template_obj(10).bf_setup(8).scale := 1;
3786 g_template_obj(10).bf_setup(8).exclusion_tag := 'TNPCOMP';
3787
3788 g_template_obj(10).bf_setup(9).balance_name := 'Salary for Leave Encashment';
3789 g_template_obj(10).bf_setup(9).iv_name := 'Standard Value';
3790 g_template_obj(10).bf_setup(9).scale := 1;
3791 g_template_obj(10).bf_setup(9).exclusion_tag := 'TLECOMP';
3792
3793 g_template_obj(10).bf_setup(10).balance_name := 'Gratuity Eligible Salary';
3794 g_template_obj(10).bf_setup(10).iv_name := 'Standard Value';
3795 g_template_obj(10).bf_setup(10).scale := 1;
3796 g_template_obj(10).bf_setup(10).exclusion_tag := 'TGPCOMP';
3797
3798 g_template_obj(10).bf_setup(11).balance_name := 'PF Computation Standard Salary';
3799 g_template_obj(10).bf_setup(11).iv_name := 'Standard Value';
3800 g_template_obj(10).bf_setup(11).scale := 1;
3801 g_template_obj(10).bf_setup(11).exclusion_tag := 'SPFCOMP';
3802
3803 g_template_obj(10).bf_setup(12).balance_name := 'Standard Salary for HRA and Related Exemptions';
3804 g_template_obj(10).bf_setup(12).iv_name := 'Standard Value';
3805 g_template_obj(10).bf_setup(12).scale := 1;
3806 g_template_obj(10).bf_setup(12).exclusion_tag := 'HRACOMP';
3807
3808 g_template_obj(10).bf_setup(13).balance_name := 'Standard Salary for Company Accommodation';
3809 g_template_obj(10).bf_setup(13).iv_name := 'Standard Value';
3810 g_template_obj(10).bf_setup(13).scale := 1;
3811 g_template_obj(10).bf_setup(13).exclusion_tag := 'CMACOMP';
3812
3813 g_template_obj(10).bf_setup(14).balance_name := 'Pension Computation Salary';
3814 g_template_obj(10).bf_setup(14).iv_name := 'Pay Value';
3815 g_template_obj(10).bf_setup(14).scale := 1;
3816 g_template_obj(10).bf_setup(14).exclusion_tag := 'TPCSCOMP';
3817
3818 g_template_obj(10).bf_setup(15).balance_name := 'Pension Computation Standard Salary';
3819 g_template_obj(10).bf_setup(15).iv_name := 'Standard Value';
3820 g_template_obj(10).bf_setup(15).scale := 1;
3821 g_template_obj(10).bf_setup(15).exclusion_tag := 'TPCSCOMP';
3822
3823 g_template_obj(10).bf_setup(16).balance_name := 'Pension Exemption Salary';
3824 g_template_obj(10).bf_setup(16).iv_name := 'Pay Value';
3825 g_template_obj(10).bf_setup(16).scale := 1;
3826 g_template_obj(10).bf_setup(16).exclusion_tag := 'TPESCOMP';
3827
3828 g_template_obj(10).bf_setup(17).balance_name := 'Pension Exemption Standard Salary';
3829 g_template_obj(10).bf_setup(17).iv_name := 'Standard Value';
3830 g_template_obj(10).bf_setup(17).scale := 1;
3831 g_template_obj(10).bf_setup(17).exclusion_tag := 'TPESCOMP';
3832
3833 g_template_obj(10).bf_setup(18).balance_name := 'Professional Tax Salary for Projection';
3834 g_template_obj(10).bf_setup(18).iv_name := 'Standard Value';
3835 g_template_obj(10).bf_setup(18).scale := 1;
3836 g_template_obj(10).bf_setup(18).exclusion_tag := 'SPTPROJ';
3837
3838
3839 ----------------------------------------------------------------
3840 -- Balance Feeds for Earnings Template end
3841 ----------------------------------------------------------------
3842
3843 ----------------------------------------------------------------
3844 -- Formula Setup for Earnings Template starts
3845 ----------------------------------------------------------------
3846 ----------------------------------------------------------------
3847 -- Formula Setup for Earnings Template ends
3848 ----------------------------------------------------------------
3849
3850 ----------------------------------------------------------------
3854 -- Add. Element Setup for Earnings Template ends
3851 -- Add. Element Setup for Earnings Template starts
3852 ----------------------------------------------------------------
3853 ----------------------------------------------------------------
3855 ----------------------------------------------------------------
3856
3857 ----------------------------------------------------------------
3858 -- TEMPLATE FOR EARNINGS ENDS
3859 ----------------------------------------------------------------
3860
3861 -------------------------------------------------------------
3862 ---- TEMPLATE FOR TRANSFER OF COMPANY ASSETS STARTS
3863 -------------------------------------------------------------
3864
3865 pay_in_utils.set_location(g_debug, l_procedure, 130 );
3866 g_template_obj(11).template_name := 'Transfer of Company Assets';
3867 g_template_obj(11).category := 'Perquisites';
3868 g_template_obj(11).priority := 17000;
3869
3870
3871 --------------------------------------------------------------
3872 --- INPUT VALUES FOR TRANSFER OF COMPANY ASSETS STARTS
3873 --------------------------------------------------------------
3874
3875 g_template_obj(11).iv_setup(1).input_value_name := 'Pay Value';
3876 g_template_obj(11).iv_setup(1).uom := 'M';
3877 g_template_obj(11).iv_setup(1).mandatory_flag := 'X';
3878 g_template_obj(11).iv_setup(1).lookup_type := null;
3879 g_template_obj(11).iv_setup(1).default_value := null;
3880 g_template_obj(11).iv_setup(1).def_value_column := null;
3881 g_template_obj(11).iv_setup(1).min_value := null;
3882 g_template_obj(11).iv_setup(1).warn_or_error := null;
3883 g_template_obj(11).iv_setup(1).balance_name := null;
3884 g_template_obj(11).iv_setup(1).exclusion_tag := null;
3885
3886 g_template_obj(11).iv_setup(2).input_value_name := 'Asset Category';
3887 g_template_obj(11).iv_setup(2).uom := 'C';
3888 g_template_obj(11).iv_setup(2).mandatory_flag := 'Y';
3889 g_template_obj(11).iv_setup(2).lookup_type := 'IN_ASSET_TYPE_TRANSFER';
3890 g_template_obj(11).iv_setup(2).default_value := null;
3891 g_template_obj(11).iv_setup(2).def_value_column := null;
3892 g_template_obj(11).iv_setup(2).min_value := null;
3893 g_template_obj(11).iv_setup(2).warn_or_error := null;
3894 g_template_obj(11).iv_setup(2).balance_name := null;
3895 g_template_obj(11).iv_setup(2).exclusion_tag := null;
3896
3897 g_template_obj(11).iv_setup(3).input_value_name := 'Asset Description';
3898 g_template_obj(11).iv_setup(3).uom := 'C';
3899 g_template_obj(11).iv_setup(3).mandatory_flag := 'N';
3900 g_template_obj(11).iv_setup(3).lookup_type := null;
3901 g_template_obj(11).iv_setup(3).default_value := null;
3902 g_template_obj(11).iv_setup(3).def_value_column := null;
3903 g_template_obj(11).iv_setup(3).min_value := null;
3904 g_template_obj(11).iv_setup(3).warn_or_error := null;
3905 g_template_obj(11).iv_setup(3).balance_name := null;
3906 g_template_obj(11).iv_setup(3).exclusion_tag := null;
3907
3908 g_template_obj(11).iv_setup(4).input_value_name := 'Original Cost';
3909 g_template_obj(11).iv_setup(4).uom := 'M';
3910 g_template_obj(11).iv_setup(4).mandatory_flag := 'Y';
3911 g_template_obj(11).iv_setup(4).lookup_type := null;
3912 g_template_obj(11).iv_setup(4).default_value := null;
3913 g_template_obj(11).iv_setup(4).def_value_column := null;
3914 g_template_obj(11).iv_setup(4).min_value := 0;
3915 g_template_obj(11).iv_setup(4).warn_or_error := 'E';
3916 g_template_obj(11).iv_setup(4).balance_name := null;
3917 g_template_obj(11).iv_setup(4).exclusion_tag := null;
3918
3919 g_template_obj(11).iv_setup(5).input_value_name := 'Date of Purchase';
3920 g_template_obj(11).iv_setup(5).uom := 'D';
3921 g_template_obj(11).iv_setup(5).mandatory_flag := 'Y';
3922 g_template_obj(11).iv_setup(5).lookup_type := null;
3923 g_template_obj(11).iv_setup(5).default_value := null;
3924 g_template_obj(11).iv_setup(5).def_value_column := null;
3925 g_template_obj(11).iv_setup(5).min_value := null;
3926 g_template_obj(11).iv_setup(5).warn_or_error := null;
3927 g_template_obj(11).iv_setup(5).balance_name := null;
3928 g_template_obj(11).iv_setup(5).exclusion_tag := null;
3929
3930 g_template_obj(11).iv_setup(6).input_value_name := 'Employee Contribution';
3931 g_template_obj(11).iv_setup(6).uom := 'M';
3932 g_template_obj(11).iv_setup(6).mandatory_flag := 'N';
3933 g_template_obj(11).iv_setup(6).lookup_type := null;
3934 g_template_obj(11).iv_setup(6).default_value := null;
3935 g_template_obj(11).iv_setup(6).def_value_column := null;
3936 g_template_obj(11).iv_setup(6).min_value := 0;
3937 g_template_obj(11).iv_setup(6).warn_or_error := 'E';
3938 g_template_obj(11).iv_setup(6).balance_name :='Perquisite Employee Contribution';
3939 g_template_obj(11).iv_setup(6).exclusion_tag := null;
3940
3941 g_template_obj(11).iv_setup(7).input_value_name := 'Component Name';
3942 g_template_obj(11).iv_setup(7).uom := 'C';
3943 g_template_obj(11).iv_setup(7).mandatory_flag := 'X';
3944 g_template_obj(11).iv_setup(7).lookup_type := null;
3945 g_template_obj(11).iv_setup(7).default_value := 'Transfer of Company Assets';
3946 g_template_obj(11).iv_setup(7).def_value_column := null;
3947 g_template_obj(11).iv_setup(7).min_value := null;
3948 g_template_obj(11).iv_setup(7).warn_or_error := null;
3949 g_template_obj(11).iv_setup(7).balance_name := null;
3950 g_template_obj(11).iv_setup(7).exclusion_tag := null;
3951
3952 g_template_obj(11).iv_setup(8).input_value_name := 'Employer Paid Tax';
3953 g_template_obj(11).iv_setup(8).uom := 'C';
3954 g_template_obj(11).iv_setup(8).mandatory_flag := 'Y';
3955 g_template_obj(11).iv_setup(8).lookup_type := 'YES_NO';
3956 g_template_obj(11).iv_setup(8).default_value := 'N';
3957 g_template_obj(11).iv_setup(8).def_value_column := null;
3958 g_template_obj(11).iv_setup(8).min_value := null;
3959 g_template_obj(11).iv_setup(8).warn_or_error := null;
3960 g_template_obj(11).iv_setup(8).balance_name := null;
3961 g_template_obj(11).iv_setup(8).exclusion_tag := null;
3962
3963 g_template_obj(11).iv_setup(9).input_value_name := 'Employer Taxable Amount';
3964 g_template_obj(11).iv_setup(9).uom := 'M';
3965 g_template_obj(11).iv_setup(9).mandatory_flag := 'X';
3966 g_template_obj(11).iv_setup(9).lookup_type := null;
3967 g_template_obj(11).iv_setup(9).default_value := null;
3968 g_template_obj(11).iv_setup(9).def_value_column := null;
3969 g_template_obj(11).iv_setup(9).min_value := 0;
3970 g_template_obj(11).iv_setup(9).warn_or_error := 'E';
3971 g_template_obj(11).iv_setup(9).balance_name := null;
3972 g_template_obj(11).iv_setup(9).exclusion_tag := null;
3973
3974 --------------------------------------------------------------
3975 --- INPUT VALUES FOR TRANSFER OF COMPANY ASSETS ENDS
3976 --------------------------------------------------------------
3977
3978
3979 --------------------------------------------------------------
3980 --- FORMULAE SET UP FOR TRANSFER OF COMPANY ASSETS STARTS
3981 --------------------------------------------------------------
3982 g_template_obj(11).sf_setup.formula_name := 'IN_TRANSFER_OF_ASSETS';
3983 g_template_obj(11).sf_setup.status_rule_id := null;
3984 g_template_obj(11).sf_setup.description := null;
3985
3986 g_template_obj(11).sf_setup.frs_setup(1).result_name := 'PERQUISITE_VALUE';
3987 g_template_obj(11).sf_setup.frs_setup(1).result_rule_type := 'D';
3988 g_template_obj(11).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
3989 g_template_obj(11).sf_setup.frs_setup(1).element_name := null;
3990 g_template_obj(11).sf_setup.frs_setup(1).severity_level := null;
3991 g_template_obj(11).sf_setup.frs_setup(1).exclusion_tag := null;
3992
3993 g_template_obj(11).sf_setup.frs_setup(2).result_name := 'EMPR_TAX';
3994 g_template_obj(11).sf_setup.frs_setup(2).result_rule_type := 'D';
3995 g_template_obj(11).sf_setup.frs_setup(2).input_value_name := 'Employer Taxable Amount';
3996 g_template_obj(11).sf_setup.frs_setup(2).element_name := null;
3997 g_template_obj(11).sf_setup.frs_setup(2).severity_level := null;
3998 g_template_obj(11).sf_setup.frs_setup(2).exclusion_tag := null;
3999
4000 g_template_obj(11).sf_setup.frs_setup(3).result_name := 'ER_MP_TAXABLE_AMOUNT';
4001 g_template_obj(11).sf_setup.frs_setup(3).result_rule_type := 'I';
4002 g_template_obj(11).sf_setup.frs_setup(3).input_value_name := 'ER MP Taxable Amount';
4003 g_template_obj(11).sf_setup.frs_setup(3).element_name := 'Employer Tax Projection Element';
4004 g_template_obj(11).sf_setup.frs_setup(3).severity_level := null;
4005 g_template_obj(11).sf_setup.frs_setup(3).exclusion_tag := null;
4006
4007 g_template_obj(11).sf_setup.frs_setup(4).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
4008 g_template_obj(11).sf_setup.frs_setup(4).result_rule_type := 'I';
4009 g_template_obj(11).sf_setup.frs_setup(4).input_value_name := 'Projected ER MP Taxable Amt';
4010 g_template_obj(11).sf_setup.frs_setup(4).element_name := 'Employer Tax Projection Element';
4011 g_template_obj(11).sf_setup.frs_setup(4).severity_level := null;
4012 g_template_obj(11).sf_setup.frs_setup(4).exclusion_tag := null;
4013
4014 g_template_obj(11).sf_setup.frs_setup(5).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
4015 g_template_obj(11).sf_setup.frs_setup(5).result_rule_type := 'I';
4019 g_template_obj(11).sf_setup.frs_setup(5).exclusion_tag := null;
4016 g_template_obj(11).sf_setup.frs_setup(5).input_value_name := 'ER MP Salary to be Excluded';
4017 g_template_obj(11).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
4018 g_template_obj(11).sf_setup.frs_setup(5).severity_level := null;
4020
4021 g_template_obj(11).sf_setup.frs_setup(6).result_name := 'ER_NMP_TAXABLE_AMOUNT';
4022 g_template_obj(11).sf_setup.frs_setup(6).result_rule_type := 'I';
4023 g_template_obj(11).sf_setup.frs_setup(6).input_value_name := 'ER NMP Taxable Amount';
4024 g_template_obj(11).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
4025 g_template_obj(11).sf_setup.frs_setup(6).severity_level := null;
4026 g_template_obj(11).sf_setup.frs_setup(6).exclusion_tag := null;
4027
4028 g_template_obj(11).sf_setup.frs_setup(7).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
4029 g_template_obj(11).sf_setup.frs_setup(7).result_rule_type := 'I';
4030 g_template_obj(11).sf_setup.frs_setup(7).input_value_name := 'Projected ER NMP Taxable Amt';
4031 g_template_obj(11).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
4032 g_template_obj(11).sf_setup.frs_setup(7).severity_level := null;
4033 g_template_obj(11).sf_setup.frs_setup(7).exclusion_tag := null;
4034
4035 g_template_obj(11).sf_setup.frs_setup(8).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
4036 g_template_obj(11).sf_setup.frs_setup(8).result_rule_type := 'I';
4037 g_template_obj(11).sf_setup.frs_setup(8).input_value_name := 'ER NMP Salary to be Excluded';
4038 g_template_obj(11).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
4039 g_template_obj(11).sf_setup.frs_setup(8).severity_level := null;
4040 g_template_obj(11).sf_setup.frs_setup(8).exclusion_tag := null;
4041
4042
4043 g_template_obj(11).sf_setup.frs_setup(9).result_name := 'COMPONENT_NAME';
4044 g_template_obj(11).sf_setup.frs_setup(9).result_rule_type := 'I';
4045 g_template_obj(11).sf_setup.frs_setup(9).input_value_name := 'Component Name';
4046 g_template_obj(11).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
4047 g_template_obj(11).sf_setup.frs_setup(9).severity_level := null;
4048 g_template_obj(11).sf_setup.frs_setup(9).exclusion_tag := null;
4049
4050 g_template_obj(11).sf_setup.frs_setup(10).result_name := 'NON_REC_VALUE';
4051 g_template_obj(11).sf_setup.frs_setup(10).result_rule_type := 'I';
4052 g_template_obj(11).sf_setup.frs_setup(10).input_value_name := 'Non Rec Perquisite';
4053 g_template_obj(11).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
4054 g_template_obj(11).sf_setup.frs_setup(10).severity_level := null;
4055 g_template_obj(11).sf_setup.frs_setup(10).exclusion_tag := null;
4056 --------------------------------------------------------------
4057 --- FORMULAE SET UP FOR TRANSFER OF COMPANY ASSETS ENDS
4058 --------------------------------------------------------------
4059
4060
4061 -------------------------------------------------------------
4062 ---- TEMPLATE FOR TRANSFER OF COMPANY ASSETS ENDS
4063 -------------------------------------------------------------
4064
4065 ----------------------------------------------------------------
4066 -- TEMPLATE FOR Employer Charges STARTS
4067 ----------------------------------------------------------------
4068 pay_in_utils.set_location(g_debug, l_procedure,110);
4069 g_template_obj(12).template_name := 'Pension Fund 80CCD';
4070 g_template_obj(12).category := 'Employer Charges';
4071 g_template_obj(12).priority := 21000;
4072
4073 ----------------------------------------------------------------
4074 -- Exclusion Rules for Employer Charges Template start
4075 ----------------------------------------------------------------
4076 g_template_obj(12).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION1';
4077 g_template_obj(12).er_setup(1).value := 'N';
4078 g_template_obj(12).er_setup(1).descr := 'Exclusion rule for Projections.';
4079 g_template_obj(12).er_setup(1).tag := 'PROJECT';
4080 g_template_obj(12).er_setup(1).rule_id := null;
4081
4082 ----------------------------------------------------------------
4083 -- Exclusion Rules for Employer Charges Template end
4084 ----------------------------------------------------------------
4085
4086 ----------------------------------------------------------------
4087 -- Input Values for Employer Charges Template start
4088 ----------------------------------------------------------------
4089 g_template_obj(12).iv_setup(1).input_value_name := 'Pay Value';
4090 g_template_obj(12).iv_setup(1).uom := 'M';
4091 g_template_obj(12).iv_setup(1).mandatory_flag := 'N';
4092 g_template_obj(12).iv_setup(1).lookup_type := null;
4093 g_template_obj(12).iv_setup(1).default_value := null;
4094 g_template_obj(12).iv_setup(1).def_value_column := null;
4095 g_template_obj(12).iv_setup(1).min_value := null;
4096 g_template_obj(12).iv_setup(1).warn_or_error := null;
4097 g_template_obj(12).iv_setup(1).balance_name := null;
4098 g_template_obj(12).iv_setup(1).exclusion_tag := null;
4099
4100 g_template_obj(12).iv_setup(2).input_value_name := 'Standard Value';
4101 g_template_obj(12).iv_setup(2).uom := 'M';
4102 g_template_obj(12).iv_setup(2).mandatory_flag := 'N';
4103 g_template_obj(12).iv_setup(2).lookup_type := null;
4104 g_template_obj(12).iv_setup(2).default_value := null;
4105 g_template_obj(12).iv_setup(2).def_value_column := null;
4106 g_template_obj(12).iv_setup(2).min_value := null;
4107 g_template_obj(12).iv_setup(2).warn_or_error := null;
4108 g_template_obj(12).iv_setup(2).balance_name := null;
4112 g_template_obj(12).iv_setup(3).uom := 'N';
4109 g_template_obj(12).iv_setup(2).exclusion_tag := 'PROJECT';
4110
4111 g_template_obj(12).iv_setup(3).input_value_name := 'Contribution Percentage';
4113 g_template_obj(12).iv_setup(3).mandatory_flag := 'N';
4114 g_template_obj(12).iv_setup(3).lookup_type := null;
4115 g_template_obj(12).iv_setup(3).default_value := null;
4116 g_template_obj(12).iv_setup(3).def_value_column := null;
4117 g_template_obj(12).iv_setup(3).min_value := null;
4118 g_template_obj(12).iv_setup(3).warn_or_error := null;
4119 g_template_obj(12).iv_setup(3).balance_name := null;
4120 g_template_obj(12).iv_setup(3).exclusion_tag := null;
4121
4122 ----------------------------------------------------------------
4123 -- Input Values for Employer Charges Template end
4124 ----------------------------------------------------------------
4125
4126 ----------------------------------------------------------------
4127 -- Balance Feeds for Employer Charges Template start
4128 ----------------------------------------------------------------
4129 g_template_obj(12).bf_setup(1).balance_name := 'Employer Pension Contribution';
4130 g_template_obj(12).bf_setup(1).iv_name := 'Pay Value';
4131 g_template_obj(12).bf_setup(1).scale := 1;
4132 g_template_obj(12).bf_setup(1).exclusion_tag := null;
4133
4134 g_template_obj(12).bf_setup(2).balance_name := 'Employer Standard Pension Contribution';
4135 g_template_obj(12).bf_setup(2).iv_name := 'Standard Value';
4136 g_template_obj(12).bf_setup(2).scale := 1;
4137 g_template_obj(12).bf_setup(2).exclusion_tag := 'PROJECT';
4138 ----------------------------------------------------------------
4139 -- Balance Feeds for Employer Charges Template end
4140 ----------------------------------------------------------------
4141
4142 ----------------------------------------------------------------
4143 -- Formula Setup for Employer Charges Template starts
4144 ----------------------------------------------------------------
4145 g_template_obj(12).uf_setup.formula_name := '_EC_CALC';
4146 g_template_obj(12).uf_setup.status_rule_id := null;
4147 g_template_obj(12).uf_setup.description := 'Formula for Employer Charges';
4148
4149 g_template_obj(12).uf_setup.frs_setup(1).result_name := 'EC_PAY_VALUE';
4150 g_template_obj(12).uf_setup.frs_setup(1).result_rule_type := 'D';
4151 g_template_obj(12).uf_setup.frs_setup(1).input_value_name := 'Pay Value';
4152 g_template_obj(12).uf_setup.frs_setup(1).element_name := null;
4153 g_template_obj(12).uf_setup.frs_setup(1).severity_level := null;
4154 g_template_obj(12).uf_setup.frs_setup(1).exclusion_tag := null;
4155
4156 g_template_obj(12).uf_setup.frs_setup(2).result_name := 'EC_STANDARD_VALUE';
4157 g_template_obj(12).uf_setup.frs_setup(2).result_rule_type := 'D';
4158 g_template_obj(12).uf_setup.frs_setup(2).input_value_name := 'Standard Value';
4159 g_template_obj(12).uf_setup.frs_setup(2).element_name := null;
4160 g_template_obj(12).uf_setup.frs_setup(2).severity_level := null;
4161 g_template_obj(12).uf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
4162 ----------------------------------------------------------------
4163 -- Formula Setup for Employer Charges Template ends
4164 ----------------------------------------------------------------
4165
4166 ----------------------------------------------------------------
4167 -- Add. Element Setup for Employer Charges Template starts
4168 ----------------------------------------------------------------
4169 ----------------------------------------------------------------
4170 -- Add. Element Setup for Employer Charges Template ends
4171 ----------------------------------------------------------------
4172
4173 ----------------------------------------------------------------
4174 -- TEMPLATE FOR Employer Charges ENDS
4175 ----------------------------------------------------------------
4176
4177
4178 ----------------------------------------------------------------
4179 -- TEMPLATE FOR LUNCH PERQUISITE STARTS
4180 ----------------------------------------------------------------
4181 pay_in_utils.set_location(g_debug, l_procedure,50);
4182 g_template_obj(13).template_name := 'Lunch Perquisite';
4183 g_template_obj(13).category := 'Perquisites';
4184 g_template_obj(13).priority := 9000;
4185
4186 ----------------------------------------------------------------
4187 -- Exclusion Rules for LUNCH PERQUISITE Template start
4188 ----------------------------------------------------------------
4189 g_template_obj(13).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
4190 g_template_obj(13).er_setup(1).value := 'N';
4191 g_template_obj(13).er_setup(1).descr := 'Exclusion rule for Projections.';
4192 g_template_obj(13).er_setup(1).tag := 'PROJECT';
4193 g_template_obj(13).er_setup(1).rule_id := null;
4194
4195 ----------------------------------------------------------------
4196 -- Exclusion Rules for LUNCH PERQUISITE Template end
4197 ----------------------------------------------------------------
4198
4199 ----------------------------------------------------------------
4200 -- Input Values for LUNCH PERQUISITE Template start
4201 ----------------------------------------------------------------
4202 g_template_obj(13).iv_setup(1).input_value_name := 'Pay Value';
4203 g_template_obj(13).iv_setup(1).uom := 'M';
4204 g_template_obj(13).iv_setup(1).mandatory_flag := 'X';
4205 g_template_obj(13).iv_setup(1).lookup_type := null;
4209 g_template_obj(13).iv_setup(1).warn_or_error := null;
4206 g_template_obj(13).iv_setup(1).default_value := null;
4207 g_template_obj(13).iv_setup(1).def_value_column := null;
4208 g_template_obj(13).iv_setup(1).min_value := null;
4210 g_template_obj(13).iv_setup(1).balance_name := null;
4211 g_template_obj(13).iv_setup(1).exclusion_tag := null;
4212
4213 g_template_obj(13).iv_setup(2).input_value_name := 'Component Name';
4214 g_template_obj(13).iv_setup(2).uom := 'C';
4215 g_template_obj(13).iv_setup(2).mandatory_flag := 'X';
4216 g_template_obj(13).iv_setup(2).lookup_type := null;
4217 g_template_obj(13).iv_setup(2).default_value := 'Lunch Perquisite';
4218 g_template_obj(13).iv_setup(2).def_value_column := null;
4219 g_template_obj(13).iv_setup(2).min_value := null;
4220 g_template_obj(13).iv_setup(2).warn_or_error := null;
4221 g_template_obj(13).iv_setup(2).balance_name := null;
4222 g_template_obj(13).iv_setup(2).exclusion_tag := null;
4223
4224 g_template_obj(13).iv_setup(3).input_value_name := 'Cost to Employer';
4225 g_template_obj(13).iv_setup(3).uom := 'M';
4226 g_template_obj(13).iv_setup(3).mandatory_flag := 'N';
4227 g_template_obj(13).iv_setup(3).lookup_type := null;
4228 g_template_obj(13).iv_setup(3).default_value := null;
4229 g_template_obj(13).iv_setup(3).def_value_column := null;
4230 g_template_obj(13).iv_setup(3).min_value := 0;
4231 g_template_obj(13).iv_setup(3).warn_or_error := 'E';
4232 g_template_obj(13).iv_setup(3).balance_name := 'Perquisite Employer Contribution';
4233 g_template_obj(13).iv_setup(3).exclusion_tag := null;
4234
4235
4236 g_template_obj(13).iv_setup(4).input_value_name := 'Employee Contribution';
4237 g_template_obj(13).iv_setup(4).uom := 'M';
4238 g_template_obj(13).iv_setup(4).mandatory_flag := 'N';
4239 g_template_obj(13).iv_setup(4).lookup_type := null;
4240 g_template_obj(13).iv_setup(4).default_value := null;
4241 g_template_obj(13).iv_setup(4).def_value_column := null;
4242 g_template_obj(13).iv_setup(4).min_value := 0;
4243 g_template_obj(13).iv_setup(4).warn_or_error := 'E';
4244 g_template_obj(13).iv_setup(4).balance_name := 'Perquisite Employee Contribution';
4245 g_template_obj(13).iv_setup(4).exclusion_tag := null;
4246
4247 g_template_obj(13).iv_setup(5).input_value_name := 'Number of Days';
4248 g_template_obj(13).iv_setup(5).uom := 'N';
4249 g_template_obj(13).iv_setup(5).mandatory_flag := 'N';
4250 g_template_obj(13).iv_setup(5).lookup_type := null;
4251 g_template_obj(13).iv_setup(5).default_value := null;
4252 g_template_obj(13).iv_setup(5).def_value_column := null;
4253 g_template_obj(13).iv_setup(5).min_value := null;
4254 g_template_obj(13).iv_setup(5).warn_or_error := null;
4255 g_template_obj(13).iv_setup(5).balance_name := null;
4256 g_template_obj(13).iv_setup(5).exclusion_tag := null;
4257
4258 g_template_obj(13).iv_setup(6).input_value_name := 'Projected Taxable Value';
4259 g_template_obj(13).iv_setup(6).uom := 'M';
4260 g_template_obj(13).iv_setup(6).mandatory_flag := 'X';
4261 g_template_obj(13).iv_setup(6).lookup_type := null;
4262 g_template_obj(13).iv_setup(6).default_value := null;
4263 g_template_obj(13).iv_setup(6).def_value_column := null;
4264 g_template_obj(13).iv_setup(6).min_value := null;
4265 g_template_obj(13).iv_setup(6).warn_or_error := null;
4266 g_template_obj(13).iv_setup(6).balance_name := 'Taxable Perquisites for Projection';
4267 g_template_obj(13).iv_setup(6).exclusion_tag := 'PROJECT';
4268
4269 g_template_obj(13).iv_setup(7).input_value_name := 'Employer Paid Tax';
4270 g_template_obj(13).iv_setup(7).uom := 'C';
4271 g_template_obj(13).iv_setup(7).mandatory_flag := 'Y';
4272 g_template_obj(13).iv_setup(7).lookup_type := 'YES_NO';
4273 g_template_obj(13).iv_setup(7).default_value := 'N';
4274 g_template_obj(13).iv_setup(7).def_value_column := null;
4275 g_template_obj(13).iv_setup(7).min_value := null;
4276 g_template_obj(13).iv_setup(7).warn_or_error := null;
4277 g_template_obj(13).iv_setup(7).balance_name := null;
4278 g_template_obj(13).iv_setup(7).exclusion_tag := null;
4279
4280 g_template_obj(13).iv_setup(8).input_value_name := 'Employer Taxable Amount';
4281 g_template_obj(13).iv_setup(8).uom := 'M';
4282 g_template_obj(13).iv_setup(8).mandatory_flag := 'X';
4283 g_template_obj(13).iv_setup(8).lookup_type := null;
4284 g_template_obj(13).iv_setup(8).default_value := null;
4285 g_template_obj(13).iv_setup(8).def_value_column := null;
4286 g_template_obj(13).iv_setup(8).min_value := 0;
4287 g_template_obj(13).iv_setup(8).warn_or_error := 'E';
4288 g_template_obj(13).iv_setup(8).balance_name := null;
4289 g_template_obj(13).iv_setup(8).exclusion_tag := null;
4290
4291 ----------------------------------------------------------------
4292 -- Input Values for LUNCH PERQUISITE Template end
4293 ----------------------------------------------------------------
4294
4295 ----------------------------------------------------------------
4296 -- Balance Feeds for LUNCH PERQUISITE Template start
4297 ----------------------------------------------------------------
4298 ----------------------------------------------------------------
4299 -- Balance Feeds for LUNCH PERQUISITE Template end
4300 ----------------------------------------------------------------
4301
4305 g_template_obj(13).sf_setup.formula_name := 'IN_LUNCH_PERQUISITE';
4302 ----------------------------------------------------------------
4303 -- Formula Setup for LUNCH PERQUISITE Template starts
4304 ----------------------------------------------------------------
4306 g_template_obj(13).sf_setup.status_rule_id := null;
4307 g_template_obj(13).sf_setup.description := null;
4308
4309 g_template_obj(13).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
4310 g_template_obj(13).sf_setup.frs_setup(1).result_rule_type := 'D';
4311 g_template_obj(13).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
4312 g_template_obj(13).sf_setup.frs_setup(1).element_name := null;
4313 g_template_obj(13).sf_setup.frs_setup(1).severity_level := null;
4314 g_template_obj(13).sf_setup.frs_setup(1).exclusion_tag := null;
4315
4316 g_template_obj(13).sf_setup.frs_setup(2).result_name := 'PROJECTED_VALUE';
4317 g_template_obj(13).sf_setup.frs_setup(2).result_rule_type := 'D';
4318 g_template_obj(13).sf_setup.frs_setup(2).input_value_name := 'Projected Taxable Value';
4319 g_template_obj(13).sf_setup.frs_setup(2).element_name := null;
4320 g_template_obj(13).sf_setup.frs_setup(2).severity_level := null;
4321 g_template_obj(13).sf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
4322
4323 g_template_obj(13).sf_setup.frs_setup(3).result_name := 'EMPR_TAX';
4324 g_template_obj(13).sf_setup.frs_setup(3).result_rule_type := 'D';
4325 g_template_obj(13).sf_setup.frs_setup(3).input_value_name := 'Employer Taxable Amount';
4326 g_template_obj(13).sf_setup.frs_setup(3).element_name := null;
4327 g_template_obj(13).sf_setup.frs_setup(3).severity_level := null;
4328 g_template_obj(13).sf_setup.frs_setup(3).exclusion_tag := null;
4329
4330 g_template_obj(13).sf_setup.frs_setup(4).result_name := 'FED_TO_NET_PAY';
4331 g_template_obj(13).sf_setup.frs_setup(4).result_rule_type := 'I';
4332 g_template_obj(13).sf_setup.frs_setup(4).input_value_name := 'Pay Value';
4333 g_template_obj(13).sf_setup.frs_setup(4).element_name := null;
4334 g_template_obj(13).sf_setup.frs_setup(4).severity_level := null;
4335 g_template_obj(13).sf_setup.frs_setup(4).exclusion_tag := null;
4336
4337 g_template_obj(13).sf_setup.frs_setup(5).result_name := 'ER_MP_TAXABLE_AMOUNT';
4338 g_template_obj(13).sf_setup.frs_setup(5).result_rule_type := 'I';
4339 g_template_obj(13).sf_setup.frs_setup(5).input_value_name := 'ER MP Taxable Amount';
4340 g_template_obj(13).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
4341 g_template_obj(13).sf_setup.frs_setup(5).severity_level := null;
4342 g_template_obj(13).sf_setup.frs_setup(5).exclusion_tag := null;
4343
4344 g_template_obj(13).sf_setup.frs_setup(6).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
4345 g_template_obj(13).sf_setup.frs_setup(6).result_rule_type := 'I';
4346 g_template_obj(13).sf_setup.frs_setup(6).input_value_name := 'Projected ER MP Taxable Amt';
4347 g_template_obj(13).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
4348 g_template_obj(13).sf_setup.frs_setup(6).severity_level := null;
4349 g_template_obj(13).sf_setup.frs_setup(6).exclusion_tag := null;
4350
4351 g_template_obj(13).sf_setup.frs_setup(7).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
4352 g_template_obj(13).sf_setup.frs_setup(7).result_rule_type := 'I';
4353 g_template_obj(13).sf_setup.frs_setup(7).input_value_name := 'ER MP Salary to be Excluded';
4354 g_template_obj(13).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
4355 g_template_obj(13).sf_setup.frs_setup(7).severity_level := null;
4356 g_template_obj(13).sf_setup.frs_setup(7).exclusion_tag := null;
4357
4358 g_template_obj(13).sf_setup.frs_setup(8).result_name := 'ER_NMP_TAXABLE_AMOUNT';
4359 g_template_obj(13).sf_setup.frs_setup(8).result_rule_type := 'I';
4360 g_template_obj(13).sf_setup.frs_setup(8).input_value_name := 'ER NMP Taxable Amount';
4361 g_template_obj(13).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
4362 g_template_obj(13).sf_setup.frs_setup(8).severity_level := null;
4363 g_template_obj(13).sf_setup.frs_setup(8).exclusion_tag := null;
4364
4365 g_template_obj(13).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
4366 g_template_obj(13).sf_setup.frs_setup(9).result_rule_type := 'I';
4367 g_template_obj(13).sf_setup.frs_setup(9).input_value_name := 'Projected ER NMP Taxable Amt';
4368 g_template_obj(13).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
4369 g_template_obj(13).sf_setup.frs_setup(9).severity_level := null;
4370 g_template_obj(13).sf_setup.frs_setup(9).exclusion_tag := null;
4371
4372 g_template_obj(13).sf_setup.frs_setup(10).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
4373 g_template_obj(13).sf_setup.frs_setup(10).result_rule_type := 'I';
4374 g_template_obj(13).sf_setup.frs_setup(10).input_value_name := 'ER NMP Salary to be Excluded';
4375 g_template_obj(13).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
4376 g_template_obj(13).sf_setup.frs_setup(10).severity_level := null;
4377 g_template_obj(13).sf_setup.frs_setup(10).exclusion_tag := null;
4378
4379 g_template_obj(13).sf_setup.frs_setup(11).result_name := 'COMPONENT_NAME';
4380 g_template_obj(13).sf_setup.frs_setup(11).result_rule_type := 'I';
4381 g_template_obj(13).sf_setup.frs_setup(11).input_value_name := 'Component Name';
4385
4382 g_template_obj(13).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
4383 g_template_obj(13).sf_setup.frs_setup(11).severity_level := null;
4384 g_template_obj(13).sf_setup.frs_setup(11).exclusion_tag := null;
4386 g_template_obj(13).sf_setup.frs_setup(12).result_name := 'NON_REC_VALUE';
4387 g_template_obj(13).sf_setup.frs_setup(12).result_rule_type := 'I';
4388 g_template_obj(13).sf_setup.frs_setup(12).input_value_name := 'Non Rec Perquisite';
4389 g_template_obj(13).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
4390 g_template_obj(13).sf_setup.frs_setup(12).severity_level := null;
4391 g_template_obj(13).sf_setup.frs_setup(12).exclusion_tag := null;
4392
4393 g_template_obj(13).sf_setup.frs_setup(13).result_name := 'Cost_to_Employer';
4394 g_template_obj(13).sf_setup.frs_setup(13).result_rule_type := 'D';
4395 g_template_obj(13).sf_setup.frs_setup(13).input_value_name := 'Cost to Employer';
4396 g_template_obj(13).sf_setup.frs_setup(13).element_name := null;
4397 g_template_obj(13).sf_setup.frs_setup(13).severity_level := null;
4398 g_template_obj(13).sf_setup.frs_setup(13).exclusion_tag := null;
4399
4400 g_template_obj(13).sf_setup.frs_setup(14).result_name := 'Employee_Contribution';
4401 g_template_obj(13).sf_setup.frs_setup(14).result_rule_type := 'D';
4402 g_template_obj(13).sf_setup.frs_setup(14).input_value_name := 'Employee Contribution';
4403 g_template_obj(13).sf_setup.frs_setup(14).element_name := null;
4404 g_template_obj(13).sf_setup.frs_setup(14).severity_level := null;
4405 g_template_obj(13).sf_setup.frs_setup(14).exclusion_tag := null;
4406 ----------------------------------------------------------------
4407 -- Formula Setup for LUNCH PERQUISITE Template ends
4408 ----------------------------------------------------------------
4409
4410 ----------------------------------------------------------------
4411 -- Add. Element Setup for LUNCH PERQUISITE Template starts
4412 ----------------------------------------------------------------
4413
4414 g_template_obj(13).ae_setup(1).element_name := ' Paid MP';
4415 g_template_obj(13).ae_setup(1).classification := 'Paid Monetary Perquisite';
4416 g_template_obj(13).ae_setup(1).exclusion_tag := 'Perquisite';
4417 g_template_obj(13).ae_setup(1).priority := 2000;
4418
4419 g_template_obj(13).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
4420 g_template_obj(13).ae_setup(1).iv_setup(1).uom := 'M';
4421 g_template_obj(13).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
4422 g_template_obj(13).ae_setup(1).iv_setup(1).lookup_type := null;
4423 g_template_obj(13).ae_setup(1).iv_setup(1).default_value := null;
4424 g_template_obj(13).ae_setup(1).iv_setup(1).def_value_column := null;
4425 g_template_obj(13).ae_setup(1).iv_setup(1).min_value := null;
4426 g_template_obj(13).ae_setup(1).iv_setup(1).warn_or_error := null;
4427 g_template_obj(13).ae_setup(1).iv_setup(1).balance_name := null;
4428 g_template_obj(13).ae_setup(1).iv_setup(1).exclusion_tag := null;
4429
4430 g_template_obj(13).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
4431 g_template_obj(13).ae_setup(1).iv_setup(2).uom := 'C';
4432 g_template_obj(13).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
4433 g_template_obj(13).ae_setup(1).iv_setup(2).lookup_type := null;
4434 g_template_obj(13).ae_setup(1).iv_setup(2).default_value := 'Lunch Perquisite';
4435 g_template_obj(13).ae_setup(1).iv_setup(2).def_value_column := null;
4436 g_template_obj(13).ae_setup(1).iv_setup(2).min_value := null;
4437 g_template_obj(13).ae_setup(1).iv_setup(2).warn_or_error := null;
4438 g_template_obj(13).ae_setup(1).iv_setup(2).balance_name := null;
4439 g_template_obj(13).ae_setup(1).iv_setup(2).exclusion_tag := null;
4440
4441 ----------------------------------------------------------------
4442 -- Add. Element Setup for LUNCH PERQUISITE Template ends
4443 ----------------------------------------------------------------
4444
4445 ----------------------------------------------------------------
4446 -- TEMPLATE FOR LUNCH PERQUISITE ENDS
4447 ----------------------------------------------------------------
4448 ----------------------------------------------------------------
4449 -- TEMPLATE FOR CAR PERQUISITE STARTS
4450 ----------------------------------------------------------------
4451 pay_in_utils.set_location(g_debug, l_procedure,50);
4452 g_template_obj(14).template_name := 'Motor Car Perquisite';
4453 g_template_obj(14).category := 'Perquisites';
4454 g_template_obj(14).priority := 9000;
4455
4456 ----------------------------------------------------------------
4457 -- Exclusion Rules for CAR PERQUISITE Template start
4458 ----------------------------------------------------------------
4459 g_template_obj(14).er_setup(1).ff_column := 'CONFIGURATION_INFORMATION2';
4460 g_template_obj(14).er_setup(1).value := 'N';
4461 g_template_obj(14).er_setup(1).descr := 'Exclusion rule for Projections.';
4462 g_template_obj(14).er_setup(1).tag := 'PROJECT';
4463 g_template_obj(14).er_setup(1).rule_id := null;
4464
4465 ----------------------------------------------------------------
4466 -- Exclusion Rules for CAR PERQUISITE Template end
4467 ----------------------------------------------------------------
4468
4469 ----------------------------------------------------------------
4470 -- Input Values for CAR PERQUISITE Template start
4474 g_template_obj(14).iv_setup(1).mandatory_flag := 'X';
4471 ----------------------------------------------------------------
4472 g_template_obj(14).iv_setup(1).input_value_name := 'Pay Value';
4473 g_template_obj(14).iv_setup(1).uom := 'M';
4475 g_template_obj(14).iv_setup(1).lookup_type := null;
4476 g_template_obj(14).iv_setup(1).default_value := null;
4477 g_template_obj(14).iv_setup(1).def_value_column := null;
4478 g_template_obj(14).iv_setup(1).min_value := null;
4479 g_template_obj(14).iv_setup(1).warn_or_error := null;
4480 g_template_obj(14).iv_setup(1).balance_name := null;
4481 g_template_obj(14).iv_setup(1).exclusion_tag := null;
4482
4483 g_template_obj(14).iv_setup(2).input_value_name := 'Component Name';
4484 g_template_obj(14).iv_setup(2).uom := 'C';
4485 g_template_obj(14).iv_setup(2).mandatory_flag := 'X';
4486 g_template_obj(14).iv_setup(2).lookup_type := null;
4487 g_template_obj(14).iv_setup(2).default_value := 'Motor Car Perquisite';
4488 g_template_obj(14).iv_setup(2).def_value_column := null;
4489 g_template_obj(14).iv_setup(2).min_value := null;
4490 g_template_obj(14).iv_setup(2).warn_or_error := null;
4491 g_template_obj(14).iv_setup(2).balance_name := null;
4492 g_template_obj(14).iv_setup(2).exclusion_tag := null;
4493
4494 g_template_obj(14).iv_setup(3).input_value_name := 'Benefit Start Date';
4495 g_template_obj(14).iv_setup(3).uom := 'D';
4496 g_template_obj(14).iv_setup(3).mandatory_flag := 'N';
4497 g_template_obj(14).iv_setup(3).lookup_type := null;
4498 g_template_obj(14).iv_setup(3).default_value := null;
4499 g_template_obj(14).iv_setup(3).def_value_column := null;
4500 g_template_obj(14).iv_setup(3).min_value := null;
4501 g_template_obj(14).iv_setup(3).warn_or_error := null;
4502 g_template_obj(14).iv_setup(3).balance_name := null;
4503 g_template_obj(14).iv_setup(3).exclusion_tag := null;
4504
4505 g_template_obj(14).iv_setup(4).input_value_name := 'Benefit End Date';
4506 g_template_obj(14).iv_setup(4).uom := 'D';
4507 g_template_obj(14).iv_setup(4).mandatory_flag := 'N';
4508 g_template_obj(14).iv_setup(4).lookup_type := null;
4509 g_template_obj(14).iv_setup(4).default_value := null;
4510 g_template_obj(14).iv_setup(4).def_value_column := null;
4511 g_template_obj(14).iv_setup(4).min_value := null;
4512 g_template_obj(14).iv_setup(4).warn_or_error := null;
4513 g_template_obj(14).iv_setup(4).balance_name := null;
4514 g_template_obj(14).iv_setup(4).exclusion_tag := null;
4515
4516 g_template_obj(14).iv_setup(5).input_value_name := 'Type of Automotive';
4517 g_template_obj(14).iv_setup(5).uom := 'C';
4518 g_template_obj(14).iv_setup(5).mandatory_flag := 'Y';
4519 g_template_obj(14).iv_setup(5).lookup_type := 'IN_CAR_TYPE';
4520 g_template_obj(14).iv_setup(5).default_value := null;
4521 g_template_obj(14).iv_setup(5).def_value_column := null;
4522 g_template_obj(14).iv_setup(5).min_value := null;
4523 g_template_obj(14).iv_setup(5).warn_or_error := null;
4524 g_template_obj(14).iv_setup(5).balance_name := null;
4525 g_template_obj(14).iv_setup(5).exclusion_tag := null;
4526
4527 g_template_obj(14).iv_setup(6).input_value_name := 'Category of Car';
4528 g_template_obj(14).iv_setup(6).uom := 'C';
4529 g_template_obj(14).iv_setup(6).mandatory_flag := 'Y';
4530 g_template_obj(14).iv_setup(6).lookup_type := 'IN_CAR_CATEGORY';
4531 g_template_obj(14).iv_setup(6).default_value := null;
4532 g_template_obj(14).iv_setup(6).def_value_column := null;
4533 g_template_obj(14).iv_setup(6).min_value := null;
4534 g_template_obj(14).iv_setup(6).warn_or_error := null;
4535 g_template_obj(14).iv_setup(6).balance_name := null;
4536 g_template_obj(14).iv_setup(6).exclusion_tag := null;
4537
4538 g_template_obj(14).iv_setup(7).input_value_name := 'Usage of Car';
4539 g_template_obj(14).iv_setup(7).uom := 'C';
4540 g_template_obj(14).iv_setup(7).mandatory_flag := 'Y';
4541 g_template_obj(14).iv_setup(7).lookup_type := 'IN_CAR_USAGE';
4542 g_template_obj(14).iv_setup(7).default_value := null;
4543 g_template_obj(14).iv_setup(7).def_value_column := null;
4544 g_template_obj(14).iv_setup(7).min_value := null;
4545 g_template_obj(14).iv_setup(7).warn_or_error := null;
4546 g_template_obj(14).iv_setup(7).balance_name := null;
4547 g_template_obj(14).iv_setup(7).exclusion_tag := null;
4548
4549 g_template_obj(14).iv_setup(8).input_value_name := 'Actual Expenditure';
4550 g_template_obj(14).iv_setup(8).uom := 'M';
4551 g_template_obj(14).iv_setup(8).mandatory_flag := 'N';
4552 g_template_obj(14).iv_setup(8).lookup_type := null;
4553 g_template_obj(14).iv_setup(8).default_value := null;
4554 g_template_obj(14).iv_setup(8).def_value_column := null;
4555 g_template_obj(14).iv_setup(8).min_value := null;
4556 g_template_obj(14).iv_setup(8).warn_or_error := null;
4557 g_template_obj(14).iv_setup(8).balance_name := null;
4558 g_template_obj(14).iv_setup(8).exclusion_tag := null;
4559
4560 g_template_obj(14).iv_setup(9).input_value_name := 'Chauffeur by Employer';
4561 g_template_obj(14).iv_setup(9).uom := 'C';
4562 g_template_obj(14).iv_setup(9).mandatory_flag := 'Y';
4563 g_template_obj(14).iv_setup(9).lookup_type := 'YES_NO';
4564 g_template_obj(14).iv_setup(9).default_value := null;
4565 g_template_obj(14).iv_setup(9).def_value_column := null;
4569 g_template_obj(14).iv_setup(9).exclusion_tag := null;
4566 g_template_obj(14).iv_setup(9).min_value := null;
4567 g_template_obj(14).iv_setup(9).warn_or_error := null;
4568 g_template_obj(14).iv_setup(9).balance_name := null;
4570
4571 g_template_obj(14).iv_setup(10).input_value_name := 'Engine Capacity';
4572 g_template_obj(14).iv_setup(10).uom := 'C';
4573 g_template_obj(14).iv_setup(10).mandatory_flag := 'Y';
4574 g_template_obj(14).iv_setup(10).lookup_type := 'IN_CAR_CAPACITY';
4575 g_template_obj(14).iv_setup(10).default_value := null;
4576 g_template_obj(14).iv_setup(10).def_value_column := null;
4577 g_template_obj(14).iv_setup(10).min_value := null;
4578 g_template_obj(14).iv_setup(10).warn_or_error := null;
4579 g_template_obj(14).iv_setup(10).balance_name := null;
4580 g_template_obj(14).iv_setup(10).exclusion_tag := null;
4581
4582 g_template_obj(14).iv_setup(11).input_value_name := 'Operational Expenses by';
4583 g_template_obj(14).iv_setup(11).uom := 'C';
4584 g_template_obj(14).iv_setup(11).mandatory_flag := 'Y';
4585 g_template_obj(14).iv_setup(11).lookup_type := 'IN_CAR_MAINT_EXPENSES';
4586 g_template_obj(14).iv_setup(11).default_value := null;
4587 g_template_obj(14).iv_setup(11).def_value_column := null;
4588 g_template_obj(14).iv_setup(11).min_value := null;
4589 g_template_obj(14).iv_setup(11).warn_or_error := null;
4590 g_template_obj(14).iv_setup(11).balance_name := null;
4591 g_template_obj(14).iv_setup(11).exclusion_tag := null;
4592
4593
4594 g_template_obj(14).iv_setup(12).input_value_name := 'Employee Contribution';
4595 g_template_obj(14).iv_setup(12).uom := 'M';
4596 g_template_obj(14).iv_setup(12).mandatory_flag := 'N';
4597 g_template_obj(14).iv_setup(12).lookup_type := null;
4598 g_template_obj(14).iv_setup(12).default_value := null;
4599 g_template_obj(14).iv_setup(12).def_value_column := null;
4600 g_template_obj(14).iv_setup(12).min_value := null;
4601 g_template_obj(14).iv_setup(12).warn_or_error := null;
4602 g_template_obj(14).iv_setup(12).balance_name := 'Perquisite Employee Contribution';
4603 g_template_obj(14).iv_setup(12).exclusion_tag := null;
4604
4605
4606 g_template_obj(14).iv_setup(13).input_value_name := 'Projected Taxable Value';
4607 g_template_obj(14).iv_setup(13).uom := 'M';
4608 g_template_obj(14).iv_setup(13).mandatory_flag := 'X';
4609 g_template_obj(14).iv_setup(13).lookup_type := null;
4610 g_template_obj(14).iv_setup(13).default_value := null;
4611 g_template_obj(14).iv_setup(13).def_value_column := null;
4612 g_template_obj(14).iv_setup(13).min_value := null;
4613 g_template_obj(14).iv_setup(13).warn_or_error := null;
4614 g_template_obj(14).iv_setup(13).balance_name := 'Taxable Perquisites for Projection';
4615 g_template_obj(14).iv_setup(13).exclusion_tag := 'PROJECT';
4616
4617 g_template_obj(14).iv_setup(14).input_value_name := 'Employer Paid Tax';
4618 g_template_obj(14).iv_setup(14).uom := 'C';
4619 g_template_obj(14).iv_setup(14).mandatory_flag := 'Y';
4620 g_template_obj(14).iv_setup(14).lookup_type := 'YES_NO';
4621 g_template_obj(14).iv_setup(14).default_value := 'N';
4622 g_template_obj(14).iv_setup(14).def_value_column := null;
4623 g_template_obj(14).iv_setup(14).min_value := null;
4624 g_template_obj(14).iv_setup(14).warn_or_error := null;
4625 g_template_obj(14).iv_setup(14).balance_name := null;
4626 g_template_obj(14).iv_setup(14).exclusion_tag := null;
4627
4628 g_template_obj(14).iv_setup(15).input_value_name := 'Employer Taxable Amount';
4629 g_template_obj(14).iv_setup(15).uom := 'M';
4630 g_template_obj(14).iv_setup(15).mandatory_flag := 'X';
4631 g_template_obj(14).iv_setup(15).lookup_type := null;
4632 g_template_obj(14).iv_setup(15).default_value := null;
4633 g_template_obj(14).iv_setup(15).def_value_column := null;
4634 g_template_obj(14).iv_setup(15).min_value := 0;
4635 g_template_obj(14).iv_setup(15).warn_or_error := 'E';
4636 g_template_obj(14).iv_setup(15).balance_name := null;
4637 g_template_obj(14).iv_setup(15).exclusion_tag := null;
4638
4639 ----------------------------------------------------------------
4640 -- Input Values for CAR PERQUISITE Template end
4641 ----------------------------------------------------------------
4642
4643 ----------------------------------------------------------------
4644 -- Balance Feeds for CAR PERQUISITE Template start
4645 ----------------------------------------------------------------
4646 ----------------------------------------------------------------
4647 -- Balance Feeds for CAR PERQUISITE Template end
4648 ----------------------------------------------------------------
4649
4650 ----------------------------------------------------------------
4651 -- Formula Setup for CAR PERQUISITE Template starts
4652 ----------------------------------------------------------------
4653 g_template_obj(14).sf_setup.formula_name := 'IN_MOTOR_CAR';
4654 g_template_obj(14).sf_setup.status_rule_id := null;
4655 g_template_obj(14).sf_setup.description := null;
4656
4657 g_template_obj(14).sf_setup.frs_setup(1).result_name := 'ACTUAL_PERQUISITE_VALUE';
4658 g_template_obj(14).sf_setup.frs_setup(1).result_rule_type := 'D';
4659 g_template_obj(14).sf_setup.frs_setup(1).input_value_name := 'Pay Value';
4660 g_template_obj(14).sf_setup.frs_setup(1).element_name := null;
4664 g_template_obj(14).sf_setup.frs_setup(2).result_name := 'PROJECTED_VALUE';
4661 g_template_obj(14).sf_setup.frs_setup(1).severity_level := null;
4662 g_template_obj(14).sf_setup.frs_setup(1).exclusion_tag := null;
4663
4665 g_template_obj(14).sf_setup.frs_setup(2).result_rule_type := 'D';
4666 g_template_obj(14).sf_setup.frs_setup(2).input_value_name := 'Projected Taxable Value';
4667 g_template_obj(14).sf_setup.frs_setup(2).element_name := null;
4668 g_template_obj(14).sf_setup.frs_setup(2).severity_level := null;
4669 g_template_obj(14).sf_setup.frs_setup(2).exclusion_tag := 'PROJECT';
4670
4671 g_template_obj(14).sf_setup.frs_setup(3).result_name := 'EMPR_TAX';
4672 g_template_obj(14).sf_setup.frs_setup(3).result_rule_type := 'D';
4673 g_template_obj(14).sf_setup.frs_setup(3).input_value_name := 'Employer Taxable Amount';
4674 g_template_obj(14).sf_setup.frs_setup(3).element_name := null;
4675 g_template_obj(14).sf_setup.frs_setup(3).severity_level := null;
4676 g_template_obj(14).sf_setup.frs_setup(3).exclusion_tag := null;
4677
4678 g_template_obj(14).sf_setup.frs_setup(4).result_name := 'FED_TO_NET_PAY';
4679 g_template_obj(14).sf_setup.frs_setup(4).result_rule_type := 'I';
4680 g_template_obj(14).sf_setup.frs_setup(4).input_value_name := 'Pay Value';
4681 g_template_obj(14).sf_setup.frs_setup(4).element_name := null;
4682 g_template_obj(14).sf_setup.frs_setup(4).severity_level := null;
4683 g_template_obj(14).sf_setup.frs_setup(4).exclusion_tag := null;
4684
4685 g_template_obj(14).sf_setup.frs_setup(5).result_name := 'ER_MP_TAXABLE_AMOUNT';
4686 g_template_obj(14).sf_setup.frs_setup(5).result_rule_type := 'I';
4687 g_template_obj(14).sf_setup.frs_setup(5).input_value_name := 'ER MP Taxable Amount';
4688 g_template_obj(14).sf_setup.frs_setup(5).element_name := 'Employer Tax Projection Element';
4689 g_template_obj(14).sf_setup.frs_setup(5).severity_level := null;
4690 g_template_obj(14).sf_setup.frs_setup(5).exclusion_tag := null;
4691
4692 g_template_obj(14).sf_setup.frs_setup(6).result_name := 'PROJECTED_ER_MP_TAXABLE_AMT';
4693 g_template_obj(14).sf_setup.frs_setup(6).result_rule_type := 'I';
4694 g_template_obj(14).sf_setup.frs_setup(6).input_value_name := 'Projected ER MP Taxable Amt';
4695 g_template_obj(14).sf_setup.frs_setup(6).element_name := 'Employer Tax Projection Element';
4696 g_template_obj(14).sf_setup.frs_setup(6).severity_level := null;
4697 g_template_obj(14).sf_setup.frs_setup(6).exclusion_tag := null;
4698
4699 g_template_obj(14).sf_setup.frs_setup(7).result_name := 'ER_MP_SALARY_TO_BE_EXCLUDED';
4700 g_template_obj(14).sf_setup.frs_setup(7).result_rule_type := 'I';
4701 g_template_obj(14).sf_setup.frs_setup(7).input_value_name := 'ER MP Salary to be Excluded';
4702 g_template_obj(14).sf_setup.frs_setup(7).element_name := 'Employer Tax Projection Element';
4703 g_template_obj(14).sf_setup.frs_setup(7).severity_level := null;
4704 g_template_obj(14).sf_setup.frs_setup(7).exclusion_tag := null;
4705
4706 g_template_obj(14).sf_setup.frs_setup(8).result_name := 'ER_NMP_TAXABLE_AMOUNT';
4707 g_template_obj(14).sf_setup.frs_setup(8).result_rule_type := 'I';
4708 g_template_obj(14).sf_setup.frs_setup(8).input_value_name := 'ER NMP Taxable Amount';
4709 g_template_obj(14).sf_setup.frs_setup(8).element_name := 'Employer Tax Projection Element';
4710 g_template_obj(14).sf_setup.frs_setup(8).severity_level := null;
4711 g_template_obj(14).sf_setup.frs_setup(8).exclusion_tag := null;
4712
4713 g_template_obj(14).sf_setup.frs_setup(9).result_name := 'PROJECTED_ER_NMP_TAXABLE_AMT';
4714 g_template_obj(14).sf_setup.frs_setup(9).result_rule_type := 'I';
4715 g_template_obj(14).sf_setup.frs_setup(9).input_value_name := 'Projected ER NMP Taxable Amt';
4716 g_template_obj(14).sf_setup.frs_setup(9).element_name := 'Employer Tax Projection Element';
4717 g_template_obj(14).sf_setup.frs_setup(9).severity_level := null;
4718 g_template_obj(14).sf_setup.frs_setup(9).exclusion_tag := null;
4719
4720 g_template_obj(14).sf_setup.frs_setup(10).result_name := 'ER_NMP_SALARY_TO_BE_EXCLUDED';
4721 g_template_obj(14).sf_setup.frs_setup(10).result_rule_type := 'I';
4722 g_template_obj(14).sf_setup.frs_setup(10).input_value_name := 'ER NMP Salary to be Excluded';
4723 g_template_obj(14).sf_setup.frs_setup(10).element_name := 'Employer Tax Projection Element';
4724 g_template_obj(14).sf_setup.frs_setup(10).severity_level := null;
4725 g_template_obj(14).sf_setup.frs_setup(10).exclusion_tag := null;
4726
4727 g_template_obj(14).sf_setup.frs_setup(11).result_name := 'COMPONENT_NAME';
4728 g_template_obj(14).sf_setup.frs_setup(11).result_rule_type := 'I';
4729 g_template_obj(14).sf_setup.frs_setup(11).input_value_name := 'Component Name';
4730 g_template_obj(14).sf_setup.frs_setup(11).element_name := 'Employer Tax Projection Element';
4731 g_template_obj(14).sf_setup.frs_setup(11).severity_level := null;
4732 g_template_obj(14).sf_setup.frs_setup(11).exclusion_tag := null;
4733
4734 g_template_obj(14).sf_setup.frs_setup(12).result_name := 'NON_REC_VALUE';
4735 g_template_obj(14).sf_setup.frs_setup(12).result_rule_type := 'I';
4736 g_template_obj(14).sf_setup.frs_setup(12).input_value_name := 'Non Rec Perquisite';
4737 g_template_obj(14).sf_setup.frs_setup(12).element_name := 'Employer Tax Projection Element';
4738 g_template_obj(14).sf_setup.frs_setup(12).severity_level := null;
4739 g_template_obj(14).sf_setup.frs_setup(12).exclusion_tag := null;
4740 ----------------------------------------------------------------
4744 ----------------------------------------------------------------
4741 -- Formula Setup for CAR PERQUISITE Template ends
4742 ----------------------------------------------------------------
4743
4745 -- Add. Element Setup for CAR PERQUISITE Template starts
4746 ----------------------------------------------------------------
4747
4748 g_template_obj(14).ae_setup(1).element_name := ' Paid MP';
4749 g_template_obj(14).ae_setup(1).classification := 'Paid Monetary Perquisite';
4750 g_template_obj(14).ae_setup(1).exclusion_tag := 'Perquisite';
4751 g_template_obj(14).ae_setup(1).priority := 2000;
4752
4753 g_template_obj(14).ae_setup(1).iv_setup(1).input_value_name := 'Pay Value';
4754 g_template_obj(14).ae_setup(1).iv_setup(1).uom := 'M';
4755 g_template_obj(14).ae_setup(1).iv_setup(1).mandatory_flag := 'X';
4756 g_template_obj(14).ae_setup(1).iv_setup(1).lookup_type := null;
4757 g_template_obj(14).ae_setup(1).iv_setup(1).default_value := null;
4758 g_template_obj(14).ae_setup(1).iv_setup(1).def_value_column := null;
4759 g_template_obj(14).ae_setup(1).iv_setup(1).min_value := null;
4760 g_template_obj(14).ae_setup(1).iv_setup(1).warn_or_error := null;
4761 g_template_obj(14).ae_setup(1).iv_setup(1).balance_name := null;
4762 g_template_obj(14).ae_setup(1).iv_setup(1).exclusion_tag := null;
4763
4764 g_template_obj(14).ae_setup(1).iv_setup(2).input_value_name := 'Component Name';
4765 g_template_obj(14).ae_setup(1).iv_setup(2).uom := 'C';
4766 g_template_obj(14).ae_setup(1).iv_setup(2).mandatory_flag := 'X';
4767 g_template_obj(14).ae_setup(1).iv_setup(2).lookup_type := null;
4768 g_template_obj(14).ae_setup(1).iv_setup(2).default_value := 'Motor Car Perquisite';
4769 g_template_obj(14).ae_setup(1).iv_setup(2).def_value_column := null;
4770 g_template_obj(14).ae_setup(1).iv_setup(2).min_value := null;
4771 g_template_obj(14).ae_setup(1).iv_setup(2).warn_or_error := null;
4772 g_template_obj(14).ae_setup(1).iv_setup(2).balance_name := null;
4773 g_template_obj(14).ae_setup(1).iv_setup(2).exclusion_tag := null;
4774
4775 ----------------------------------------------------------------
4776 -- Add. Element Setup for CAR PERQUISITE Template ends
4777 ----------------------------------------------------------------
4778
4779 ----------------------------------------------------------------
4780 -- TEMPLATE FOR CAR PERQUISITE ENDS
4781 ----------------------------------------------------------------
4782
4783 pay_in_utils.set_location(g_debug,'Leaving:'|| l_procedure,150);
4784 EXCEPTION
4785 WHEN OTHERS THEN
4786 pay_in_utils.set_location(g_debug, 'Leaving: '||l_procedure,160);
4787 l_message := pay_in_utils.get_pay_message
4788 ('PER_IN_ORACLE_GENERIC_ERROR',
4789 'FUNCTION:'||l_procedure,
4790 'SQLERRMC:'||SQLERRM);
4791 pay_in_utils.trace('SQLERRM',l_message);
4792 RAISE ;
4793
4794 END init_code;
4795
4796 --------------------------------------------------------------------------
4797 -- Name : INIT_FORMULA --
4798 -- Type : PROCEDURE --
4799 -- Access : Public --
4800 -- Description : Procedure to initialize the formulas for ETW --
4801 -- Parameters : --
4802 -- IN : N/A --
4803 -- OUT : N/A --
4804 -- RETURN : N/A --
4805 -- Change History : --
4806 --------------------------------------------------------------------------
4807 -- Bug# Date Userid Description --
4808 --------------------------------------------------------------------------
4809 -- 5332442 26-JUL-06 statkar Created --
4810 --------------------------------------------------------------------------
4811 PROCEDURE init_formula
4812 IS
4813 l_procedure CONSTANT VARCHAR2(100):= g_package||'init_formula';
4814
4815 BEGIN
4816 g_debug := hr_utility.debug_enabled;
4817 pay_in_utils.set_location(g_debug, 'Entering: '||l_procedure,10);
4818
4819 ----------------------------------------------------------------
4820 -- FORMULA FOR FIXED ALLOWANCES
4821 ----------------------------------------------------------------
4822 pay_in_utils.set_location(g_debug, l_procedure,20);
4823 g_formula_obj(1).name := '_FIXED_CALC';
4824 g_formula_obj(1).text :=
4825 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
4826 /* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
4827
4828 /*----------------------------------------------------------------------
4829 FORMULA NAME : <BASE NAME>_FIXED_CALC
4830 FORMULA TYPE : Oracle Payroll
4831 -----------------------------------------------------------------------*/
4832 /* DEFAULT SECTION */
4833 /* Default for Database Items */
4834 DEFAULT FOR EXEMPTION_AMOUNT IS ''-1''
4835 DEFAULT FOR IN_HOSTEL_CHILDREN_ENTRY_COUNT is 0
4836 DEFAULT FOR ALLOWANCE_NAME IS ''XXXX''
4837
4838 /* Default for Input Values */
4839 DEFAULT FOR Allowance_amount is 0
4840 DEFAULT FOR Standard_Value is 0
4841 DEFAULT FOR Claim_Exemption_Sec10 is ''N''
4845 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
4842 DEFAULT FOR Component_name is ''Null''
4843
4844 /* Default for defined balances */
4846
4847
4848 /* INPUT SECTION */
4849 INPUTS ARE Allowance_amount,
4850 Standard_Value,
4851 Claim_Exemption_Sec10(text),
4852 Component_name(text)
4853
4854 /* INITIALIZATION SECTION */
4855 /* Initialization of local variables */
4856 l_max_exem_amt = TO_NUMBER(EXEMPTION_AMOUNT)
4857 l_exp_nature = ''X''
4858 l_disable_catg = ''X''
4859 l_disable_percent = 0
4860 l_disable_proof = ''N''
4861
4862 l_lt_outstanding_adv =Outstanding_Advance_for_Allowances_ASG_COMP_LTD
4863
4864 /* Initialization of out variables */
4865 Taxable_Value = 0
4866 Standard_Taxable_Value = 0
4867 Benefit_Amount = Allowance_amount
4868
4869
4870 /* CODE SECTION */
4871 IF ALLOWANCE_NAME = ''Children Education Allowance''
4872 OR ALLOWANCE_NAME = ''Hostel Expenditure Allowance'' THEN
4873 (
4874 IF IN_HOSTEL_CHILDREN_ENTRY_COUNT > 2 THEN
4875 (
4876 l_error_mesg = IN_GET_PAY_MESSAGE(''PAY_IN_MAX_CHILD_EXCEEDED'')
4877 RETURN l_error_mesg
4878 )
4879
4880 IF Claim_Exemption_Sec10 <> ''Y'' THEN
4881 l_max_exem_amt = 0
4882 )
4883
4884 IF ALLOWANCE_NAME = ''Transport Allowance'' Then
4885 (
4886 l_disable_details = IN_DISABILITY_DETAILS
4887 (l_disable_catg,
4888 l_disable_percent,
4889 l_disable_proof)
4890
4891 IF ((l_disable_catg = ''BLIND'' OR l_disable_catg = ''OH'')
4892 AND l_disable_proof= ''Y'') THEN
4893 l_max_exem_amt = 1600
4894
4895 )
4896
4897 IF ALLOWANCE_NAME = ''Entertainment Allowance'' THEN
4898 l_max_exem_amt = 0
4899
4900 /* Common Code for all Fixed Allowances */
4901 Taxable_Value = Allowance_Amount
4902 - LEAST(Allowance_Amount, l_max_exem_amt)
4903
4904 Standard_Taxable_Value = Standard_Value
4905 - LEAST(Standard_Value, l_max_exem_amt)
4906
4907 /* Advance functionality*/
4908 Actual_allowance_amount = Allowance_amount
4909 Pending_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
4910 Allowance_amount = GREATEST((Actual_allowance_amount - Pending_Advance),0)
4911 Adjusted_advance = GREATEST((Actual_allowance_amount - Allowance_amount),0)
4912
4913
4914
4915 /* RETURN SECTION */
4916
4917 Return Taxable_Value,
4918 Standard_Taxable_Value,
4919 Allowance_amount,
4920 Adjusted_advance
4921
4922
4923 /* End of Formula */ ';
4924
4925 ----------------------------------------------------------------
4926 -- FORMULA FOR ACTUAL EXPENSE ALLOWANCE
4927 ----------------------------------------------------------------
4928 pay_in_utils.set_location(g_debug, l_procedure,40);
4929 g_formula_obj(2).name := '_ACTEXP_CALC';
4930 g_formula_obj(2).text :=
4931 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
4932 /*----------------------------------------------------------------------
4933 FORMULA NAME : <BASE NAME>_ACTEXP_CALC
4934 FORMULA TYPE : Oracle Payroll
4935 DESCRIPTION : Formula for Allowances in India Localization
4936 -----------------------------------------------------------------------*/
4937 /* DEFAULT SECTION */
4938 /* Default for Database Items */
4939 DEFAULT FOR ALLOWANCE_NAME IS ''XXXX''
4940 DEFAULT FOR EXEMPTION_AMOUNT IS ''0''
4941 DEFAULT FOR NATURE_OF_EXPENSE IS ''R''
4942
4943 /* Default for Input Values */
4944 DEFAULT FOR Allowance_amount is 0
4945 DEFAULT FOR Standard_Value is 0
4946 DEFAULT FOR Actual_Expenditure is 0
4947 DEFAULT FOR Component_Name IS ''No Component''
4948
4949 /* Default for Defined Balances */
4950 DEFAULT FOR Allowance_Amount_ASG_COMP_PTD IS 0
4951 DEFAULT FOR Taxable_Allowances_ASG_COMP_PTD IS 0
4952 DEFAULT FOR Taxable_Allowances_For_Projection_ASG_COMP_PTD IS 0
4953 DEFAULT FOR Allowance_Expense_Amount_ASG_COMP_PTD IS 0
4954 DEFAULT FOR Allowances_Standard_Value_ASG_COMP_PTD IS 0
4955
4956 DEFAULT FOR Allowance_Amount_ASG_LE_COMP_YTD IS 0
4957 DEFAULT FOR Taxable_Allowances_ASG_LE_COMP_YTD IS 0
4958 DEFAULT FOR Taxable_Allowances_For_Projection_ASG_COMP_YTD IS 0
4959 DEFAULT FOR Allowance_Expense_Amount_ASG_LE_COMP_YTD IS 0
4960 DEFAULT FOR Allowances_Standard_Value_ASG_COMP_YTD IS 0
4961 DEFAULT FOR Adjusted_Advance_for_Allowances_ASG_LE_COMP_YTD IS 0
4962
4963 /* INPUT SECTION */
4964 INPUTS ARE Allowance_amount,
4965 Standard_Value,
4966 Actual_Expenditure,
4967 Component_Name (text)
4968
4969
4970 /* INITIALIZATION SECTION */
4971 /* Initialization of local variables */
4972 l_Allowance_Amount = 0
4973 l_Actual_Expenditure = 0
4974 l_max_exem_amt = TO_NUMBER(EXEMPTION_AMOUNT)
4975 Projected_Expense = 0
4976 /* Initialization of out variables */
4977 Taxable_Value = 0
4978 Standard_Taxable_Value = 0
4979 l_success =''X''
4980
4981 /* Initialization for latest balances */
4985 l_lt_alw_exp_amt = Allowance_Expense_Amount_ASG_COMP_PTD
4982 l_lt_alw_amt = Allowance_Amount_ASG_COMP_PTD
4983 l_lt_tax_alw_amt = Taxable_Allowances_ASG_COMP_PTD
4984 l_lt_tax_alw_proj_amt = Taxable_Allowances_For_Projection_ASG_COMP_PTD
4986 l_lt_alw_std_amt = Allowances_Standard_Value_ASG_COMP_PTD
4987 l_lty_alw_amt = Allowance_Amount_ASG_LE_COMP_YTD
4988 l_lty_tax_alw_amt = Taxable_Allowances_ASG_LE_COMP_YTD
4989 l_lty_tax_alw_proj_amt = Taxable_Allowances_For_Projection_ASG_COMP_YTD
4990 l_lty_alw_exp_amt = Allowance_Expense_Amount_ASG_LE_COMP_YTD
4991 l_lty_alw_std_amt = Allowances_Standard_Value_ASG_COMP_YTD
4992 l_lty_adj_alw_amt = Adjusted_Advance_for_Allowances_ASG_LE_COMP_YTD
4993
4994
4995 /* CODE SECTION */
4996
4997 l_allowance_le_start = IN_VALUE_ON_LE_START(''Allowance Amount'',
4998 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
4999 + IN_VALUE_ON_LE_START(''Adjusted Advance for Allowances'',
5000 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5001
5002 l_expenditure_le_start = IN_VALUE_ON_LE_START(''Allowance Expense Amount'',
5003 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5004 l_taxable_le_start = IN_VALUE_ON_LE_START(''Taxable Allowances'',
5005 ''_ASG_LE_COMP_YTD'',''SOURCE_TEXT2'',Component_Name,l_success)
5006
5007 l_Allowance_Amount = Allowance_Amount_ASG_LE_COMP_YTD
5008 - l_allowance_le_start
5009 + Adjusted_Advance_for_Allowances_ASG_LE_COMP_YTD
5010 + Allowance_Amount
5011
5012 IF NATURE_OF_EXPENSE = ''R'' THEN
5013 Projected_Expense = Actual_Expenditure
5014
5015 l_Actual_Expenditure = Allowance_Expense_Amount_ASG_LE_COMP_YTD
5016 - l_expenditure_le_start
5017 + Actual_Expenditure
5018
5019 Taxable_Value = l_Allowance_Amount
5020 - LEAST(l_Allowance_Amount, l_Actual_Expenditure, l_max_exem_amt)
5021 - (Taxable_Allowances_ASG_LE_COMP_YTD - l_taxable_le_start)
5022
5023 Standard_Taxable_Value = Standard_Value -
5024 LEAST(Standard_Value,Projected_Expense, l_max_exem_amt)
5025
5026 /* Advance functionality*/
5027 Actual_allowance_amount = Allowance_amount
5028 Pending_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5029 Allowance_amount = GREATEST((Actual_allowance_amount - Pending_Advance),0)
5030 Adjusted_advance = GREATEST((Actual_allowance_amount - Allowance_amount),0)
5031
5032
5033
5034 /* RETURN SECTION */
5035
5036 RETURN Taxable_Value,
5037 Standard_Taxable_Value,
5038 Allowance_amount,
5039 Adjusted_advance
5040
5041 /* End of Formula */ ';
5042
5043 ----------------------------------------------------------------
5044 -- FORMULA FOR LTC EARNINGS
5045 ----------------------------------------------------------------
5046 pay_in_utils.set_location(g_debug, l_procedure,50);
5047 g_formula_obj(3).name := '_LTC_CALC';
5048 g_formula_obj(3).text :=
5049 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5050 /*----------------------------------------------------------------------
5051 FORMULA NAME : <BASE NAME>_LTC_CALC
5052 FORMULA TYPE : Oracle Payroll
5053 DESCRIPTION : Formula for LTC Earnings in India Localization
5054 -----------------------------------------------------------------------*/
5055 /* DEFAULT SECTION */
5056 /* Input Value Defaults */
5057 DEFAULT FOR Carryover_from_Prev_Block IS ''N''
5058 DEFAULT FOR Exempted IS ''N''
5059 DEFAULT FOR Component_Name IS ''Leave Travel Concession''
5060
5061 /* Defined Balance Defaults */
5062 DEFAULT FOR Outstanding_Advance_for_Earnings_ASG_COMP_LTD IS 0
5063
5064 DEFAULT FOR Employer_Contribution_for_LTC_ASG_COMP_RUN IS 0
5065
5066 /* INPUT SECTION */
5067 INPUTS ARE Employer_Contribution
5068 ,Ticket_Fare
5069 ,Exempted(text)
5070 ,Carryover_from_Prev_Block(text)
5071 ,Component_Name(text)
5072
5073 /* Following is intended to initialize latest balances */
5074 l_lt_advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5075
5076 /* INITIALIZATION SECTION */
5077 /* Initialization of Out Variables */
5078 Carry_Over_Flag = Carryover_from_Prev_Block
5079 Exempted_Flag = Exempted
5080 Payable_Value = 0
5081 adjusted_advance = 0
5082 Exempted_Amt = 0
5083
5084 /* CODE SECTION */
5085 l_count = IN_LTC_DETAILS(Carry_Over_Flag,Exempted_Flag)
5086
5087 IF (Exempted_Flag = ''Y'') THEN
5088 Taxable_value = GREATEST((Employer_Contribution - Ticket_Fare),0)
5089 ELSE
5090 Taxable_value = GREATEST(Employer_Contribution ,0)
5091 Approved_benefit_Value = Employer_Contribution
5092
5093 /* Adjust with any outstanding advance */
5094
5095 Pending_Advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5096 Payable_Value = GREATEST((Approved_benefit_Value - Pending_Advance ),0)
5097 Adjusted_advance = GREATEST((Approved_benefit_Value - Payable_Value),0)
5098
5099
5100 Exempted_Amt = Payable_Value - Taxable_value
5101
5102 IF Ticket_Fare = 0 THEN
5103 Exempted_Flag = ''N''
5104
5108 Exempted_Amt,
5105 /* RETURN SECTION */
5106 RETURN Payable_Value,
5107 adjusted_advance,
5109 Exempted_Flag,
5110 Carry_Over_Flag
5111
5112 /* End of Formula */ ';
5113
5114 ----------------------------------------------------------------
5115 -- FORMULA FOR ADVANCES ON EARNINGS
5116 ----------------------------------------------------------------
5117 pay_in_utils.set_location(g_debug, l_procedure,60);
5118 g_formula_obj(4).name := '_LTC_ADV_CALC';
5119 g_formula_obj(4).text :=
5120 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5121 /*----------------------------------------------------------------------
5122 FORMULA NAME : <BASE NAME>_LTC_ADV_CALC
5123 FORMULA TYPE : Oracle Payroll
5124 DESCRIPTION : Formula for Advances on Earnings in India Localization
5125 -----------------------------------------------------------------------*/
5126 /* DEFAULT SECTION */
5127 DEFAULT FOR Excess_Advance IS ''PENDING''
5128 DEFAULT FOR Advance_Amount IS 0
5129 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5130
5131 /* Default for Database Items */
5132 DEFAULT FOR Outstanding_Advance_for_Earnings_ASG_COMP_LTD IS 0
5133
5134
5135
5136 /* INPUT SECTION */
5137 INPUTS ARE Advance_Amount,
5138 Excess_Advance(text),
5139 Add_to_Net_Pay (text),
5140 Component_Name (text)
5141
5142 /* Initialisation of latest balances */
5143 l_lt_outstanding_adv = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5144
5145 IF (Add_to_Net_Pay =''Y'') THEN
5146 Payable_Value = Advance_Amount
5147 ELSE
5148 Payable_Value = 0
5149
5150 IF(Excess_Advance = ''PENDING'') THEN
5151 RETURN Payable_Value
5152 ELSE
5153 RETURN Payable_Value,
5154 Excess_Advance,
5155 Component_Name
5156
5157 /* End of Formula */ ';
5158
5159 ----------------------------------------------------------------
5160 -- FORMULA FOR FRINGE BENEFIT CALCULATIONS
5161 ----------------------------------------------------------------
5162 pay_in_utils.set_location(g_debug, l_procedure,70);
5163 g_formula_obj(5).name := '_FB_CALC';
5164 g_formula_obj(5).text :=
5165 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5166
5167 /*----------------------------------------------------------------------
5168 FORMULA NAME : MED_BEN_FB_CALC
5169 FORMULA TYPE : Oracle Payroll
5170 DESCRIPTION : Formula for Fringe Benefits in India Localization
5171 -----------------------------------------------------------------------*/
5172 /* DEFAULT SECTION */
5173 DEFAULT FOR EMP_TERM_DATE IS ''4712/12/31 00:00:00'' (date)
5174 DEFAULT FOR EMP_HIRE_DATE IS ''1900/01/01 00:00:00'' (date)
5175 DEFAULT FOR PAY_PROC_PERIOD_END_DATE IS ''4712/12/31 00:00:00'' (date)
5176 DEFAULT FOR PAY_PROC_PERIOD_START_DATE IS ''2004/01/01 00:00:00'' (date)
5177 DEFAULT FOR IN_PAY_PROC_PERIOD_NUM is -99
5178 /* Input Value Defaults */
5179
5180 DEFAULT FOR Benefit_Amount is 0
5181 DEFAULT FOR Salary_under_Sec_17 IS 0
5182 DEFAULT FOR Maximum_Annual_Limit IS 0
5183 DEFAULT FOR Add_to_Net_Pay IS ''N''
5184 DEFAULT FOR Medical_Benefit IS ''N''
5185
5186 /* Defined Balance Defaults */
5187 DEFAULT FOR Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD IS 0
5188 DEFAULT FOR Reimbursement_Amount_ASG_COMP_YTD IS 0
5189 DEFAULT FOR Reimbursement_Amount_ASG_COMP_PTD IS 0
5190 DEFAULT FOR Medical_Reimbursement_Amount_ASG_YTD IS 0
5191 DEFAULT FOR Medical_Reimbursement_Amount_ASG_PTD IS 0
5192 DEFAULT FOR Bills_Submitted_ASG_COMP_RUN IS 0
5193 DEFAULT FOR Salary_under_Section_17_ASG_COMP_YTD IS 0
5194 DEFAULT FOR Medical_Bills_ASG_YTD IS 0
5195 DEFAULT FOR Annual_Projection_for_Reimbursement_ASG_COMP_PTD IS 0
5196
5197 /* INPUT SECTION */
5198 INPUTS ARE Benefit_Amount,
5199 Salary_under_Sec_17,
5200 Maximum_Annual_Limit,
5201 Add_to_Net_Pay(text),
5202 Component_Name(text),
5203 Medical_Benefit(text)
5204
5205
5206 /* INITIALIZATION SECTION */
5207 /* Initialization of Out Variables */
5208 Payable_value = 0
5209 Fringe_Benefit_Value = 0
5210 adjusted_advance = 0
5211 Salary_under_Sec171 = Salary_under_Sec_17
5212 l_annual_projected_value = 0
5213 l_ann_ben_amt = 0
5214 Projected_salary_under_sec171 = 0
5215 taxable_fringe_benefit = 0
5216
5217 /* Initialization of Local Variables */
5218 l_med_benefit = 0
5219
5220 LRPP = IN_GET_PAY_PERIODS(PAY_PROC_PERIOD_END_DATE,
5221 EMP_TERM_DATE,
5222 IN_PAY_PROC_PERIOD_NUM,
5223 ''X'')
5224 RECURRING = IN_GET_PROCESSING_TYPE()
5225
5226 /* Code Section */
5227 /* IF Benefit_Amount WAS DEFAULTED THEN
5228 Benefit_Amount = Bills_Submitted_ASG_COMP_RUN*/
5229
5230
5231
5232 /* Reimbursement_Amount_ASG_COMP_YTD - Holds the fringe benefit amount under each component.
5233 Do not use this for Superannuation . For each component, tax varies . It could be 10% or 20% depending on component */
5234
5235 /* For Superannuation use the Taxable_Fringe_Benefit_ASG_COMP_YTD and apply FBT on top of it */
5236
5237 /* Salary_under_Section_17_ASG_COMP_YTD - Taxable to employee for Medical benefit */
5238
5239
5243 */
5240 /* Ensure total money paid out to employee does not exceed Maximum_Annual_Limit
5241 Adjust against outstanding advance
5242 Determine payable in current period
5244
5245 IF Maximum_Annual_Limit WAS NOT DEFAULTED THEN
5246 (
5247 Annual_Approved_value =
5248 LEAST(Maximum_Annual_Limit,
5249 (Reimbursement_Amount_ASG_COMP_YTD + Taxable_Fringe_Benefit_ASG_COMP_YTD + Benefit_Amount + Salary_under_Section_17_ASG_COMP_YTD)
5250 )
5251
5252 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)
5253
5254 payable_value = GREATEST((Approved_Benefit_in_Current_Period - Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD ),0)
5255 )
5256 ELSE
5257 (
5258 Approved_Benefit_in_Current_Period = Benefit_Amount
5259 payable_value = GREATEST((Approved_Benefit_in_Current_Period - Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD ),0)
5260 )
5261
5262 adjusted_advance = Approved_Benefit_in_Current_Period - payable_value
5263 Fringe_Benefit_Value = Approved_Benefit_in_Current_Period
5264
5265 l_fbt_value_till_date = Reimbursement_Amount_ASG_COMP_YTD + Taxable_Fringe_Benefit_ASG_COMP_YTD + Fringe_Benefit_Value
5266 l_projection_for_rpp = (Fringe_Benefit_Value + Reimbursement_Amount_ASG_COMP_PTD + Taxable_Fringe_Benefit_ASG_COMP_PTD)*LRPP
5267
5268 /* Medical Benefit - Special Handling */
5269 IF (Component_Name =''Employees Welfare Expense'' AND Medical_Benefit = ''Y'') THEN
5270 (
5271 prev_med_reimburse_amt = IN_PREV_MEDICAL_REIMBURSEMENT()
5272 l_max_exempted_amt = GREATEST((IN_EXEMPT_MEDICAL_PERQUISITE - prev_med_reimburse_amt),0)
5273
5274 l_med_benefit = Medical_Reimbursement_Amount_ASG_YTD
5275 + Approved_Benefit_in_Current_Period
5276 + Salary_under_Section_17_ASG_COMP_YTD
5277
5278
5279
5280 IF(Medical_Bills_ASG_YTD < l_max_exempted_amt) THEN
5281 (
5282 Salary_under_Sec171 = l_med_benefit - Medical_Bills_ASG_YTD
5283 )
5284 ELSE
5285 (
5286 l_tax_exempt = LEAST(Medical_Bills_ASG_YTD,l_max_exempted_amt)
5287 Salary_under_Sec171 = l_med_benefit - l_tax_exempt
5288 )
5289
5290 /* Reimbursement projection Start*/
5291 IF RECURRING = ''R'' THEN
5292 (
5293 IF Maximum_Annual_Limit WAS NOT DEFAULTED THEN
5294 (
5295 Projected_salary_under_sec171 = LEAST((l_med_benefit + Benefit_Amount*LRPP),Maximum_Annual_Limit) - l_med_benefit
5296 )
5297 ELSE
5298 (
5299 Projected_salary_under_sec171 = Benefit_Amount*LRPP
5300 )
5301 IF Salary_under_Sec171 < 0 THEN
5302 (
5303 Projected_salary_under_sec171 = Projected_salary_under_sec171 + Salary_under_Sec171
5304 )
5305 Projected_salary_under_sec171 = GREATEST(Projected_salary_under_sec171,0)
5306 )
5307 Salary_under_Sec171 = GREATEST(Salary_under_Sec171,0)
5308 Salary_under_Sec171 = Salary_under_Sec171 - Salary_under_Section_17_ASG_COMP_YTD
5309 Fringe_Benefit_Value = Fringe_Benefit_Value - Salary_under_Sec171
5310 l_fbt_value_till_date = Medical_Reimbursement_Amount_ASG_YTD + Fringe_Benefit_Value
5311 l_tot_fringe_benefit = LEAST( Medical_Bills_ASG_YTD,l_max_exempted_amt)
5312 l_projection_for_rpp = l_tot_fringe_benefit - l_fbt_value_till_date
5313 )
5314 IF RECURRING = ''R'' THEN
5315 (
5316 IF Maximum_Annual_Limit WAS NOT DEFAULTED THEN
5317 (
5318 l_annual_projected_value = LEAST(l_fbt_value_till_date + l_projection_for_rpp,
5319 Maximum_Annual_Limit)
5320
5321 )
5322 ELSE
5323 (
5324 l_annual_projected_value = l_fbt_value_till_date + l_projection_for_rpp
5325 )
5326 IF (Component_Name =''Employees Welfare Expense'' AND Medical_Benefit = ''Y'') THEN
5327 (
5328 l_ann_ben_amt = Salary_under_Section_17_ASG_COMP_YTD + Salary_under_Sec171
5329 + Medical_Reimbursement_Amount_ASG_YTD + Fringe_Benefit_Value
5330 + (Benefit_Amount * LRPP)
5331 l_annual_projected_value = LEAST(l_annual_projected_value,l_ann_ben_amt)
5332 )
5333 )
5334 Annual_projected_value = l_annual_projected_value - Annual_Projection_for_Reimbursement_ASG_COMP_PTD
5335 /* Reimbursement projection End */
5336
5337 IF (Add_to_Net_Pay =''N'') THEN
5338 Payable_Value = 0
5339
5340 /* Superannuation - Special handling */
5341 IF Component_Name = ''Superannuation Fund'' THEN
5342 (
5343 IF Reimbursement_Amount_ASG_COMP_YTD + Fringe_Benefit_Value > IN_SUPERANNUATION_FBT THEN
5344 (
5345 taxable_fringe_benefit = Fringe_Benefit_Value
5346 + Reimbursement_Amount_ASG_COMP_YTD
5347
5348 Fringe_Benefit_Value = 0 - Reimbursement_Amount_ASG_COMP_YTD
5349 )
5350 ELSE IF Taxable_Fringe_Benefit_ASG_COMP_YTD + Fringe_Benefit_Value > IN_SUPERANNUATION_FBT THEN
5351 (
5352 taxable_fringe_benefit = Fringe_Benefit_Value
5353 Fringe_Benefit_Value = 0
5354 )
5355 )
5356
5357
5358 /* RETURN SECTION */
5359 RETURN Payable_value,
5360 Fringe_Benefit_Value,
5361 adjusted_advance,
5362 Salary_under_Sec171,
5363 Annual_projected_value,
5364 Projected_salary_under_sec171,
5368 ';
5365 taxable_fringe_benefit,
5366 Component_Name
5367 /* End of Formula */
5369
5370 ----------------------------------------------------------------
5371 -- FORMULA FOR ADVANCES ON FRINGE BENEFITS
5372 ----------------------------------------------------------------
5373 pay_in_utils.set_location(g_debug, l_procedure,80);
5374 g_formula_obj(6).name := '_FB_ADV_CALC';
5375 g_formula_obj(6).text :=
5376 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5377
5378 /*----------------------------------------------------------------------
5379 FORMULA NAME : <BASE NAME>_FB_ADV_CALC
5380 FORMULA TYPE : Oracle Payroll
5381 DESCRIPTION : Formula for Advance Calculation for Fringe Benefits in India Localization
5382 -----------------------------------------------------------------------*/
5383 /* DEFAULT SECTION */
5384 DEFAULT FOR Excess_Advance IS ''PENDING''
5385 DEFAULT FOR Advance_Amount IS 0
5386 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5387
5388 /* Default for Database Items */
5389 DEFAULT FOR Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD IS 0
5390
5391
5392
5393
5394 /* INPUT SECTION */
5395 INPUTS ARE Advance_Amount,
5396 Excess_Advance(text),
5397 Add_to_Net_Pay (text),
5398 Component_Name (text)
5399
5400 /* Initialisation of latest balances */
5401 l_lt_outstanding_adv = Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD
5402
5403 IF (Add_to_Net_Pay =''Y'') THEN
5404 Payable_Value = Advance_Amount
5405 ELSE
5406 Payable_Value = 0
5407
5408 IF(Excess_Advance = ''PENDING'') THEN
5409 RETURN Payable_Value
5410 ELSE
5411 RETURN Payable_Value,
5412 Excess_Advance,
5413 Component_Name
5414
5415 /* End of Formula */
5416 ';
5417
5418 pay_in_utils.set_location(g_debug,'Leaving: '|| l_procedure,100);
5419
5420 ----------------------------------------------------------------
5421 -- FORMULA FOR ADVANCES ON FIXED ALLOWANCES
5422 ----------------------------------------------------------------
5423 pay_in_utils.set_location(g_debug, l_procedure,80);
5424 g_formula_obj(7).name := '_FX_ADV_CALC';
5425 g_formula_obj(7).text :=
5426 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5427 /*----------------------------------------------------------------------
5428 FORMULA NAME : <BASE NAME>_FX_ADV_CALC
5429 FORMULA TYPE : Oracle Payroll
5430 DESCRIPTION : Formula for Advances on Fix Allowances in India Localization
5431 -----------------------------------------------------------------------*/
5432 /* DEFAULT SECTION */
5433 DEFAULT FOR Excess_Advance IS ''PENDING''
5434 DEFAULT FOR Advance_Amount IS 0
5435 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5436
5437 /* Default for Database Items */
5438 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5439
5440
5441
5442
5443 /* INPUT SECTION */
5444 INPUTS ARE Advance_Amount,
5445 Excess_Advance(text),
5446 Add_to_Net_Pay (text),
5447 Component_Name (text)
5448
5449 /* Initialisation of latest balances */
5450 l_lt_outstanding_adv =Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5451
5452 IF (Add_to_Net_Pay =''Y'') THEN
5453 Payable_Value = Advance_Amount
5454 ELSE
5455 Payable_Value = 0
5456
5457 IF(Excess_Advance = ''PENDING'') THEN
5458 RETURN Payable_Value
5459 ELSE
5460 RETURN Payable_Value,
5461 Excess_Advance,
5462 Component_Name
5463
5464 /* End of Formula */
5465 ';
5466
5467 ----------------------------------------------------------------
5468 -- FORMULA FOR ADVANCES ON ACTUAL EXPENSE ALLOWANCES
5469 ----------------------------------------------------------------
5470 pay_in_utils.set_location(g_debug, l_procedure,80);
5471 g_formula_obj(8).name := '_AE_ADV_CALC';
5472 g_formula_obj(8).text :=
5473 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5474 /*----------------------------------------------------------------------
5475 FORMULA NAME : <BASE NAME>_AE_ADV_CALC
5476 FORMULA TYPE : Oracle Payroll
5477 DESCRIPTION : Formula for Advances on Actual allowances in India Localization
5478 -----------------------------------------------------------------------*/
5479 /* DEFAULT SECTION */
5480 DEFAULT FOR Excess_Advance IS ''PENDING''
5481 DEFAULT FOR Advance_Amount IS 0
5482 DEFAULT FOR Add_to_Net_Pay IS ''Y''
5483
5484 /* Default for Database Items */
5485 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5486
5487 /* INPUT SECTION */
5488 INPUTS ARE Advance_Amount,
5489 Excess_Advance(text),
5490 Add_to_Net_Pay (text),
5491 Component_Name (text)
5492
5493 /* Initialisation of latest balances */
5494 l_lt_outstanding_adv =Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5495
5496 IF (Add_to_Net_Pay =''Y'') THEN
5497 Payable_Value = Advance_Amount
5498 ELSE
5499 Payable_Value = 0
5500
5501 IF(Excess_Advance = ''PENDING'') THEN
5502 RETURN Payable_Value
5503 ELSE
5504 RETURN Payable_Value,
5505 Excess_Advance,
5506 Component_Name
5507
5511 ----------------------------------------------------------------
5508 /* End of Formula */
5509 ';
5510
5512 -- FORMULA FOR EXCESS ADVANCES ON FRINGE BENEFITS
5513 ----------------------------------------------------------------
5514 g_formula_obj(9).name := '_FB_EXC_ADV';
5515 g_formula_obj(9).text :=
5516 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5517
5518 /*----------------------------------------------------------------------
5519 FORMULA NAME : <BASE NAME>_FB_EXC_ADV
5520 FORMULA TYPE : Oracle Payroll
5521 DESCRIPTION : Formula for Excess Advance Calculation for Fringe Benefits in India Localization
5522 -----------------------------------------------------------------------*/
5523
5524
5525 /* DEFAULT SECTION */
5526 /* Input Value Defaults */
5527 DEFAULT FOR Excess_Advance IS ''PENDING''
5528 DEFAULT FOR Advance_Amount IS 0
5529
5530
5531 /* Default for Database Items */
5532 DEFAULT FOR Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD IS 0
5533
5534
5535
5536
5537 /* INPUT SECTION */
5538 INPUTS ARE Excess_Advance(text),
5539 Component_Name (text)
5540
5541
5542
5543 /* INITIALIZATION SECTION */
5544 /* Initialization of out variables */
5545
5546 Recovered_Advance = 0
5547 Salary_Sec171 = 0
5548 Adjustment_Amt = 0
5549 Component_Name_Pay = Component_Name
5550 Component_Name_Rec = Component_Name
5551
5552
5553 IF (Excess_Advance =''PAY'' ) THEN
5554 (
5555
5556 Salary_Sec171 = Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD
5557 Recovered_Advance = Salary_Sec171
5558 Adjustment_Amt = Recovered_Advance
5559
5560
5561 IF(Recovered_Advance <> 0) THEN
5562 (
5563
5564 RETURN Salary_Sec171,
5565 Recovered_Advance,
5566 Adjustment_Amt,
5567 Component_Name_Pay,
5568 Component_Name_Rec
5569 )
5570
5571 )
5572 ELSE IF (Excess_Advance =''RECOVER'' ) THEN
5573 (
5574 Recovered_Advance = Outstanding_Advance_for_Fringe_Benefits_ASG_COMP_LTD
5575
5576 IF Recovered_Advance <> 0 THEN
5577 RETURN Recovered_Advance,
5578 Component_Name_Rec
5579 )
5580
5581 RETURN
5582
5583 /* End of Formula */
5584 ';
5585
5586 pay_in_utils.set_location(g_debug,'Leaving: '|| l_procedure,100);
5587
5588 ----------------------------------------------------------------
5589 -- FORMULA FOR EXCESS ADVANCES ON FIXED ALLOWANCES
5590 ----------------------------------------------------------------
5591 pay_in_utils.set_location(g_debug, l_procedure,80);
5592 g_formula_obj(10).name := '_FX_EXC_ADV';
5593 g_formula_obj(10).text :=
5594 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5595 /*----------------------------------------------------------------------
5596 FORMULA NAME : <BASE NAME>_FX_EXC_ADV
5597 FORMULA TYPE : Oracle Payroll
5598 DESCRIPTION : Formula for Excess Advances on Fix Allowances in India Localization
5599 -----------------------------------------------------------------------*/
5600
5601 /* DEFAULT SECTION */
5602 DEFAULT FOR Excess_Advance IS ''PENDING''
5603
5604 /* Default for Database Items */
5605 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5606
5607
5608
5609
5610 /* INPUT SECTION */
5611 INPUTS ARE Excess_Advance(text),
5612 Component_Name (text)
5613
5614 /* INITIALIZATION SECTION */
5615 /* Initialization of local variables */
5616
5617 Recovered_Advance = 0
5618 Salary_Sec171 = 0
5619 Adjustment_Amt = 0
5620 Component_Name_Pay = Component_Name
5621 Component_Name_Rec = Component_Name
5622
5623
5624
5625 IF (Excess_Advance = ''PAY'' ) THEN
5626 (
5627
5628 Salary_Sec171 = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5629 Recovered_Advance = Salary_Sec171
5630 Adjustment_Amt = Recovered_Advance
5631
5632
5633 IF(Recovered_Advance <> 0) THEN
5634 (
5635 RETURN Salary_Sec171,
5636 Recovered_Advance,
5637 Adjustment_Amt,
5638 Component_Name_Pay,
5639 Component_Name_Rec
5640 )
5641 )
5642 ELSE IF (Excess_Advance = ''RECOVER'' ) THEN
5643 (
5644
5645 Recovered_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5646
5647
5648 IF Recovered_Advance <> 0 THEN
5649 RETURN Recovered_Advance,
5650 Component_Name_Rec
5651 )
5652
5653 RETURN
5654
5655 /* End of Formula */
5656 ';
5657
5658 ----------------------------------------------------------------
5659 -- FORMULA FOR excess ADVANCES ON ACTUAL EXPENSE ALLOWANCES
5660 ----------------------------------------------------------------
5661 pay_in_utils.set_location(g_debug, l_procedure,80);
5662 g_formula_obj(11).name := '_AE_EXC_ADV';
5663 g_formula_obj(11).text :=
5664 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5665 /*----------------------------------------------------------------------
5666 FORMULA NAME : <BASE NAME>_AE_EXC_ADV
5670
5667 FORMULA TYPE : Oracle Payroll
5668 DESCRIPTION : Formula for Advances on Actual allowances in India Localization
5669 -----------------------------------------------------------------------*/
5671 /* DEFAULT SECTION */
5672 DEFAULT FOR Excess_Advance IS ''PENDING''
5673
5674 /* Default for Database Items */
5675 DEFAULT FOR Outstanding_Advance_for_Allowances_ASG_COMP_LTD IS 0
5676
5677
5678
5679
5680 /* INPUT SECTION */
5681 INPUTS ARE Excess_Advance(text),
5682 Component_Name (text)
5683
5684 /* INITIALIZATION SECTION */
5685 /* Initialization of local variables */
5686
5687 Recovered_Advance = 0
5688 Salary_Sec171 = 0
5689 Adjustment_Amt = 0
5690 Component_Name_Pay = Component_Name
5691 Component_Name_Rec = Component_Name
5692
5693
5694
5695 IF (Excess_Advance =''PAY'' ) THEN
5696 (
5697
5698 Salary_Sec171 = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5699 Recovered_Advance = Salary_Sec171
5700 Adjustment_Amt = Recovered_Advance
5701
5702
5703 IF(Recovered_Advance <> 0) THEN
5704 (
5705 RETURN Salary_Sec171,
5706 Recovered_Advance,
5707 Adjustment_Amt,
5708 Component_Name_Pay,
5709 Component_Name_Rec
5710 )
5711 )
5712 ELSE IF (Excess_Advance =''RECOVER'' ) THEN
5713 (
5714
5715 Recovered_Advance = Outstanding_Advance_for_Allowances_ASG_COMP_LTD
5716
5717
5718 IF Recovered_Advance <> 0 THEN
5719 RETURN Recovered_Advance,
5720 Component_Name_Rec
5721 )
5722
5723 RETURN
5724
5725 /* End of Formula */
5726
5727 ';
5728 ----------------------------------------------------------------
5729 -- FORMULA FOR excess ADVANCES ON ACTUAL EXPENSE ALLOWANCES
5730 ----------------------------------------------------------------
5731 pay_in_utils.set_location(g_debug, l_procedure,80);
5732 g_formula_obj(12).name := '_LTC_EXC_ADV';
5733 g_formula_obj(12).text :=
5734 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5735 /*----------------------------------------------------------------------
5736 FORMULA NAME : <BASE NAME>_LTC_EXC_ADV
5737 FORMULA TYPE : Oracle Payroll
5738 DESCRIPTION : Formula for Excess Advances on LTC in India Localization
5739 -----------------------------------------------------------------------*/
5740 /* DEFAULT SECTION */
5741 /* Input Value Defaults */
5742 DEFAULT FOR Excess_Advance IS ''PENDING''
5743
5744 /* Defined Balance Defaults */
5745 DEFAULT FOR Outstanding_Advance_for_Earnings_ASG_COMP_LTD IS 0
5746 DEFAULT FOR Excess_Advance_for_Earnings_ASG_COMP_RUN IS 0
5747
5748
5749
5750 /* INPUT SECTION */
5751 INPUTS ARE Excess_Advance(text),
5752 Component_Name (text)
5753
5754 /* Following is intended to initialize latest balances */
5755 l_lt_advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5756
5757 /* INITIALIZATION SECTION */
5758 /* Initialization of out variables */
5759 Recovered_Advance = 0
5760 Salary_Sec171 = 0
5761 Adjustment_Amt = 0
5762 Component_Name_Pay = Component_Name
5763 Component_Name_Rec = Component_Name
5764
5765
5766 IF (Excess_Advance =''PAY'' ) THEN
5767 (
5768
5769 Salary_Sec171 = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5770 Recovered_Advance = Salary_Sec171
5771 Adjustment_Amt = Recovered_Advance
5772
5773
5774 IF(Recovered_Advance <> 0) THEN
5775 (
5776
5777 RETURN Salary_Sec171,
5778 Recovered_Advance,
5779 Adjustment_Amt,
5780 Component_Name_Pay,
5781 Component_Name_Rec
5782 )
5783 )
5784 ELSE IF (Excess_Advance =''RECOVER'' ) THEN
5785 (
5786 Recovered_Advance = Outstanding_Advance_for_Earnings_ASG_COMP_LTD
5787
5788 IF Recovered_Advance <> 0 THEN
5789 (
5790 RETURN Recovered_Advance,
5791 Component_Name_Rec
5792 )
5793 )
5794
5795 RETURN
5796
5797 /* End of Formula */';
5798
5799 ----------------------------------------------------------------
5800 -- FORMULA FOR EMPLOYER CHARGES
5801 ----------------------------------------------------------------
5802 pay_in_utils.set_location(g_debug, l_procedure,60);
5803 g_formula_obj(13).name := '_EC_CALC';
5804 g_formula_obj(13).text :=
5805 '/* $Header: pyinetst.pkb 120.12.12010000.4 2008/09/17 10:50:33 lnagaraj ship $ */
5806 /*----------------------------------------------------------------------
5807 FORMULA NAME : <BASE NAME>_EC_CALC
5808 FORMULA TYPE : Oracle Payroll
5809 DESCRIPTION : Formula for Employer Charges in India Localization
5810 -----------------------------------------------------------------------*/
5811 /* DEFAULT SECTION */
5812
5813 /* Default for Database Items */
5814 DEFAULT FOR PENSION_COMPUTATION_SALARY_ASG_PTD IS 0
5815 DEFAULT FOR PENSION_COMPUTATION_STANDARD_SALARY_ASG_PTD IS 0
5816 DEFAULT FOR EMPLOYER_PENSION_CONTRIBUTION_ASG_PTD IS 0
5817 DEFAULT FOR EMPLOYER_STANDARD_PENSION_CONTRIBUTION_ASG_PTD IS 0
5818
5819 /* INPUT SECTION */
5820 INPUTS ARE Contribution_Percentage
5821
5822
5823
5824 EC_PAY_VALUE=(PENSION_COMPUTATION_SALARY_ASG_PTD*Contribution_Percentage)/100-
5825 EMPLOYER_PENSION_CONTRIBUTION_ASG_PTD
5826 EC_STANDARD_VALUE=(PENSION_COMPUTATION_STANDARD_SALARY_ASG_PTD*Contribution_Percentage)/100 -
5827 EMPLOYER_STANDARD_PENSION_CONTRIBUTION_ASG_PTD
5828
5829
5830 RETURN EC_PAY_VALUE,
5831 EC_STANDARD_VALUE
5832
5833 /* End of Formula */ ';
5834
5835
5836 pay_in_utils.set_location(g_debug,'Leaving: '|| l_procedure,100);
5837 END init_formula;
5838
5839 END pay_in_etw_struct;