DBA Data[Home] [Help]

PACKAGE: APPS.PAY_INS_CUSTOM_TEMPLATE

Source


1 PACKAGE pay_ins_custom_template AUTHID CURRENT_USER AS
2 /* $Header: payinscstmplt.pkh 120.2.12020000.1 2012/06/28 16:27:24 appldev ship $*/
3 /*===========================================================================+
4  |               Copyright (c) 2001 Oracle Corporation                        |
5  |                  Redwood Shores, California, USA                           |
6  |                       All rights reserved.                                 |
7  +============================================================================+
8   Name      PAY_INS_CUSTOM_TEMPLATE
9 
10   File      payinscstmplt.pkh
11 
12   Purpose   The purpose of this package is to register the user defined custom
13                 Templates into Payroll Tables i.e. PAY_REPORT_CATEGORUES,
14         PAY_REPORT_CATEGORY_COMPONENTS AND PAY_REPORT_VARIABLES.
15 
16   Notes     Currently this procedure supports the following concurrent programs
17                 for which user defined custom templates can be registered :
18         1.  Local Year End Interface Extract
19         2.  Employee W-2 PDF
20         3.  1099R Information Return - PDF
21         4.  Check Writer (XML)
22         5.  Deposit Advice (XML)
23         6.  RL1 PDF
24         7.  RL2 PDF
25         8.  Direct Deposit (New Zealand)
26         9.  Japan, Roster of Workers
27         10. Japan, Employee Ledger
28         Whenever any new concurrent programs is required to be added in this
29         category i.e if any new conc programs is decided to have the flexibility
30         of registering custom template, please edit the function GET_NAME.
31         If the Concurrent program's short name differs from the corresponding
32         data_source_code in table xdo_templates_b, this function needs one
33         'elsif' clause to be added for that new concurrent program.
34 
35   History
36 
37   Date          User Id       Version    Description
38   ============================================================================
39   01-Sep-08     kagangul       115.0     Initial Version Created
40   03-Aug-09     avenkatk       115.1     Added NZ and JP Reports
41   ============================================================================*/
42 
43 PROCEDURE insert_custom_template(errbuf             OUT NOCOPY VARCHAR2,
44                  retcode            OUT NOCOPY NUMBER,
45                  p_conc_prog            VARCHAR2,
46                  p_lookup_type_name     VARCHAR2,
47                  p_business_group_id        NUMBER);
48 
49 FUNCTION get_definition_id(pn_report_group_id           NUMBER,
50                pv_template_type_code        VARCHAR2,
51                pv_template_code         VARCHAR2)
52 RETURN NUMBER;
53 
54 FUNCTION get_legislation_code(p_business_group_id       NUMBER)
55 RETURN VARCHAR2;
56 
57 PROCEDURE insert_report_variable(p_report_definition_id     NUMBER,
58                                  p_definition_type      VARCHAR2,
59                                  p_name             VARCHAR2,
60                                  p_value            VARCHAR2,
61                      p_business_group_id        NUMBER,
62                                  p_report_variable_id       OUT NOCOPY NUMBER);
63 
64 PROCEDURE insert_report_catg_comp(p_report_category_id      NUMBER,
65                       p_report_definition_id    NUMBER,
66                   p_breakout_variable_id    NUMBER,
67                   p_order_by_variable_id    NUMBER,
68                   p_style_sheet_variable_id NUMBER,
69                   p_business_group_id       NUMBER,
70                   p_report_category_comp_id OUT NOCOPY NUMBER);
71 
72 PROCEDURE insert_report_category(p_report_group_id      NUMBER,
73                  p_category_name        VARCHAR2,
74                  p_short_name           VARCHAR2,
75                  p_legislation_code     VARCHAR2,
76                  p_business_group_id        NUMBER,
77                  p_report_category_id       NUMBER);
78 
79 FUNCTION get_name(p_conc_prog                   VARCHAR2)
80 RETURN  VARCHAR2;
81 
82 END pay_ins_custom_template;