1 Package Body pay_evq_ins as
2 /* $Header: pyevqrhi.pkb 120.0 2005/05/29 04:49:50 appldev noship $ */
3 --
4 -- ----------------------------------------------------------------------------
5 -- | Private Global Definitions |
6 -- ----------------------------------------------------------------------------
7 --
8 g_package varchar2(33) := ' pay_evq_ins.'; -- Global package name
9 --
10 -- The following global variables are only to be used by
11 -- the set_base_key_value and pre_insert procedures.
12 --
13 g_event_qualifier_id_i number default null;
14 --
15 -- ----------------------------------------------------------------------------
16 -- |------------------------< set_base_key_value >----------------------------|
17 -- ----------------------------------------------------------------------------
18 procedure set_base_key_value
19 (p_event_qualifier_id in number) is
20 --
21 l_proc varchar2(72) := g_package||'set_base_key_value';
22 --
23 Begin
24 hr_utility.set_location('Entering:'||l_proc, 10);
25 --
26 pay_evq_ins.g_event_qualifier_id_i := p_event_qualifier_id;
27 --
28 hr_utility.set_location(' Leaving:'||l_proc, 20);
29 End set_base_key_value;
30 --
31 --
32 -- ----------------------------------------------------------------------------
33 -- |----------------------------< dt_insert_dml >-----------------------------|
34 -- ----------------------------------------------------------------------------
35 -- {Start Of Comments}
36 --
37 -- Description:
38 -- This procedure controls the actual dml insert logic for datetrack. The
39 -- functions of this procedure are as follows:
40 -- 1) Get the object_version_number.
41 -- 2) To set the effective start and end dates to the corresponding
42 -- validation start and end dates. Also, the object version number
43 -- record attribute is set.
44 -- 3) To set and unset the g_api_dml status as required (as we are about to
45 -- perform dml).
46 -- 4) To insert the row into the schema with the derived effective start
47 -- and end dates and the object version number.
48 -- 5) To trap any constraint violations that may have occurred.
49 -- 6) To raise any other errors.
50 --
51 -- Prerequisites:
52 -- This is an internal private procedure which must be called from the
53 -- insert_dml and pre_update (logic permitting) procedure and must have
54 -- all mandatory arguments set.
55 --
56 -- In Parameters:
57 -- A Pl/Sql record structure.
58 --
59 -- Post Success:
60 -- The specified row will be inserted into the schema.
61 --
62 -- Post Failure:
63 -- On the insert dml failure it is important to note that we always reset the
64 -- g_api_dml status to false.
65 -- If a check or unique integrity constraint violation is raised the
66 -- constraint_error procedure will be called.
67 -- If any other error is reported, the error will be raised after the
68 -- g_api_dml status is reset.
69 --
70 -- Developer Implementation Notes:
71 -- This is an internal datetrack maintenance procedure which should
72 -- not be modified in anyway.
73 --
74 -- Access Status:
75 -- Internal Row Handler Use Only.
76 --
77 -- {End Of Comments}
78 -- ----------------------------------------------------------------------------
79 Procedure dt_insert_dml
80 (p_rec in out nocopy pay_evq_shd.g_rec_type
81 ,p_effective_date in date
82 ,p_datetrack_mode in varchar2
83 ,p_validation_start_date in date
84 ,p_validation_end_date in date
85 ) is
86 -- Cursor to select 'old' created AOL who column values
87 --
88 Cursor C_Sel1 Is
89 select t.created_by,
90 t.creation_date
91 from pay_event_qualifiers_f t
92 where t.event_qualifier_id = p_rec.event_qualifier_id
93 and t.effective_start_date =
94 pay_evq_shd.g_old_rec.effective_start_date
95 and t.effective_end_date = (p_validation_start_date - 1);
96 --
97 l_proc varchar2(72) := g_package||'dt_insert_dml';
98 l_created_by pay_event_qualifiers_f.created_by%TYPE;
99 l_creation_date pay_event_qualifiers_f.creation_date%TYPE;
100 l_last_update_date pay_event_qualifiers_f.last_update_date%TYPE;
101 l_last_updated_by pay_event_qualifiers_f.last_updated_by%TYPE;
102 l_last_update_login pay_event_qualifiers_f.last_update_login%TYPE;
103 --
104 Begin
105 hr_utility.set_location('Entering:'||l_proc, 5);
106 --
107 -- Get the object version number for the insert
108 --
109 p_rec.object_version_number :=
110 dt_api.get_object_version_number
111 (p_base_table_name => 'pay_event_qualifiers_f'
112 ,p_base_key_column => 'event_qualifier_id'
113 ,p_base_key_value => p_rec.event_qualifier_id
114 );
115 --
116 -- Set the effective start and end dates to the corresponding
117 -- validation start and end dates
118 --
119 p_rec.effective_start_date := p_validation_start_date;
120 p_rec.effective_end_date := p_validation_end_date;
121 --
122 -- If the datetrack_mode is not INSERT then we must populate the WHO
123 -- columns with the 'old' creation values and 'new' updated values.
124 --
125 If (p_datetrack_mode <> hr_api.g_insert) then
126 hr_utility.set_location(l_proc, 10);
127 --
128 -- Select the 'old' created values
129 --
130 Open C_Sel1;
131 Fetch C_Sel1 Into l_created_by, l_creation_date;
132 If C_Sel1%notfound Then
133 --
134 -- The previous 'old' created row has not been found. We need
135 -- to error as an internal datetrack problem exists.
136 --
137 Close C_Sel1;
138 fnd_message.set_name('PAY', 'HR_6153_ALL_PROCEDURE_FAIL');
139 fnd_message.set_token('PROCEDURE', l_proc);
140 fnd_message.set_token('STEP','10');
141 fnd_message.raise_error;
142 End If;
143 Close C_Sel1;
144 --
145 -- Set the AOL updated WHO values
146 --
147 l_last_update_date := sysdate;
148 l_last_updated_by := fnd_global.user_id;
149 l_last_update_login := fnd_global.login_id;
150 End If;
151 --
152 --
153 --
154 -- Insert the row into: pay_event_qualifiers_f
155 --
156 insert into pay_event_qualifiers_f
157 (event_qualifier_id
158 ,effective_start_date
159 ,effective_end_date
160 ,dated_table_id
161 ,column_name
162 ,qualifier_name
163 ,legislation_code
164 ,business_group_id
165 ,comparison_column
166 ,qualifier_definition
167 ,qualifier_where_clause
168 ,entry_qualification
169 ,assignment_qualification
170 ,multi_event_sql
171 ,object_version_number
172 ,created_by
173 ,creation_date
174 ,last_update_date
175 ,last_updated_by
176 ,last_update_login
177 )
178 Values
179 (p_rec.event_qualifier_id
180 ,p_rec.effective_start_date
181 ,p_rec.effective_end_date
182 ,p_rec.dated_table_id
183 ,p_rec.column_name
184 ,p_rec.qualifier_name
185 ,p_rec.legislation_code
186 ,p_rec.business_group_id
187 ,p_rec.comparison_column
188 ,p_rec.qualifier_definition
189 ,p_rec.qualifier_where_clause
190 ,p_rec.entry_qualification
191 ,p_rec.assignment_qualification
192 ,p_rec.multi_event_sql
193 ,p_rec.object_version_number
194 ,l_created_by
195 ,l_creation_date
196 ,l_last_update_date
197 ,l_last_updated_by
198 ,l_last_update_login
199 );
200 --
201 --
202 hr_utility.set_location(' Leaving:'||l_proc, 15);
203 --
204 Exception
205 When hr_api.check_integrity_violated Then
206 -- A check constraint has been violated
207 --
208 pay_evq_shd.constraint_error
209 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
210 When hr_api.unique_integrity_violated Then
211 -- Unique integrity has been violated
212 --
213 pay_evq_shd.constraint_error
214 (p_constraint_name => hr_api.strip_constraint_name(SQLERRM));
215 When Others Then
216 --
217 Raise;
218 End dt_insert_dml;
219 --
220 -- ----------------------------------------------------------------------------
221 -- |-----------------------< create_app_ownerships >--------------------------|
222 -- ----------------------------------------------------------------------------
223 --
224 -- Description:
225 -- This procedure inserts a row into the HR_APPLICATION_OWNERSHIPS table
226 -- when the row handler is called in the appropriate mode.
227 --
228 -- ----------------------------------------------------------------------------
229 PROCEDURE create_app_ownerships(p_pk_column IN varchar2
230 ,p_pk_value IN varchar2) IS
231 --
232 CURSOR csr_definition IS
233 SELECT product_short_name
234 FROM hr_owner_definitions
235 WHERE session_id = hr_startup_data_api_support.g_session_id;
236 --
237 BEGIN
238 --
239 IF (hr_startup_data_api_support.return_startup_mode IN
240 ('STARTUP','GENERIC')) THEN
241 --
242 FOR c1 IN csr_definition LOOP
243 --
244 INSERT INTO hr_application_ownerships
245 (key_name
246 ,key_value
247 ,product_name
248 )
249 VALUES
250 (p_pk_column
251 ,fnd_number.number_to_canonical(p_pk_value)
252 ,c1.product_short_name
253 );
254 END LOOP;
255 END IF;
256 END create_app_ownerships;
257 --
258 -- ----------------------------------------------------------------------------
259 -- |-----------------------< create_app_ownerships >--------------------------|
260 -- ----------------------------------------------------------------------------
261 PROCEDURE create_app_ownerships(p_pk_column IN varchar2
262 ,p_pk_value IN number) IS
263 --
264 BEGIN
265 create_app_ownerships(p_pk_column, to_char(p_pk_value));
266 END create_app_ownerships;
267 --
268 -- ----------------------------------------------------------------------------
269 -- |------------------------------< insert_dml >------------------------------|
270 -- ----------------------------------------------------------------------------
271 Procedure insert_dml
272 (p_rec in out nocopy pay_evq_shd.g_rec_type
273 ,p_effective_date in date
274 ,p_datetrack_mode in varchar2
275 ,p_validation_start_date in date
276 ,p_validation_end_date in date
277 ) is
278 --
279 l_proc varchar2(72) := g_package||'insert_dml';
280 --
281 Begin
282 hr_utility.set_location('Entering:'||l_proc, 5);
283 --
284 pay_evq_ins.dt_insert_dml
285 (p_rec => p_rec
286 ,p_effective_date => p_effective_date
287 ,p_datetrack_mode => p_datetrack_mode
288 ,p_validation_start_date => p_validation_start_date
289 ,p_validation_end_date => p_validation_end_date
290 );
291 --
292 hr_utility.set_location(' Leaving:'||l_proc, 10);
293 End insert_dml;
294 --
295 -- ----------------------------------------------------------------------------
296 -- |------------------------------< pre_insert >------------------------------|
297 -- ----------------------------------------------------------------------------
298 -- {Start Of Comments}
299 --
300 -- Description:
301 -- This private procedure contains any processing which is required before
302 -- the insert dml. Presently, if the entity has a corresponding primary
303 -- key which is maintained by an associating sequence, the primary key for
304 -- the entity will be populated with the next sequence value in
305 -- preparation for the insert dml.
306 -- Also, if comments are defined for this entity, the comments insert
307 -- logic will also be called, generating a comment_id if required.
308 --
309 -- Prerequisites:
310 -- This is an internal procedure which is called from the ins procedure.
311 --
312 -- In Parameters:
313 -- A Pl/Sql record structure.
314 --
315 -- Post Success:
316 -- Processing continues.
317 --
318 -- Post Failure:
319 -- If an error has occurred, an error message and exception will be raised
320 -- but not handled.
321 --
322 -- Developer Implementation Notes:
323 -- Any pre-processing required before the insert dml is issued should be
324 -- coded within this procedure. As stated above, a good example is the
325 -- generation of a primary key number via a corresponding sequence.
326 -- It is important to note that any 3rd party maintenance should be reviewed
327 -- before placing in this procedure.
328 --
329 -- Access Status:
330 -- Internal Row Handler Use Only.
331 --
332 -- {End Of Comments}
333 -- ----------------------------------------------------------------------------
334 Procedure pre_insert
335 (p_rec in out nocopy pay_evq_shd.g_rec_type
336 ,p_effective_date in date
337 ,p_datetrack_mode in varchar2
338 ,p_validation_start_date in date
339 ,p_validation_end_date in date
340 ) is
341 --
342 Cursor C_Sel1 is select pay_event_qualifiers_s.nextval from sys.dual;
343 --
344 Cursor C_Sel2 is
345 Select null
346 from pay_event_qualifiers_f
347 where event_qualifier_id =
348 pay_evq_ins.g_event_qualifier_id_i;
349 --
350 l_proc varchar2(72) := g_package||'pre_insert';
351 l_exists varchar2(1);
352 --
353 Begin
354 hr_utility.set_location('Entering:'||l_proc, 5);
355 --
356 If (pay_evq_ins.g_event_qualifier_id_i is not null) Then
357 --
358 -- Verify registered primary key values not already in use
359 --
360 Open C_Sel2;
361 Fetch C_Sel2 into l_exists;
362 If C_Sel2%found Then
363 Close C_Sel2;
364 --
365 -- The primary key values are already in use.
366 --
367 fnd_message.set_name('PER','PER_289391_KEY_ALREADY_USED');
368 fnd_message.set_token('TABLE_NAME','pay_event_qualifiers_f');
369 fnd_message.raise_error;
370 End If;
371 Close C_Sel2;
372 --
373 -- Use registered key values and clear globals
374 --
375 p_rec.event_qualifier_id :=
376 pay_evq_ins.g_event_qualifier_id_i;
377 pay_evq_ins.g_event_qualifier_id_i := null;
378 Else
379 --
380 -- No registerd key values, so select the next sequence number
381 --
382 --
383 -- Select the next sequence number
384 --
385 Open C_Sel1;
386 Fetch C_Sel1 Into p_rec.event_qualifier_id;
387 Close C_Sel1;
388 End If;
389 --
390 --
391 hr_utility.set_location(' Leaving:'||l_proc, 10);
392 End pre_insert;
393 --
394 -- ----------------------------------------------------------------------------
395 -- |----------------------------< post_insert >-------------------------------|
396 -- ----------------------------------------------------------------------------
397 -- {Start Of Comments}
398 --
399 -- Description:
400 -- This private procedure contains any processing which is required after
401 -- the insert dml.
402 --
403 -- Prerequisites:
404 -- This is an internal procedure which is called from the ins procedure.
405 --
406 -- In Parameters:
407 -- A Pl/Sql record structure.
408 --
409 -- Post Success:
410 -- Processing continues.
411 --
412 -- Post Failure:
413 -- If an error has occurred, an error message and exception will be raised
414 -- but not handled.
415 --
416 -- Developer Implementation Notes:
417 -- Any post-processing required after the insert dml is issued should be
418 -- coded within this procedure. It is important to note that any 3rd party
419 -- maintenance should be reviewed before placing in this procedure.
420 --
421 -- Access Status:
422 -- Internal Row Handler Use Only.
423 --
424 -- {End Of Comments}
425 -- ----------------------------------------------------------------------------
426 Procedure post_insert
427 (p_rec in pay_evq_shd.g_rec_type
428 ,p_effective_date in date
429 ,p_datetrack_mode in varchar2
430 ,p_validation_start_date in date
431 ,p_validation_end_date in date
432 ) is
433 --
434 l_proc varchar2(72) := g_package||'post_insert';
435 --
436 Begin
437 hr_utility.set_location('Entering:'||l_proc, 5);
438 begin
439 --
440 -- insert ownerships if applicable
441 create_app_ownerships
442 ('EVENT_QUALIFIER_ID', p_rec.event_qualifier_id
443 );
444 --
445 --
446 pay_evq_rki.after_insert
447 (p_effective_date
448 => p_effective_date
449 ,p_validation_start_date
450 => p_validation_start_date
451 ,p_validation_end_date
452 => p_validation_end_date
453 ,p_event_qualifier_id
454 => p_rec.event_qualifier_id
455 ,p_effective_start_date
456 => p_rec.effective_start_date
457 ,p_effective_end_date
458 => p_rec.effective_end_date
459 ,p_dated_table_id
460 => p_rec.dated_table_id
461 ,p_column_name
462 => p_rec.column_name
463 ,p_qualifier_name
464 => p_rec.qualifier_name
465 ,p_legislation_code
466 => p_rec.legislation_code
467 ,p_business_group_id
468 => p_rec.business_group_id
469 ,p_comparison_column
470 => p_rec.comparison_column
471 ,p_qualifier_definition
472 => p_rec.qualifier_definition
473 ,p_qualifier_where_clause
474 => p_rec.qualifier_where_clause
475 ,p_entry_qualification
476 => p_rec.entry_qualification
477 ,p_assignment_qualification
478 => p_rec.assignment_qualification
479 ,p_multi_event_sql
480 => p_rec.multi_event_sql
481 ,p_object_version_number
482 => p_rec.object_version_number
483 );
484 --
485 exception
486 --
487 when hr_api.cannot_find_prog_unit then
488 --
489 hr_api.cannot_find_prog_unit_error
490 (p_module_name => 'PAY_EVENT_QUALIFIERS_F'
491 ,p_hook_type => 'AI');
492 --
493 end;
494 --
495 hr_utility.set_location(' Leaving:'||l_proc, 10);
496 End post_insert;
497 --
498 -- ----------------------------------------------------------------------------
499 -- |-------------------------------< ins_lck >--------------------------------|
500 -- ----------------------------------------------------------------------------
501 -- {Start Of Comments}
502 --
503 -- Description:
504 -- The ins_lck process has one main function to perform. When inserting
505 -- a datetracked row, we must validate the DT mode.
506 --
507 -- Prerequisites:
508 -- This procedure can only be called for the datetrack mode of INSERT.
509 --
510 -- In Parameters:
511 --
512 -- Post Success:
513 -- On successful completion of the ins_lck process the parental
514 -- datetracked rows will be locked providing the p_enforce_foreign_locking
515 -- argument value is TRUE.
516 -- If the p_enforce_foreign_locking argument value is FALSE then the
517 -- parential rows are not locked.
518 --
519 -- Post Failure:
520 -- The Lck process can fail for:
521 -- 1) When attempting to lock the row the row could already be locked by
522 -- another user. This will raise the HR_Api.Object_Locked exception.
523 -- 2) When attempting to the lock the parent which doesn't exist.
524 -- For the entity to be locked the parent must exist!
525 --
526 -- Developer Implementation Notes:
527 -- None.
528 --
529 -- Access Status:
530 -- Internal Row Handler Use Only.
531 --
532 -- {End Of Comments}
533 -- ----------------------------------------------------------------------------
534 Procedure ins_lck
535 (p_effective_date in date
536 ,p_datetrack_mode in varchar2
537 ,p_rec in pay_evq_shd.g_rec_type
538 ,p_validation_start_date out nocopy date
539 ,p_validation_end_date out nocopy date
540 ) is
541 --
542 l_proc varchar2(72) := g_package||'ins_lck';
543 l_validation_start_date date;
544 l_validation_end_date date;
545 --
546 Begin
547 hr_utility.set_location('Entering:'||l_proc, 5);
548 --
549 -- Validate the datetrack mode mode getting the validation start
550 -- and end dates for the specified datetrack operation.
551 --
552 dt_api.validate_dt_mode
553 (p_effective_date => p_effective_date
554 ,p_datetrack_mode => p_datetrack_mode
555 ,p_base_table_name => 'pay_event_qualifiers_f'
556 ,p_base_key_column => 'event_qualifier_id'
557 ,p_base_key_value => p_rec.event_qualifier_id
558 ,p_enforce_foreign_locking => true
559 ,p_validation_start_date => l_validation_start_date
560 ,p_validation_end_date => l_validation_end_date
561 );
562 --
563 -- Set the validation start and end date OUT arguments
564 --
565 p_validation_start_date := l_validation_start_date;
566 p_validation_end_date := l_validation_end_date;
567 --
568 hr_utility.set_location(' Leaving:'||l_proc, 10);
569 --
570 End ins_lck;
571 --
572 -- ----------------------------------------------------------------------------
573 -- |---------------------------------< ins >----------------------------------|
574 -- ----------------------------------------------------------------------------
575 Procedure ins
576 (p_effective_date in date
577 ,p_rec in out nocopy pay_evq_shd.g_rec_type
578 ) is
579 --
580 l_proc varchar2(72) := g_package||'ins';
581 l_datetrack_mode varchar2(30) := hr_api.g_insert;
582 l_validation_start_date date;
583 l_validation_end_date date;
584 --
585 Begin
586 hr_utility.set_location('Entering:'||l_proc, 5);
587 --
588 -- Call the lock operation
589 --
590 pay_evq_ins.ins_lck
591 (p_effective_date => p_effective_date
592 ,p_datetrack_mode => l_datetrack_mode
593 ,p_rec => p_rec
594 ,p_validation_start_date => l_validation_start_date
595 ,p_validation_end_date => l_validation_end_date
596 );
597 --
598 -- Call the supporting insert validate operations
599 --
600 Pay_evq_bus.insert_validate
601 (p_rec => p_rec
602 ,p_effective_date => p_effective_date
603 ,p_datetrack_mode => l_datetrack_mode
604 ,p_validation_start_date => l_validation_start_date
605 ,p_validation_end_date => l_validation_end_date
606 );
607 --
608 -- Call to raise any errors on multi-message list
609 hr_multi_message.end_validation_set;
610 --
611 -- Call the supporting pre-insert operation
612 --
613 pay_evq_ins.pre_insert
614 (p_rec => p_rec
615 ,p_effective_date => p_effective_date
616 ,p_datetrack_mode => l_datetrack_mode
617 ,p_validation_start_date => l_validation_start_date
618 ,p_validation_end_date => l_validation_end_date
619 );
620 --
621 -- Insert the row
622 --
623 pay_evq_ins.insert_dml
624 (p_rec => p_rec
625 ,p_effective_date => p_effective_date
626 ,p_datetrack_mode => l_datetrack_mode
627 ,p_validation_start_date => l_validation_start_date
628 ,p_validation_end_date => l_validation_end_date
629 );
630 --
631 -- Call the supporting post-insert operation
632 --
633 pay_evq_ins.post_insert
634 (p_rec => p_rec
635 ,p_effective_date => p_effective_date
636 ,p_datetrack_mode => l_datetrack_mode
637 ,p_validation_start_date => l_validation_start_date
638 ,p_validation_end_date => l_validation_end_date
639 );
640 --
641 -- Call to raise any errors on multi-message list
642 hr_multi_message.end_validation_set;
643 --
644 hr_utility.set_location('Leaving:'||l_proc,10);
645 end ins;
646 --
647 -- ----------------------------------------------------------------------------
648 -- |---------------------------------< ins >----------------------------------|
649 -- ----------------------------------------------------------------------------
650 Procedure ins
651 (p_effective_date in date
652 ,p_dated_table_id in number
653 ,p_column_name in varchar2
654 ,p_qualifier_name in varchar2
655 ,p_legislation_code in varchar2 default null
656 ,p_business_group_id in number default null
657 ,p_comparison_column in varchar2 default null
658 ,p_qualifier_definition in varchar2 default null
659 ,p_qualifier_where_clause in varchar2 default null
660 ,p_entry_qualification in varchar2 default null
661 ,p_assignment_qualification in varchar2 default null
662 ,p_multi_event_sql in varchar2 default null
663 ,p_event_qualifier_id out nocopy number
664 ,p_object_version_number out nocopy number
665 ,p_effective_start_date out nocopy date
666 ,p_effective_end_date out nocopy date
667 ) is
668 --
669 l_rec pay_evq_shd.g_rec_type;
670 l_proc varchar2(72) := g_package||'ins';
671 --
672 Begin
673 hr_utility.set_location('Entering:'||l_proc, 5);
674 --
675 -- Call conversion function to turn arguments into the
676 -- p_rec structure.
677 --
678 l_rec :=
679 pay_evq_shd.convert_args
680 (null
681 ,null
682 ,null
683 ,p_dated_table_id
684 ,p_column_name
685 ,p_qualifier_name
686 ,p_legislation_code
687 ,p_business_group_id
688 ,p_comparison_column
689 ,p_qualifier_definition
690 ,p_qualifier_where_clause
691 ,p_entry_qualification
692 ,p_assignment_qualification
693 ,p_multi_event_sql
694 ,null
695 );
696 --
697 -- Having converted the arguments into the pay_evq_rec
698 -- plsql record structure we call the corresponding record
699 -- business process.
700 --
701 pay_evq_ins.ins
702 (p_effective_date
703 ,l_rec
704 );
705 --
706 -- Set the OUT arguments.
707 --
708 p_event_qualifier_id := l_rec.event_qualifier_id;
709 p_effective_start_date := l_rec.effective_start_date;
710 p_effective_end_date := l_rec.effective_end_date;
711 p_object_version_number := l_rec.object_version_number;
712 --
713 --
714 hr_utility.set_location(' Leaving:'||l_proc, 10);
715 End ins;
716 --
717 end pay_evq_ins;