1 package body icx_store_custom as
2 /* $Header: ICXCSTMB.pls 115.1 99/07/17 03:16:08 porting ship $ */
3
4
5 -------------------------------------------------------------------------
6 procedure add_user_error(p_cart_id number, error_message varchar2) is
7 -------------------------------------------------------------------------
8
9
10 begin
11 icx_util.add_error(error_message);
12
13 end;
14
15
16
17
18
19 -------------------------------------------------------------------------
20 procedure store_default_lines(p_cart_id in number)is
21
22 -------------------------------------------------------------------------
23 /* You can default any informaion into the lines. Please be carefull......
24
25 You can do this in one of two ways. Line by line, or with set processing.
26 Line by line will allow you to do specific defaults at a line level
27 while set processing will update all the columns at the same time. It
28 should be noted that set processing is FASTER...
29
30 Please note that this procedure will be run ONCE per ADD. This means that
31 if a user adds 6 different items from a Template, this procedure will only
32 be called ONCE.
33 */
34
35
36 begin
37 -- Custom default code will come here
38 -- do nothing;
39 null;
40
41 end store_default_lines;
42
43
44 -------------------------------------------------------------------------
45 procedure store_default_head( p_cart_id IN number)is
46
47 -------------------------------------------------------------------------
48 /* The default head is run once when the Header record is created. This
49 occurs when the user enters the Req program. Here you can default in
50 any values you wish. Again BE CAREFUL......
51
52 */
53
54 begin
55 -- Custom default code will come here
56 -- do nothing;
57 null;
58 end store_default_head;
59
60
61 -------------------------------------------------------------------------
62 procedure store_validate_line(p_cart_id IN number)is
63
64 -------------------------------------------------------------------------
65 /* Validation of the line
66
67 Please do validation of the lines here. Remember this routine is run
68 ONCE for all lines. It is run during the submit of the requisition.
69 If an error occurs, you should put an error on the error stack. This
70 will stop the submission. Please make ALL your error checks here. IF
71 you find an error, put it on the error stack and continue checking.
72 Each error you report, plus any we find, will then be reproted to the
73 user at the same time, and in the same way.
74
75 To add a message to the error stack use
76 icx_util.add_error(error_message);
77
78 */
79
80
81 begin
82 -- Custom validation code will come here
83 -- do nothing;
84 null;
85 end store_validate_line;
86
87
88 -------------------------------------------------------------------------
89 procedure store_validate_head(p_cart_id IN number) is
90 -------------------------------------------------------------------------
91 /* You can do your own header validation here. As in lines, you can
92 put your errors directly to our error stack. In this way, your errors
93 look exactly like errors raise by Oracle. If you find an error, please
94 put it on the stack and continue. In this way, all errors will be reported
95 to the user.
96
97 Please do only Header logic, and please TRAP ALL YOUR ERRORS!!!!!
98
99
100 To add a message to the error stack use
101 add_user_error(p_cart_id, 'YOUR ERROR MESSAGE');
102
103 */
104
105
106 begin
107 -- Custom validation code will come here
108 -- do nothing;
109 null;
110 end store_validate_head;
111
112
113 ----------------------------------------------------------------
114 procedure freight_customcalc(p_cart_id in number,
115 p_amt out number) is
116
117 ------------------------------------------------------------------
118
119
120 begin
121
122 null;
123
124 end freight_customcalc;
125
126
127
128 end icx_store_custom;