1 PACKAGE ARP_ACCT_HOOK AUTHID CURRENT_USER AS
2 /* $Header: ARHOOKS.pls 115.2 99/07/16 23:59:08 porting s $ */
3
4 -- Declare PUBLIC Data Types
5
6 -- Standard SLA data types
7 SUBTYPE ae_doc_rec_type IS ARP_ACCT_MAIN.ae_doc_rec_type;
8 SUBTYPE ae_event_rec_type IS ARP_ACCT_MAIN.ae_event_rec_type;
9 SUBTYPE ae_line_rec_type IS ARP_ACCT_MAIN.ae_line_rec_type;
10 SUBTYPE ae_line_tbl_type IS ARP_ACCT_MAIN.ae_line_tbl_type;
11
12 /*========================================================================
13 | PUBLIC PROCEDURE Override_Ae_Lines
14 |
15 | DESCRIPTION
16 | Overrides Accounting entry lines of a Document
17 | -----------------------------------------------
18 | This procedure is part of a user hook which overrides the actual
19 | accounting lines created by the MAIN routines for a given document
20 | to enable the user to build the accounting.
21 |
22 | PARAMETERS
23 | p_mode IN ONE or ALL Entities
24 | p_ae_doc_rec IN Document record
25 | p_ae_event_rec IN Event Record
26 | p_ae_line_tbl OUT Accounting lines table
27 | p_ae_created OUT Created accounting boolean
28 | p_replace_default_processing OUT Values Y or N
29 *=======================================================================*/
30 PROCEDURE Override_Ae_Lines(
31 p_mode IN VARCHAR2,
32 p_ae_doc_rec IN ae_doc_rec_type,
33 p_ae_event_rec IN ae_event_rec_type,
34 p_ae_line_tbl OUT ae_line_tbl_type,
35 p_ae_created OUT BOOLEAN,
36 p_replace_default_processing OUT BOOLEAN);
37
38 /*========================================================================
39 | PUBLIC PROCEDURE Override_Account
40 |
41 | DESCRIPTION
42 | Overrides the accounts created by the MAIN accounting routines
43 | --------------------------------------------------------------
44 | Enables the user to override an existing code combination id
45 | for accounts associated with accounting entry lines built for a
46 | Document.
47 |
48 | PARAMETERS
49 | p_mode IN ONE or ALL Entities
50 | p_ae_doc_rec IN Document record
51 | p_ae_event_rec IN Event Record
52 | p_ae_line_rec IN Accounting line record
53 | p_account OUT Actual account
54 | p_account_valid OUT Valid account flag
55 | p_replace_default_account OUT Override default account
56 *=======================================================================*/
57 PROCEDURE Override_Account(
58 p_mode IN VARCHAR2,
59 p_ae_doc_rec IN ae_doc_rec_type,
60 p_ae_event_rec IN ae_event_rec_type,
61 p_ae_line_rec IN ae_line_rec_type,
62 p_account OUT NUMBER,
63 p_account_valid OUT BOOLEAN,
64 p_replace_default_account OUT BOOLEAN );
65
66 END ARP_ACCT_HOOK;