DBA Data[Home] [Help]

APPS.PQH_BUDGET dependencies on HR_UTILITY

Line 29: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);

25: where worksheet_detail_id = p_worksheet_detail_id;
26: l_proc varchar2(100) := g_package||'lck_wkd';
27: begin
28: -- return 'N' if lock failed else return 'Y'
29: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);
30: if p_object_version_number is null then
31: open c0;
32: fetch c0 into l_object_version_number;
33: close c0;

Line 36: hr_utility.set_location('locking for wkd'||p_worksheet_detail_id||l_proc,30);

32: fetch c0 into l_object_version_number;
33: close c0;
34: end if;
35: begin
36: hr_utility.set_location('locking for wkd'||p_worksheet_detail_id||l_proc,30);
37: pqh_wdt_shd.lck(p_worksheet_detail_id => p_worksheet_detail_id,
38: p_object_version_number => nvl(p_object_version_number,l_object_version_number));
39: p_status := 'Y' ;
40: exception

Line 42: hr_utility.set_location('lock failed for '||p_worksheet_detail_id||l_proc,20);

38: p_object_version_number => nvl(p_object_version_number,l_object_version_number));
39: p_status := 'Y' ;
40: exception
41: when others then
42: hr_utility.set_location('lock failed for '||p_worksheet_detail_id||l_proc,20);
43: p_status := 'N' ;
44: end;
45: hr_utility.set_location('out of worksheet_detail with status'||p_status||l_proc,30);
46: end lock_worksheet_detail;

Line 45: hr_utility.set_location('out of worksheet_detail with status'||p_status||l_proc,30);

41: when others then
42: hr_utility.set_location('lock failed for '||p_worksheet_detail_id||l_proc,20);
43: p_status := 'N' ;
44: end;
45: hr_utility.set_location('out of worksheet_detail with status'||p_status||l_proc,30);
46: end lock_worksheet_detail;
47: procedure lock_wkd(p_worksheet_detail_id in number,
48: p_transaction_category_id in number,
49: p_status out nocopy varchar2,

Line 76: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);

72: cursor c4(p_user_id number) is select user_name from fnd_user
73: where user_id = p_user_id;
74: l_proc varchar2(100) := g_package||'lck_wkd';
75: begin
76: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);
77: begin
78: lock_worksheet_detail(p_worksheet_detail_id => p_worksheet_detail_id,
79: p_status => p_status );
80: exception

Line 82: hr_utility.set_location('exception raised '||p_worksheet_detail_id||l_proc,11);

78: lock_worksheet_detail(p_worksheet_detail_id => p_worksheet_detail_id,
79: p_status => p_status );
80: exception
81: when others then
82: hr_utility.set_location('exception raised '||p_worksheet_detail_id||l_proc,11);
83: end;
84: if nvl(p_status,'Y') = 'N' then
85: hr_utility.set_location('worksheet_detail lock failed'||l_proc,12);
86: open c0;

Line 85: hr_utility.set_location('worksheet_detail lock failed'||l_proc,12);

81: when others then
82: hr_utility.set_location('exception raised '||p_worksheet_detail_id||l_proc,11);
83: end;
84: if nvl(p_status,'Y') = 'N' then
85: hr_utility.set_location('worksheet_detail lock failed'||l_proc,12);
86: open c0;
87: fetch c0 into l_max_routing_history_id;
88: close c0;
89: hr_utility.set_location('max routing history is '||l_max_routing_history_id||l_proc,20);

Line 89: hr_utility.set_location('max routing history is '||l_max_routing_history_id||l_proc,20);

85: hr_utility.set_location('worksheet_detail lock failed'||l_proc,12);
86: open c0;
87: fetch c0 into l_max_routing_history_id;
88: close c0;
89: hr_utility.set_location('max routing history is '||l_max_routing_history_id||l_proc,20);
90: if nvl(l_max_routing_history_id,0) = 0 then
91: -- routing history is not available
92: hr_utility.set_location('routing history not exist '||l_proc,22);
93: open c2;

Line 92: hr_utility.set_location('routing history not exist '||l_proc,22);

88: close c0;
89: hr_utility.set_location('max routing history is '||l_max_routing_history_id||l_proc,20);
90: if nvl(l_max_routing_history_id,0) = 0 then
91: -- routing history is not available
92: hr_utility.set_location('routing history not exist '||l_proc,22);
93: open c2;
94: fetch c2 into l_user_id ;
95: close c2;
96: open c4(l_user_id);

Line 101: hr_utility.set_location('manager of wkd is '||l_user_name||l_proc,30);

97: fetch c4 into l_user_name;
98: close c4;
99: p_user_type := 'D';
100: p_working_user := l_user_name;
101: hr_utility.set_location('manager of wkd is '||l_user_name||l_proc,30);
102: else
103: -- routing history is available and will be used for finding current user of wdt
104: open c1;
105: fetch c1 into l_person_name,l_role_name,l_position_name,l_user_name;

Line 107: hr_utility.set_location('routing history pulled up '||l_proc,40);

103: -- routing history is available and will be used for finding current user of wdt
104: open c1;
105: fetch c1 into l_person_name,l_role_name,l_position_name,l_user_name;
106: close c1;
107: hr_utility.set_location('routing history pulled up '||l_proc,40);
108: if l_user_name is not null then
109: p_user_type := 'R';
110: p_working_user := l_role_name ;
111: if l_user_name is not null then

Line 114: hr_utility.set_location('working_user is '||p_working_user||l_proc,50);

110: p_working_user := l_role_name ;
111: if l_user_name is not null then
112: p_working_user := p_working_user ||':'||l_user_name;
113: end if;
114: hr_utility.set_location('working_user is '||p_working_user||l_proc,50);
115: elsif l_position_name is not null then
116: p_user_type := 'P';
117: p_working_user := l_position_name;
118: if l_user_name is not null then

Line 121: hr_utility.set_location('working_user is '||p_working_user||l_proc,60);

117: p_working_user := l_position_name;
118: if l_user_name is not null then
119: p_working_user := p_working_user ||':'||l_user_name;
120: end if;
121: hr_utility.set_location('working_user is '||p_working_user||l_proc,60);
122: elsif l_person_name is not null then
123: p_user_type := 'S';
124: p_working_user := l_person_name;
125: if l_user_name is not null then

Line 128: hr_utility.set_location('working_user is '||p_working_user||l_proc,70);

124: p_working_user := l_person_name;
125: if l_user_name is not null then
126: p_working_user := p_working_user ||':'||l_user_name;
127: end if;
128: hr_utility.set_location('working_user is '||p_working_user||l_proc,70);
129: else
130: hr_utility.set_location('details missing in routing history'||l_proc,80);
131: end if;
132: end if;

Line 130: hr_utility.set_location('details missing in routing history'||l_proc,80);

126: p_working_user := p_working_user ||':'||l_user_name;
127: end if;
128: hr_utility.set_location('working_user is '||p_working_user||l_proc,70);
129: else
130: hr_utility.set_location('details missing in routing history'||l_proc,80);
131: end if;
132: end if;
133: else
134: hr_utility.set_location('wkd lock pass'||l_proc,85);

Line 134: hr_utility.set_location('wkd lock pass'||l_proc,85);

130: hr_utility.set_location('details missing in routing history'||l_proc,80);
131: end if;
132: end if;
133: else
134: hr_utility.set_location('wkd lock pass'||l_proc,85);
135: end if;
136: hr_utility.set_location('out of '||l_proc,100);
137: exception
138: when others then

Line 136: hr_utility.set_location('out of '||l_proc,100);

132: end if;
133: else
134: hr_utility.set_location('wkd lock pass'||l_proc,85);
135: end if;
136: hr_utility.set_location('out of '||l_proc,100);
137: exception
138: when others then
139: p_status := 'N';
140: p_working_user := null;

Line 158: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);

154: l_initial_status varchar2(10) := p_status;
155: l_initial_working_users varchar2(200) := p_working_users;
156:
157: begin
158: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);
159: for i in c1 loop
160: lock_wkd(p_worksheet_detail_id => i.worksheet_detail_id,
161: p_transaction_category_id => p_transaction_category_id,
162: p_status => p_status,

Line 165: hr_utility.set_location('done locking of '||i.worksheet_detail_id||l_proc,13);

161: p_transaction_category_id => p_transaction_category_id,
162: p_status => p_status,
163: p_working_user => l_working_user,
164: p_user_type => l_user_type );
165: hr_utility.set_location('done locking of '||i.worksheet_detail_id||l_proc,13);
166: if p_status = 'N' then
167: -- lock failed
168: -- commented lines are there so that we don't show the user_type to user.
169: if p_working_users is null then

Line 177: hr_utility.set_location('all lock successful '||l_proc,14);

173: -- p_working_users := p_working_users||','||l_user_type||':'||l_working_user;
174: p_working_users := p_working_users||','||l_working_user;
175: end if;
176: else
177: hr_utility.set_location('all lock successful '||l_proc,14);
178: end if;
179: hr_utility.set_location('working users '||p_working_users||l_proc,15);
180: end loop;
181: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);

Line 179: hr_utility.set_location('working users '||p_working_users||l_proc,15);

175: end if;
176: else
177: hr_utility.set_location('all lock successful '||l_proc,14);
178: end if;
179: hr_utility.set_location('working users '||p_working_users||l_proc,15);
180: end loop;
181: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);
182: exception when others then
183: p_status := l_initial_status;

Line 181: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);

177: hr_utility.set_location('all lock successful '||l_proc,14);
178: end if;
179: hr_utility.set_location('working users '||p_working_users||l_proc,15);
180: end loop;
181: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);
182: exception when others then
183: p_status := l_initial_status;
184: p_working_users := l_initial_working_users;
185: raise;

Line 201: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);

197: l_proc varchar2(100) := g_package||'lck_all_child' ;
198: l_initial_status varchar2(10) := p_status;
199: l_initial_working_users varchar2(200) := p_working_users;
200: begin
201: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);
202: for i in c1 loop
203: hr_utility.set_location('doing locking for '||i.worksheet_detail_id||l_proc,11);
204: lock_all_children(p_worksheet_detail_id => i.worksheet_detail_id,
205: p_transaction_category_id => p_transaction_category_id,

Line 203: hr_utility.set_location('doing locking for '||i.worksheet_detail_id||l_proc,11);

199: l_initial_working_users varchar2(200) := p_working_users;
200: begin
201: hr_utility.set_location('inside for worksheet_detail'||p_worksheet_detail_id||l_proc,10);
202: for i in c1 loop
203: hr_utility.set_location('doing locking for '||i.worksheet_detail_id||l_proc,11);
204: lock_all_children(p_worksheet_detail_id => i.worksheet_detail_id,
205: p_transaction_category_id => p_transaction_category_id,
206: p_status => p_status,
207: p_working_users => p_working_users);

Line 208: hr_utility.set_location('doing locking children of '||i.worksheet_detail_id||l_proc,12);

204: lock_all_children(p_worksheet_detail_id => i.worksheet_detail_id,
205: p_transaction_category_id => p_transaction_category_id,
206: p_status => p_status,
207: p_working_users => p_working_users);
208: hr_utility.set_location('doing locking children of '||i.worksheet_detail_id||l_proc,12);
209: lock_wkd(p_worksheet_detail_id => i.worksheet_detail_id,
210: p_transaction_category_id => p_transaction_category_id,
211: p_status => p_status,
212: p_working_user => l_working_user,

Line 214: hr_utility.set_location('done locking of '||i.worksheet_detail_id||l_proc,13);

210: p_transaction_category_id => p_transaction_category_id,
211: p_status => p_status,
212: p_working_user => l_working_user,
213: p_user_type => l_user_type );
214: hr_utility.set_location('done locking of '||i.worksheet_detail_id||l_proc,13);
215: if p_status = 'N' then
216: -- lock failed
217: -- commented lines are there so that we don't show the user_type to user.
218: if p_working_users is null then

Line 226: hr_utility.set_location('all lock successful '||l_proc,14);

222: -- p_working_users := p_working_users||','||l_user_type||':'||l_working_user;
223: p_working_users := p_working_users||','||l_working_user;
224: end if;
225: else
226: hr_utility.set_location('all lock successful '||l_proc,14);
227: end if;
228: hr_utility.set_location('working users '||p_working_users||l_proc,15);
229: end loop;
230: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);

Line 228: hr_utility.set_location('working users '||p_working_users||l_proc,15);

224: end if;
225: else
226: hr_utility.set_location('all lock successful '||l_proc,14);
227: end if;
228: hr_utility.set_location('working users '||p_working_users||l_proc,15);
229: end loop;
230: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);
231: exception when others then
232: p_status := l_initial_status;

Line 230: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);

226: hr_utility.set_location('all lock successful '||l_proc,14);
227: end if;
228: hr_utility.set_location('working users '||p_working_users||l_proc,15);
229: end loop;
230: hr_utility.set_location('done for worksheet_detail'||p_worksheet_detail_id||l_proc,40);
231: exception when others then
232: p_status := l_initial_status;
233: p_working_users := l_initial_working_users;
234: raise;

Line 257: hr_utility.set_location('inside '||l_proc,10);

253: l_status varchar2(30);
254: l_wks_ovn number;
255: l_number number;
256: begin
257: hr_utility.set_location('inside '||l_proc,10);
258: l_workflow_name := pqh_wf.get_workflow_name(p_transaction_category_id => p_transaction_category_id);
259: hr_utility.set_location('workflow name is '||l_workflow_name||l_proc,20);
260: select wkd.status,wkd.parent_worksheet_detail_id,wkd.object_version_number,
261: wks.worksheet_id,wks.object_version_number

Line 259: hr_utility.set_location('workflow name is '||l_workflow_name||l_proc,20);

255: l_number number;
256: begin
257: hr_utility.set_location('inside '||l_proc,10);
258: l_workflow_name := pqh_wf.get_workflow_name(p_transaction_category_id => p_transaction_category_id);
259: hr_utility.set_location('workflow name is '||l_workflow_name||l_proc,20);
260: select wkd.status,wkd.parent_worksheet_detail_id,wkd.object_version_number,
261: wks.worksheet_id,wks.object_version_number
262: into l_status,l_parent_wkd_id,l_wkd_ovn,l_worksheet_id,l_wks_ovn
263: from pqh_worksheet_details wkd, pqh_worksheets wks

Line 267: hr_utility.set_location('result_status is '||p_result_status||l_proc,30);

263: from pqh_worksheet_details wkd, pqh_worksheets wks
264: where wkd.worksheet_detail_id = p_worksheet_detail_id
265: and wkd.worksheet_id = wks.worksheet_id;
266: if p_result_status = 'REJECT' then
267: hr_utility.set_location('result_status is '||p_result_status||l_proc,30);
268: hr_utility.set_location('going in loop for '||p_worksheet_detail_id||l_proc,40);
269: for i in c_child loop
270: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,50);
271: l_wkd1_ovn := i.object_version_number;

Line 268: hr_utility.set_location('going in loop for '||p_worksheet_detail_id||l_proc,40);

264: where wkd.worksheet_detail_id = p_worksheet_detail_id
265: and wkd.worksheet_id = wks.worksheet_id;
266: if p_result_status = 'REJECT' then
267: hr_utility.set_location('result_status is '||p_result_status||l_proc,30);
268: hr_utility.set_location('going in loop for '||p_worksheet_detail_id||l_proc,40);
269: for i in c_child loop
270: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,50);
271: l_wkd1_ovn := i.object_version_number;
272: complete_workflow(p_worksheet_detail_id => i.worksheet_detail_id,

Line 270: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,50);

266: if p_result_status = 'REJECT' then
267: hr_utility.set_location('result_status is '||p_result_status||l_proc,30);
268: hr_utility.set_location('going in loop for '||p_worksheet_detail_id||l_proc,40);
269: for i in c_child loop
270: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,50);
271: l_wkd1_ovn := i.object_version_number;
272: complete_workflow(p_worksheet_detail_id => i.worksheet_detail_id,
273: p_transaction_category_id => p_transaction_category_id,
274: p_result_status => p_result_status,

Line 277: hr_utility.set_location('wf completed for children of'||i.worksheet_detail_id||l_proc,60);

273: p_transaction_category_id => p_transaction_category_id,
274: p_result_status => p_result_status,
275: p_wks_object_version_number => l_number,
276: p_wkd_object_version_number => l_wkd1_ovn);
277: hr_utility.set_location('wf completed for children of'||i.worksheet_detail_id||l_proc,60);
278: l_itemkey := to_char(p_transaction_category_id) ||'-'||to_char(i.worksheet_detail_id);
279: hr_utility.set_location('status of the child is '||i.status,70);
280: if i.status ='APPROVED' then
281: -- if the delegated worksheet is approved already, in that case on the workflow it is sitting

Line 279: hr_utility.set_location('status of the child is '||i.status,70);

275: p_wks_object_version_number => l_number,
276: p_wkd_object_version_number => l_wkd1_ovn);
277: hr_utility.set_location('wf completed for children of'||i.worksheet_detail_id||l_proc,60);
278: l_itemkey := to_char(p_transaction_category_id) ||'-'||to_char(i.worksheet_detail_id);
279: hr_utility.set_location('status of the child is '||i.status,70);
280: if i.status ='APPROVED' then
281: -- if the delegated worksheet is approved already, in that case on the workflow it is sitting
282: -- at delegate_block activity, moving it from there to end reject
283:

Line 285: hr_utility.set_location('going for block activity completion',77);

281: -- if the delegated worksheet is approved already, in that case on the workflow it is sitting
282: -- at delegate_block activity, moving it from there to end reject
283:
284: begin
285: hr_utility.set_location('going for block activity completion',77);
286: wf_engine.completeactivity(l_workflow_name,l_itemkey,'DELEGATE_BLOCK-1','COMPLETE');
287: hr_utility.set_location('block activity completed',78);
288: exception
289: when others then

Line 287: hr_utility.set_location('block activity completed',78);

283:
284: begin
285: hr_utility.set_location('going for block activity completion',77);
286: wf_engine.completeactivity(l_workflow_name,l_itemkey,'DELEGATE_BLOCK-1','COMPLETE');
287: hr_utility.set_location('block activity completed',78);
288: exception
289: when others then
290: hr_utility.set_location(substr(sqlerrm,1,55),80);
291: hr_utility.set_location(substr(sqlerrm,56,55),81);

Line 290: hr_utility.set_location(substr(sqlerrm,1,55),80);

286: wf_engine.completeactivity(l_workflow_name,l_itemkey,'DELEGATE_BLOCK-1','COMPLETE');
287: hr_utility.set_location('block activity completed',78);
288: exception
289: when others then
290: hr_utility.set_location(substr(sqlerrm,1,55),80);
291: hr_utility.set_location(substr(sqlerrm,56,55),81);
292: hr_utility.set_location('pqh_wf1_delegate is getting failed ',82);
293: raise;
294: end;

Line 291: hr_utility.set_location(substr(sqlerrm,56,55),81);

287: hr_utility.set_location('block activity completed',78);
288: exception
289: when others then
290: hr_utility.set_location(substr(sqlerrm,1,55),80);
291: hr_utility.set_location(substr(sqlerrm,56,55),81);
292: hr_utility.set_location('pqh_wf1_delegate is getting failed ',82);
293: raise;
294: end;
295: -- as delegated row was already approved, so its balances must have gone up. Those balances

Line 292: hr_utility.set_location('pqh_wf1_delegate is getting failed ',82);

288: exception
289: when others then
290: hr_utility.set_location(substr(sqlerrm,1,55),80);
291: hr_utility.set_location(substr(sqlerrm,56,55),81);
292: hr_utility.set_location('pqh_wf1_delegate is getting failed ',82);
293: raise;
294: end;
295: -- as delegated row was already approved, so its balances must have gone up. Those balances
296: -- are to be brought down.

Line 300: hr_utility.set_location('coming to approve the delegated transaction',95);

296: -- are to be brought down.
297: elsif i.status ='DELEGATED' then
298: -- if the delegated worksheet is waiting in inbox for the sender then it can be directly rejected
299: begin
300: hr_utility.set_location('coming to approve the delegated transaction',95);
301: wf_engine.SetItemAttrText(itemtype => l_workflow_name,
302: itemkey => l_itemkey,
303: aname => 'TRANSACTION_STATUS',
304: avalue => 'FRC_RJCT');

Line 308: hr_utility.set_location(substr(sqlerrm,1,55),100);

304: avalue => 'FRC_RJCT');
305: wf_engine.completeactivity(l_workflow_name,l_itemkey,'NTF_NEXT_USER','FRC_RJCT');
306: exception
307: when others then
308: hr_utility.set_location(substr(sqlerrm,1,55),100);
309: hr_utility.set_location(substr(sqlerrm,56,55),101);
310: hr_utility.set_location('pqh_wf2 is getting failed ',102);
311: raise;
312: end;

Line 309: hr_utility.set_location(substr(sqlerrm,56,55),101);

305: wf_engine.completeactivity(l_workflow_name,l_itemkey,'NTF_NEXT_USER','FRC_RJCT');
306: exception
307: when others then
308: hr_utility.set_location(substr(sqlerrm,1,55),100);
309: hr_utility.set_location(substr(sqlerrm,56,55),101);
310: hr_utility.set_location('pqh_wf2 is getting failed ',102);
311: raise;
312: end;
313: else

Line 310: hr_utility.set_location('pqh_wf2 is getting failed ',102);

306: exception
307: when others then
308: hr_utility.set_location(substr(sqlerrm,1,55),100);
309: hr_utility.set_location(substr(sqlerrm,56,55),101);
310: hr_utility.set_location('pqh_wf2 is getting failed ',102);
311: raise;
312: end;
313: else
314: hr_utility.set_location('status of delegated row is '||i.status,105);

Line 314: hr_utility.set_location('status of delegated row is '||i.status,105);

310: hr_utility.set_location('pqh_wf2 is getting failed ',102);
311: raise;
312: end;
313: else
314: hr_utility.set_location('status of delegated row is '||i.status,105);
315: end if;
316: end loop;
317: hr_utility.set_location('out of loop for '||p_worksheet_detail_id||l_proc,130);
318: if l_parent_wkd_id is null then

Line 317: hr_utility.set_location('out of loop for '||p_worksheet_detail_id||l_proc,130);

313: else
314: hr_utility.set_location('status of delegated row is '||i.status,105);
315: end if;
316: end loop;
317: hr_utility.set_location('out of loop for '||p_worksheet_detail_id||l_proc,130);
318: if l_parent_wkd_id is null then
319: if l_status in ('PENDING','APPROVED') then
320: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
321: update_worksheet_detail(

Line 320: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);

316: end loop;
317: hr_utility.set_location('out of loop for '||p_worksheet_detail_id||l_proc,130);
318: if l_parent_wkd_id is null then
319: if l_status in ('PENDING','APPROVED') then
320: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
321: update_worksheet_detail(
322: p_worksheet_detail_id => p_worksheet_detail_id,
323: p_effective_date => trunc(sysdate),
324: p_object_version_number => l_wkd_ovn,

Line 327: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);

323: p_effective_date => trunc(sysdate),
324: p_object_version_number => l_wkd_ovn,
325: p_status => 'REJECT'
326: );
327: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);
328: pqh_worksheets_api.update_worksheet(
329: p_worksheet_id => l_worksheet_id,
330: p_effective_date => trunc(sysdate),
331: p_object_version_number => l_wks_ovn,

Line 335: hr_utility.set_location('wkd status is '||l_status||l_proc,110);

331: p_object_version_number => l_wks_ovn,
332: p_transaction_status => 'REJECT'
333: );
334: else
335: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
336: end if;
337: else
338: if l_status in ('DELEGATED','APPROVED') THEN
339: hr_utility.set_location('child wkd status changed from '||l_status||l_proc,110);

Line 339: hr_utility.set_location('child wkd status changed from '||l_status||l_proc,110);

335: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
336: end if;
337: else
338: if l_status in ('DELEGATED','APPROVED') THEN
339: hr_utility.set_location('child wkd status changed from '||l_status||l_proc,110);
340: update_worksheet_detail(
341: p_worksheet_detail_id => p_worksheet_detail_id,
342: p_effective_date => trunc(sysdate),
343: p_object_version_number => l_wkd_ovn,

Line 347: hr_utility.set_location('child wkd status is '||l_status||l_proc,110);

343: p_object_version_number => l_wkd_ovn,
344: p_status => 'REJECT'
345: );
346: else
347: hr_utility.set_location('child wkd status is '||l_status||l_proc,110);
348: end if;
349: end if;
350: hr_utility.set_location('status updated '||p_worksheet_detail_id||l_proc,120);
351: elsif p_result_status = 'APPROVED' then

Line 350: hr_utility.set_location('status updated '||p_worksheet_detail_id||l_proc,120);

346: else
347: hr_utility.set_location('child wkd status is '||l_status||l_proc,110);
348: end if;
349: end if;
350: hr_utility.set_location('status updated '||p_worksheet_detail_id||l_proc,120);
351: elsif p_result_status = 'APPROVED' then
352: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
353: for i in c_child loop
354: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,150);

Line 352: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);

348: end if;
349: end if;
350: hr_utility.set_location('status updated '||p_worksheet_detail_id||l_proc,120);
351: elsif p_result_status = 'APPROVED' then
352: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
353: for i in c_child loop
354: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,150);
355: l_wkd1_ovn := i.object_version_number;
356: complete_workflow(p_worksheet_detail_id => i.worksheet_detail_id,

Line 354: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,150);

350: hr_utility.set_location('status updated '||p_worksheet_detail_id||l_proc,120);
351: elsif p_result_status = 'APPROVED' then
352: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
353: for i in c_child loop
354: hr_utility.set_location('in loop for '||i.worksheet_detail_id||l_proc,150);
355: l_wkd1_ovn := i.object_version_number;
356: complete_workflow(p_worksheet_detail_id => i.worksheet_detail_id,
357: p_transaction_category_id => p_transaction_category_id,
358: p_result_status => p_result_status,

Line 361: hr_utility.set_location('wf completed for children of '||i.worksheet_detail_id||l_proc,153);

357: p_transaction_category_id => p_transaction_category_id,
358: p_result_status => p_result_status,
359: p_wks_object_version_number => l_number,
360: p_wkd_object_version_number => l_wkd1_ovn);
361: hr_utility.set_location('wf completed for children of '||i.worksheet_detail_id||l_proc,153);
362: l_itemkey := to_char(p_transaction_category_id) ||'-'||to_char(i.worksheet_detail_id);
363: if i.status = 'DELEGATED' then
364: begin
365: wf_engine.SetItemAttrText(itemtype => l_workflow_name,

Line 372: hr_utility.set_location(substr(sqlerrm,1,55),160);

368: avalue => 'FRC_RJCT');
369: wf_engine.completeactivity(l_workflow_name,l_itemkey,'NTF_NEXT_USER','FRC_RJCT');
370: exception
371: when others then
372: hr_utility.set_location(substr(sqlerrm,1,55),160);
373: hr_utility.set_location(substr(sqlerrm,56,55),161);
374: hr_utility.set_location('pqh_wf3 is getting failed ',162);
375: raise;
376: end;

Line 373: hr_utility.set_location(substr(sqlerrm,56,55),161);

369: wf_engine.completeactivity(l_workflow_name,l_itemkey,'NTF_NEXT_USER','FRC_RJCT');
370: exception
371: when others then
372: hr_utility.set_location(substr(sqlerrm,1,55),160);
373: hr_utility.set_location(substr(sqlerrm,56,55),161);
374: hr_utility.set_location('pqh_wf3 is getting failed ',162);
375: raise;
376: end;
377: end if;

Line 374: hr_utility.set_location('pqh_wf3 is getting failed ',162);

370: exception
371: when others then
372: hr_utility.set_location(substr(sqlerrm,1,55),160);
373: hr_utility.set_location(substr(sqlerrm,56,55),161);
374: hr_utility.set_location('pqh_wf3 is getting failed ',162);
375: raise;
376: end;
377: end if;
378: hr_utility.set_location('updating status for '||i.worksheet_detail_id||l_proc,153);

Line 378: hr_utility.set_location('updating status for '||i.worksheet_detail_id||l_proc,153);

374: hr_utility.set_location('pqh_wf3 is getting failed ',162);
375: raise;
376: end;
377: end if;
378: hr_utility.set_location('updating status for '||i.worksheet_detail_id||l_proc,153);
379: update_worksheet_detail( p_worksheet_detail_id => i.worksheet_detail_id,
380: p_effective_date => trunc(sysdate),
381: p_object_version_number => l_wkd1_ovn,
382: p_status => 'APPROVED');

Line 384: hr_utility.set_location('out of loop '||p_worksheet_detail_id||l_proc,230);

380: p_effective_date => trunc(sysdate),
381: p_object_version_number => l_wkd1_ovn,
382: p_status => 'APPROVED');
383: end loop;
384: hr_utility.set_location('out of loop '||p_worksheet_detail_id||l_proc,230);
385: if l_parent_wkd_id is null then
386: if l_status in ('PENDING','SUBMITTED') then
387: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
388: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,

Line 387: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);

383: end loop;
384: hr_utility.set_location('out of loop '||p_worksheet_detail_id||l_proc,230);
385: if l_parent_wkd_id is null then
386: if l_status in ('PENDING','SUBMITTED') then
387: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
388: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
389: p_effective_date => trunc(sysdate),
390: p_object_version_number => l_wkd_ovn,
391: p_status => 'APPROVED');

Line 392: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);

388: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
389: p_effective_date => trunc(sysdate),
390: p_object_version_number => l_wkd_ovn,
391: p_status => 'APPROVED');
392: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);
393: pqh_worksheets_api.update_worksheet(
394: p_worksheet_id => l_worksheet_id,
395: p_effective_date => trunc(sysdate),
396: p_object_version_number => l_wks_ovn,

Line 399: hr_utility.set_location('wkd status is '||l_status||l_proc,110);

395: p_effective_date => trunc(sysdate),
396: p_object_version_number => l_wks_ovn,
397: p_transaction_status => 'APPROVED');
398: else
399: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
400: end if;
401: else
402: if l_status in ('DELEGATED','REJECT') THEN
403: hr_utility.set_location('child wkd status changed from '||l_status||l_proc,110);

Line 403: hr_utility.set_location('child wkd status changed from '||l_status||l_proc,110);

399: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
400: end if;
401: else
402: if l_status in ('DELEGATED','REJECT') THEN
403: hr_utility.set_location('child wkd status changed from '||l_status||l_proc,110);
404: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
405: p_effective_date => trunc(sysdate),
406: p_object_version_number => l_wkd_ovn,
407: p_status => 'APPROVED');

Line 409: hr_utility.set_location('child wkd status is '||l_status||l_proc,110);

405: p_effective_date => trunc(sysdate),
406: p_object_version_number => l_wkd_ovn,
407: p_status => 'APPROVED');
408: else
409: hr_utility.set_location('child wkd status is '||l_status||l_proc,110);
410: end if;
411: end if;
412: elsif p_result_status = 'SUBMITTED' then
413: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);

Line 413: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);

409: hr_utility.set_location('child wkd status is '||l_status||l_proc,110);
410: end if;
411: end if;
412: elsif p_result_status = 'SUBMITTED' then
413: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
414: if l_parent_wkd_id is null then
415: if l_status in ('PENDING','APPROVED') then
416: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
417: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,

Line 416: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);

412: elsif p_result_status = 'SUBMITTED' then
413: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
414: if l_parent_wkd_id is null then
415: if l_status in ('PENDING','APPROVED') then
416: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
417: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
418: p_effective_date => trunc(sysdate),
419: p_object_version_number => l_wkd_ovn,
420: p_status => 'SUBMITTED');

Line 421: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);

417: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
418: p_effective_date => trunc(sysdate),
419: p_object_version_number => l_wkd_ovn,
420: p_status => 'SUBMITTED');
421: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);
422: pqh_worksheets_api.update_worksheet(
423: p_worksheet_id => l_worksheet_id,
424: p_effective_date => trunc(sysdate),
425: p_object_version_number => l_wks_ovn,

Line 428: hr_utility.set_location('wkd status is '||l_status||l_proc,110);

424: p_effective_date => trunc(sysdate),
425: p_object_version_number => l_wks_ovn,
426: p_transaction_status => 'SUBMITTED');
427: else
428: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
429: end if;
430: end if;
431: elsif p_result_status = 'PENDING' then
432: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);

Line 432: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);

428: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
429: end if;
430: end if;
431: elsif p_result_status = 'PENDING' then
432: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
433: if l_parent_wkd_id is null then
434: if l_status in ('APPROVED') then
435: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
436: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,

Line 435: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);

431: elsif p_result_status = 'PENDING' then
432: hr_utility.set_location('result_status is '||p_result_status||l_proc,140);
433: if l_parent_wkd_id is null then
434: if l_status in ('APPROVED') then
435: hr_utility.set_location('wkd status changed from '||l_status||l_proc,110);
436: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
437: p_effective_date => trunc(sysdate),
438: p_object_version_number => l_wkd_ovn,
439: p_status => 'PENDING');

Line 440: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);

436: update_worksheet_detail( p_worksheet_detail_id => p_worksheet_detail_id,
437: p_effective_date => trunc(sysdate),
438: p_object_version_number => l_wkd_ovn,
439: p_status => 'PENDING');
440: hr_utility.set_location('wks status changed from '||l_status||l_proc,110);
441: pqh_worksheets_api.update_worksheet(
442: p_worksheet_id => l_worksheet_id,
443: p_effective_date => trunc(sysdate),
444: p_object_version_number => l_wks_ovn,

Line 447: hr_utility.set_location('wkd status is '||l_status||l_proc,110);

443: p_effective_date => trunc(sysdate),
444: p_object_version_number => l_wks_ovn,
445: p_transaction_status => 'PENDING');
446: else
447: hr_utility.set_location('wkd status is '||l_status||l_proc,110);
448: end if;
449: end if;
450: elsif p_result_status = 'TERMINATE' then
451: l_status := pqh_apply_budget.set_status(p_transaction_category_id => p_transaction_category_id,

Line 468: hr_utility.set_location('wkd '||p_worksheet_detail_id||' out nocopy ovn is '||l_wkd_ovn||l_proc,280);

464: where wkd.worksheet_detail_id = p_worksheet_detail_id
465: and wkd.worksheet_id = wks.worksheet_id;
466: p_wkd_object_version_number := l_wkd_ovn;
467: p_wks_object_version_number := l_wks_ovn;
468: hr_utility.set_location('wkd '||p_worksheet_detail_id||' out nocopy ovn is '||l_wkd_ovn||l_proc,280);
469: hr_utility.set_location('wks out nocopy ovn is '||l_wks_ovn||l_proc,290);
470: hr_utility.set_location('out of '||l_proc,300);
471: --
472: -- No need for a when others exception for nocopy changes since we are not setting

Line 469: hr_utility.set_location('wks out nocopy ovn is '||l_wks_ovn||l_proc,290);

465: and wkd.worksheet_id = wks.worksheet_id;
466: p_wkd_object_version_number := l_wkd_ovn;
467: p_wks_object_version_number := l_wks_ovn;
468: hr_utility.set_location('wkd '||p_worksheet_detail_id||' out nocopy ovn is '||l_wkd_ovn||l_proc,280);
469: hr_utility.set_location('wks out nocopy ovn is '||l_wks_ovn||l_proc,290);
470: hr_utility.set_location('out of '||l_proc,300);
471: --
472: -- No need for a when others exception for nocopy changes since we are not setting
473: -- the p_wkd_object_version_number and p_wks_object_version_number directly.

Line 470: hr_utility.set_location('out of '||l_proc,300);

466: p_wkd_object_version_number := l_wkd_ovn;
467: p_wks_object_version_number := l_wks_ovn;
468: hr_utility.set_location('wkd '||p_worksheet_detail_id||' out nocopy ovn is '||l_wkd_ovn||l_proc,280);
469: hr_utility.set_location('wks out nocopy ovn is '||l_wks_ovn||l_proc,290);
470: hr_utility.set_location('out of '||l_proc,300);
471: --
472: -- No need for a when others exception for nocopy changes since we are not setting
473: -- the p_wkd_object_version_number and p_wks_object_version_number directly.
474: -- Also this is happening at the end of the procedure after which there is no more processing.

Line 511: hr_utility.set_location('entering with prop method-'||p_propagation_method||l_proc,10);

507: l_object_version_number number := p_object_version_number;
508: l_delegate_change varchar2(3);
509: l_proc varchar2(100) := g_package||'change_available' ;
510: begin
511: hr_utility.set_location('entering with prop method-'||p_propagation_method||l_proc,10);
512: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,11);
513: hr_utility.set_location('entering for wd '||p_worksheet_detail_id||l_proc,12);
514: if p_propagation_method not in ('RP','RV','UE') then
515: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');

Line 512: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,11);

508: l_delegate_change varchar2(3);
509: l_proc varchar2(100) := g_package||'change_available' ;
510: begin
511: hr_utility.set_location('entering with prop method-'||p_propagation_method||l_proc,10);
512: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,11);
513: hr_utility.set_location('entering for wd '||p_worksheet_detail_id||l_proc,12);
514: if p_propagation_method not in ('RP','RV','UE') then
515: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
516: hr_utility.raise_error;

Line 513: hr_utility.set_location('entering for wd '||p_worksheet_detail_id||l_proc,12);

509: l_proc varchar2(100) := g_package||'change_available' ;
510: begin
511: hr_utility.set_location('entering with prop method-'||p_propagation_method||l_proc,10);
512: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,11);
513: hr_utility.set_location('entering for wd '||p_worksheet_detail_id||l_proc,12);
514: if p_propagation_method not in ('RP','RV','UE') then
515: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
516: hr_utility.raise_error;
517: end if;

Line 515: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');

511: hr_utility.set_location('entering with prop method-'||p_propagation_method||l_proc,10);
512: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,11);
513: hr_utility.set_location('entering for wd '||p_worksheet_detail_id||l_proc,12);
514: if p_propagation_method not in ('RP','RV','UE') then
515: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
516: hr_utility.raise_error;
517: end if;
518: -- The idea is to find out wether the value will be getting changed or not for even a single field
519: -- if yes in that case available figures of the parent are to be reduced by the available figures

Line 516: hr_utility.raise_error;

512: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,11);
513: hr_utility.set_location('entering for wd '||p_worksheet_detail_id||l_proc,12);
514: if p_propagation_method not in ('RP','RV','UE') then
515: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
516: hr_utility.raise_error;
517: end if;
518: -- The idea is to find out wether the value will be getting changed or not for even a single field
519: -- if yes in that case available figures of the parent are to be reduced by the available figures
520: -- of the child and status of the child should be marked as delegate.

Line 523: hr_utility.set_location('for approved organization'||i.organization_id||l_proc,20);

519: -- if yes in that case available figures of the parent are to be reduced by the available figures
520: -- of the child and status of the child should be marked as delegate.
521: for i in c1 loop
522: l_delegate_change := 'N' ;
523: hr_utility.set_location('for approved organization'||i.organization_id||l_proc,20);
524: if p_propagation_method = 'UE' then
525: if nvl(i.budget_unit1_value_type_cd,'D') = 'P'
526: or nvl(i.budget_unit2_value_type_cd,'D') = 'P'
527: or nvl(i.budget_unit3_value_type_cd,'D') = 'P' then

Line 551: hr_utility.set_location('sum to be reduced from parent calculated'||l_proc,30);

547: change_available(p_worksheet_detail_id => i.worksheet_detail_id,
548: p_object_version_number => l_object_version_number,
549: p_propagation_method => i.propagation_method);
550: end loop;
551: hr_utility.set_location('sum to be reduced from parent calculated'||l_proc,30);
552: hr_utility.set_location('unit1_available reduction by'||l_chg_unit1_available||l_proc,40);
553: hr_utility.set_location('unit2_available reduction by'||l_chg_unit2_available||l_proc,50);
554: hr_utility.set_location('unit3_available reduction by'||l_chg_unit3_available||l_proc,60);
555: -- if there is any value to be changed only then update the parent worksheet

Line 552: hr_utility.set_location('unit1_available reduction by'||l_chg_unit1_available||l_proc,40);

548: p_object_version_number => l_object_version_number,
549: p_propagation_method => i.propagation_method);
550: end loop;
551: hr_utility.set_location('sum to be reduced from parent calculated'||l_proc,30);
552: hr_utility.set_location('unit1_available reduction by'||l_chg_unit1_available||l_proc,40);
553: hr_utility.set_location('unit2_available reduction by'||l_chg_unit2_available||l_proc,50);
554: hr_utility.set_location('unit3_available reduction by'||l_chg_unit3_available||l_proc,60);
555: -- if there is any value to be changed only then update the parent worksheet
556: if nvl(l_chg_unit1_available,0) > 0

Line 553: hr_utility.set_location('unit2_available reduction by'||l_chg_unit2_available||l_proc,50);

549: p_propagation_method => i.propagation_method);
550: end loop;
551: hr_utility.set_location('sum to be reduced from parent calculated'||l_proc,30);
552: hr_utility.set_location('unit1_available reduction by'||l_chg_unit1_available||l_proc,40);
553: hr_utility.set_location('unit2_available reduction by'||l_chg_unit2_available||l_proc,50);
554: hr_utility.set_location('unit3_available reduction by'||l_chg_unit3_available||l_proc,60);
555: -- if there is any value to be changed only then update the parent worksheet
556: if nvl(l_chg_unit1_available,0) > 0
557: or nvl(l_chg_unit2_available,0) > 0

Line 554: hr_utility.set_location('unit3_available reduction by'||l_chg_unit3_available||l_proc,60);

550: end loop;
551: hr_utility.set_location('sum to be reduced from parent calculated'||l_proc,30);
552: hr_utility.set_location('unit1_available reduction by'||l_chg_unit1_available||l_proc,40);
553: hr_utility.set_location('unit2_available reduction by'||l_chg_unit2_available||l_proc,50);
554: hr_utility.set_location('unit3_available reduction by'||l_chg_unit3_available||l_proc,60);
555: -- if there is any value to be changed only then update the parent worksheet
556: if nvl(l_chg_unit1_available,0) > 0
557: or nvl(l_chg_unit2_available,0) > 0
558: or nvl(l_chg_unit3_available,0) > 0 then

Line 560: hr_utility.set_location('inside other loop '||l_proc,62);

556: if nvl(l_chg_unit1_available,0) > 0
557: or nvl(l_chg_unit2_available,0) > 0
558: or nvl(l_chg_unit3_available,0) > 0 then
559: for i in c2 loop
560: hr_utility.set_location('inside other loop '||l_proc,62);
561: update_worksheet_detail(p_worksheet_detail_id => i.worksheet_detail_id,
562: p_effective_date => trunc(sysdate),
563: p_object_version_number => p_object_version_number,
564: p_budget_unit1_available => nvl(i.budget_unit1_available,0) - nvl(l_chg_unit1_available,0),

Line 569: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,69);

565: p_budget_unit2_available => nvl(i.budget_unit2_available,0) - nvl(l_chg_unit2_available,0),
566: p_budget_unit3_available => nvl(i.budget_unit3_available,0) - nvl(l_chg_unit3_available,0));
567: end loop;
568: end if;
569: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,69);
570: hr_utility.set_location('parent updated and exiting'||l_proc,70);
571: exception when others then
572: p_object_version_number := l_object_version_number;
573: raise;

Line 570: hr_utility.set_location('parent updated and exiting'||l_proc,70);

566: p_budget_unit3_available => nvl(i.budget_unit3_available,0) - nvl(l_chg_unit3_available,0));
567: end loop;
568: end if;
569: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,69);
570: hr_utility.set_location('parent updated and exiting'||l_proc,70);
571: exception when others then
572: p_object_version_number := l_object_version_number;
573: raise;
574: end change_available;

Line 641: hr_utility.set_location('entering '||l_proc,10);

637: l_wks_propagation_method pqh_worksheets.propagation_method%type;
638: l_proc varchar2(100) := g_package||'propagate_worksheet_changes' ;
639: l_code varchar2(30);
640: begin
641: hr_utility.set_location('entering '||l_proc,10);
642: hr_utility.set_location('entering with wkd'||p_worksheet_detail_id||l_proc,11);
643: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,12);
644: /*
645: this procedure is called when there are changes are to be reflected in the details when

Line 642: hr_utility.set_location('entering with wkd'||p_worksheet_detail_id||l_proc,11);

638: l_proc varchar2(100) := g_package||'propagate_worksheet_changes' ;
639: l_code varchar2(30);
640: begin
641: hr_utility.set_location('entering '||l_proc,10);
642: hr_utility.set_location('entering with wkd'||p_worksheet_detail_id||l_proc,11);
643: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,12);
644: /*
645: this procedure is called when there are changes are to be reflected in the details when
646: there are changes made at the worksheet level. As worksheet level changes are only

Line 643: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,12);

639: l_code varchar2(30);
640: begin
641: hr_utility.set_location('entering '||l_proc,10);
642: hr_utility.set_location('entering with wkd'||p_worksheet_detail_id||l_proc,11);
643: hr_utility.set_location('entering with ovn'||p_object_version_number||l_proc,12);
644: /*
645: this procedure is called when there are changes are to be reflected in the details when
646: there are changes made at the worksheet level. As worksheet level changes are only
647: allowed in the case of Top down budgetthis routine won't be called in bottom down mode.

Line 661: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');

657: fetch c3 into l_wks_propagation_method;
658: close c3;
659: exception
660: when others then
661: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
662: hr_utility.raise_error;
663: end;
664: l_code := pqh_wks_budget.get_parent_value(p_worksheet_detail_id,l_wks_propagation_method);
665: else

Line 662: hr_utility.raise_error;

658: close c3;
659: exception
660: when others then
661: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
662: hr_utility.raise_error;
663: end;
664: l_code := pqh_wks_budget.get_parent_value(p_worksheet_detail_id,l_wks_propagation_method);
665: else
666: l_code := p_change_mode;

Line 669: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');

665: else
666: l_code := p_change_mode;
667: end if;
668: if l_code not in ('RP','RV','UE') then
669: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
670: hr_utility.raise_error;
671: end if;
672: hr_utility.set_location('l_code is'||l_code||l_proc,35);
673: if p_budget_style_cd ='TOP' then

Line 670: hr_utility.raise_error;

666: l_code := p_change_mode;
667: end if;
668: if l_code not in ('RP','RV','UE') then
669: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
670: hr_utility.raise_error;
671: end if;
672: hr_utility.set_location('l_code is'||l_code||l_proc,35);
673: if p_budget_style_cd ='TOP' then
674: hr_utility.set_location('before change_available '||l_proc,36);

Line 672: hr_utility.set_location('l_code is'||l_code||l_proc,35);

668: if l_code not in ('RP','RV','UE') then
669: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
670: hr_utility.raise_error;
671: end if;
672: hr_utility.set_location('l_code is'||l_code||l_proc,35);
673: if p_budget_style_cd ='TOP' then
674: hr_utility.set_location('before change_available '||l_proc,36);
675: change_available(p_worksheet_detail_id => p_worksheet_detail_id,
676: p_object_version_number => p_object_version_number,

Line 674: hr_utility.set_location('before change_available '||l_proc,36);

670: hr_utility.raise_error;
671: end if;
672: hr_utility.set_location('l_code is'||l_code||l_proc,35);
673: if p_budget_style_cd ='TOP' then
674: hr_utility.set_location('before change_available '||l_proc,36);
675: change_available(p_worksheet_detail_id => p_worksheet_detail_id,
676: p_object_version_number => p_object_version_number,
677: p_propagation_method => l_code );
678: hr_utility.set_location('after change_available '||l_proc,37);

Line 678: hr_utility.set_location('after change_available '||l_proc,37);

674: hr_utility.set_location('before change_available '||l_proc,36);
675: change_available(p_worksheet_detail_id => p_worksheet_detail_id,
676: p_object_version_number => p_object_version_number,
677: p_propagation_method => l_code );
678: hr_utility.set_location('after change_available '||l_proc,37);
679: end if;
680: for i in c1 loop
681: hr_utility.set_location('for each budgeted row '||l_proc,40);
682: if l_code = 'RV' then

Line 681: hr_utility.set_location('for each budgeted row '||l_proc,40);

677: p_propagation_method => l_code );
678: hr_utility.set_location('after change_available '||l_proc,37);
679: end if;
680: for i in c1 loop
681: hr_utility.set_location('for each budgeted row '||l_proc,40);
682: if l_code = 'RV' then
683: hr_utility.set_location('unit1 for RV'||l_proc,45);
684: if nvl(p_new_wks_unit1_value,0) <> 0 then
685: l_budget_unit1_percent := round((i.budget_unit1_value * 100)/p_new_wks_unit1_value,2) ;

Line 683: hr_utility.set_location('unit1 for RV'||l_proc,45);

679: end if;
680: for i in c1 loop
681: hr_utility.set_location('for each budgeted row '||l_proc,40);
682: if l_code = 'RV' then
683: hr_utility.set_location('unit1 for RV'||l_proc,45);
684: if nvl(p_new_wks_unit1_value,0) <> 0 then
685: l_budget_unit1_percent := round((i.budget_unit1_value * 100)/p_new_wks_unit1_value,2) ;
686: else
687: l_budget_unit1_percent := null;

Line 692: hr_utility.set_location('unit1 for RP'||l_proc,50);

688: end if;
689: l_budget_unit1_value := i.budget_unit1_value;
690: l_budget_unit1_available := i.budget_unit1_available;
691: elsif l_code = 'RP' then
692: hr_utility.set_location('unit1 for RP'||l_proc,50);
693: if nvl(p_new_wks_unit1_value,0) <> 0 then
694: l_budget_unit1_value := round(p_new_wks_unit1_value * nvl(i.budget_unit1_percent,0)/100,p_unit1_precision) ;
695: l_budget_unit1_available := nvl(i.budget_unit1_available,0) + nvl(l_budget_unit1_value,0) - nvl(i.budget_unit1_value,0);
696: p_wks_unit1_available := nvl(p_wks_unit1_available,0) - nvl(l_budget_unit1_value,0) + nvl(i.budget_unit1_value,0);

Line 703: hr_utility.set_location('unit1 for UE'||l_proc,55);

699: l_budget_unit1_available := i.budget_unit1_available;
700: end if;
701: l_budget_unit1_percent := i.budget_unit1_percent;
702: else
703: hr_utility.set_location('unit1 for UE'||l_proc,55);
704: if nvl(p_new_wks_unit1_value,0) <> 0 then
705: if i.budget_unit1_value_type_cd = 'P' then
706: l_budget_unit1_value := round(p_new_wks_unit1_value * nvl(i.budget_unit1_percent,0)/100,p_unit1_precision) ;
707: l_budget_unit1_available := nvl(i.budget_unit1_available,0) + nvl(l_budget_unit1_value,0) - nvl(i.budget_unit1_value,0);

Line 723: hr_utility.set_location('unit2 for RV'||l_proc,60);

719: end if;
720: end if;
721:
722: if l_code ='RV' then
723: hr_utility.set_location('unit2 for RV'||l_proc,60);
724: if nvl(p_new_wks_unit2_value,0) <> 0 then
725: l_budget_unit2_percent := round((i.budget_unit2_value * 100)/p_new_wks_unit2_value,2) ;
726: else
727: l_budget_unit2_percent := null;

Line 732: hr_utility.set_location('unit2 for RP'||l_proc,65);

728: end if;
729: l_budget_unit2_value := i.budget_unit2_value;
730: l_budget_unit2_available := i.budget_unit2_available;
731: elsif l_code ='RP' then
732: hr_utility.set_location('unit2 for RP'||l_proc,65);
733: if nvl(p_new_wks_unit2_value,0) <> 0 then
734: l_budget_unit2_value := round(p_new_wks_unit2_value * nvl(i.budget_unit2_percent,0)/100,p_unit2_precision) ;
735: l_budget_unit2_available := nvl(i.budget_unit2_available,0) + nvl(l_budget_unit2_value,0) - nvl(i.budget_unit2_value,0);
736: p_wks_unit2_available := nvl(p_wks_unit2_available,0) - nvl(l_budget_unit2_value,0) + nvl(i.budget_unit2_value,0);

Line 743: hr_utility.set_location('unit2 for UE'||l_proc,70);

739: l_budget_unit2_available := i.budget_unit2_available;
740: end if;
741: l_budget_unit2_percent := i.budget_unit2_percent;
742: else
743: hr_utility.set_location('unit2 for UE'||l_proc,70);
744: if nvl(p_new_wks_unit2_value,0) <> 0 then
745: if i.budget_unit2_value_type_cd = 'P' then
746: l_budget_unit2_value := round(p_new_wks_unit2_value * nvl(i.budget_unit2_percent,0)/100,p_unit2_precision) ;
747: l_budget_unit2_available := nvl(i.budget_unit2_available,0) + nvl(l_budget_unit2_value,0) - nvl(i.budget_unit2_value,0);

Line 763: hr_utility.set_location('unit3 for RV'||l_proc,75);

759: end if;
760: end if;
761:
762: if l_code ='RV' then
763: hr_utility.set_location('unit3 for RV'||l_proc,75);
764: if nvl(p_new_wks_unit3_value,0) <> 0 then
765: l_budget_unit3_percent := round((i.budget_unit3_value * 100)/p_new_wks_unit3_value,2) ;
766: else
767: l_budget_unit3_percent := null;

Line 772: hr_utility.set_location('unit3 for RP'||l_proc,80);

768: end if;
769: l_budget_unit3_value := i.budget_unit3_value;
770: l_budget_unit3_available := i.budget_unit3_available;
771: elsif l_code ='RP' then
772: hr_utility.set_location('unit3 for RP'||l_proc,80);
773: if nvl(p_new_wks_unit3_value,0) <> 0 then
774: l_budget_unit3_value := round(p_new_wks_unit3_value * nvl(i.budget_unit3_percent,0)/100,p_unit3_precision) ;
775: l_budget_unit3_available := nvl(i.budget_unit3_available,0) + nvl(l_budget_unit3_value,0) - nvl(i.budget_unit3_value,0);
776: p_wks_unit3_available := nvl(p_wks_unit3_available,0) - nvl(l_budget_unit3_value,0) + nvl(i.budget_unit3_value,0);

Line 783: hr_utility.set_location('unit3 for UE'||l_proc,85);

779: l_budget_unit3_available := i.budget_unit3_available;
780: end if;
781: l_budget_unit3_percent := i.budget_unit3_percent;
782: else
783: hr_utility.set_location('unit3 for UE'||l_proc,85);
784: if nvl(p_new_wks_unit3_value,0) <> 0 then
785: if i.budget_unit3_value_type_cd = 'P' then
786: l_budget_unit3_value := round(p_new_wks_unit3_value * nvl(i.budget_unit3_percent,0)/100,p_unit3_precision) ;
787: l_budget_unit3_available := nvl(i.budget_unit3_available,0) + nvl(l_budget_unit3_value,0) - nvl(i.budget_unit3_value,0);

Line 801: hr_utility.set_location('before calling propagate_budget_changes'||l_proc,90);

797: l_budget_unit3_available := i.budget_unit3_available;
798: l_budget_unit3_percent := null;
799: end if;
800: end if;
801: hr_utility.set_location('before calling propagate_budget_changes'||l_proc,90);
802: hr_utility.set_location('values passed are'||l_proc,95);
803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);

Line 802: hr_utility.set_location('values passed are'||l_proc,95);

798: l_budget_unit3_percent := null;
799: end if;
800: end if;
801: hr_utility.set_location('before calling propagate_budget_changes'||l_proc,90);
802: hr_utility.set_location('values passed are'||l_proc,95);
803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);

Line 803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);

799: end if;
800: end if;
801: hr_utility.set_location('before calling propagate_budget_changes'||l_proc,90);
802: hr_utility.set_location('values passed are'||l_proc,95);
803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);
807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);

Line 804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);

800: end if;
801: hr_utility.set_location('before calling propagate_budget_changes'||l_proc,90);
802: hr_utility.set_location('values passed are'||l_proc,95);
803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);
807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);
808: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,105);

Line 805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);

801: hr_utility.set_location('before calling propagate_budget_changes'||l_proc,90);
802: hr_utility.set_location('values passed are'||l_proc,95);
803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);
807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);
808: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,105);
809: l_object_version_number := i.object_version_number;

Line 806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);

802: hr_utility.set_location('values passed are'||l_proc,95);
803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);
807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);
808: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,105);
809: l_object_version_number := i.object_version_number;
810: propagate_budget_changes(p_change_mode => l_code,

Line 807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);

803: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,100);
804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);
807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);
808: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,105);
809: l_object_version_number := i.object_version_number;
810: propagate_budget_changes(p_change_mode => l_code,
811: p_worksheet_detail_id => i.worksheet_detail_id,

Line 808: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,105);

804: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,101);
805: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,102);
806: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,103);
807: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,104);
808: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,105);
809: l_object_version_number := i.object_version_number;
810: propagate_budget_changes(p_change_mode => l_code,
811: p_worksheet_detail_id => i.worksheet_detail_id,
812: p_new_bgt_unit1_value => l_budget_unit1_value,

Line 824: hr_utility.set_location('values returned are'||l_proc,110);

820: p_unit3_aggregate => p_unit3_aggregate,
821: p_bgt_unit1_available => l_budget_unit1_available,
822: p_bgt_unit2_available => l_budget_unit2_available,
823: p_bgt_unit3_available => l_budget_unit3_available);
824: hr_utility.set_location('values returned are'||l_proc,110);
825: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,113);
826: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,114);
827: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,115);
828: update_worksheet_detail( p_worksheet_detail_id => i.worksheet_detail_id,

Line 825: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,113);

821: p_bgt_unit1_available => l_budget_unit1_available,
822: p_bgt_unit2_available => l_budget_unit2_available,
823: p_bgt_unit3_available => l_budget_unit3_available);
824: hr_utility.set_location('values returned are'||l_proc,110);
825: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,113);
826: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,114);
827: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,115);
828: update_worksheet_detail( p_worksheet_detail_id => i.worksheet_detail_id,
829: p_effective_date => trunc(sysdate),

Line 826: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,114);

822: p_bgt_unit2_available => l_budget_unit2_available,
823: p_bgt_unit3_available => l_budget_unit3_available);
824: hr_utility.set_location('values returned are'||l_proc,110);
825: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,113);
826: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,114);
827: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,115);
828: update_worksheet_detail( p_worksheet_detail_id => i.worksheet_detail_id,
829: p_effective_date => trunc(sysdate),
830: p_budget_unit1_percent => l_budget_unit1_percent,

Line 827: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,115);

823: p_bgt_unit3_available => l_budget_unit3_available);
824: hr_utility.set_location('values returned are'||l_proc,110);
825: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,113);
826: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,114);
827: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,115);
828: update_worksheet_detail( p_worksheet_detail_id => i.worksheet_detail_id,
829: p_effective_date => trunc(sysdate),
830: p_budget_unit1_percent => l_budget_unit1_percent,
831: p_budget_unit1_value => l_budget_unit1_value,

Line 840: hr_utility.set_location('budget row updated '||l_proc,120);

836: p_budget_unit1_available => l_budget_unit1_available,
837: p_budget_unit2_available => l_budget_unit2_available,
838: p_budget_unit3_available => l_budget_unit3_available,
839: p_object_version_number => l_object_version_number);
840: hr_utility.set_location('budget row updated '||l_proc,120);
841: end loop;
842: -- propagation to delegated worksheets
843: if p_budget_style_cd ='TOP' then
844: for j in c2 loop

Line 845: hr_utility.set_location('for each delegated row '||l_proc,130);

841: end loop;
842: -- propagation to delegated worksheets
843: if p_budget_style_cd ='TOP' then
844: for j in c2 loop
845: hr_utility.set_location('for each delegated row '||l_proc,130);
846: if l_code ='RV' then
847: hr_utility.set_location('unit1 for RV'||l_proc,140);
848: if nvl(p_new_wks_unit1_value,0) <> 0 then
849: l_budget_unit1_percent := round((j.budget_unit1_value * 100)/p_new_wks_unit1_value,2) ;

Line 847: hr_utility.set_location('unit1 for RV'||l_proc,140);

843: if p_budget_style_cd ='TOP' then
844: for j in c2 loop
845: hr_utility.set_location('for each delegated row '||l_proc,130);
846: if l_code ='RV' then
847: hr_utility.set_location('unit1 for RV'||l_proc,140);
848: if nvl(p_new_wks_unit1_value,0) <> 0 then
849: l_budget_unit1_percent := round((j.budget_unit1_value * 100)/p_new_wks_unit1_value,2) ;
850: else
851: l_budget_unit1_percent := null;

Line 857: hr_utility.set_location('unit1 for RP'||l_proc,150);

853: l_old_unit1_value := j.old_unit1_value;
854: l_budget_unit1_value := j.budget_unit1_value;
855: l_budget_unit1_available := j.budget_unit1_available;
856: elsif l_code ='RP' then
857: hr_utility.set_location('unit1 for RP'||l_proc,150);
858: if nvl(p_new_wks_unit1_value,0) <> 0 then
859: l_budget_unit1_value := round(p_new_wks_unit1_value * nvl(j.budget_unit1_percent,0)/100,p_unit1_precision) ;
860: l_budget_unit1_available := nvl(j.budget_unit1_available,0) + nvl(l_budget_unit1_value,0) - nvl(j.budget_unit1_value,0);
861: p_wks_unit1_available := nvl(p_wks_unit1_available,0) - nvl(l_budget_unit1_value,0) + nvl(j.budget_unit1_value,0);

Line 870: hr_utility.set_location('unit1 for UE'||l_proc,160);

866: l_old_unit1_value := j.old_unit1_value;
867: end if;
868: l_budget_unit1_percent := j.budget_unit1_percent;
869: else
870: hr_utility.set_location('unit1 for UE'||l_proc,160);
871: if nvl(p_new_wks_unit1_value,0) <> 0 then
872: if j.budget_unit1_value_type_cd = 'P' then
873: l_budget_unit1_value := round(p_new_wks_unit1_value * nvl(j.budget_unit1_percent,0)/100,p_unit1_precision) ;
874: l_budget_unit1_available := nvl(j.budget_unit1_available,0) + nvl(l_budget_unit1_value,0) - nvl(j.budget_unit1_value,0);

Line 892: hr_utility.set_location('unit2 for RV'||l_proc,170);

888: l_old_unit1_value := j.old_unit1_value;
889: end if;
890: end if;
891: if l_code ='RV' then
892: hr_utility.set_location('unit2 for RV'||l_proc,170);
893: if nvl(p_new_wks_unit2_value,0) <> 0 then
894: l_budget_unit2_percent := round((j.budget_unit2_value * 100)/p_new_wks_unit2_value,2) ;
895: else
896: l_budget_unit2_percent := null;

Line 902: hr_utility.set_location('unit2 for RP'||l_proc,180);

898: l_old_unit2_value := j.old_unit2_value;
899: l_budget_unit2_value := j.budget_unit2_value;
900: l_budget_unit2_available := j.budget_unit2_available;
901: elsif l_code ='RP' then
902: hr_utility.set_location('unit2 for RP'||l_proc,180);
903: if nvl(p_new_wks_unit2_value,0) <> 0 then
904: l_budget_unit2_value := round(p_new_wks_unit2_value * nvl(j.budget_unit2_percent,0)/100,p_unit2_precision) ;
905: l_budget_unit2_available := nvl(j.budget_unit2_available,0) + nvl(l_budget_unit2_value,0) - nvl(j.budget_unit2_value,0);
906: p_wks_unit2_available := nvl(p_wks_unit2_available,0) - nvl(l_budget_unit2_value,0) + nvl(j.budget_unit2_value,0);

Line 915: hr_utility.set_location('unit2 for UE'||l_proc,190);

911: l_budget_unit2_available := j.budget_unit2_available;
912: end if;
913: l_budget_unit2_percent := j.budget_unit2_percent;
914: else
915: hr_utility.set_location('unit2 for UE'||l_proc,190);
916: if nvl(p_new_wks_unit2_value,0) <> 0 then
917: if j.budget_unit2_value_type_cd = 'P' then
918: l_budget_unit2_value := round(p_new_wks_unit2_value * nvl(j.budget_unit2_percent,0)/100,p_unit2_precision) ;
919: l_budget_unit2_available := nvl(j.budget_unit2_available,0) + nvl(l_budget_unit2_value,0) - nvl(j.budget_unit2_value,0);

Line 937: hr_utility.set_location('unit3 for RV'||l_proc,200);

933: l_old_unit2_value := j.old_unit2_value;
934: end if;
935: end if;
936: if l_code ='RV' then
937: hr_utility.set_location('unit3 for RV'||l_proc,200);
938: if nvl(p_new_wks_unit3_value,0) <> 0 then
939: l_budget_unit3_percent := round((j.budget_unit3_value * 100)/p_new_wks_unit3_value,2) ;
940: else
941: l_budget_unit3_percent := null;

Line 947: hr_utility.set_location('unit3 for RP'||l_proc,210);

943: l_budget_unit3_value := j.budget_unit3_value;
944: l_budget_unit3_available := j.budget_unit3_available;
945: l_old_unit3_value := j.old_unit3_value;
946: elsif l_code ='RP' then
947: hr_utility.set_location('unit3 for RP'||l_proc,210);
948: if nvl(p_new_wks_unit3_value,0) <> 0 then
949: l_budget_unit3_value := round(p_new_wks_unit3_value * nvl(j.budget_unit3_percent,0)/100,p_unit3_precision) ;
950: l_budget_unit3_available := nvl(j.budget_unit3_available,0) + nvl(l_budget_unit3_value,0) - nvl(j.budget_unit3_value,0);
951: p_wks_unit3_available := nvl(p_wks_unit3_available,0) - nvl(l_budget_unit3_value,0) + nvl(j.budget_unit3_value,0);

Line 960: hr_utility.set_location('unit3 for UE'||l_proc,220);

956: l_old_unit3_value := j.old_unit3_value;
957: end if;
958: l_budget_unit3_percent := j.budget_unit3_percent;
959: else
960: hr_utility.set_location('unit3 for UE'||l_proc,220);
961: if nvl(p_new_wks_unit3_value,0) <> 0 then
962: if j.budget_unit3_value_type_cd = 'P' then
963: l_budget_unit3_value := round(p_new_wks_unit3_value * nvl(j.budget_unit3_percent,0)/100,p_unit3_precision) ;
964: l_budget_unit3_available := nvl(j.budget_unit3_available,0) + nvl(l_budget_unit3_value,0) - nvl(j.budget_unit3_value,0);

Line 981: hr_utility.set_location('values passed for updating worksheet are'||l_proc,230);

977: l_budget_unit3_percent := null;
978: l_old_unit3_value := j.old_unit3_value;
979: end if;
980: end if;
981: hr_utility.set_location('values passed for updating worksheet are'||l_proc,230);
982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);
983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);

Line 982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);

978: l_old_unit3_value := j.old_unit3_value;
979: end if;
980: end if;
981: hr_utility.set_location('values passed for updating worksheet are'||l_proc,230);
982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);
983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);

Line 983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);

979: end if;
980: end if;
981: hr_utility.set_location('values passed for updating worksheet are'||l_proc,230);
982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);
983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);

Line 984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);

980: end if;
981: hr_utility.set_location('values passed for updating worksheet are'||l_proc,230);
982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);
983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);

Line 985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);

981: hr_utility.set_location('values passed for updating worksheet are'||l_proc,230);
982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);
983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);
989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);

Line 986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);

982: hr_utility.set_location('unit1_value'||l_budget_unit1_value||l_proc,240);
983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);
989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);
990: hr_utility.set_location('unit3_percent'||l_budget_unit3_percent||l_proc,251);

Line 987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);

983: hr_utility.set_location('unit2_value'||l_budget_unit2_value||l_proc,241);
984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);
989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);
990: hr_utility.set_location('unit3_percent'||l_budget_unit3_percent||l_proc,251);
991: l_object_version_number := j.object_version_number;

Line 988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);

984: hr_utility.set_location('unit3_value'||l_budget_unit3_value||l_proc,242);
985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);
989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);
990: hr_utility.set_location('unit3_percent'||l_budget_unit3_percent||l_proc,251);
991: l_object_version_number := j.object_version_number;
992: update_worksheet_detail(

Line 989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);

985: hr_utility.set_location('unit1_available'||l_budget_unit1_available||l_proc,243);
986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);
989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);
990: hr_utility.set_location('unit3_percent'||l_budget_unit3_percent||l_proc,251);
991: l_object_version_number := j.object_version_number;
992: update_worksheet_detail(
993: p_worksheet_detail_id => j.worksheet_detail_id,

Line 990: hr_utility.set_location('unit3_percent'||l_budget_unit3_percent||l_proc,251);

986: hr_utility.set_location('unit2_available'||l_budget_unit2_available||l_proc,244);
987: hr_utility.set_location('unit3_available'||l_budget_unit3_available||l_proc,245);
988: hr_utility.set_location('unit1_percent'||l_budget_unit1_percent||l_proc,249);
989: hr_utility.set_location('unit2_percent'||l_budget_unit2_percent||l_proc,250);
990: hr_utility.set_location('unit3_percent'||l_budget_unit3_percent||l_proc,251);
991: l_object_version_number := j.object_version_number;
992: update_worksheet_detail(
993: p_worksheet_detail_id => j.worksheet_detail_id,
994: p_effective_date => trunc(sysdate),

Line 1009: hr_utility.set_location('worksheet updated'||l_proc,260);

1005: p_budget_unit1_available => l_budget_unit1_available,
1006: p_budget_unit2_available => l_budget_unit2_available,
1007: p_budget_unit3_available => l_budget_unit3_available
1008: );
1009: hr_utility.set_location('worksheet updated'||l_proc,260);
1010: end loop;
1011: end if;
1012: hr_utility.set_location('values passed out nocopy are'||l_proc,270);
1013: p_wks_unit1_available := round(p_wks_unit1_available,p_unit1_precision);

Line 1012: hr_utility.set_location('values passed out nocopy are'||l_proc,270);

1008: );
1009: hr_utility.set_location('worksheet updated'||l_proc,260);
1010: end loop;
1011: end if;
1012: hr_utility.set_location('values passed out nocopy are'||l_proc,270);
1013: p_wks_unit1_available := round(p_wks_unit1_available,p_unit1_precision);
1014: p_wks_unit2_available := round(p_wks_unit2_available,p_unit2_precision);
1015: p_wks_unit3_available := round(p_wks_unit3_available,p_unit3_precision);
1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);

Line 1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);

1012: hr_utility.set_location('values passed out nocopy are'||l_proc,270);
1013: p_wks_unit1_available := round(p_wks_unit1_available,p_unit1_precision);
1014: p_wks_unit2_available := round(p_wks_unit2_available,p_unit2_precision);
1015: p_wks_unit3_available := round(p_wks_unit3_available,p_unit3_precision);
1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);
1017: hr_utility.set_location('unit2_available'||p_wks_unit2_available||l_proc,274);
1018: hr_utility.set_location('unit3_available'||p_wks_unit3_available||l_proc,275);
1019: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,276);
1020: hr_utility.set_location('exiting '||l_proc,1000);

Line 1017: hr_utility.set_location('unit2_available'||p_wks_unit2_available||l_proc,274);

1013: p_wks_unit1_available := round(p_wks_unit1_available,p_unit1_precision);
1014: p_wks_unit2_available := round(p_wks_unit2_available,p_unit2_precision);
1015: p_wks_unit3_available := round(p_wks_unit3_available,p_unit3_precision);
1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);
1017: hr_utility.set_location('unit2_available'||p_wks_unit2_available||l_proc,274);
1018: hr_utility.set_location('unit3_available'||p_wks_unit3_available||l_proc,275);
1019: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,276);
1020: hr_utility.set_location('exiting '||l_proc,1000);
1021: exception when others then

Line 1018: hr_utility.set_location('unit3_available'||p_wks_unit3_available||l_proc,275);

1014: p_wks_unit2_available := round(p_wks_unit2_available,p_unit2_precision);
1015: p_wks_unit3_available := round(p_wks_unit3_available,p_unit3_precision);
1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);
1017: hr_utility.set_location('unit2_available'||p_wks_unit2_available||l_proc,274);
1018: hr_utility.set_location('unit3_available'||p_wks_unit3_available||l_proc,275);
1019: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,276);
1020: hr_utility.set_location('exiting '||l_proc,1000);
1021: exception when others then
1022: p_wks_unit1_available := l_wks_unit1_available;

Line 1019: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,276);

1015: p_wks_unit3_available := round(p_wks_unit3_available,p_unit3_precision);
1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);
1017: hr_utility.set_location('unit2_available'||p_wks_unit2_available||l_proc,274);
1018: hr_utility.set_location('unit3_available'||p_wks_unit3_available||l_proc,275);
1019: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,276);
1020: hr_utility.set_location('exiting '||l_proc,1000);
1021: exception when others then
1022: p_wks_unit1_available := l_wks_unit1_available;
1023: p_wks_unit2_available := l_wks_unit2_available;

Line 1020: hr_utility.set_location('exiting '||l_proc,1000);

1016: hr_utility.set_location('unit1_available'||p_wks_unit1_available||l_proc,273);
1017: hr_utility.set_location('unit2_available'||p_wks_unit2_available||l_proc,274);
1018: hr_utility.set_location('unit3_available'||p_wks_unit3_available||l_proc,275);
1019: hr_utility.set_location('exiting with ovn'||p_object_version_number||l_proc,276);
1020: hr_utility.set_location('exiting '||l_proc,1000);
1021: exception when others then
1022: p_wks_unit1_available := l_wks_unit1_available;
1023: p_wks_unit2_available := l_wks_unit2_available;
1024: p_wks_unit3_available := l_wks_unit3_available;

Line 1079: hr_utility.set_location('entering '||l_proc,10);

1075: x_unit3_sum number;
1076: l_budget_id number;
1077: l_proc varchar2(100) := g_package||'propagate_budget_changes' ;
1078: begin
1079: hr_utility.set_location('entering '||l_proc,10);
1080: if p_change_mode not in ('RP','RV','UE') then
1081: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
1082: hr_utility.raise_error;
1083: end if;

Line 1081: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');

1077: l_proc varchar2(100) := g_package||'propagate_budget_changes' ;
1078: begin
1079: hr_utility.set_location('entering '||l_proc,10);
1080: if p_change_mode not in ('RP','RV','UE') then
1081: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
1082: hr_utility.raise_error;
1083: end if;
1084:
1085: /* make a call to sub_budgetrow to subtract the all period info. from the table*/

Line 1082: hr_utility.raise_error;

1078: begin
1079: hr_utility.set_location('entering '||l_proc,10);
1080: if p_change_mode not in ('RP','RV','UE') then
1081: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
1082: hr_utility.raise_error;
1083: end if;
1084:
1085: /* make a call to sub_budgetrow to subtract the all period info. from the table*/
1086: sub_budgetrow(p_worksheet_detail_id => p_worksheet_detail_id,

Line 1092: hr_utility.set_location('for each period '||l_proc,20);

1088: p_unit2_aggregate => p_unit2_aggregate,
1089: p_unit3_aggregate => p_unit3_aggregate);
1090:
1091: for i in c1 loop
1092: hr_utility.set_location('for each period '||l_proc,20);
1093: if p_change_mode ='RV' then
1094: hr_utility.set_location('unit1 for RV '||l_proc,30);
1095: if nvl(p_new_bgt_unit1_value,0) <> 0 then
1096: l_period_unit1_percent := round((i.budget_unit1_value * 100)/p_new_bgt_unit1_value,2) ;

Line 1094: hr_utility.set_location('unit1 for RV '||l_proc,30);

1090:
1091: for i in c1 loop
1092: hr_utility.set_location('for each period '||l_proc,20);
1093: if p_change_mode ='RV' then
1094: hr_utility.set_location('unit1 for RV '||l_proc,30);
1095: if nvl(p_new_bgt_unit1_value,0) <> 0 then
1096: l_period_unit1_percent := round((i.budget_unit1_value * 100)/p_new_bgt_unit1_value,2) ;
1097: else
1098: l_period_unit1_percent := null;

Line 1103: hr_utility.set_location('unit1 for RP '||l_proc,35);

1099: end if;
1100: l_period_unit1_value := i.budget_unit1_value;
1101: l_period_unit1_available := i.budget_unit1_available;
1102: elsif p_change_mode ='RP' then
1103: hr_utility.set_location('unit1 for RP '||l_proc,35);
1104: if nvl(p_new_bgt_unit1_value,0) <> 0 then
1105: l_period_unit1_value := round(p_new_bgt_unit1_value * nvl(i.budget_unit1_percent,0)/100,p_unit1_precision) ;
1106: l_period_unit1_available := nvl(i.budget_unit1_available,0) + nvl(l_period_unit1_value,0) - nvl(i.budget_unit1_value,0);
1107: p_bgt_unit1_available := nvl(p_bgt_unit1_available,0) - nvl(l_period_unit1_value,0) + nvl(i.budget_unit1_value,0);

Line 1114: hr_utility.set_location('unit1 for UE '||l_proc,40);

1110: l_period_unit1_available := i.budget_unit1_available;
1111: end if;
1112: l_period_unit1_percent := i.budget_unit1_percent;
1113: else
1114: hr_utility.set_location('unit1 for UE '||l_proc,40);
1115: if nvl(p_new_bgt_unit1_value,0) <> 0 then
1116: if i.budget_unit1_value_type_cd = 'P' then
1117: l_period_unit1_value := round(p_new_bgt_unit1_value * nvl(i.budget_unit1_percent,0)/100,p_unit1_precision) ;
1118: l_period_unit1_available := nvl(i.budget_unit1_available,0) + nvl(l_period_unit1_value,0) - nvl(i.budget_unit1_value,0);

Line 1134: hr_utility.set_location('unit2 for RV '||l_proc,50);

1130: end if;
1131: end if;
1132:
1133: if p_change_mode ='RV' then
1134: hr_utility.set_location('unit2 for RV '||l_proc,50);
1135: if nvl(p_new_bgt_unit2_value,0) <> 0 then
1136: l_period_unit2_percent := round((i.budget_unit2_value * 100)/p_new_bgt_unit2_value,2) ;
1137: else
1138: l_period_unit2_percent := null;

Line 1143: hr_utility.set_location('unit2 for RP '||l_proc,60);

1139: end if;
1140: l_period_unit2_value := i.budget_unit2_value;
1141: l_period_unit2_available := i.budget_unit2_available;
1142: elsif p_change_mode ='RP' then
1143: hr_utility.set_location('unit2 for RP '||l_proc,60);
1144: if nvl(p_new_bgt_unit2_value,0) <> 0 then
1145: l_period_unit2_value := round(p_new_bgt_unit2_value * nvl(i.budget_unit2_percent,0)/100,p_unit2_precision) ;
1146: l_period_unit2_available := nvl(i.budget_unit2_available,0) + nvl(l_period_unit2_value,0) - nvl(i.budget_unit2_value,0);
1147: p_bgt_unit2_available := nvl(p_bgt_unit2_available,0) - nvl(l_period_unit2_value,0) + nvl(i.budget_unit2_value,0);

Line 1154: hr_utility.set_location('unit2 for UE '||l_proc,70);

1150: l_period_unit2_available := i.budget_unit2_available;
1151: end if;
1152: l_period_unit2_percent := i.budget_unit2_percent;
1153: else
1154: hr_utility.set_location('unit2 for UE '||l_proc,70);
1155: if nvl(p_new_bgt_unit2_value,0) <> 0 then
1156: if i.budget_unit2_value_type_cd = 'P' then
1157: l_period_unit2_value := round(p_new_bgt_unit2_value * nvl(i.budget_unit2_percent,0)/100,p_unit2_precision) ;
1158: l_period_unit2_available := nvl(i.budget_unit2_available,0) + nvl(l_period_unit2_value,0) - nvl(i.budget_unit2_value,0);

Line 1174: hr_utility.set_location('unit3 for RV '||l_proc,80);

1170: end if;
1171: end if;
1172:
1173: if p_change_mode ='RV' then
1174: hr_utility.set_location('unit3 for RV '||l_proc,80);
1175: if nvl(p_new_bgt_unit3_value,0) <> 0 then
1176: l_period_unit3_percent := round((i.budget_unit3_value * 100)/p_new_bgt_unit3_value,2) ;
1177: else
1178: l_period_unit3_percent := null;

Line 1183: hr_utility.set_location('unit3 for RP '||l_proc,90);

1179: end if;
1180: l_period_unit3_value := i.budget_unit3_value;
1181: l_period_unit3_available := i.budget_unit3_available;
1182: elsif p_change_mode ='RP' then
1183: hr_utility.set_location('unit3 for RP '||l_proc,90);
1184: if nvl(p_new_bgt_unit3_value,0) <> 0 then
1185: l_period_unit3_value := round(p_new_bgt_unit3_value * nvl(i.budget_unit3_percent,0)/100,p_unit3_precision) ;
1186: l_period_unit3_available := nvl(i.budget_unit3_available,0) + nvl(l_period_unit3_value,0) - nvl(i.budget_unit3_value,0);
1187: p_bgt_unit3_available := nvl(p_bgt_unit3_available,0) - nvl(l_period_unit3_value,0) + nvl(i.budget_unit3_value,0);

Line 1194: hr_utility.set_location('unit3 for UE '||l_proc,100);

1190: l_period_unit3_available := i.budget_unit3_available;
1191: end if;
1192: l_period_unit3_percent := i.budget_unit3_percent;
1193: else
1194: hr_utility.set_location('unit3 for UE '||l_proc,100);
1195: if nvl(p_new_bgt_unit3_value,0) <> 0 then
1196: if i.budget_unit3_value_type_cd = 'P' then
1197: l_period_unit3_value := round(p_new_bgt_unit3_value * nvl(i.budget_unit3_percent,0)/100,p_unit3_precision) ;
1198: l_period_unit3_available := nvl(i.budget_unit3_available,0) + nvl(l_period_unit3_value,0) - nvl(i.budget_unit3_value,0);

Line 1212: hr_utility.set_location('calling period changes with values '||l_proc,110);

1208: l_period_unit3_available := i.budget_unit3_available;
1209: l_period_unit3_percent := i.budget_unit3_percent;
1210: end if;
1211: end if;
1212: hr_utility.set_location('calling period changes with values '||l_proc,110);
1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);
1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);

Line 1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);

1209: l_period_unit3_percent := i.budget_unit3_percent;
1210: end if;
1211: end if;
1212: hr_utility.set_location('calling period changes with values '||l_proc,110);
1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);
1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);
1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);

Line 1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);

1210: end if;
1211: end if;
1212: hr_utility.set_location('calling period changes with values '||l_proc,110);
1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);
1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);
1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);
1218: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,125);

Line 1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);

1211: end if;
1212: hr_utility.set_location('calling period changes with values '||l_proc,110);
1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);
1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);
1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);
1218: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,125);
1219: propagate_period_changes (p_change_mode => p_change_mode,

Line 1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);

1212: hr_utility.set_location('calling period changes with values '||l_proc,110);
1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);
1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);
1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);
1218: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,125);
1219: propagate_period_changes (p_change_mode => p_change_mode,
1220: p_worksheet_period_id => i.worksheet_period_id,

Line 1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);

1213: hr_utility.set_location('unit1_value is '||l_period_unit1_value||l_proc,120);
1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);
1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);
1218: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,125);
1219: propagate_period_changes (p_change_mode => p_change_mode,
1220: p_worksheet_period_id => i.worksheet_period_id,
1221: p_unit1_precision => p_unit1_precision,

Line 1218: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,125);

1214: hr_utility.set_location('unit2_value is '||l_period_unit2_value||l_proc,121);
1215: hr_utility.set_location('unit3_value is '||l_period_unit3_value||l_proc,122);
1216: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,123);
1217: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,124);
1218: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,125);
1219: propagate_period_changes (p_change_mode => p_change_mode,
1220: p_worksheet_period_id => i.worksheet_period_id,
1221: p_unit1_precision => p_unit1_precision,
1222: p_unit2_precision => p_unit2_precision,

Line 1230: hr_utility.set_location('after period changes values '||l_proc,130);

1226: p_new_prd_unit3_value => l_period_unit3_value,
1227: p_prd_unit1_available => l_period_unit1_available,
1228: p_prd_unit2_available => l_period_unit2_available,
1229: p_prd_unit3_available => l_period_unit3_available);
1230: hr_utility.set_location('after period changes values '||l_proc,130);
1231: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,133);
1232: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,134);
1233: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,135);
1234: update pqh_worksheet_periods

Line 1231: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,133);

1227: p_prd_unit1_available => l_period_unit1_available,
1228: p_prd_unit2_available => l_period_unit2_available,
1229: p_prd_unit3_available => l_period_unit3_available);
1230: hr_utility.set_location('after period changes values '||l_proc,130);
1231: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,133);
1232: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,134);
1233: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,135);
1234: update pqh_worksheet_periods
1235: set budget_unit1_value = l_period_unit1_value,

Line 1232: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,134);

1228: p_prd_unit2_available => l_period_unit2_available,
1229: p_prd_unit3_available => l_period_unit3_available);
1230: hr_utility.set_location('after period changes values '||l_proc,130);
1231: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,133);
1232: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,134);
1233: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,135);
1234: update pqh_worksheet_periods
1235: set budget_unit1_value = l_period_unit1_value,
1236: budget_unit2_value = l_period_unit2_value,

Line 1233: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,135);

1229: p_prd_unit3_available => l_period_unit3_available);
1230: hr_utility.set_location('after period changes values '||l_proc,130);
1231: hr_utility.set_location('unit1_available is '||l_period_unit1_available||l_proc,133);
1232: hr_utility.set_location('unit2_available is '||l_period_unit2_available||l_proc,134);
1233: hr_utility.set_location('unit3_available is '||l_period_unit3_available||l_proc,135);
1234: update pqh_worksheet_periods
1235: set budget_unit1_value = l_period_unit1_value,
1236: budget_unit2_value = l_period_unit2_value,
1237: budget_unit3_value = l_period_unit3_value,

Line 1245: hr_utility.set_location('after period updated '||l_proc,140);

1241: budget_unit1_available = l_period_unit1_available,
1242: budget_unit2_available = l_period_unit2_available,
1243: budget_unit3_available = l_period_unit3_available
1244: where current of c1;
1245: hr_utility.set_location('after period updated '||l_proc,140);
1246: end loop;
1247:
1248: /* make a call to add_budgetrow to add the all period info. from the table
1249: and then get the available figures using each unit to be passed on to budget*/

Line 1285: hr_utility.set_location('values passed out nocopy are'||l_proc,150);

1281: p_bgt_unit3_available := round(nvl(p_new_bgt_unit3_value,0) - nvl(x_unit3_max,0),p_unit3_precision);
1282: elsif p_unit3_aggregate='AVERAGE' then
1283: p_bgt_unit3_available := round(nvl(p_new_bgt_unit3_value,0) - nvl(x_unit3_avg,0),p_unit3_precision);
1284: end if;
1285: hr_utility.set_location('values passed out nocopy are'||l_proc,150);
1286: p_bgt_unit1_available := round(p_bgt_unit1_available,p_unit1_precision);
1287: p_bgt_unit2_available := round(p_bgt_unit2_available,p_unit2_precision);
1288: p_bgt_unit3_available := round(p_bgt_unit3_available,p_unit3_precision);
1289: hr_utility.set_location('unit1_available is '||p_bgt_unit1_available||l_proc,153);

Line 1289: hr_utility.set_location('unit1_available is '||p_bgt_unit1_available||l_proc,153);

1285: hr_utility.set_location('values passed out nocopy are'||l_proc,150);
1286: p_bgt_unit1_available := round(p_bgt_unit1_available,p_unit1_precision);
1287: p_bgt_unit2_available := round(p_bgt_unit2_available,p_unit2_precision);
1288: p_bgt_unit3_available := round(p_bgt_unit3_available,p_unit3_precision);
1289: hr_utility.set_location('unit1_available is '||p_bgt_unit1_available||l_proc,153);
1290: hr_utility.set_location('unit2_available is '||p_bgt_unit2_available||l_proc,154);
1291: hr_utility.set_location('unit3_available is '||p_bgt_unit3_available||l_proc,155);
1292: hr_utility.set_location('exiting '||l_proc,1000);
1293: exception when others then

Line 1290: hr_utility.set_location('unit2_available is '||p_bgt_unit2_available||l_proc,154);

1286: p_bgt_unit1_available := round(p_bgt_unit1_available,p_unit1_precision);
1287: p_bgt_unit2_available := round(p_bgt_unit2_available,p_unit2_precision);
1288: p_bgt_unit3_available := round(p_bgt_unit3_available,p_unit3_precision);
1289: hr_utility.set_location('unit1_available is '||p_bgt_unit1_available||l_proc,153);
1290: hr_utility.set_location('unit2_available is '||p_bgt_unit2_available||l_proc,154);
1291: hr_utility.set_location('unit3_available is '||p_bgt_unit3_available||l_proc,155);
1292: hr_utility.set_location('exiting '||l_proc,1000);
1293: exception when others then
1294: p_bgt_unit1_available := l_bgt_unit1_available;

Line 1291: hr_utility.set_location('unit3_available is '||p_bgt_unit3_available||l_proc,155);

1287: p_bgt_unit2_available := round(p_bgt_unit2_available,p_unit2_precision);
1288: p_bgt_unit3_available := round(p_bgt_unit3_available,p_unit3_precision);
1289: hr_utility.set_location('unit1_available is '||p_bgt_unit1_available||l_proc,153);
1290: hr_utility.set_location('unit2_available is '||p_bgt_unit2_available||l_proc,154);
1291: hr_utility.set_location('unit3_available is '||p_bgt_unit3_available||l_proc,155);
1292: hr_utility.set_location('exiting '||l_proc,1000);
1293: exception when others then
1294: p_bgt_unit1_available := l_bgt_unit1_available;
1295: p_bgt_unit2_available := l_bgt_unit2_available;

Line 1292: hr_utility.set_location('exiting '||l_proc,1000);

1288: p_bgt_unit3_available := round(p_bgt_unit3_available,p_unit3_precision);
1289: hr_utility.set_location('unit1_available is '||p_bgt_unit1_available||l_proc,153);
1290: hr_utility.set_location('unit2_available is '||p_bgt_unit2_available||l_proc,154);
1291: hr_utility.set_location('unit3_available is '||p_bgt_unit3_available||l_proc,155);
1292: hr_utility.set_location('exiting '||l_proc,1000);
1293: exception when others then
1294: p_bgt_unit1_available := l_bgt_unit1_available;
1295: p_bgt_unit2_available := l_bgt_unit2_available;
1296: p_bgt_unit3_available := l_bgt_unit3_available;

Line 1337: hr_utility.set_location('entering '||l_proc,10);

1333: l_prd_unit3_available number := p_prd_unit3_available;
1334:
1335: l_proc varchar2(100) := g_package||'propagate_period_changes' ;
1336: begin
1337: hr_utility.set_location('entering '||l_proc,10);
1338: if p_change_mode not in ('RP','RV','UE') then
1339: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
1340: hr_utility.raise_error;
1341: end if;

Line 1339: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');

1335: l_proc varchar2(100) := g_package||'propagate_period_changes' ;
1336: begin
1337: hr_utility.set_location('entering '||l_proc,10);
1338: if p_change_mode not in ('RP','RV','UE') then
1339: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
1340: hr_utility.raise_error;
1341: end if;
1342: for i in c1 loop
1343: if p_change_mode ='RV' then

Line 1340: hr_utility.raise_error;

1336: begin
1337: hr_utility.set_location('entering '||l_proc,10);
1338: if p_change_mode not in ('RP','RV','UE') then
1339: hr_utility.set_message(8302,'PQH_INVALID_PROPAGATION_METHOD');
1340: hr_utility.raise_error;
1341: end if;
1342: for i in c1 loop
1343: if p_change_mode ='RV' then
1344: hr_utility.set_location('unit1 for RV '||l_proc,20);

Line 1344: hr_utility.set_location('unit1 for RV '||l_proc,20);

1340: hr_utility.raise_error;
1341: end if;
1342: for i in c1 loop
1343: if p_change_mode ='RV' then
1344: hr_utility.set_location('unit1 for RV '||l_proc,20);
1345: if nvl(p_new_prd_unit1_value,0) <> 0 then
1346: l_budgetset_unit1_percent := round((i.budget_unit1_value * 100)/p_new_prd_unit1_value,2) ;
1347: else
1348: l_budgetset_unit1_percent := null;

Line 1353: hr_utility.set_location('unit1 for RP '||l_proc,30);

1349: end if;
1350: l_budgetset_unit1_value := i.budget_unit1_value;
1351: l_budgetset_unit1_available := i.budget_unit1_available;
1352: elsif p_change_mode ='RP' then
1353: hr_utility.set_location('unit1 for RP '||l_proc,30);
1354: if nvl(p_new_prd_unit1_value,0) <> 0 then
1355: l_budgetset_unit1_value := round(p_new_prd_unit1_value * nvl(i.budget_unit1_percent,0)/100,p_unit1_precision) ;
1356: l_budgetset_unit1_available := nvl(i.budget_unit1_available,0) + nvl(l_budgetset_unit1_value,0) - nvl(i.budget_unit1_value,0);
1357: p_prd_unit1_available := nvl(p_prd_unit1_available,0) - nvl(l_budgetset_unit1_value,0) + nvl(i.budget_unit1_value,0);

Line 1364: hr_utility.set_location('unit1 for UE '||l_proc,40);

1360: l_budgetset_unit1_available := i.budget_unit1_available;
1361: end if;
1362: l_budgetset_unit1_percent := i.budget_unit1_percent;
1363: else
1364: hr_utility.set_location('unit1 for UE '||l_proc,40);
1365: if nvl(p_new_prd_unit1_value,0) <> 0 then
1366: if i.budget_unit1_value_type_cd = 'P' then
1367: l_budgetset_unit1_value := round(p_new_prd_unit1_value * nvl(i.budget_unit1_percent,0)/100,p_unit1_precision) ;
1368: l_budgetset_unit1_available := nvl(i.budget_unit1_available,0) + nvl(l_budgetset_unit1_value,0) - nvl(i.budget_unit1_value,0);

Line 1384: hr_utility.set_location('unit2 for RV '||l_proc,50);

1380: end if;
1381: end if;
1382:
1383: if p_change_mode ='RV' then
1384: hr_utility.set_location('unit2 for RV '||l_proc,50);
1385: if nvl(p_new_prd_unit2_value,0) <> 0 then
1386: l_budgetset_unit2_percent := round((i.budget_unit2_value * 100)/p_new_prd_unit2_value,2) ;
1387: else
1388: l_budgetset_unit2_percent := null;

Line 1393: hr_utility.set_location('unit2 for RP '||l_proc,60);

1389: end if;
1390: l_budgetset_unit2_value := i.budget_unit2_value;
1391: l_budgetset_unit2_available := i.budget_unit2_available;
1392: elsif p_change_mode ='RP' then
1393: hr_utility.set_location('unit2 for RP '||l_proc,60);
1394: if nvl(p_new_prd_unit2_value,0) <> 0 then
1395: l_budgetset_unit2_value := round(p_new_prd_unit2_value * nvl(i.budget_unit2_percent,0)/100,p_unit2_precision) ;
1396: l_budgetset_unit2_available := nvl(i.budget_unit2_available,0) + nvl(l_budgetset_unit2_value,0) - nvl(i.budget_unit2_value,0);
1397: p_prd_unit2_available := nvl(p_prd_unit2_available,0) - nvl(l_budgetset_unit2_value,0) + nvl(i.budget_unit2_value,0);

Line 1404: hr_utility.set_location('unit2 for UE '||l_proc,70);

1400: l_budgetset_unit2_available := i.budget_unit2_available;
1401: end if;
1402: l_budgetset_unit2_percent := i.budget_unit2_percent;
1403: else
1404: hr_utility.set_location('unit2 for UE '||l_proc,70);
1405: if nvl(p_new_prd_unit2_value,0) <> 0 then
1406: if i.budget_unit2_value_type_cd = 'P' then
1407: l_budgetset_unit2_value := round(p_new_prd_unit2_value * nvl(i.budget_unit2_percent,0)/100,p_unit2_precision) ;
1408: l_budgetset_unit2_available := nvl(i.budget_unit2_available,0) + nvl(l_budgetset_unit2_value,0) - nvl(i.budget_unit2_value,0);

Line 1424: hr_utility.set_location('unit3 for RV '||l_proc,80);

1420: end if;
1421: end if;
1422:
1423: if p_change_mode ='RV' then
1424: hr_utility.set_location('unit3 for RV '||l_proc,80);
1425: if nvl(p_new_prd_unit3_value,0) <> 0 then
1426: l_budgetset_unit3_percent := round((i.budget_unit3_value * 100)/p_new_prd_unit3_value,2) ;
1427: else
1428: l_budgetset_unit3_percent := null;

Line 1433: hr_utility.set_location('unit3 for RP '||l_proc,90);

1429: end if;
1430: l_budgetset_unit3_value := i.budget_unit3_value;
1431: l_budgetset_unit3_available := i.budget_unit3_available;
1432: elsif p_change_mode ='RP' then
1433: hr_utility.set_location('unit3 for RP '||l_proc,90);
1434: if nvl(p_new_prd_unit3_value,0) <> 0 then
1435: l_budgetset_unit3_value := round(p_new_prd_unit3_value * nvl(i.budget_unit3_percent,0)/100,p_unit3_precision) ;
1436: l_budgetset_unit3_available := nvl(i.budget_unit3_available,0) + nvl(l_budgetset_unit3_value,0) - nvl(i.budget_unit3_value,0);
1437: p_prd_unit3_available := nvl(p_prd_unit3_available,0) - nvl(l_budgetset_unit3_value,0) + nvl(i.budget_unit3_value,0);

Line 1444: hr_utility.set_location('unit3 for UE '||l_proc,100);

1440: l_budgetset_unit3_available := i.budget_unit3_available;
1441: end if;
1442: l_budgetset_unit3_percent := i.budget_unit3_percent;
1443: else
1444: hr_utility.set_location('unit3 for UE '||l_proc,100);
1445: if nvl(p_new_prd_unit3_value,0) <> 0 then
1446: if i.budget_unit3_value_type_cd = 'P' then
1447: l_budgetset_unit3_value := round(p_new_prd_unit3_value * nvl(i.budget_unit3_percent,0)/100,p_unit3_precision) ;
1448: l_budgetset_unit3_available := nvl(i.budget_unit3_available,0) + nvl(l_budgetset_unit3_value,0) - nvl(i.budget_unit3_value,0);

Line 1462: hr_utility.set_location('before update values passed are '||l_proc,110);

1458: l_budgetset_unit3_available := i.budget_unit3_available;
1459: l_budgetset_unit3_percent := null;
1460: end if;
1461: end if;
1462: hr_utility.set_location('before update values passed are '||l_proc,110);
1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);
1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);

Line 1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);

1459: l_budgetset_unit3_percent := null;
1460: end if;
1461: end if;
1462: hr_utility.set_location('before update values passed are '||l_proc,110);
1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);
1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);

Line 1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);

1460: end if;
1461: end if;
1462: hr_utility.set_location('before update values passed are '||l_proc,110);
1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);
1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);

Line 1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);

1461: end if;
1462: hr_utility.set_location('before update values passed are '||l_proc,110);
1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);
1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);

Line 1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);

1462: hr_utility.set_location('before update values passed are '||l_proc,110);
1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);
1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);
1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);

Line 1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);

1463: hr_utility.set_location('unit1_value '||l_budgetset_unit1_value||l_proc,120);
1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);
1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);
1471: hr_utility.set_location('unit3_available '||l_budgetset_unit3_available||l_proc,128);

Line 1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);

1464: hr_utility.set_location('unit2_value '||l_budgetset_unit2_value||l_proc,121);
1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);
1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);
1471: hr_utility.set_location('unit3_available '||l_budgetset_unit3_available||l_proc,128);
1472: update pqh_worksheet_budget_sets

Line 1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);

1465: hr_utility.set_location('unit3_value '||l_budgetset_unit3_value||l_proc,122);
1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);
1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);
1471: hr_utility.set_location('unit3_available '||l_budgetset_unit3_available||l_proc,128);
1472: update pqh_worksheet_budget_sets
1473: set budget_unit1_value = l_budgetset_unit1_value,

Line 1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);

1466: hr_utility.set_location('unit1_percent '||l_budgetset_unit1_percent||l_proc,123);
1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);
1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);
1471: hr_utility.set_location('unit3_available '||l_budgetset_unit3_available||l_proc,128);
1472: update pqh_worksheet_budget_sets
1473: set budget_unit1_value = l_budgetset_unit1_value,
1474: budget_unit2_value = l_budgetset_unit2_value,

Line 1471: hr_utility.set_location('unit3_available '||l_budgetset_unit3_available||l_proc,128);

1467: hr_utility.set_location('unit2_percent '||l_budgetset_unit2_percent||l_proc,124);
1468: hr_utility.set_location('unit3_percent '||l_budgetset_unit3_percent||l_proc,125);
1469: hr_utility.set_location('unit1_available '||l_budgetset_unit1_available||l_proc,126);
1470: hr_utility.set_location('unit2_available '||l_budgetset_unit2_available||l_proc,127);
1471: hr_utility.set_location('unit3_available '||l_budgetset_unit3_available||l_proc,128);
1472: update pqh_worksheet_budget_sets
1473: set budget_unit1_value = l_budgetset_unit1_value,
1474: budget_unit2_value = l_budgetset_unit2_value,
1475: budget_unit3_value = l_budgetset_unit3_value,

Line 1484: hr_utility.set_location('after update out nocopy values passed are '||l_proc,130);

1480: budget_unit2_available = l_budgetset_unit2_available,
1481: budget_unit3_available = l_budgetset_unit3_available
1482: where current of c1;
1483: end loop;
1484: hr_utility.set_location('after update out nocopy values passed are '||l_proc,130);
1485: p_prd_unit1_available := round(p_prd_unit1_available,p_unit1_precision);
1486: p_prd_unit2_available := round(p_prd_unit2_available,p_unit2_precision);
1487: p_prd_unit3_available := round(p_prd_unit3_available,p_unit3_precision);
1488: hr_utility.set_location('unit1_available '||p_prd_unit1_available||l_proc,136);

Line 1488: hr_utility.set_location('unit1_available '||p_prd_unit1_available||l_proc,136);

1484: hr_utility.set_location('after update out nocopy values passed are '||l_proc,130);
1485: p_prd_unit1_available := round(p_prd_unit1_available,p_unit1_precision);
1486: p_prd_unit2_available := round(p_prd_unit2_available,p_unit2_precision);
1487: p_prd_unit3_available := round(p_prd_unit3_available,p_unit3_precision);
1488: hr_utility.set_location('unit1_available '||p_prd_unit1_available||l_proc,136);
1489: hr_utility.set_location('unit2_available '||p_prd_unit2_available||l_proc,137);
1490: hr_utility.set_location('unit3_available '||p_prd_unit3_available||l_proc,138);
1491: hr_utility.set_location('exiting '||l_proc,1000);
1492: exception when others then

Line 1489: hr_utility.set_location('unit2_available '||p_prd_unit2_available||l_proc,137);

1485: p_prd_unit1_available := round(p_prd_unit1_available,p_unit1_precision);
1486: p_prd_unit2_available := round(p_prd_unit2_available,p_unit2_precision);
1487: p_prd_unit3_available := round(p_prd_unit3_available,p_unit3_precision);
1488: hr_utility.set_location('unit1_available '||p_prd_unit1_available||l_proc,136);
1489: hr_utility.set_location('unit2_available '||p_prd_unit2_available||l_proc,137);
1490: hr_utility.set_location('unit3_available '||p_prd_unit3_available||l_proc,138);
1491: hr_utility.set_location('exiting '||l_proc,1000);
1492: exception when others then
1493: p_prd_unit1_available := l_prd_unit1_available;

Line 1490: hr_utility.set_location('unit3_available '||p_prd_unit3_available||l_proc,138);

1486: p_prd_unit2_available := round(p_prd_unit2_available,p_unit2_precision);
1487: p_prd_unit3_available := round(p_prd_unit3_available,p_unit3_precision);
1488: hr_utility.set_location('unit1_available '||p_prd_unit1_available||l_proc,136);
1489: hr_utility.set_location('unit2_available '||p_prd_unit2_available||l_proc,137);
1490: hr_utility.set_location('unit3_available '||p_prd_unit3_available||l_proc,138);
1491: hr_utility.set_location('exiting '||l_proc,1000);
1492: exception when others then
1493: p_prd_unit1_available := l_prd_unit1_available;
1494: p_prd_unit2_available := l_prd_unit2_available;

Line 1491: hr_utility.set_location('exiting '||l_proc,1000);

1487: p_prd_unit3_available := round(p_prd_unit3_available,p_unit3_precision);
1488: hr_utility.set_location('unit1_available '||p_prd_unit1_available||l_proc,136);
1489: hr_utility.set_location('unit2_available '||p_prd_unit2_available||l_proc,137);
1490: hr_utility.set_location('unit3_available '||p_prd_unit3_available||l_proc,138);
1491: hr_utility.set_location('exiting '||l_proc,1000);
1492: exception when others then
1493: p_prd_unit1_available := l_prd_unit1_available;
1494: p_prd_unit2_available := l_prd_unit2_available;
1495: p_prd_unit3_available := l_prd_unit3_available;

Line 1568: hr_utility.set_location('entering '||l_proc,10);

1564: -- for each delegated row all the positions or organizations which are below that organization are moved
1565: -- to point to this worksheet detail which had been earlier pointing to the parent worksheet detail
1566: -- in case of delegate adjustment propagation method does not effect as values are retained to calculate
1567: -- percent
1568: hr_utility.set_location('entering '||l_proc,10);
1569: a(0) := p_delegate_org_id ;
1570: for i in c2 loop
1571: a(cnt) := i.organization_id_child ;
1572: cnt := cnt +1 ;

Line 1574: hr_utility.set_location('all the children of delegated org stored'||l_proc,20);

1570: for i in c2 loop
1571: a(cnt) := i.organization_id_child ;
1572: cnt := cnt +1 ;
1573: end loop;
1574: hr_utility.set_location('all the children of delegated org stored'||l_proc,20);
1575: for j in c1 loop
1576: if j.organization_id is null then
1577: begin
1578: open c3(j.position_id);

Line 1641: hr_utility.set_location('exiting '||l_proc,1000);

1637: p_budget_unit1_available => p_del_budget_unit1_available,
1638: p_budget_unit2_available => p_del_budget_unit2_available,
1639: p_budget_unit3_available => p_del_budget_unit3_available
1640: );
1641: hr_utility.set_location('exiting '||l_proc,1000);
1642: exception when others then
1643: p_del_budget_unit1_value := l_del_budget_unit1_value;
1644: p_del_budget_unit2_value := l_del_budget_unit2_value;
1645: p_del_budget_unit3_value := l_del_budget_unit3_value;

Line 1674: hr_utility.set_location('entering '||l_proc,10);

1670: l_proc varchar2(100) := g_package||'delete_delegate' ;
1671: begin
1672: -- This program checks wether there are any children for the worksheet detail. If there then calls
1673: -- itself with each children worksheet detail and deletes the tree.
1674: hr_utility.set_location('entering '||l_proc,10);
1675: for i in c1 loop
1676: begin
1677: open c2(i.worksheet_detail_id);
1678: fetch c2 into l_count;

Line 1682: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');

1678: fetch c2 into l_count;
1679: close c2;
1680: exception
1681: when others then
1682: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
1683: hr_utility.raise_error;
1684: end;
1685: hr_utility.set_location('deleting worksheet detail rowid 1 - '||i.row_id||l_proc,30);
1686: if l_count > 0 then

Line 1683: hr_utility.raise_error;

1679: close c2;
1680: exception
1681: when others then
1682: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
1683: hr_utility.raise_error;
1684: end;
1685: hr_utility.set_location('deleting worksheet detail rowid 1 - '||i.row_id||l_proc,30);
1686: if l_count > 0 then
1687: hr_utility.set_location('goind to delete details of '||i.worksheet_detail_id||l_proc,20);

Line 1685: hr_utility.set_location('deleting worksheet detail rowid 1 - '||i.row_id||l_proc,30);

1681: when others then
1682: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
1683: hr_utility.raise_error;
1684: end;
1685: hr_utility.set_location('deleting worksheet detail rowid 1 - '||i.row_id||l_proc,30);
1686: if l_count > 0 then
1687: hr_utility.set_location('goind to delete details of '||i.worksheet_detail_id||l_proc,20);
1688: delete_delegate(i.worksheet_detail_id);
1689: end if;

Line 1687: hr_utility.set_location('goind to delete details of '||i.worksheet_detail_id||l_proc,20);

1683: hr_utility.raise_error;
1684: end;
1685: hr_utility.set_location('deleting worksheet detail rowid 1 - '||i.row_id||l_proc,30);
1686: if l_count > 0 then
1687: hr_utility.set_location('goind to delete details of '||i.worksheet_detail_id||l_proc,20);
1688: delete_delegate(i.worksheet_detail_id);
1689: end if;
1690: hr_utility.set_location('deleting worksheet detail '||i.worksheet_detail_id||l_proc,30);
1691: hr_utility.set_location('deleting worksheet detail rowid 2 - '||i.row_id||l_proc,30);

Line 1690: hr_utility.set_location('deleting worksheet detail '||i.worksheet_detail_id||l_proc,30);

1686: if l_count > 0 then
1687: hr_utility.set_location('goind to delete details of '||i.worksheet_detail_id||l_proc,20);
1688: delete_delegate(i.worksheet_detail_id);
1689: end if;
1690: hr_utility.set_location('deleting worksheet detail '||i.worksheet_detail_id||l_proc,30);
1691: hr_utility.set_location('deleting worksheet detail rowid 2 - '||i.row_id||l_proc,30);
1692: delete from pqh_worksheet_details where rowid = i.row_id;
1693: end loop;
1694: hr_utility.set_location('exiting '||l_proc,1000);

Line 1691: hr_utility.set_location('deleting worksheet detail rowid 2 - '||i.row_id||l_proc,30);

1687: hr_utility.set_location('goind to delete details of '||i.worksheet_detail_id||l_proc,20);
1688: delete_delegate(i.worksheet_detail_id);
1689: end if;
1690: hr_utility.set_location('deleting worksheet detail '||i.worksheet_detail_id||l_proc,30);
1691: hr_utility.set_location('deleting worksheet detail rowid 2 - '||i.row_id||l_proc,30);
1692: delete from pqh_worksheet_details where rowid = i.row_id;
1693: end loop;
1694: hr_utility.set_location('exiting '||l_proc,1000);
1695: end delete_delegate;

Line 1694: hr_utility.set_location('exiting '||l_proc,1000);

1690: hr_utility.set_location('deleting worksheet detail '||i.worksheet_detail_id||l_proc,30);
1691: hr_utility.set_location('deleting worksheet detail rowid 2 - '||i.row_id||l_proc,30);
1692: delete from pqh_worksheet_details where rowid = i.row_id;
1693: end loop;
1694: hr_utility.set_location('exiting '||l_proc,1000);
1695: end delete_delegate;
1696:
1697: procedure delete_delegate_chk(p_worksheet_detail_id in number,
1698: p_status_flag out nocopy number) as

Line 1714: hr_utility.set_location('entering '||l_proc,10);

1710: l_status number;
1711: l_count number;
1712: begin
1713: -- This program is used to tell wether the delegated row can be deleted or not. Called from the form
1714: hr_utility.set_location('entering '||l_proc,10);
1715: p_status_flag := 0;
1716: for i in c1 loop
1717: if i.status = 'DELEGATED' then
1718: -- routing already done

Line 1728: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');

1724: fetch c2 into l_count;
1725: close c2;
1726: exception
1727: when others then
1728: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
1729: hr_utility.raise_error;
1730: end;
1731: if l_count > 0 then
1732: hr_utility.set_location('goind to check details of '||i.worksheet_detail_id||l_proc,20);

Line 1729: hr_utility.raise_error;

1725: close c2;
1726: exception
1727: when others then
1728: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
1729: hr_utility.raise_error;
1730: end;
1731: if l_count > 0 then
1732: hr_utility.set_location('goind to check details of '||i.worksheet_detail_id||l_proc,20);
1733: delete_delegate_chk(i.worksheet_detail_id,l_status);

Line 1732: hr_utility.set_location('goind to check details of '||i.worksheet_detail_id||l_proc,20);

1728: hr_utility.set_message(8302,'PQH_INVALID_WKD_PASSED');
1729: hr_utility.raise_error;
1730: end;
1731: if l_count > 0 then
1732: hr_utility.set_location('goind to check details of '||i.worksheet_detail_id||l_proc,20);
1733: delete_delegate_chk(i.worksheet_detail_id,l_status);
1734: if l_status = 1 then
1735: p_status_flag := 1;
1736: end if;

Line 1740: hr_utility.set_location('exiting '||l_proc,1000);

1736: end if;
1737: end if;
1738: end if;
1739: end loop;
1740: hr_utility.set_location('exiting '||l_proc,1000);
1741: exception when others then
1742: p_status_flag := null;
1743: raise;
1744: end delete_delegate_chk;

Line 1785: hr_utility.set_location('entering '||l_proc,10);

1781: -- it moves all the budgeted deatils to point to parent worksheet detail
1782: -- and calls iteself for each delegated worksheet. This way the whole delegate tree budget rows are
1783: -- moved to parent worksheet.
1784:
1785: hr_utility.set_location('entering '||l_proc,10);
1786: for j in c1 loop
1787: hr_utility.set_location('going to update values for wd '||j.worksheet_detail_id||l_proc,10);
1788: if nvl(p_budget_unit1_value,0) <> 0 then
1789: l_budget_unit1_percent := round(nvl(j.budget_unit1_value,0)*100/p_budget_unit1_value,2);

Line 1787: hr_utility.set_location('going to update values for wd '||j.worksheet_detail_id||l_proc,10);

1783: -- moved to parent worksheet.
1784:
1785: hr_utility.set_location('entering '||l_proc,10);
1786: for j in c1 loop
1787: hr_utility.set_location('going to update values for wd '||j.worksheet_detail_id||l_proc,10);
1788: if nvl(p_budget_unit1_value,0) <> 0 then
1789: l_budget_unit1_percent := round(nvl(j.budget_unit1_value,0)*100/p_budget_unit1_value,2);
1790: else
1791: l_budget_unit1_percent := 0;

Line 1813: hr_utility.set_location('going to update worksheetdetail '||j.worksheet_detail_id||l_proc,20);

1809: p_budget_unit2_value := nvl(p_budget_unit2_value,0) + nvl(j.budget_unit2_value,0);
1810: p_budget_unit3_value := nvl(p_budget_unit3_value,0) + nvl(j.budget_unit3_value,0);
1811: end if;
1812:
1813: hr_utility.set_location('going to update worksheetdetail '||j.worksheet_detail_id||l_proc,20);
1814: l_object_version_number := j.object_version_number;
1815: update_worksheet_detail(
1816: p_worksheet_detail_id => j.worksheet_detail_id,
1817: p_effective_date => trunc(sysdate),

Line 1826: hr_utility.set_location('going for details of wd'||i.worksheet_detail_id||l_proc,20);

1822: p_budget_unit3_percent => l_budget_unit3_percent
1823: );
1824: end loop;
1825: for i in c2 loop
1826: hr_utility.set_location('going for details of wd'||i.worksheet_detail_id||l_proc,20);
1827: delete_adjustment(p_parent_wd_id => p_parent_wd_id,
1828: p_delegate_wd_id => i.worksheet_detail_id,
1829: p_budget_style_cd => p_budget_style_cd,
1830: p_budget_unit1_value => p_budget_unit1_value,

Line 1864: hr_utility.set_location('entering '||l_proc,10);

1860: l_budget_unit1_available number := p_budget_unit1_available;
1861: l_budget_unit2_available number := p_budget_unit2_available;
1862: l_budget_unit3_available number := p_budget_unit3_available;
1863: begin
1864: hr_utility.set_location('entering '||l_proc,10);
1865: delete_adjustment(p_parent_wd_id => p_parent_wd_id,
1866: p_delegate_wd_id => p_delegate_wd_id,
1867: p_budget_style_cd => p_budget_style_cd,
1868: p_budget_unit1_value => p_budget_unit1_value,

Line 1874: hr_utility.set_location('going to delete '||p_delegate_wd_id||l_proc,1000);

1870: p_budget_unit3_value => p_budget_unit3_value,
1871: p_budget_unit1_available => p_budget_unit1_available,
1872: p_budget_unit2_available => p_budget_unit2_available,
1873: p_budget_unit3_available => p_budget_unit3_available);
1874: hr_utility.set_location('going to delete '||p_delegate_wd_id||l_proc,1000);
1875: delete_delegate(p_delegate_wd_id);
1876: hr_utility.set_location('exiting '||l_proc,1000);
1877: exception when others then
1878: p_budget_unit1_value := l_budget_unit1_value;

Line 1876: hr_utility.set_location('exiting '||l_proc,1000);

1872: p_budget_unit2_available => p_budget_unit2_available,
1873: p_budget_unit3_available => p_budget_unit3_available);
1874: hr_utility.set_location('going to delete '||p_delegate_wd_id||l_proc,1000);
1875: delete_delegate(p_delegate_wd_id);
1876: hr_utility.set_location('exiting '||l_proc,1000);
1877: exception when others then
1878: p_budget_unit1_value := l_budget_unit1_value;
1879: p_budget_unit2_value := l_budget_unit2_value;
1880: p_budget_unit3_value := l_budget_unit3_value;

Line 1998: hr_utility.set_location('entering '||l_proc,10);

1994: l_rows_inserted number := 0;
1995: l_proc varchar2(100) := g_package||'insert_from_budget' ;
1996: l_worksheet_detail_id number;
1997: begin
1998: hr_utility.set_location('entering '||l_proc,10);
1999: -- available is made equal to value as periods and details are not fetched for the time being.
2000: -- percent calc using the worksheet values and the existing budget values will create problem when the difference
2001: -- in worksheet value and version value is there.
2002: -- so it is decidied that instead of keeping the value same, we will keep the % same and compute the value.

Line 2005: hr_utility.set_location('budget entity is Position '||l_proc,20);

2001: -- in worksheet value and version value is there.
2002: -- so it is decidied that instead of keeping the value same, we will keep the % same and compute the value.
2003:
2004: if p_budgeted_entity_cd = 'POSITION' then
2005: hr_utility.set_location('budget entity is Position '||l_proc,20);
2006: if p_org_hier_ver is null then
2007: hr_utility.set_location('org hier is null using BG '||l_proc,30);
2008: for i in c1 loop
2009: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then

Line 2007: hr_utility.set_location('org hier is null using BG '||l_proc,30);

2003:
2004: if p_budgeted_entity_cd = 'POSITION' then
2005: hr_utility.set_location('budget entity is Position '||l_proc,20);
2006: if p_org_hier_ver is null then
2007: hr_utility.set_location('org hier is null using BG '||l_proc,30);
2008: for i in c1 loop
2009: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then
2010: l_rows_inserted := l_rows_inserted + 1;
2011: hr_utility.set_location('calculating new % figures'||l_proc,60);

Line 2011: hr_utility.set_location('calculating new % figures'||l_proc,60);

2007: hr_utility.set_location('org hier is null using BG '||l_proc,30);
2008: for i in c1 loop
2009: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then
2010: l_rows_inserted := l_rows_inserted + 1;
2011: hr_utility.set_location('calculating new % figures'||l_proc,60);
2012: if p_budget_style_cd ='TOP' then
2013: if nvl(p_worksheet_unit1_value,0) <> 0 then
2014: l_budget_unit1_percent := round(nvl(i.budget_unit1_value,0) * 100 / p_worksheet_unit1_value,2) ;
2015: end if;

Line 2030: hr_utility.set_location('inserting into plsql table'||l_proc,70);

2026: p_worksheet_unit1_value := nvl(p_worksheet_unit1_value,0) + nvl(i.budget_unit1_value,0) ;
2027: p_worksheet_unit2_value := nvl(p_worksheet_unit2_value,0) + nvl(i.budget_unit2_value,0) ;
2028: p_worksheet_unit3_value := nvl(p_worksheet_unit3_value,0) + nvl(i.budget_unit3_value,0) ;
2029: end if;
2030: hr_utility.set_location('inserting into plsql table'||l_proc,70);
2031: pqh_budget.insert_pos_is_bud(i.position_id);
2032: hr_utility.set_location('inserting into worksheet_detail table'||l_proc,80);
2033: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id
2034: ,p_worksheet_id => p_worksheet_id

Line 2032: hr_utility.set_location('inserting into worksheet_detail table'||l_proc,80);

2028: p_worksheet_unit3_value := nvl(p_worksheet_unit3_value,0) + nvl(i.budget_unit3_value,0) ;
2029: end if;
2030: hr_utility.set_location('inserting into plsql table'||l_proc,70);
2031: pqh_budget.insert_pos_is_bud(i.position_id);
2032: hr_utility.set_location('inserting into worksheet_detail table'||l_proc,80);
2033: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id
2034: ,p_worksheet_id => p_worksheet_id
2035: ,p_organization_id => i.organization_id
2036: ,p_job_id => i.job_id

Line 2058: hr_utility.set_location('insert worksheet_detail table complete'||l_proc,90);

2054: ,p_budget_unit1_available => i.budget_unit1_value
2055: ,p_budget_unit2_available => i.budget_unit2_value
2056: ,p_budget_unit3_available => i.budget_unit3_value
2057: ,p_copy_budget_periods => p_copy_budget_periods );
2058: hr_utility.set_location('insert worksheet_detail table complete'||l_proc,90);
2059: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2060: p_worksheet_detail_id => l_worksheet_detail_id,
2061: p_copy_budget_periods => p_copy_budget_periods,
2062: p_budget_unit1_value => i.budget_unit1_value,

Line 2065: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2061: p_copy_budget_periods => p_copy_budget_periods,
2062: p_budget_unit1_value => i.budget_unit1_value,
2063: p_budget_unit2_value => i.budget_unit2_value,
2064: p_budget_unit3_value => i.budget_unit3_value) ;
2065: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2066: end if;
2067: end loop;
2068: else
2069: hr_utility.set_location('using org hier '||l_proc,120);

Line 2069: hr_utility.set_location('using org hier '||l_proc,120);

2065: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2066: end if;
2067: end loop;
2068: else
2069: hr_utility.set_location('using org hier '||l_proc,120);
2070: hr_utility.set_location('before insert loop '||l_proc,135);
2071: for i in c2 loop
2072: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then
2073: hr_utility.set_location('inside insert loop '||l_proc,140);

Line 2070: hr_utility.set_location('before insert loop '||l_proc,135);

2066: end if;
2067: end loop;
2068: else
2069: hr_utility.set_location('using org hier '||l_proc,120);
2070: hr_utility.set_location('before insert loop '||l_proc,135);
2071: for i in c2 loop
2072: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then
2073: hr_utility.set_location('inside insert loop '||l_proc,140);
2074: l_rows_inserted := l_rows_inserted + 1;

Line 2073: hr_utility.set_location('inside insert loop '||l_proc,140);

2069: hr_utility.set_location('using org hier '||l_proc,120);
2070: hr_utility.set_location('before insert loop '||l_proc,135);
2071: for i in c2 loop
2072: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then
2073: hr_utility.set_location('inside insert loop '||l_proc,140);
2074: l_rows_inserted := l_rows_inserted + 1;
2075: if p_budget_style_cd ='TOP' then
2076: hr_utility.set_location('budget style top '||l_proc,141);
2077: hr_utility.set_location('wks_unit1_value is '||p_worksheet_unit1_value||l_proc,141);

Line 2076: hr_utility.set_location('budget style top '||l_proc,141);

2072: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE' then
2073: hr_utility.set_location('inside insert loop '||l_proc,140);
2074: l_rows_inserted := l_rows_inserted + 1;
2075: if p_budget_style_cd ='TOP' then
2076: hr_utility.set_location('budget style top '||l_proc,141);
2077: hr_utility.set_location('wks_unit1_value is '||p_worksheet_unit1_value||l_proc,141);
2078: hr_utility.set_location('bgt_unit1_value is '||i.budget_unit1_value||l_proc,141);
2079: if nvl(p_worksheet_unit1_value,0) <> 0 then
2080: l_budget_unit1_percent := round((nvl(i.budget_unit1_value,0) * 100) / p_worksheet_unit1_value,2) ;

Line 2077: hr_utility.set_location('wks_unit1_value is '||p_worksheet_unit1_value||l_proc,141);

2073: hr_utility.set_location('inside insert loop '||l_proc,140);
2074: l_rows_inserted := l_rows_inserted + 1;
2075: if p_budget_style_cd ='TOP' then
2076: hr_utility.set_location('budget style top '||l_proc,141);
2077: hr_utility.set_location('wks_unit1_value is '||p_worksheet_unit1_value||l_proc,141);
2078: hr_utility.set_location('bgt_unit1_value is '||i.budget_unit1_value||l_proc,141);
2079: if nvl(p_worksheet_unit1_value,0) <> 0 then
2080: l_budget_unit1_percent := round((nvl(i.budget_unit1_value,0) * 100) / p_worksheet_unit1_value,2) ;
2081: end if;

Line 2078: hr_utility.set_location('bgt_unit1_value is '||i.budget_unit1_value||l_proc,141);

2074: l_rows_inserted := l_rows_inserted + 1;
2075: if p_budget_style_cd ='TOP' then
2076: hr_utility.set_location('budget style top '||l_proc,141);
2077: hr_utility.set_location('wks_unit1_value is '||p_worksheet_unit1_value||l_proc,141);
2078: hr_utility.set_location('bgt_unit1_value is '||i.budget_unit1_value||l_proc,141);
2079: if nvl(p_worksheet_unit1_value,0) <> 0 then
2080: l_budget_unit1_percent := round((nvl(i.budget_unit1_value,0) * 100) / p_worksheet_unit1_value,2) ;
2081: end if;
2082: hr_utility.set_location('unit1_percent cal'||l_proc,142);

Line 2082: hr_utility.set_location('unit1_percent cal'||l_proc,142);

2078: hr_utility.set_location('bgt_unit1_value is '||i.budget_unit1_value||l_proc,141);
2079: if nvl(p_worksheet_unit1_value,0) <> 0 then
2080: l_budget_unit1_percent := round((nvl(i.budget_unit1_value,0) * 100) / p_worksheet_unit1_value,2) ;
2081: end if;
2082: hr_utility.set_location('unit1_percent cal'||l_proc,142);
2083: hr_utility.set_location('wks_unit2_value is '||p_worksheet_unit2_value||l_proc,141);
2084: hr_utility.set_location('bgt_unit2_value is '||i.budget_unit2_value||l_proc,141);
2085: if nvl(p_worksheet_unit2_value,0) <> 0 then
2086: l_budget_unit2_percent := round((nvl(i.budget_unit2_value,0) * 100) / p_worksheet_unit2_value,2) ;

Line 2083: hr_utility.set_location('wks_unit2_value is '||p_worksheet_unit2_value||l_proc,141);

2079: if nvl(p_worksheet_unit1_value,0) <> 0 then
2080: l_budget_unit1_percent := round((nvl(i.budget_unit1_value,0) * 100) / p_worksheet_unit1_value,2) ;
2081: end if;
2082: hr_utility.set_location('unit1_percent cal'||l_proc,142);
2083: hr_utility.set_location('wks_unit2_value is '||p_worksheet_unit2_value||l_proc,141);
2084: hr_utility.set_location('bgt_unit2_value is '||i.budget_unit2_value||l_proc,141);
2085: if nvl(p_worksheet_unit2_value,0) <> 0 then
2086: l_budget_unit2_percent := round((nvl(i.budget_unit2_value,0) * 100) / p_worksheet_unit2_value,2) ;
2087: end if;

Line 2084: hr_utility.set_location('bgt_unit2_value is '||i.budget_unit2_value||l_proc,141);

2080: l_budget_unit1_percent := round((nvl(i.budget_unit1_value,0) * 100) / p_worksheet_unit1_value,2) ;
2081: end if;
2082: hr_utility.set_location('unit1_percent cal'||l_proc,142);
2083: hr_utility.set_location('wks_unit2_value is '||p_worksheet_unit2_value||l_proc,141);
2084: hr_utility.set_location('bgt_unit2_value is '||i.budget_unit2_value||l_proc,141);
2085: if nvl(p_worksheet_unit2_value,0) <> 0 then
2086: l_budget_unit2_percent := round((nvl(i.budget_unit2_value,0) * 100) / p_worksheet_unit2_value,2) ;
2087: end if;
2088: hr_utility.set_location('unit2_percent cal'||l_proc,143);

Line 2088: hr_utility.set_location('unit2_percent cal'||l_proc,143);

2084: hr_utility.set_location('bgt_unit2_value is '||i.budget_unit2_value||l_proc,141);
2085: if nvl(p_worksheet_unit2_value,0) <> 0 then
2086: l_budget_unit2_percent := round((nvl(i.budget_unit2_value,0) * 100) / p_worksheet_unit2_value,2) ;
2087: end if;
2088: hr_utility.set_location('unit2_percent cal'||l_proc,143);
2089: hr_utility.set_location('wks_unit3_value is '||p_worksheet_unit3_value||l_proc,141);
2090: hr_utility.set_location('bgt_unit3_value is '||i.budget_unit3_value||l_proc,141);
2091: if nvl(p_worksheet_unit3_value,0) <> 0 then
2092: l_budget_unit3_percent := round((nvl(i.budget_unit3_value,0) * 100) / p_worksheet_unit3_value,2) ;

Line 2089: hr_utility.set_location('wks_unit3_value is '||p_worksheet_unit3_value||l_proc,141);

2085: if nvl(p_worksheet_unit2_value,0) <> 0 then
2086: l_budget_unit2_percent := round((nvl(i.budget_unit2_value,0) * 100) / p_worksheet_unit2_value,2) ;
2087: end if;
2088: hr_utility.set_location('unit2_percent cal'||l_proc,143);
2089: hr_utility.set_location('wks_unit3_value is '||p_worksheet_unit3_value||l_proc,141);
2090: hr_utility.set_location('bgt_unit3_value is '||i.budget_unit3_value||l_proc,141);
2091: if nvl(p_worksheet_unit3_value,0) <> 0 then
2092: l_budget_unit3_percent := round((nvl(i.budget_unit3_value,0) * 100) / p_worksheet_unit3_value,2) ;
2093: end if;

Line 2090: hr_utility.set_location('bgt_unit3_value is '||i.budget_unit3_value||l_proc,141);

2086: l_budget_unit2_percent := round((nvl(i.budget_unit2_value,0) * 100) / p_worksheet_unit2_value,2) ;
2087: end if;
2088: hr_utility.set_location('unit2_percent cal'||l_proc,143);
2089: hr_utility.set_location('wks_unit3_value is '||p_worksheet_unit3_value||l_proc,141);
2090: hr_utility.set_location('bgt_unit3_value is '||i.budget_unit3_value||l_proc,141);
2091: if nvl(p_worksheet_unit3_value,0) <> 0 then
2092: l_budget_unit3_percent := round((nvl(i.budget_unit3_value,0) * 100) / p_worksheet_unit3_value,2) ;
2093: end if;
2094: hr_utility.set_location('unit3_percent cal'||l_proc,144);

Line 2094: hr_utility.set_location('unit3_percent cal'||l_proc,144);

2090: hr_utility.set_location('bgt_unit3_value is '||i.budget_unit3_value||l_proc,141);
2091: if nvl(p_worksheet_unit3_value,0) <> 0 then
2092: l_budget_unit3_percent := round((nvl(i.budget_unit3_value,0) * 100) / p_worksheet_unit3_value,2) ;
2093: end if;
2094: hr_utility.set_location('unit3_percent cal'||l_proc,144);
2095: p_worksheet_unit1_available := nvl(p_worksheet_unit1_available,0) - nvl(i.budget_unit1_value,0);
2096: p_worksheet_unit2_available := nvl(p_worksheet_unit2_available,0) - nvl(i.budget_unit2_value,0);
2097: p_worksheet_unit3_available := nvl(p_worksheet_unit3_available,0) - nvl(i.budget_unit3_value,0);
2098: hr_utility.set_location('available recalc '||l_proc,145);

Line 2098: hr_utility.set_location('available recalc '||l_proc,145);

2094: hr_utility.set_location('unit3_percent cal'||l_proc,144);
2095: p_worksheet_unit1_available := nvl(p_worksheet_unit1_available,0) - nvl(i.budget_unit1_value,0);
2096: p_worksheet_unit2_available := nvl(p_worksheet_unit2_available,0) - nvl(i.budget_unit2_value,0);
2097: p_worksheet_unit3_available := nvl(p_worksheet_unit3_available,0) - nvl(i.budget_unit3_value,0);
2098: hr_utility.set_location('available recalc '||l_proc,145);
2099: else
2100: hr_utility.set_location('budget style bottom '||l_proc,146);
2101: p_worksheet_unit1_value := nvl(p_worksheet_unit1_value,0) + nvl(i.budget_unit1_value,0);
2102: p_worksheet_unit2_value := nvl(p_worksheet_unit2_value,0) + nvl(i.budget_unit2_value,0);

Line 2100: hr_utility.set_location('budget style bottom '||l_proc,146);

2096: p_worksheet_unit2_available := nvl(p_worksheet_unit2_available,0) - nvl(i.budget_unit2_value,0);
2097: p_worksheet_unit3_available := nvl(p_worksheet_unit3_available,0) - nvl(i.budget_unit3_value,0);
2098: hr_utility.set_location('available recalc '||l_proc,145);
2099: else
2100: hr_utility.set_location('budget style bottom '||l_proc,146);
2101: p_worksheet_unit1_value := nvl(p_worksheet_unit1_value,0) + nvl(i.budget_unit1_value,0);
2102: p_worksheet_unit2_value := nvl(p_worksheet_unit2_value,0) + nvl(i.budget_unit2_value,0);
2103: p_worksheet_unit3_value := nvl(p_worksheet_unit3_value,0) + nvl(i.budget_unit3_value,0);
2104: hr_utility.set_location('value recalc '||l_proc,147);

Line 2104: hr_utility.set_location('value recalc '||l_proc,147);

2100: hr_utility.set_location('budget style bottom '||l_proc,146);
2101: p_worksheet_unit1_value := nvl(p_worksheet_unit1_value,0) + nvl(i.budget_unit1_value,0);
2102: p_worksheet_unit2_value := nvl(p_worksheet_unit2_value,0) + nvl(i.budget_unit2_value,0);
2103: p_worksheet_unit3_value := nvl(p_worksheet_unit3_value,0) + nvl(i.budget_unit3_value,0);
2104: hr_utility.set_location('value recalc '||l_proc,147);
2105: end if;
2106: hr_utility.set_location('going for insert '||l_proc,148);
2107: pqh_budget.insert_pos_is_bud(i.position_id);
2108: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id

Line 2106: hr_utility.set_location('going for insert '||l_proc,148);

2102: p_worksheet_unit2_value := nvl(p_worksheet_unit2_value,0) + nvl(i.budget_unit2_value,0);
2103: p_worksheet_unit3_value := nvl(p_worksheet_unit3_value,0) + nvl(i.budget_unit3_value,0);
2104: hr_utility.set_location('value recalc '||l_proc,147);
2105: end if;
2106: hr_utility.set_location('going for insert '||l_proc,148);
2107: pqh_budget.insert_pos_is_bud(i.position_id);
2108: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id
2109: ,p_worksheet_id => p_worksheet_id
2110: ,p_organization_id => i.organization_id

Line 2133: hr_utility.set_location('row inserted going for period copy'||l_proc,150);

2129: ,p_budget_unit1_available => i.budget_unit1_value
2130: ,p_budget_unit2_available => i.budget_unit2_value
2131: ,p_budget_unit3_available => i.budget_unit3_value
2132: ,p_copy_budget_periods => p_copy_budget_periods );
2133: hr_utility.set_location('row inserted going for period copy'||l_proc,150);
2134: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2135: p_worksheet_detail_id => l_worksheet_detail_id,
2136: p_copy_budget_periods => p_copy_budget_periods,
2137: p_budget_unit1_value => i.budget_unit1_value,

Line 2140: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2136: p_copy_budget_periods => p_copy_budget_periods,
2137: p_budget_unit1_value => i.budget_unit1_value,
2138: p_budget_unit2_value => i.budget_unit2_value,
2139: p_budget_unit3_value => i.budget_unit3_value) ;
2140: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2141: end if;
2142: end loop;
2143: end if;
2144: elsif p_budgeted_entity_cd ='ORGANIZATION' then

Line 2145: hr_utility.set_location('budget entity organization '||l_proc,160);

2141: end if;
2142: end loop;
2143: end if;
2144: elsif p_budgeted_entity_cd ='ORGANIZATION' then
2145: hr_utility.set_location('budget entity organization '||l_proc,160);
2146: if p_org_hier_ver is null then
2147: hr_utility.set_location('org hier null using bg '||l_proc,170);
2148: hr_utility.set_location('before insert loop '||l_proc,190);
2149: for i in c3 loop

Line 2147: hr_utility.set_location('org hier null using bg '||l_proc,170);

2143: end if;
2144: elsif p_budgeted_entity_cd ='ORGANIZATION' then
2145: hr_utility.set_location('budget entity organization '||l_proc,160);
2146: if p_org_hier_ver is null then
2147: hr_utility.set_location('org hier null using bg '||l_proc,170);
2148: hr_utility.set_location('before insert loop '||l_proc,190);
2149: for i in c3 loop
2150: l_rows_inserted := l_rows_inserted + 1;
2151: if p_budget_style_cd ='TOP' then

Line 2148: hr_utility.set_location('before insert loop '||l_proc,190);

2144: elsif p_budgeted_entity_cd ='ORGANIZATION' then
2145: hr_utility.set_location('budget entity organization '||l_proc,160);
2146: if p_org_hier_ver is null then
2147: hr_utility.set_location('org hier null using bg '||l_proc,170);
2148: hr_utility.set_location('before insert loop '||l_proc,190);
2149: for i in c3 loop
2150: l_rows_inserted := l_rows_inserted + 1;
2151: if p_budget_style_cd ='TOP' then
2152: if nvl(p_worksheet_unit1_value,0) <> 0 then

Line 2195: hr_utility.set_location('after insert '||l_proc,200);

2191: ,p_budget_unit1_available => i.budget_unit1_value
2192: ,p_budget_unit2_available => i.budget_unit2_value
2193: ,p_budget_unit3_available => i.budget_unit3_value
2194: ,p_copy_budget_periods => p_copy_budget_periods );
2195: hr_utility.set_location('after insert '||l_proc,200);
2196: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2197: p_worksheet_detail_id => l_worksheet_detail_id,
2198: p_copy_budget_periods => p_copy_budget_periods,
2199: p_budget_unit1_value => i.budget_unit1_value,

Line 2202: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2198: p_copy_budget_periods => p_copy_budget_periods,
2199: p_budget_unit1_value => i.budget_unit1_value,
2200: p_budget_unit2_value => i.budget_unit2_value,
2201: p_budget_unit3_value => i.budget_unit3_value) ;
2202: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2203: end loop;
2204: else
2205: hr_utility.set_location('using org hier '||l_proc,210);
2206: hr_utility.set_location('before insert loop '||l_proc,230);

Line 2205: hr_utility.set_location('using org hier '||l_proc,210);

2201: p_budget_unit3_value => i.budget_unit3_value) ;
2202: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2203: end loop;
2204: else
2205: hr_utility.set_location('using org hier '||l_proc,210);
2206: hr_utility.set_location('before insert loop '||l_proc,230);
2207: for i in c4 loop
2208: l_rows_inserted := l_rows_inserted + 1;
2209: if p_budget_style_cd ='TOP' then

Line 2206: hr_utility.set_location('before insert loop '||l_proc,230);

2202: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2203: end loop;
2204: else
2205: hr_utility.set_location('using org hier '||l_proc,210);
2206: hr_utility.set_location('before insert loop '||l_proc,230);
2207: for i in c4 loop
2208: l_rows_inserted := l_rows_inserted + 1;
2209: if p_budget_style_cd ='TOP' then
2210: if nvl(p_worksheet_unit1_value,0) <> 0 then

Line 2260: hr_utility.set_location('after insert '||l_proc,240);

2256: ,p_old_unit3_value => ''
2257: ,p_defer_flag => ''
2258: ,p_propagation_method => ''
2259: ,p_copy_budget_periods => p_copy_budget_periods );
2260: hr_utility.set_location('after insert '||l_proc,240);
2261: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2262: p_worksheet_detail_id => l_worksheet_detail_id,
2263: p_copy_budget_periods => p_copy_budget_periods,
2264: p_budget_unit1_value => i.budget_unit1_value,

Line 2268: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2264: p_budget_unit1_value => i.budget_unit1_value,
2265: p_budget_unit2_value => i.budget_unit2_value,
2266: p_budget_unit3_value => i.budget_unit3_value
2267: ) ;
2268: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2269: end loop;
2270: end if;
2271: elsif p_budgeted_entity_cd ='JOB' then
2272: hr_utility.set_location('budget entity job'||l_proc,260);

Line 2272: hr_utility.set_location('budget entity job'||l_proc,260);

2268: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2269: end loop;
2270: end if;
2271: elsif p_budgeted_entity_cd ='JOB' then
2272: hr_utility.set_location('budget entity job'||l_proc,260);
2273: hr_utility.set_location('before insert loop'||l_proc,270);
2274: for i in c5 loop
2275: l_rows_inserted := l_rows_inserted + 1;
2276: if p_budget_style_cd = 'TOP' then

Line 2273: hr_utility.set_location('before insert loop'||l_proc,270);

2269: end loop;
2270: end if;
2271: elsif p_budgeted_entity_cd ='JOB' then
2272: hr_utility.set_location('budget entity job'||l_proc,260);
2273: hr_utility.set_location('before insert loop'||l_proc,270);
2274: for i in c5 loop
2275: l_rows_inserted := l_rows_inserted + 1;
2276: if p_budget_style_cd = 'TOP' then
2277: if nvl(p_worksheet_unit1_value,0) <> 0 then

Line 2321: hr_utility.set_location('after insert '||l_proc,280);

2317: ,p_budget_unit1_available => i.budget_unit1_value
2318: ,p_budget_unit2_available => i.budget_unit2_value
2319: ,p_budget_unit3_available => i.budget_unit3_value
2320: ,p_copy_budget_periods => p_copy_budget_periods );
2321: hr_utility.set_location('after insert '||l_proc,280);
2322: hr_utility.set_location('after available change '||l_proc,290);
2323: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2324: p_worksheet_detail_id => l_worksheet_detail_id,
2325: p_copy_budget_periods => p_copy_budget_periods,

Line 2322: hr_utility.set_location('after available change '||l_proc,290);

2318: ,p_budget_unit2_available => i.budget_unit2_value
2319: ,p_budget_unit3_available => i.budget_unit3_value
2320: ,p_copy_budget_periods => p_copy_budget_periods );
2321: hr_utility.set_location('after insert '||l_proc,280);
2322: hr_utility.set_location('after available change '||l_proc,290);
2323: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2324: p_worksheet_detail_id => l_worksheet_detail_id,
2325: p_copy_budget_periods => p_copy_budget_periods,
2326: p_budget_unit1_value => i.budget_unit1_value,

Line 2329: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2325: p_copy_budget_periods => p_copy_budget_periods,
2326: p_budget_unit1_value => i.budget_unit1_value,
2327: p_budget_unit2_value => i.budget_unit2_value,
2328: p_budget_unit3_value => i.budget_unit3_value) ;
2329: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2330: end loop;
2331: elsif p_budgeted_entity_cd ='GRADE' then
2332: hr_utility.set_location('budget entity grade'||l_proc,300);
2333: hr_utility.set_location('before insert loop '||l_proc,310);

Line 2332: hr_utility.set_location('budget entity grade'||l_proc,300);

2328: p_budget_unit3_value => i.budget_unit3_value) ;
2329: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2330: end loop;
2331: elsif p_budgeted_entity_cd ='GRADE' then
2332: hr_utility.set_location('budget entity grade'||l_proc,300);
2333: hr_utility.set_location('before insert loop '||l_proc,310);
2334: for i in c6 loop
2335: l_rows_inserted := l_rows_inserted + 1;
2336: if p_budget_style_cd = 'TOP' then

Line 2333: hr_utility.set_location('before insert loop '||l_proc,310);

2329: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2330: end loop;
2331: elsif p_budgeted_entity_cd ='GRADE' then
2332: hr_utility.set_location('budget entity grade'||l_proc,300);
2333: hr_utility.set_location('before insert loop '||l_proc,310);
2334: for i in c6 loop
2335: l_rows_inserted := l_rows_inserted + 1;
2336: if p_budget_style_cd = 'TOP' then
2337: if nvl(p_worksheet_unit1_value,0) <> 0 then

Line 2381: hr_utility.set_location('after insert '||l_proc,320);

2377: ,p_budget_unit1_available => i.budget_unit1_value
2378: ,p_budget_unit2_available => i.budget_unit2_value
2379: ,p_budget_unit3_available => i.budget_unit3_value
2380: ,p_copy_budget_periods => p_copy_budget_periods );
2381: hr_utility.set_location('after insert '||l_proc,320);
2382: hr_utility.set_location('after available change '||l_proc,330);
2383: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2384: p_worksheet_detail_id => l_worksheet_detail_id,
2385: p_copy_budget_periods => p_copy_budget_periods,

Line 2382: hr_utility.set_location('after available change '||l_proc,330);

2378: ,p_budget_unit2_available => i.budget_unit2_value
2379: ,p_budget_unit3_available => i.budget_unit3_value
2380: ,p_copy_budget_periods => p_copy_budget_periods );
2381: hr_utility.set_location('after insert '||l_proc,320);
2382: hr_utility.set_location('after available change '||l_proc,330);
2383: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2384: p_worksheet_detail_id => l_worksheet_detail_id,
2385: p_copy_budget_periods => p_copy_budget_periods,
2386: p_budget_unit1_value => i.budget_unit1_value,

Line 2389: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2385: p_copy_budget_periods => p_copy_budget_periods,
2386: p_budget_unit1_value => i.budget_unit1_value,
2387: p_budget_unit2_value => i.budget_unit2_value,
2388: p_budget_unit3_value => i.budget_unit3_value) ;
2389: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2390: end loop;
2391: elsif p_budgeted_entity_cd ='OPEN' then
2392: hr_utility.set_location('budget entity OPEN '||l_proc,340);
2393: hr_utility.set_location('before insert loop '||l_proc,350);

Line 2392: hr_utility.set_location('budget entity OPEN '||l_proc,340);

2388: p_budget_unit3_value => i.budget_unit3_value) ;
2389: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2390: end loop;
2391: elsif p_budgeted_entity_cd ='OPEN' then
2392: hr_utility.set_location('budget entity OPEN '||l_proc,340);
2393: hr_utility.set_location('before insert loop '||l_proc,350);
2394: for i in c7 loop
2395: l_rows_inserted := l_rows_inserted + 1;
2396: if p_budget_style_cd = 'TOP' then

Line 2393: hr_utility.set_location('before insert loop '||l_proc,350);

2389: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2390: end loop;
2391: elsif p_budgeted_entity_cd ='OPEN' then
2392: hr_utility.set_location('budget entity OPEN '||l_proc,340);
2393: hr_utility.set_location('before insert loop '||l_proc,350);
2394: for i in c7 loop
2395: l_rows_inserted := l_rows_inserted + 1;
2396: if p_budget_style_cd = 'TOP' then
2397: if nvl(p_worksheet_unit1_value,0) <> 0 then

Line 2440: hr_utility.set_location('after insert '||l_proc,360);

2436: ,p_budget_unit1_available => i.budget_unit1_value
2437: ,p_budget_unit2_available => i.budget_unit2_value
2438: ,p_budget_unit3_available => i.budget_unit3_value
2439: ,p_copy_budget_periods => p_copy_budget_periods );
2440: hr_utility.set_location('after insert '||l_proc,360);
2441: copy_budget_periods(p_budget_detail_id => i.budget_detail_id,
2442: p_worksheet_detail_id => l_worksheet_detail_id,
2443: p_copy_budget_periods => p_copy_budget_periods,
2444: p_budget_unit1_value => i.budget_unit1_value,

Line 2448: hr_utility.set_location('after copying budget_periods '||l_proc,100);

2444: p_budget_unit1_value => i.budget_unit1_value,
2445: p_budget_unit2_value => i.budget_unit2_value,
2446: p_budget_unit3_value => i.budget_unit3_value
2447: ) ;
2448: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2449: end loop;
2450: end if;
2451: p_rows_inserted := l_rows_inserted;
2452: hr_utility.set_location('exiting '||l_proc,1000);

Line 2452: hr_utility.set_location('exiting '||l_proc,1000);

2448: hr_utility.set_location('after copying budget_periods '||l_proc,100);
2449: end loop;
2450: end if;
2451: p_rows_inserted := l_rows_inserted;
2452: hr_utility.set_location('exiting '||l_proc,1000);
2453: exception when others then
2454: p_worksheet_unit1_available := l_worksheet_unit1_available;
2455: p_worksheet_unit2_available := l_worksheet_unit2_available;
2456: p_worksheet_unit3_available := l_worksheet_unit3_available;

Line 2490: hr_utility.set_location('entering '||l_proc,10);

2486: l_object_version_number number := 1;
2487: l_proc varchar2(100) := g_package||'populate_bud_grades' ;
2488: l_rows_inserted number := 0;
2489: begin
2490: hr_utility.set_location('entering '||l_proc,10);
2491: open c0;
2492: fetch c0 into l_budget_start_date,l_budget_end_date,l_valid_grade_flag,l_budget_entity_cd;
2493: close c0;
2494: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

Line 2494: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

2490: hr_utility.set_location('entering '||l_proc,10);
2491: open c0;
2492: fetch c0 into l_budget_start_date,l_budget_end_date,l_valid_grade_flag,l_budget_entity_cd;
2493: close c0;
2494: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2495: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2496: for i in c1 loop
2497: if pqh_budget.already_budgeted_grd(i.grade_id) = 'FALSE' then
2498: l_rows_inserted := l_rows_inserted + 1;

Line 2495: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);

2491: open c0;
2492: fetch c0 into l_budget_start_date,l_budget_end_date,l_valid_grade_flag,l_budget_entity_cd;
2493: close c0;
2494: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2495: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2496: for i in c1 loop
2497: if pqh_budget.already_budgeted_grd(i.grade_id) = 'FALSE' then
2498: l_rows_inserted := l_rows_inserted + 1;
2499: insert_worksheet_detail (

Line 2515: hr_utility.set_location('exiting '||l_proc,1000);

2511: pqh_budget.insert_grd_is_bud(i.grade_id);
2512: end if;
2513: end loop;
2514: p_rows_inserted := l_rows_inserted;
2515: hr_utility.set_location('exiting '||l_proc,1000);
2516: exception when others then
2517: p_rows_inserted := null;
2518: raise;
2519: end populate_bud_grades;

Line 2539: hr_utility.set_location('entering '||l_proc,10);

2535: l_object_version_number number := 1;
2536: l_proc varchar2(100) := g_package||'populate_bud_jobs' ;
2537: l_rows_inserted number := 0;
2538: begin
2539: hr_utility.set_location('entering '||l_proc,10);
2540: open c0;
2541: fetch c0 into l_budget_start_date,l_budget_end_date;
2542: close c0;
2543: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

Line 2543: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

2539: hr_utility.set_location('entering '||l_proc,10);
2540: open c0;
2541: fetch c0 into l_budget_start_date,l_budget_end_date;
2542: close c0;
2543: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2544: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2545: for i in c1 loop
2546: if pqh_budget.already_budgeted_job(i.job_id) = 'FALSE' then
2547: l_rows_inserted := l_rows_inserted + 1;

Line 2544: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);

2540: open c0;
2541: fetch c0 into l_budget_start_date,l_budget_end_date;
2542: close c0;
2543: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2544: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2545: for i in c1 loop
2546: if pqh_budget.already_budgeted_job(i.job_id) = 'FALSE' then
2547: l_rows_inserted := l_rows_inserted + 1;
2548: insert_worksheet_detail (

Line 2564: hr_utility.set_location('exiting '||l_proc,1000);

2560: pqh_budget.insert_job_is_bud(i.job_id);
2561: end if;
2562: end loop;
2563: p_rows_inserted := l_rows_inserted;
2564: hr_utility.set_location('exiting '||l_proc,1000);
2565: exception
2566: when others then
2567: p_rows_inserted := null;
2568: raise;

Line 2607: hr_utility.set_location('entering '||l_proc,10);

2603: l_worksheet_detail_id number;
2604: l_object_version_number number := 1;
2605: l_proc varchar2(100) := g_package||'populate_budget_positions' ;
2606: begin
2607: hr_utility.set_location('entering '||l_proc,10);
2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);
2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);
2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);
2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);

Line 2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);

2604: l_object_version_number number := 1;
2605: l_proc varchar2(100) := g_package||'populate_budget_positions' ;
2606: begin
2607: hr_utility.set_location('entering '||l_proc,10);
2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);
2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);
2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);
2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);
2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);

Line 2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);

2605: l_proc varchar2(100) := g_package||'populate_budget_positions' ;
2606: begin
2607: hr_utility.set_location('entering '||l_proc,10);
2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);
2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);
2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);
2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);
2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);
2613: open c0;

Line 2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);

2606: begin
2607: hr_utility.set_location('entering '||l_proc,10);
2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);
2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);
2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);
2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);
2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);
2613: open c0;
2614: fetch c0 into l_budget_start_date,l_budget_end_date;

Line 2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);

2607: hr_utility.set_location('entering '||l_proc,10);
2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);
2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);
2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);
2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);
2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);
2613: open c0;
2614: fetch c0 into l_budget_start_date,l_budget_end_date;
2615: close c0;

Line 2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);

2608: hr_utility.set_location('business_group_id is '||p_business_group_id||l_proc,11);
2609: hr_utility.set_location('parent wd is '||p_parent_worksheet_detail_id||l_proc,12);
2610: hr_utility.set_location('org_hier is '||p_org_hier_ver||l_proc,13);
2611: hr_utility.set_location('worksheet id is '||p_worksheet_id||l_proc,14);
2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);
2613: open c0;
2614: fetch c0 into l_budget_start_date,l_budget_end_date;
2615: close c0;
2616: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

Line 2616: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

2612: hr_utility.set_location('start organization is '||p_start_organization_id||l_proc,15);
2613: open c0;
2614: fetch c0 into l_budget_start_date,l_budget_end_date;
2615: close c0;
2616: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2617: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2618: if p_org_hier_ver is null then
2619: hr_utility.set_location('Business group cursor selected '||l_proc,20);
2620: for i in c1 loop

Line 2617: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);

2613: open c0;
2614: fetch c0 into l_budget_start_date,l_budget_end_date;
2615: close c0;
2616: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2617: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2618: if p_org_hier_ver is null then
2619: hr_utility.set_location('Business group cursor selected '||l_proc,20);
2620: for i in c1 loop
2621: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE'

Line 2619: hr_utility.set_location('Business group cursor selected '||l_proc,20);

2615: close c0;
2616: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2617: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2618: if p_org_hier_ver is null then
2619: hr_utility.set_location('Business group cursor selected '||l_proc,20);
2620: for i in c1 loop
2621: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE'
2622: and pqh_wks_budget.get_position_budget_flag(i.availability_status_id) = 'Y' then
2623: l_rows_inserted := l_rows_inserted + 1;

Line 2637: hr_utility.set_location('position inserted '||i.position_id||l_proc,40);

2633: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
2634: ,p_user_id => ''
2635: ,p_action_cd => 'B');
2636: pqh_budget.insert_pos_is_bud(i.position_id);
2637: hr_utility.set_location('position inserted '||i.position_id||l_proc,40);
2638: end if;
2639: end loop;
2640: else
2641: hr_utility.set_location('Org hierarchy cursor selected '||l_proc,45);

Line 2641: hr_utility.set_location('Org hierarchy cursor selected '||l_proc,45);

2637: hr_utility.set_location('position inserted '||i.position_id||l_proc,40);
2638: end if;
2639: end loop;
2640: else
2641: hr_utility.set_location('Org hierarchy cursor selected '||l_proc,45);
2642: for k in csr_orgs loop
2643: hr_utility.set_location('Org is'||k.organization_id_child,46);
2644: for i in csr_pos(k.organization_id_child) loop
2645: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE'

Line 2643: hr_utility.set_location('Org is'||k.organization_id_child,46);

2639: end loop;
2640: else
2641: hr_utility.set_location('Org hierarchy cursor selected '||l_proc,45);
2642: for k in csr_orgs loop
2643: hr_utility.set_location('Org is'||k.organization_id_child,46);
2644: for i in csr_pos(k.organization_id_child) loop
2645: if pqh_budget.already_budgeted_pos(i.position_id) = 'FALSE'
2646: and pqh_wks_budget.get_position_budget_flag(i.availability_status_id) = 'Y' then
2647: l_rows_inserted := l_rows_inserted + 1;

Line 2660: hr_utility.set_location('position inserted '||i.position_id||l_proc,50);

2656: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
2657: ,p_user_id => ''
2658: ,p_action_cd => 'B');
2659: pqh_budget.insert_pos_is_bud(i.position_id);
2660: hr_utility.set_location('position inserted '||i.position_id||l_proc,50);
2661: end if;
2662: end loop;
2663: end loop;
2664: end if;

Line 2666: hr_utility.set_location('exiting '||l_proc,90);

2662: end loop;
2663: end loop;
2664: end if;
2665: p_rows_inserted := l_rows_inserted;
2666: hr_utility.set_location('exiting '||l_proc,90);
2667: exception when others then
2668: p_rows_inserted := null;
2669: raise;
2670: end populate_bud_positions;

Line 2706: hr_utility.set_location('entering '||l_proc,10);

2702: l_object_version_number number := 1;
2703: l_rows_inserted number := 0;
2704: l_proc varchar2(100) := g_package||'populate_bud_orgs' ;
2705: begin
2706: hr_utility.set_location('entering '||l_proc,10);
2707: open c0;
2708: fetch c0 into l_budget_start_date,l_budget_end_date;
2709: close c0;
2710: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

Line 2710: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

2706: hr_utility.set_location('entering '||l_proc,10);
2707: open c0;
2708: fetch c0 into l_budget_start_date,l_budget_end_date;
2709: close c0;
2710: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2711: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2712: if p_org_hier_ver is null then
2713: hr_utility.set_location('bg is used '||l_proc,20);
2714: for i in c1 loop

Line 2711: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);

2707: open c0;
2708: fetch c0 into l_budget_start_date,l_budget_end_date;
2709: close c0;
2710: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2711: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2712: if p_org_hier_ver is null then
2713: hr_utility.set_location('bg is used '||l_proc,20);
2714: for i in c1 loop
2715: l_rows_inserted := l_rows_inserted + 1;

Line 2713: hr_utility.set_location('bg is used '||l_proc,20);

2709: close c0;
2710: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2711: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2712: if p_org_hier_ver is null then
2713: hr_utility.set_location('bg is used '||l_proc,20);
2714: for i in c1 loop
2715: l_rows_inserted := l_rows_inserted + 1;
2716: insert_worksheet_detail (
2717: p_worksheet_detail_id => l_worksheet_detail_id

Line 2728: hr_utility.set_location('org is added '||i.organization_id||l_proc,30);

2724: ,p_budget_detail_id => ''
2725: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
2726: ,p_user_id => ''
2727: ,p_action_cd => 'B');
2728: hr_utility.set_location('org is added '||i.organization_id||l_proc,30);
2729: pqh_budget.insert_org_is_bud(i.organization_id);
2730: end loop;
2731: else
2732: hr_utility.set_location('oh is used '||l_proc,40);

Line 2732: hr_utility.set_location('oh is used '||l_proc,40);

2728: hr_utility.set_location('org is added '||i.organization_id||l_proc,30);
2729: pqh_budget.insert_org_is_bud(i.organization_id);
2730: end loop;
2731: else
2732: hr_utility.set_location('oh is used '||l_proc,40);
2733: for i in c2 loop
2734: l_rows_inserted := l_rows_inserted + 1;
2735: insert_worksheet_detail (
2736: p_worksheet_detail_id => l_worksheet_detail_id

Line 2747: hr_utility.set_location('org is added '||i.organization_id||l_proc,50);

2743: ,p_budget_detail_id => ''
2744: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
2745: ,p_user_id => ''
2746: ,p_action_cd => 'B');
2747: hr_utility.set_location('org is added '||i.organization_id||l_proc,50);
2748: pqh_budget.insert_org_is_bud(i.organization_id);
2749: end loop;
2750: end if;
2751: p_rows_inserted := l_rows_inserted;

Line 2752: hr_utility.set_location('entering '||l_proc,10000);

2748: pqh_budget.insert_org_is_bud(i.organization_id);
2749: end loop;
2750: end if;
2751: p_rows_inserted := l_rows_inserted;
2752: hr_utility.set_location('entering '||l_proc,10000);
2753: exception when others then
2754: p_rows_inserted := null;
2755: raise;
2756: end populate_bud_organizations;

Line 2782: hr_utility.set_location('entering '||l_proc,10);

2778: l_object_version_number number := 1;
2779: l_proc varchar2(100) := g_package||'populate_del_orgs' ;
2780: l_rows_inserted number := 0;
2781: begin
2782: hr_utility.set_location('entering '||l_proc,10);
2783: open c0;
2784: fetch c0 into l_budget_start_date,l_budget_end_date;
2785: close c0;
2786: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

Line 2786: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);

2782: hr_utility.set_location('entering '||l_proc,10);
2783: open c0;
2784: fetch c0 into l_budget_start_date,l_budget_end_date;
2785: close c0;
2786: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2787: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2788: for i in c1 loop
2789: hr_utility.set_location('delegate record found '||l_proc,20);
2790: l_rows_inserted := l_rows_inserted + 1;

Line 2787: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);

2783: open c0;
2784: fetch c0 into l_budget_start_date,l_budget_end_date;
2785: close c0;
2786: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2787: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2788: for i in c1 loop
2789: hr_utility.set_location('delegate record found '||l_proc,20);
2790: l_rows_inserted := l_rows_inserted + 1;
2791: insert_worksheet_detail (

Line 2789: hr_utility.set_location('delegate record found '||l_proc,20);

2785: close c0;
2786: hr_utility.set_location('budget start date '||l_budget_start_date||l_proc,11);
2787: hr_utility.set_location('budget end date '||l_budget_end_date||l_proc,12);
2788: for i in c1 loop
2789: hr_utility.set_location('delegate record found '||l_proc,20);
2790: l_rows_inserted := l_rows_inserted + 1;
2791: insert_worksheet_detail (
2792: p_worksheet_detail_id => l_worksheet_detail_id
2793: ,p_worksheet_id => p_worksheet_id

Line 2809: hr_utility.set_location('exiting '||l_proc,30);

2805: ,p_propagation_method => p_wks_propagation_method);
2806: pqh_budget.insert_org_is_del(i.organization_id_child);
2807: end loop;
2808: p_rows_inserted := l_rows_inserted;
2809: hr_utility.set_location('exiting '||l_proc,30);
2810: exception when others then
2811: p_rows_inserted := null;
2812: raise;
2813: end populate_del_orgs;

Line 2837: hr_utility.set_location('entering '||l_proc,10);

2833: l_unit1_precision number;
2834: l_unit2_precision number;
2835: l_unit3_precision number;
2836: begin
2837: hr_utility.set_location('entering '||l_proc,10);
2838: pqh_wks_budget.get_wks_unit_aggregate(p_worksheet_id => p_worksheet_id ,
2839: p_unit1_aggregate => l_unit1_aggregate,
2840: p_unit2_aggregate => l_unit2_aggregate,
2841: p_unit3_aggregate => l_unit3_aggregate);

Line 2874: hr_utility.set_location('exiting '||l_proc,1000);

2870: p_budget_unit2_available => l_budget_unit2_available,
2871: p_budget_unit3_available => l_budget_unit3_available
2872: );
2873: end loop;
2874: hr_utility.set_location('exiting '||l_proc,1000);
2875: end copy_all_budget_details;
2876:
2877: procedure copy_budget_details(p_budget_detail_id in number,
2878: p_worksheet_detail_id in number,

Line 2934: hr_utility.set_location('entering '||l_proc,10);

2930: /*
2931: as available figures of the worksheet_details does not reflect these periods, the available figures
2932: of the worksheet_details are to be changed too
2933: */
2934: hr_utility.set_location('entering '||l_proc,10);
2935: select count(*) into l_count
2936: from pqh_worksheet_periods where worksheet_detail_id = p_worksheet_detail_id;
2937: if l_count = 0 then
2938: hr_utility.set_location('no periods found '||l_proc,20);

Line 2938: hr_utility.set_location('no periods found '||l_proc,20);

2934: hr_utility.set_location('entering '||l_proc,10);
2935: select count(*) into l_count
2936: from pqh_worksheet_periods where worksheet_detail_id = p_worksheet_detail_id;
2937: if l_count = 0 then
2938: hr_utility.set_location('no periods found '||l_proc,20);
2939: for i in c1(p_budget_detail_id) loop
2940: hr_utility.set_location('for each pos '||l_proc,30);
2941: if nvl(p_budget_unit1_value,0) <> 0 then
2942: l_budget_unit1_percent := round(nvl(i.budget_unit1_value,0) * 100 / p_budget_unit1_value,2) ;

Line 2940: hr_utility.set_location('for each pos '||l_proc,30);

2936: from pqh_worksheet_periods where worksheet_detail_id = p_worksheet_detail_id;
2937: if l_count = 0 then
2938: hr_utility.set_location('no periods found '||l_proc,20);
2939: for i in c1(p_budget_detail_id) loop
2940: hr_utility.set_location('for each pos '||l_proc,30);
2941: if nvl(p_budget_unit1_value,0) <> 0 then
2942: l_budget_unit1_percent := round(nvl(i.budget_unit1_value,0) * 100 / p_budget_unit1_value,2) ;
2943: end if;
2944: if nvl(p_budget_unit2_value,0) <> 0 then

Line 2950: hr_utility.set_location('% figures changed '||l_proc,35);

2946: end if;
2947: if nvl(p_budget_unit3_value,0) <> 0 then
2948: l_budget_unit3_percent := round(nvl(i.budget_unit3_value,0) * 100 / p_budget_unit3_value,2) ;
2949: end if;
2950: hr_utility.set_location('% figures changed '||l_proc,35);
2951: pqh_worksheet_periods_api.create_worksheet_period(
2952: p_validate => FALSE
2953: ,p_effective_date => trunc(sysdate)
2954: ,p_worksheet_detail_id => p_worksheet_detail_id

Line 2972: hr_utility.set_location('period inserted '||l_proc,37);

2968: ,p_budget_unit3_percent => l_budget_unit3_percent
2969: ,p_budget_unit3_available => i.budget_unit3_available
2970: ,p_budget_unit3_value_type_cd => i.budget_unit3_value_type_cd
2971: );
2972: hr_utility.set_location('period inserted '||l_proc,37);
2973: for j in c2(i.budget_period_id) loop
2974: hr_utility.set_location('for each period '||l_proc,40);
2975: pqh_worksheet_budget_sets_api.create_worksheet_budget_set(
2976: p_validate => FALSE

Line 2974: hr_utility.set_location('for each period '||l_proc,40);

2970: ,p_budget_unit3_value_type_cd => i.budget_unit3_value_type_cd
2971: );
2972: hr_utility.set_location('period inserted '||l_proc,37);
2973: for j in c2(i.budget_period_id) loop
2974: hr_utility.set_location('for each period '||l_proc,40);
2975: pqh_worksheet_budget_sets_api.create_worksheet_budget_set(
2976: p_validate => FALSE
2977: ,p_effective_date => trunc(sysdate)
2978: ,p_worksheet_budget_set_id => l_worksheet_budget_set_id

Line 2996: hr_utility.set_location('for each budgetset '||l_proc,50);

2992: ,p_budget_unit3_available => j.budget_unit3_available
2993: ,p_budget_unit3_value_type_cd => j.budget_unit3_value_type_cd
2994: );
2995: for k in c3(j.budget_set_id) loop
2996: hr_utility.set_location('for each budgetset '||l_proc,50);
2997: pqh_worksheet_bdgt_elmnts_api.create_worksheet_bdgt_elmnt(
2998: p_validate => FALSE
2999: ,p_worksheet_budget_set_id => l_worksheet_budget_set_id
3000: ,p_worksheet_bdgt_elmnt_id => l_worksheet_bdgt_elmnt_id

Line 3006: hr_utility.set_location('for each budget_element '||l_proc,60);

3002: ,p_object_version_number => l_object_version_number
3003: ,p_distribution_percentage => k.distribution_percentage
3004: );
3005: for l in c4(k.budget_element_id) loop
3006: hr_utility.set_location('for each budget_element '||l_proc,60);
3007: pqh_worksheet_fund_srcs_api.create_worksheet_fund_src(
3008: p_validate => FALSE
3009: ,p_worksheet_fund_src_id => l_worksheet_fund_src_id
3010: ,p_worksheet_bdgt_elmnt_id => l_worksheet_bdgt_elmnt_id

Line 3022: hr_utility.set_location('after inserting '||l_proc,70);

3018: end loop;
3019: -- available figures to be changed as it is not already accounted for depending upon
3020: -- the aggregate method available is to be calculated.
3021: -- call add_budgetrow
3022: hr_utility.set_location('after inserting '||l_proc,70);
3023: add_budgetrow(p_worksheet_detail_id => p_worksheet_detail_id,
3024: p_unit1_aggregate => p_unit1_aggregate,
3025: p_unit2_aggregate => p_unit2_aggregate,
3026: p_unit3_aggregate => p_unit3_aggregate);

Line 3028: hr_utility.set_location('after adding periods data in plsql table '||l_proc,80);

3024: p_unit1_aggregate => p_unit1_aggregate,
3025: p_unit2_aggregate => p_unit2_aggregate,
3026: p_unit3_aggregate => p_unit3_aggregate);
3027: -- call_bgt_chg_bgt_available
3028: hr_utility.set_location('after adding periods data in plsql table '||l_proc,80);
3029: hr_utility.set_location('calculating available '||l_proc,90);
3030: bgt_chg_bgt_available(p_unit1_aggregate => p_unit1_aggregate,
3031: p_unit2_aggregate => p_unit2_aggregate,
3032: p_unit3_aggregate => p_unit3_aggregate,

Line 3029: hr_utility.set_location('calculating available '||l_proc,90);

3025: p_unit2_aggregate => p_unit2_aggregate,
3026: p_unit3_aggregate => p_unit3_aggregate);
3027: -- call_bgt_chg_bgt_available
3028: hr_utility.set_location('after adding periods data in plsql table '||l_proc,80);
3029: hr_utility.set_location('calculating available '||l_proc,90);
3030: bgt_chg_bgt_available(p_unit1_aggregate => p_unit1_aggregate,
3031: p_unit2_aggregate => p_unit2_aggregate,
3032: p_unit3_aggregate => p_unit3_aggregate,
3033: p_unit1_value => p_budget_unit1_value,

Line 3042: hr_utility.set_location('available unit1 is '||p_budget_unit1_available||l_proc,100);

3038: p_unit3_precision => p_unit3_precision,
3039: p_unit1_available => p_budget_unit1_available,
3040: p_unit2_available => p_budget_unit2_available,
3041: p_unit3_available => p_budget_unit3_available);
3042: hr_utility.set_location('available unit1 is '||p_budget_unit1_available||l_proc,100);
3043: hr_utility.set_location('available unit2 is '||p_budget_unit2_available||l_proc,110);
3044: hr_utility.set_location('available unit3 is '||p_budget_unit3_available||l_proc,120);
3045: -- call sub_budgetrow
3046: hr_utility.set_location('before subtracting '||l_proc,130);

Line 3043: hr_utility.set_location('available unit2 is '||p_budget_unit2_available||l_proc,110);

3039: p_unit1_available => p_budget_unit1_available,
3040: p_unit2_available => p_budget_unit2_available,
3041: p_unit3_available => p_budget_unit3_available);
3042: hr_utility.set_location('available unit1 is '||p_budget_unit1_available||l_proc,100);
3043: hr_utility.set_location('available unit2 is '||p_budget_unit2_available||l_proc,110);
3044: hr_utility.set_location('available unit3 is '||p_budget_unit3_available||l_proc,120);
3045: -- call sub_budgetrow
3046: hr_utility.set_location('before subtracting '||l_proc,130);
3047: sub_budgetrow(p_worksheet_detail_id => p_worksheet_detail_id,

Line 3044: hr_utility.set_location('available unit3 is '||p_budget_unit3_available||l_proc,120);

3040: p_unit2_available => p_budget_unit2_available,
3041: p_unit3_available => p_budget_unit3_available);
3042: hr_utility.set_location('available unit1 is '||p_budget_unit1_available||l_proc,100);
3043: hr_utility.set_location('available unit2 is '||p_budget_unit2_available||l_proc,110);
3044: hr_utility.set_location('available unit3 is '||p_budget_unit3_available||l_proc,120);
3045: -- call sub_budgetrow
3046: hr_utility.set_location('before subtracting '||l_proc,130);
3047: sub_budgetrow(p_worksheet_detail_id => p_worksheet_detail_id,
3048: p_unit1_aggregate => p_unit1_aggregate,

Line 3046: hr_utility.set_location('before subtracting '||l_proc,130);

3042: hr_utility.set_location('available unit1 is '||p_budget_unit1_available||l_proc,100);
3043: hr_utility.set_location('available unit2 is '||p_budget_unit2_available||l_proc,110);
3044: hr_utility.set_location('available unit3 is '||p_budget_unit3_available||l_proc,120);
3045: -- call sub_budgetrow
3046: hr_utility.set_location('before subtracting '||l_proc,130);
3047: sub_budgetrow(p_worksheet_detail_id => p_worksheet_detail_id,
3048: p_unit1_aggregate => p_unit1_aggregate,
3049: p_unit2_aggregate => p_unit2_aggregate,
3050: p_unit3_aggregate => p_unit3_aggregate);

Line 3052: hr_utility.set_location('exiting '||l_proc,150);

3048: p_unit1_aggregate => p_unit1_aggregate,
3049: p_unit2_aggregate => p_unit2_aggregate,
3050: p_unit3_aggregate => p_unit3_aggregate);
3051: end if;
3052: hr_utility.set_location('exiting '||l_proc,150);
3053: exception when others then
3054: p_budget_unit1_available := l_budget_unit1_available;
3055: p_budget_unit2_available := l_budget_unit2_available;
3056: p_budget_unit3_available := l_budget_unit3_available;

Line 3065: hr_utility.set_location('entering '||l_proc,10);

3061: ins boolean := true;
3062: l_proc varchar2(100) := g_package||'insert_org_is_del' ;
3063: i number;
3064: begin
3065: hr_utility.set_location('entering '||l_proc,10);
3066: if p_org_id is not null then
3067: i := p_what_org_is_del.first;
3068: if i is not null then
3069: loop

Line 3083: hr_utility.set_location('leaving '||l_proc,10);

3079: i := nvl(p_what_org_is_del.LAST,0) + 1;
3080: p_what_org_is_del(i) := p_org_id ;
3081: end if;
3082: end if;
3083: hr_utility.set_location('leaving '||l_proc,10);
3084: end insert_org_is_del;
3085: procedure calc_org_is_del(p_str out nocopy varchar2) as
3086: l_proc varchar2(100) := g_package||'calc_org_is_del' ;
3087: i number;

Line 3089: hr_utility.set_location('entering '||l_proc,10);

3085: procedure calc_org_is_del(p_str out nocopy varchar2) as
3086: l_proc varchar2(100) := g_package||'calc_org_is_del' ;
3087: i number;
3088: begin
3089: hr_utility.set_location('entering '||l_proc,10);
3090: p_str := '';
3091: i := p_what_org_is_del.first;
3092: if i is not null then
3093: loop

Line 3099: hr_utility.set_location('leaving '||l_proc,10);

3095: exit when i = p_what_org_is_del.LAST;
3096: i := p_what_org_is_del.NEXT(i);
3097: end loop;
3098: end if;
3099: hr_utility.set_location('leaving '||l_proc,10);
3100: end calc_org_is_del;
3101: procedure delete_org_is_del(p_org_id number) as
3102: l_proc varchar2(100) := g_package||'delete_org_is_del' ;
3103: i number;

Line 3105: hr_utility.set_location('entering '||l_proc,10);

3101: procedure delete_org_is_del(p_org_id number) as
3102: l_proc varchar2(100) := g_package||'delete_org_is_del' ;
3103: i number;
3104: begin
3105: hr_utility.set_location('entering '||l_proc,10);
3106: if p_org_id is not null then
3107: i := p_what_org_is_del.first;
3108: if i is not null then
3109: loop

Line 3119: hr_utility.set_location('leaving '||l_proc,10);

3115: i := p_what_org_is_del.NEXT(i);
3116: end loop;
3117: end if;
3118: end if;
3119: hr_utility.set_location('leaving '||l_proc,10);
3120: end delete_org_is_del;
3121: procedure delete_org_is_del is
3122: l_proc varchar2(100) := g_package||'delete_org_is_del' ;
3123: begin

Line 3124: hr_utility.set_location('entering '||l_proc,10);

3120: end delete_org_is_del;
3121: procedure delete_org_is_del is
3122: l_proc varchar2(100) := g_package||'delete_org_is_del' ;
3123: begin
3124: hr_utility.set_location('entering '||l_proc,10);
3125: p_what_org_is_del.DELETE ;
3126: hr_utility.set_location('leaving '||l_proc,10);
3127: exception
3128: when others then

Line 3126: hr_utility.set_location('leaving '||l_proc,10);

3122: l_proc varchar2(100) := g_package||'delete_org_is_del' ;
3123: begin
3124: hr_utility.set_location('entering '||l_proc,10);
3125: p_what_org_is_del.DELETE ;
3126: hr_utility.set_location('leaving '||l_proc,10);
3127: exception
3128: when others then
3129: raise;
3130: end delete_org_is_del;

Line 3136: hr_utility.set_location('entering '||p_org_id||l_proc,10);

3132: l_is_match boolean := FALSE;
3133: l_proc varchar2(100) := g_package||'already_delegated_org' ;
3134: i number;
3135: begin
3136: hr_utility.set_location('entering '||p_org_id||l_proc,10);
3137: i := p_what_org_is_del.first;
3138: if i is not null then
3139: loop
3140: if p_what_org_is_del(i) = p_org_id then

Line 3149: hr_utility.set_location('delegated '||p_org_id||l_proc,20);

3145: i := p_what_org_is_del.NEXT(i);
3146: end loop;
3147: end if;
3148: if l_is_match then
3149: hr_utility.set_location('delegated '||p_org_id||l_proc,20);
3150: return 'TRUE';
3151: else
3152: hr_utility.set_location('not delegated '||p_org_id||l_proc,30);
3153: return 'FALSE';

Line 3152: hr_utility.set_location('not delegated '||p_org_id||l_proc,30);

3148: if l_is_match then
3149: hr_utility.set_location('delegated '||p_org_id||l_proc,20);
3150: return 'TRUE';
3151: else
3152: hr_utility.set_location('not delegated '||p_org_id||l_proc,30);
3153: return 'FALSE';
3154: end if;
3155: hr_utility.set_location('leaving '||l_proc,1000);
3156: end already_delegated_org;

Line 3155: hr_utility.set_location('leaving '||l_proc,1000);

3151: else
3152: hr_utility.set_location('not delegated '||p_org_id||l_proc,30);
3153: return 'FALSE';
3154: end if;
3155: hr_utility.set_location('leaving '||l_proc,1000);
3156: end already_delegated_org;
3157: procedure insert_org_is_bud(p_org_id number) as
3158: ins boolean := true;
3159: l_proc varchar2(100) := g_package||'insert_org_is_bud' ;

Line 3162: hr_utility.set_location('entering '||l_proc,10);

3158: ins boolean := true;
3159: l_proc varchar2(100) := g_package||'insert_org_is_bud' ;
3160: i number;
3161: begin
3162: hr_utility.set_location('entering '||l_proc,10);
3163: if p_org_id is not null then
3164: i := p_what_org_is_bud.first;
3165: if i is not null then
3166: loop

Line 3180: hr_utility.set_location('leaving '||l_proc,100);

3176: i := nvl(p_what_org_is_bud.LAST,0) + 1;
3177: p_what_org_is_bud(i) := p_org_id ;
3178: end if;
3179: end if;
3180: hr_utility.set_location('leaving '||l_proc,100);
3181: end insert_org_is_bud;
3182: procedure calc_org_is_bud(p_str out nocopy varchar2) as
3183: l_proc varchar2(100) := g_package||'calc_org_is_bud' ;
3184: i number;

Line 3186: hr_utility.set_location('entering '||l_proc,10);

3182: procedure calc_org_is_bud(p_str out nocopy varchar2) as
3183: l_proc varchar2(100) := g_package||'calc_org_is_bud' ;
3184: i number;
3185: begin
3186: hr_utility.set_location('entering '||l_proc,10);
3187: p_str := '';
3188: i := p_what_org_is_bud.first;
3189: if i is not null then
3190: loop

Line 3196: hr_utility.set_location('leaving '||l_proc,10);

3192: exit when i = p_what_org_is_bud.LAST;
3193: i := p_what_org_is_bud.NEXT(i);
3194: end loop;
3195: end if;
3196: hr_utility.set_location('leaving '||l_proc,10);
3197: end calc_org_is_bud;
3198: procedure delete_org_is_bud(p_org_id number) as
3199: l_proc varchar2(100) := g_package||'delete_org_is_bud' ;
3200: i number;

Line 3202: hr_utility.set_location('entering '||l_proc,10);

3198: procedure delete_org_is_bud(p_org_id number) as
3199: l_proc varchar2(100) := g_package||'delete_org_is_bud' ;
3200: i number;
3201: begin
3202: hr_utility.set_location('entering '||l_proc,10);
3203: if p_org_id is not null then
3204: i := p_what_org_is_bud.first;
3205: if i is not null then
3206: loop

Line 3216: hr_utility.set_location('leaving '||l_proc,10);

3212: i := p_what_org_is_bud.NEXT(i);
3213: end loop;
3214: end if;
3215: end if;
3216: hr_utility.set_location('leaving '||l_proc,10);
3217: end delete_org_is_bud;
3218: procedure delete_org_is_bud is
3219: l_proc varchar2(100) := g_package||'delete_org_is_bud' ;
3220: begin

Line 3221: hr_utility.set_location('entering '||l_proc,10);

3217: end delete_org_is_bud;
3218: procedure delete_org_is_bud is
3219: l_proc varchar2(100) := g_package||'delete_org_is_bud' ;
3220: begin
3221: hr_utility.set_location('entering '||l_proc,10);
3222: p_what_org_is_bud.DELETE ;
3223: hr_utility.set_location('leaving '||l_proc,10);
3224: end delete_org_is_bud;
3225: function already_budgeted_org(p_org_id number) return varchar2 is

Line 3223: hr_utility.set_location('leaving '||l_proc,10);

3219: l_proc varchar2(100) := g_package||'delete_org_is_bud' ;
3220: begin
3221: hr_utility.set_location('entering '||l_proc,10);
3222: p_what_org_is_bud.DELETE ;
3223: hr_utility.set_location('leaving '||l_proc,10);
3224: end delete_org_is_bud;
3225: function already_budgeted_org(p_org_id number) return varchar2 is
3226: l_is_match boolean := FALSE;
3227: l_proc varchar2(100) := g_package||'already_budgeted_org' ;

Line 3230: hr_utility.set_location('entering '||l_proc,10);

3226: l_is_match boolean := FALSE;
3227: l_proc varchar2(100) := g_package||'already_budgeted_org' ;
3228: i number;
3229: begin
3230: hr_utility.set_location('entering '||l_proc,10);
3231: i := p_what_org_is_bud.first;
3232: if i is not null then
3233: loop
3234: if p_what_org_is_bud(i) = p_org_id then

Line 3247: hr_utility.set_location('leaving '||l_proc,1000);

3243: return 'TRUE';
3244: else
3245: return 'FALSE';
3246: end if;
3247: hr_utility.set_location('leaving '||l_proc,1000);
3248: end already_budgeted_org;
3249: procedure insert_pos_is_bud(p_pos_id number) as
3250: i number;
3251: l_proc varchar2(100) := g_package||'insert_pos_is_bud' ;

Line 3254: hr_utility.set_location('entering '||l_proc,10);

3250: i number;
3251: l_proc varchar2(100) := g_package||'insert_pos_is_bud' ;
3252: ins boolean := true ;
3253: begin
3254: hr_utility.set_location('entering '||l_proc,10);
3255: if p_pos_id is not null then
3256: i := p_what_pos_is_bud.first;
3257: if i is not null then
3258: loop

Line 3272: hr_utility.set_location('value added '||p_pos_id,10);

3268: if ins then
3269: i := nvl(p_what_pos_is_bud.LAST,0) +1;
3270: p_what_pos_is_bud(i) := p_pos_id;
3271: end if;
3272: hr_utility.set_location('value added '||p_pos_id,10);
3273: end if;
3274: hr_utility.set_location('leaving '||l_proc,10);
3275: end insert_pos_is_bud;
3276: procedure calc_pos_is_bud(p_str out nocopy varchar2) as

Line 3274: hr_utility.set_location('leaving '||l_proc,10);

3270: p_what_pos_is_bud(i) := p_pos_id;
3271: end if;
3272: hr_utility.set_location('value added '||p_pos_id,10);
3273: end if;
3274: hr_utility.set_location('leaving '||l_proc,10);
3275: end insert_pos_is_bud;
3276: procedure calc_pos_is_bud(p_str out nocopy varchar2) as
3277: l_proc varchar2(100) := g_package||'calc_pos_is_bud' ;
3278: i number;

Line 3280: hr_utility.set_location('entering '||l_proc,10);

3276: procedure calc_pos_is_bud(p_str out nocopy varchar2) as
3277: l_proc varchar2(100) := g_package||'calc_pos_is_bud' ;
3278: i number;
3279: begin
3280: hr_utility.set_location('entering '||l_proc,10);
3281: p_str := '';
3282: i := p_what_pos_is_bud.first;
3283: if i is not null then
3284: loop

Line 3290: hr_utility.set_location('leaving '||l_proc,10);

3286: exit when i = p_what_pos_is_bud.LAST;
3287: i := p_what_pos_is_bud.NEXT(i);
3288: end loop;
3289: end if;
3290: hr_utility.set_location('leaving '||l_proc,10);
3291: exception
3292: when others then
3293: raise;
3294: end calc_pos_is_bud;

Line 3299: hr_utility.set_location('entering '||l_proc,10);

3295: procedure delete_pos_is_bud(p_pos_id number) as
3296: l_proc varchar2(100) := g_package||'delete_pos_is_bud' ;
3297: i number;
3298: begin
3299: hr_utility.set_location('entering '||l_proc,10);
3300: if p_pos_id is not null then
3301: i := p_what_pos_is_bud.first;
3302: if i is not null then
3303: loop

Line 3305: hr_utility.set_location('match found '||p_pos_id,15);

3301: i := p_what_pos_is_bud.first;
3302: if i is not null then
3303: loop
3304: if nvl(p_what_pos_is_bud(i),-1) = p_pos_id then
3305: hr_utility.set_location('match found '||p_pos_id,15);
3306: begin
3307: p_what_pos_is_bud.DELETE(i);
3308: exception
3309: when others then

Line 3314: hr_utility.set_location('no match found '||p_pos_id,15);

3310: raise;
3311: end;
3312: exit;
3313: else
3314: hr_utility.set_location('no match found '||p_pos_id,15);
3315: exit when i = p_what_pos_is_bud.LAST;
3316: i := p_what_pos_is_bud.NEXT(i);
3317: end if;
3318: end loop;

Line 3321: hr_utility.set_location('leaving '||l_proc,10);

3317: end if;
3318: end loop;
3319: end if;
3320: end if;
3321: hr_utility.set_location('leaving '||l_proc,10);
3322: exception
3323: when others then
3324: raise;
3325: end delete_pos_is_bud;

Line 3329: hr_utility.set_location('entering '||l_proc,10);

3325: end delete_pos_is_bud;
3326: procedure delete_pos_is_bud is
3327: l_proc varchar2(100) := g_package||'delete_pos_is_bud' ;
3328: begin
3329: hr_utility.set_location('entering '||l_proc,10);
3330: p_what_pos_is_bud.DELETE ;
3331: hr_utility.set_location('leaving '||l_proc,10);
3332: end delete_pos_is_bud;
3333: function already_budgeted_pos(p_pos_id number) return varchar2 is

Line 3331: hr_utility.set_location('leaving '||l_proc,10);

3327: l_proc varchar2(100) := g_package||'delete_pos_is_bud' ;
3328: begin
3329: hr_utility.set_location('entering '||l_proc,10);
3330: p_what_pos_is_bud.DELETE ;
3331: hr_utility.set_location('leaving '||l_proc,10);
3332: end delete_pos_is_bud;
3333: function already_budgeted_pos(p_pos_id number) return varchar2 is
3334: l_is_match boolean := FALSE;
3335: l_proc varchar2(100) := g_package||'already_budgeted_pos' ;

Line 3338: hr_utility.set_location('entering '||p_pos_id||l_proc,10);

3334: l_is_match boolean := FALSE;
3335: l_proc varchar2(100) := g_package||'already_budgeted_pos' ;
3336: i number;
3337: begin
3338: hr_utility.set_location('entering '||p_pos_id||l_proc,10);
3339: i := p_what_pos_is_bud.first;
3340: if i is not null then
3341: loop
3342: if p_what_pos_is_bud(i) = p_pos_id then

Line 3351: hr_utility.set_location('budgeted'||p_pos_id||l_proc,20);

3347: i := p_what_pos_is_bud.NEXT(i);
3348: end loop;
3349: end if;
3350: if l_is_match then
3351: hr_utility.set_location('budgeted'||p_pos_id||l_proc,20);
3352: return 'TRUE';
3353: else
3354: hr_utility.set_location('not budgeted'||p_pos_id||l_proc,30);
3355: return 'FALSE';

Line 3354: hr_utility.set_location('not budgeted'||p_pos_id||l_proc,30);

3350: if l_is_match then
3351: hr_utility.set_location('budgeted'||p_pos_id||l_proc,20);
3352: return 'TRUE';
3353: else
3354: hr_utility.set_location('not budgeted'||p_pos_id||l_proc,30);
3355: return 'FALSE';
3356: end if;
3357: hr_utility.set_location('leaving '||l_proc,1000);
3358: end already_budgeted_pos;

Line 3357: hr_utility.set_location('leaving '||l_proc,1000);

3353: else
3354: hr_utility.set_location('not budgeted'||p_pos_id||l_proc,30);
3355: return 'FALSE';
3356: end if;
3357: hr_utility.set_location('leaving '||l_proc,1000);
3358: end already_budgeted_pos;
3359: procedure pop_bud_tables(p_parent_worksheet_detail_id in number,
3360: p_budgeted_entity_cd in varchar) as
3361: cursor c1 is select position_id,job_id,organization_id,grade_id,position_transaction_id

Line 3367: hr_utility.set_location('entering '||l_proc,10);

3363: where parent_worksheet_detail_id = p_parent_worksheet_detail_id
3364: and action_cd ='B';
3365: l_proc varchar2(100) := g_package||'pop_bud_tables' ;
3366: begin
3367: hr_utility.set_location('entering '||l_proc,10);
3368: if p_budgeted_entity_cd ='POSITION' then
3369: delete_pos_is_bud;
3370: delete_pot_is_bud;
3371: for i in c1 loop

Line 3391: hr_utility.set_location('exiting '||l_proc,1000);

3387: for i in c1 loop
3388: pqh_budget.insert_grd_is_bud(i.grade_id);
3389: end loop;
3390: end if;
3391: hr_utility.set_location('exiting '||l_proc,1000);
3392: end pop_bud_tables;
3393: procedure pop_bud_tables(p_budget_version_id in number,
3394: p_budgeted_entity_cd in varchar) as
3395: cursor c1 is select position_id,job_id,organization_id,grade_id

Line 3400: hr_utility.set_location('entering '||l_proc,10);

3396: from pqh_budget_details
3397: where budget_version_id = p_budget_version_id;
3398: l_proc varchar2(100) := g_package||'pop_bud_tables' ;
3399: begin
3400: hr_utility.set_location('entering '||l_proc,10);
3401: if p_budgeted_entity_cd ='POSITION' then
3402: delete_pos_is_bud;
3403: delete_pot_is_bud;
3404: for i in c1 loop

Line 3423: hr_utility.set_location('exiting '||l_proc,1000);

3419: for i in c1 loop
3420: pqh_budget.insert_grd_is_bud(i.grade_id);
3421: end loop;
3422: end if;
3423: hr_utility.set_location('exiting '||l_proc,1000);
3424: end pop_bud_tables;
3425: procedure pop_del_tables(p_parent_worksheet_detail_id in number) as
3426: cursor c1 is select organization_id
3427: from pqh_worksheet_details

Line 3432: hr_utility.set_location('entering '||l_proc,10);

3428: where parent_worksheet_detail_id = p_parent_worksheet_detail_id
3429: and action_cd ='D' ;
3430: l_proc varchar2(100) := g_package||'pop_del_tables' ;
3431: begin
3432: hr_utility.set_location('entering '||l_proc,10);
3433: delete_org_is_del;
3434: for i in c1 loop
3435: pqh_budget.insert_org_is_del(i.organization_id);
3436: end loop;

Line 3437: hr_utility.set_location('exiting '||l_proc,20);

3433: delete_org_is_del;
3434: for i in c1 loop
3435: pqh_budget.insert_org_is_del(i.organization_id);
3436: end loop;
3437: hr_utility.set_location('exiting '||l_proc,20);
3438: end pop_del_tables;
3439: procedure insert_pot_is_bud(p_pot_id number) as
3440: i number;
3441: l_proc varchar2(100) := g_package||'insert_pot_is_bud' ;

Line 3444: hr_utility.set_location('entering '||l_proc,10);

3440: i number;
3441: l_proc varchar2(100) := g_package||'insert_pot_is_bud' ;
3442: ins boolean := true ;
3443: begin
3444: hr_utility.set_location('entering '||l_proc,10);
3445: if p_pot_id is not null then
3446: i := p_what_pot_is_bud.first;
3447: if i is not null then
3448: loop

Line 3462: hr_utility.set_location('value added '||p_pot_id,20);

3458: if ins then
3459: i := nvl(p_what_pot_is_bud.LAST,0) +1;
3460: p_what_pot_is_bud(i) := p_pot_id;
3461: end if;
3462: hr_utility.set_location('value added '||p_pot_id,20);
3463: end if;
3464: hr_utility.set_location('leaving '||l_proc,30);
3465: end insert_pot_is_bud;
3466: procedure calc_pot_is_bud(p_str out nocopy varchar2) as

Line 3464: hr_utility.set_location('leaving '||l_proc,30);

3460: p_what_pot_is_bud(i) := p_pot_id;
3461: end if;
3462: hr_utility.set_location('value added '||p_pot_id,20);
3463: end if;
3464: hr_utility.set_location('leaving '||l_proc,30);
3465: end insert_pot_is_bud;
3466: procedure calc_pot_is_bud(p_str out nocopy varchar2) as
3467: l_proc varchar2(100) := g_package||'calc_pot_is_bud' ;
3468: i number;

Line 3470: hr_utility.set_location('entering '||l_proc,10);

3466: procedure calc_pot_is_bud(p_str out nocopy varchar2) as
3467: l_proc varchar2(100) := g_package||'calc_pot_is_bud' ;
3468: i number;
3469: begin
3470: hr_utility.set_location('entering '||l_proc,10);
3471: p_str := '';
3472: i := p_what_pot_is_bud.first;
3473: if i is not null then
3474: loop

Line 3480: hr_utility.set_location('leaving '||l_proc,20);

3476: exit when i = p_what_pot_is_bud.LAST;
3477: i := p_what_pot_is_bud.NEXT(i);
3478: end loop;
3479: end if;
3480: hr_utility.set_location('leaving '||l_proc,20);
3481: exception
3482: when others then
3483: raise;
3484: end calc_pot_is_bud;

Line 3489: hr_utility.set_location('entering '||l_proc,10);

3485: procedure delete_pot_is_bud(p_pot_id number) as
3486: l_proc varchar2(100) := g_package||'delete_pot_is_bud' ;
3487: i number;
3488: begin
3489: hr_utility.set_location('entering '||l_proc,10);
3490: if p_pot_id is not null then
3491: i := p_what_pot_is_bud.first;
3492: if i is not null then
3493: loop

Line 3495: hr_utility.set_location('match found '||p_pot_id,15);

3491: i := p_what_pot_is_bud.first;
3492: if i is not null then
3493: loop
3494: if nvl(p_what_pot_is_bud(i),-1) = p_pot_id then
3495: hr_utility.set_location('match found '||p_pot_id,15);
3496: begin
3497: p_what_pot_is_bud.DELETE(i);
3498: exception
3499: when others then

Line 3504: hr_utility.set_location('no match found '||p_pot_id,15);

3500: raise;
3501: end;
3502: exit;
3503: else
3504: hr_utility.set_location('no match found '||p_pot_id,15);
3505: exit when i = p_what_pot_is_bud.LAST;
3506: i := p_what_pot_is_bud.NEXT(i);
3507: end if;
3508: end loop;

Line 3511: hr_utility.set_location('leaving '||l_proc,20);

3507: end if;
3508: end loop;
3509: end if;
3510: end if;
3511: hr_utility.set_location('leaving '||l_proc,20);
3512: exception
3513: when others then
3514: raise;
3515: end delete_pot_is_bud;

Line 3519: hr_utility.set_location('entering '||l_proc,10);

3515: end delete_pot_is_bud;
3516: procedure delete_pot_is_bud is
3517: l_proc varchar2(100) := g_package||'delete_pot_is_bud' ;
3518: begin
3519: hr_utility.set_location('entering '||l_proc,10);
3520: p_what_pot_is_bud.DELETE ;
3521: hr_utility.set_location('leaving '||l_proc,20);
3522: end delete_pot_is_bud;
3523: function already_budgeted_pot(p_pot_id number) return varchar2 is

Line 3521: hr_utility.set_location('leaving '||l_proc,20);

3517: l_proc varchar2(100) := g_package||'delete_pot_is_bud' ;
3518: begin
3519: hr_utility.set_location('entering '||l_proc,10);
3520: p_what_pot_is_bud.DELETE ;
3521: hr_utility.set_location('leaving '||l_proc,20);
3522: end delete_pot_is_bud;
3523: function already_budgeted_pot(p_pot_id number) return varchar2 is
3524: l_is_match boolean := FALSE;
3525: l_proc varchar2(100) := g_package||'already_budgeted_pot' ;

Line 3528: hr_utility.set_location('entering '||l_proc,10);

3524: l_is_match boolean := FALSE;
3525: l_proc varchar2(100) := g_package||'already_budgeted_pot' ;
3526: i number;
3527: begin
3528: hr_utility.set_location('entering '||l_proc,10);
3529: i := p_what_pot_is_bud.first;
3530: if i is not null then
3531: loop
3532: if p_what_pot_is_bud(i) = p_pot_id then

Line 3545: hr_utility.set_location('leaving '||l_proc,20);

3541: return 'TRUE';
3542: else
3543: return 'FALSE';
3544: end if;
3545: hr_utility.set_location('leaving '||l_proc,20);
3546: end already_budgeted_pot;
3547: procedure insert_job_is_bud(p_job_id number) as
3548: ins boolean := true;
3549: l_proc varchar2(100) := g_package||'insert_job_is_bud' ;

Line 3552: hr_utility.set_location('entering '||l_proc,10);

3548: ins boolean := true;
3549: l_proc varchar2(100) := g_package||'insert_job_is_bud' ;
3550: i number;
3551: begin
3552: hr_utility.set_location('entering '||l_proc,10);
3553: if p_job_id is not null then
3554: hr_utility.set_location('job_id is '||p_job_id||l_proc,20);
3555: i := p_what_job_is_bud.first;
3556: if i is not null then

Line 3554: hr_utility.set_location('job_id is '||p_job_id||l_proc,20);

3550: i number;
3551: begin
3552: hr_utility.set_location('entering '||l_proc,10);
3553: if p_job_id is not null then
3554: hr_utility.set_location('job_id is '||p_job_id||l_proc,20);
3555: i := p_what_job_is_bud.first;
3556: if i is not null then
3557: hr_utility.set_location('first counter is '||i||l_proc,30);
3558: loop

Line 3557: hr_utility.set_location('first counter is '||i||l_proc,30);

3553: if p_job_id is not null then
3554: hr_utility.set_location('job_id is '||p_job_id||l_proc,20);
3555: i := p_what_job_is_bud.first;
3556: if i is not null then
3557: hr_utility.set_location('first counter is '||i||l_proc,30);
3558: loop
3559: if p_what_job_is_bud(i) = p_job_id then
3560: hr_utility.set_location('match already exists '||l_proc,40);
3561: ins := false;

Line 3560: hr_utility.set_location('match already exists '||l_proc,40);

3556: if i is not null then
3557: hr_utility.set_location('first counter is '||i||l_proc,30);
3558: loop
3559: if p_what_job_is_bud(i) = p_job_id then
3560: hr_utility.set_location('match already exists '||l_proc,40);
3561: ins := false;
3562: exit;
3563: end if;
3564: exit when i = p_what_job_is_bud.LAST;

Line 3569: hr_utility.set_location('match not exists inserting'||l_proc,50);

3565: i := p_what_job_is_bud.NEXT(i);
3566: end loop;
3567: end if;
3568: if ins then
3569: hr_utility.set_location('match not exists inserting'||l_proc,50);
3570: i := nvl(p_what_job_is_bud.LAST,0)+ 1;
3571: p_what_job_is_bud(i) := p_job_id ;
3572: end if;
3573: end if;

Line 3574: hr_utility.set_location('leaving '||l_proc,60);

3570: i := nvl(p_what_job_is_bud.LAST,0)+ 1;
3571: p_what_job_is_bud(i) := p_job_id ;
3572: end if;
3573: end if;
3574: hr_utility.set_location('leaving '||l_proc,60);
3575: end insert_job_is_bud;
3576: procedure calc_job_is_bud(p_str out nocopy varchar2) as
3577: l_proc varchar2(100) := g_package||'calc_job_is_bud' ;
3578: i number;

Line 3580: hr_utility.set_location('entering '||l_proc,10);

3576: procedure calc_job_is_bud(p_str out nocopy varchar2) as
3577: l_proc varchar2(100) := g_package||'calc_job_is_bud' ;
3578: i number;
3579: begin
3580: hr_utility.set_location('entering '||l_proc,10);
3581: p_str := '';
3582: i := p_what_job_is_bud.first;
3583: if i is not null then
3584: loop

Line 3590: hr_utility.set_location('leaving '||l_proc,30);

3586: exit when i = p_what_job_is_bud.LAST;
3587: i := p_what_job_is_bud.NEXT(i);
3588: end loop;
3589: end if;
3590: hr_utility.set_location('leaving '||l_proc,30);
3591: end calc_job_is_bud;
3592: procedure delete_job_is_bud(p_job_id number) as
3593: l_proc varchar2(100) := g_package||'delete_job_is_bud' ;
3594: i number;

Line 3596: hr_utility.set_location('entering '||l_proc,10);

3592: procedure delete_job_is_bud(p_job_id number) as
3593: l_proc varchar2(100) := g_package||'delete_job_is_bud' ;
3594: i number;
3595: begin
3596: hr_utility.set_location('entering '||l_proc,10);
3597: if p_job_id is not null then
3598: i := p_what_job_is_bud.first;
3599: if i is not null then
3600: loop

Line 3610: hr_utility.set_location('leaving '||l_proc,20);

3606: i := p_what_job_is_bud.NEXT(i);
3607: end loop;
3608: end if;
3609: end if;
3610: hr_utility.set_location('leaving '||l_proc,20);
3611: end delete_job_is_bud;
3612: procedure delete_job_is_bud is
3613: l_proc varchar2(100) := g_package||'delete_job_is_bud' ;
3614: begin

Line 3615: hr_utility.set_location('entering '||l_proc,10);

3611: end delete_job_is_bud;
3612: procedure delete_job_is_bud is
3613: l_proc varchar2(100) := g_package||'delete_job_is_bud' ;
3614: begin
3615: hr_utility.set_location('entering '||l_proc,10);
3616: p_what_job_is_bud.DELETE ;
3617: hr_utility.set_location('leaving '||l_proc,20);
3618: end delete_job_is_bud;
3619: function already_budgeted_job(p_job_id number) return varchar2 is

Line 3617: hr_utility.set_location('leaving '||l_proc,20);

3613: l_proc varchar2(100) := g_package||'delete_job_is_bud' ;
3614: begin
3615: hr_utility.set_location('entering '||l_proc,10);
3616: p_what_job_is_bud.DELETE ;
3617: hr_utility.set_location('leaving '||l_proc,20);
3618: end delete_job_is_bud;
3619: function already_budgeted_job(p_job_id number) return varchar2 is
3620: l_is_match boolean := FALSE;
3621: l_proc varchar2(100) := g_package||'already_budgeted_job' ;

Line 3624: hr_utility.set_location('entering '||l_proc,10);

3620: l_is_match boolean := FALSE;
3621: l_proc varchar2(100) := g_package||'already_budgeted_job' ;
3622: i number;
3623: begin
3624: hr_utility.set_location('entering '||l_proc,10);
3625: i := p_what_job_is_bud.first;
3626: if i is not null then
3627: loop
3628: if p_what_job_is_bud(i) = p_job_id then

Line 3641: hr_utility.set_location('leaving '||l_proc,20);

3637: return 'TRUE';
3638: else
3639: return 'FALSE';
3640: end if;
3641: hr_utility.set_location('leaving '||l_proc,20);
3642: end already_budgeted_job;
3643: procedure insert_grd_is_bud(p_grd_id number) as
3644: i number;
3645: l_proc varchar2(100) := g_package||'insert_grd_is_bud' ;

Line 3648: hr_utility.set_location('entering '||l_proc,10);

3644: i number;
3645: l_proc varchar2(100) := g_package||'insert_grd_is_bud' ;
3646: ins boolean := true;
3647: begin
3648: hr_utility.set_location('entering '||l_proc,10);
3649: if p_grd_id is not null then
3650: i := p_what_grd_is_bud.first;
3651: if i is not null then
3652: loop

Line 3666: hr_utility.set_location('leaving '||l_proc,10);

3662: i := nvl(p_what_grd_is_bud.LAST,0)+ 1;
3663: p_what_grd_is_bud(i) := p_grd_id ;
3664: end if;
3665: end if;
3666: hr_utility.set_location('leaving '||l_proc,10);
3667: end insert_grd_is_bud;
3668: procedure calc_grd_is_bud(p_str out nocopy varchar2) as
3669: l_proc varchar2(100) := g_package||'calc_grd_is_bud' ;
3670: i number;

Line 3672: hr_utility.set_location('entering '||l_proc,10);

3668: procedure calc_grd_is_bud(p_str out nocopy varchar2) as
3669: l_proc varchar2(100) := g_package||'calc_grd_is_bud' ;
3670: i number;
3671: begin
3672: hr_utility.set_location('entering '||l_proc,10);
3673: p_str := '';
3674: i := p_what_grd_is_bud.first;
3675: if i is not null then
3676: loop

Line 3682: hr_utility.set_location('leaving '||l_proc,10);

3678: exit when i = p_what_grd_is_bud.LAST;
3679: i := p_what_grd_is_bud.NEXT(i);
3680: end loop;
3681: end if;
3682: hr_utility.set_location('leaving '||l_proc,10);
3683: end calc_grd_is_bud;
3684: procedure delete_grd_is_bud(p_grd_id number) as
3685: l_proc varchar2(100) := g_package||'delete_grd_is_bud' ;
3686: i number;

Line 3688: hr_utility.set_location('entering '||l_proc,10);

3684: procedure delete_grd_is_bud(p_grd_id number) as
3685: l_proc varchar2(100) := g_package||'delete_grd_is_bud' ;
3686: i number;
3687: begin
3688: hr_utility.set_location('entering '||l_proc,10);
3689: if p_grd_id is not null then
3690: i := p_what_grd_is_bud.first;
3691: if i is not null then
3692: loop

Line 3702: hr_utility.set_location('leaving '||l_proc,10);

3698: i := p_what_grd_is_bud.NEXT(i);
3699: end loop;
3700: end if;
3701: end if;
3702: hr_utility.set_location('leaving '||l_proc,10);
3703: end delete_grd_is_bud;
3704: procedure delete_grd_is_bud is
3705: l_proc varchar2(100) := g_package||'delete_grd_is_bud' ;
3706: begin

Line 3707: hr_utility.set_location('entering '||l_proc,10);

3703: end delete_grd_is_bud;
3704: procedure delete_grd_is_bud is
3705: l_proc varchar2(100) := g_package||'delete_grd_is_bud' ;
3706: begin
3707: hr_utility.set_location('entering '||l_proc,10);
3708: p_what_grd_is_bud.DELETE ;
3709: hr_utility.set_location('leaving '||l_proc,10);
3710: end delete_grd_is_bud;
3711: function already_budgeted_grd(p_grd_id number) return varchar2 is

Line 3709: hr_utility.set_location('leaving '||l_proc,10);

3705: l_proc varchar2(100) := g_package||'delete_grd_is_bud' ;
3706: begin
3707: hr_utility.set_location('entering '||l_proc,10);
3708: p_what_grd_is_bud.DELETE ;
3709: hr_utility.set_location('leaving '||l_proc,10);
3710: end delete_grd_is_bud;
3711: function already_budgeted_grd(p_grd_id number) return varchar2 is
3712: l_is_match boolean := FALSE;
3713: l_proc varchar2(100) := g_package||'already_budgeted_grd' ;

Line 3716: hr_utility.set_location('entering '||l_proc,10);

3712: l_is_match boolean := FALSE;
3713: l_proc varchar2(100) := g_package||'already_budgeted_grd' ;
3714: i number;
3715: begin
3716: hr_utility.set_location('entering '||l_proc,10);
3717: i := p_what_grd_is_bud.first;
3718: if i is not null then
3719: loop
3720: if p_what_grd_is_bud(i) = p_grd_id then

Line 3733: hr_utility.set_location('leaving '||l_proc,1000);

3729: return 'TRUE';
3730: else
3731: return 'FALSE';
3732: end if;
3733: hr_utility.set_location('leaving '||l_proc,1000);
3734: end already_budgeted_grd;
3735: function already_budgeted(p_position_id number,
3736: p_job_id number,
3737: p_organization_id number,

Line 3864: hr_utility.set_location('entering'||l_proc,10);

3860: and start_date >= l_prd_start_date
3861: and end_date <= l_prd_end_date ;
3862: l_proc varchar2(51) := g_package||'init_prd_tab';
3863: begin
3864: hr_utility.set_location('entering'||l_proc,10);
3865: for i in c1 loop
3866: l_period_set_name := i.period_set_name;
3867: l_prd_start_date := i.budget_start_date;
3868: l_prd_end_date := i.budget_end_date;

Line 3870: hr_utility.set_location('period_set_name is'||l_period_set_name||l_proc,20);

3866: l_period_set_name := i.period_set_name;
3867: l_prd_start_date := i.budget_start_date;
3868: l_prd_end_date := i.budget_end_date;
3869: end loop;
3870: hr_utility.set_location('period_set_name is'||l_period_set_name||l_proc,20);
3871: hr_utility.set_location('period start_date is'||to_char(l_prd_start_date,'mm/dd/RRRR')||l_proc,30);
3872: hr_utility.set_location('period end_date is'||to_char(l_prd_end_date,'mm/dd/RRRR')||l_proc,40);
3873: begin
3874: p_prd_unit_tab.delete;

Line 3871: hr_utility.set_location('period start_date is'||to_char(l_prd_start_date,'mm/dd/RRRR')||l_proc,30);

3867: l_prd_start_date := i.budget_start_date;
3868: l_prd_end_date := i.budget_end_date;
3869: end loop;
3870: hr_utility.set_location('period_set_name is'||l_period_set_name||l_proc,20);
3871: hr_utility.set_location('period start_date is'||to_char(l_prd_start_date,'mm/dd/RRRR')||l_proc,30);
3872: hr_utility.set_location('period end_date is'||to_char(l_prd_end_date,'mm/dd/RRRR')||l_proc,40);
3873: begin
3874: p_prd_unit_tab.delete;
3875: exception

Line 3872: hr_utility.set_location('period end_date is'||to_char(l_prd_end_date,'mm/dd/RRRR')||l_proc,40);

3868: l_prd_end_date := i.budget_end_date;
3869: end loop;
3870: hr_utility.set_location('period_set_name is'||l_period_set_name||l_proc,20);
3871: hr_utility.set_location('period start_date is'||to_char(l_prd_start_date,'mm/dd/RRRR')||l_proc,30);
3872: hr_utility.set_location('period end_date is'||to_char(l_prd_end_date,'mm/dd/RRRR')||l_proc,40);
3873: begin
3874: p_prd_unit_tab.delete;
3875: exception
3876: when others then

Line 3877: hr_utility.set_location('delete of table failed'||l_proc,42);

3873: begin
3874: p_prd_unit_tab.delete;
3875: exception
3876: when others then
3877: hr_utility.set_location('delete of table failed'||l_proc,42);
3878: null;
3879: end;
3880: for j in c2 loop
3881: p_prd_unit_tab(k).start_date := j.start_date;

Line 3883: hr_utility.set_location('period added is'||to_char(j.start_date,'mm/dd/RRRR')||l_proc,50);

3879: end;
3880: for j in c2 loop
3881: p_prd_unit_tab(k).start_date := j.start_date;
3882: k := k+1;
3883: hr_utility.set_location('period added is'||to_char(j.start_date,'mm/dd/RRRR')||l_proc,50);
3884: end loop;
3885: hr_utility.set_location('# of periods added are'||k||' '||l_proc,50);
3886: hr_utility.set_location('exit'||l_proc,100);
3887: end init_prd_tab;

Line 3885: hr_utility.set_location('# of periods added are'||k||' '||l_proc,50);

3881: p_prd_unit_tab(k).start_date := j.start_date;
3882: k := k+1;
3883: hr_utility.set_location('period added is'||to_char(j.start_date,'mm/dd/RRRR')||l_proc,50);
3884: end loop;
3885: hr_utility.set_location('# of periods added are'||k||' '||l_proc,50);
3886: hr_utility.set_location('exit'||l_proc,100);
3887: end init_prd_tab;
3888: procedure chk_unit_sum(p_unit1_sum_value out nocopy number,
3889: p_unit2_sum_value out nocopy number,

Line 3886: hr_utility.set_location('exit'||l_proc,100);

3882: k := k+1;
3883: hr_utility.set_location('period added is'||to_char(j.start_date,'mm/dd/RRRR')||l_proc,50);
3884: end loop;
3885: hr_utility.set_location('# of periods added are'||k||' '||l_proc,50);
3886: hr_utility.set_location('exit'||l_proc,100);
3887: end init_prd_tab;
3888: procedure chk_unit_sum(p_unit1_sum_value out nocopy number,
3889: p_unit2_sum_value out nocopy number,
3890: p_unit3_sum_value out nocopy number) as

Line 3894: hr_utility.set_location('entering'||l_proc,10);

3890: p_unit3_sum_value out nocopy number) as
3891: i number;
3892: l_proc varchar2(51) := g_package||'chk_unit_sum';
3893: begin
3894: hr_utility.set_location('entering'||l_proc,10);
3895: i := p_prd_unit_tab.first;
3896: if i is not null then
3897: loop
3898: p_unit1_sum_value := nvl(p_unit1_sum_value,0) + nvl(p_prd_unit_tab(i).unit1_value,0);

Line 3905: hr_utility.set_location('exiting'||l_proc,100);

3901: exit when i = p_prd_unit_tab.LAST;
3902: i := p_prd_unit_tab.NEXT(i);
3903: end loop;
3904: end if;
3905: hr_utility.set_location('exiting'||l_proc,100);
3906: exception when others then
3907: p_unit1_sum_value := null;
3908: p_unit2_sum_value := null;
3909: p_unit3_sum_value := null;

Line 3922: hr_utility.set_location('entering'||l_proc,10);

3918: l_unit3_sum_value number := 0;
3919: cnt number := 0;
3920: l_proc varchar2(51) := g_package||'chk_unit_avg';
3921: begin
3922: hr_utility.set_location('entering'||l_proc,10);
3923: chk_unit_sum( p_unit1_sum_value => l_unit1_sum_value,
3924: p_unit2_sum_value => l_unit2_sum_value,
3925: p_unit3_sum_value => l_unit3_sum_value);
3926: cnt := get_prdtab_count;

Line 3946: hr_utility.set_location('unit1_avg is'||p_unit1_avg_value||l_proc,100);

3942: p_unit2_avg_value := round(l_unit2_sum_value/cnt,2);
3943: p_unit3_avg_value := round(l_unit3_sum_value/cnt,2);
3944: end if;
3945: */
3946: hr_utility.set_location('unit1_avg is'||p_unit1_avg_value||l_proc,100);
3947: hr_utility.set_location('unit2_avg is'||p_unit2_avg_value||l_proc,110);
3948: hr_utility.set_location('unit3_avg is'||p_unit3_avg_value||l_proc,120);
3949: hr_utility.set_location('exit'||l_proc,130);
3950: exception

Line 3947: hr_utility.set_location('unit2_avg is'||p_unit2_avg_value||l_proc,110);

3943: p_unit3_avg_value := round(l_unit3_sum_value/cnt,2);
3944: end if;
3945: */
3946: hr_utility.set_location('unit1_avg is'||p_unit1_avg_value||l_proc,100);
3947: hr_utility.set_location('unit2_avg is'||p_unit2_avg_value||l_proc,110);
3948: hr_utility.set_location('unit3_avg is'||p_unit3_avg_value||l_proc,120);
3949: hr_utility.set_location('exit'||l_proc,130);
3950: exception
3951: when others then

Line 3948: hr_utility.set_location('unit3_avg is'||p_unit3_avg_value||l_proc,120);

3944: end if;
3945: */
3946: hr_utility.set_location('unit1_avg is'||p_unit1_avg_value||l_proc,100);
3947: hr_utility.set_location('unit2_avg is'||p_unit2_avg_value||l_proc,110);
3948: hr_utility.set_location('unit3_avg is'||p_unit3_avg_value||l_proc,120);
3949: hr_utility.set_location('exit'||l_proc,130);
3950: exception
3951: when others then
3952: hr_utility.set_location('errors in calculating average'||l_proc,200);

Line 3949: hr_utility.set_location('exit'||l_proc,130);

3945: */
3946: hr_utility.set_location('unit1_avg is'||p_unit1_avg_value||l_proc,100);
3947: hr_utility.set_location('unit2_avg is'||p_unit2_avg_value||l_proc,110);
3948: hr_utility.set_location('unit3_avg is'||p_unit3_avg_value||l_proc,120);
3949: hr_utility.set_location('exit'||l_proc,130);
3950: exception
3951: when others then
3952: hr_utility.set_location('errors in calculating average'||l_proc,200);
3953: p_unit1_avg_value := null;

Line 3952: hr_utility.set_location('errors in calculating average'||l_proc,200);

3948: hr_utility.set_location('unit3_avg is'||p_unit3_avg_value||l_proc,120);
3949: hr_utility.set_location('exit'||l_proc,130);
3950: exception
3951: when others then
3952: hr_utility.set_location('errors in calculating average'||l_proc,200);
3953: p_unit1_avg_value := null;
3954: p_unit2_avg_value := null;
3955: p_unit3_avg_value := null;
3956: raise;

Line 3967: hr_utility.set_location('entering'||l_proc,10);

3963: l_unit2_max_value number := 0;
3964: l_unit3_max_value number := 0;
3965: l_proc varchar2(51) := g_package||'chk_unit_max';
3966: begin
3967: hr_utility.set_location('entering'||l_proc,10);
3968: i := p_prd_unit_tab.first;
3969: if i is not null then
3970: loop
3971: if nvl(p_prd_unit_tab(i).unit1_value,0) > nvl(l_unit1_max_value,0) then

Line 3987: hr_utility.set_location('unit1_max is'||l_unit1_max_value||l_proc,100);

3983: end if;
3984: p_unit1_max_value := l_unit1_max_value;
3985: p_unit2_max_value := l_unit2_max_value;
3986: p_unit3_max_value := l_unit3_max_value;
3987: hr_utility.set_location('unit1_max is'||l_unit1_max_value||l_proc,100);
3988: hr_utility.set_location('unit2_max is'||l_unit2_max_value||l_proc,100);
3989: hr_utility.set_location('unit3_max is'||l_unit3_max_value||l_proc,100);
3990: hr_utility.set_location('exit'||l_proc,100);
3991: exception when others then

Line 3988: hr_utility.set_location('unit2_max is'||l_unit2_max_value||l_proc,100);

3984: p_unit1_max_value := l_unit1_max_value;
3985: p_unit2_max_value := l_unit2_max_value;
3986: p_unit3_max_value := l_unit3_max_value;
3987: hr_utility.set_location('unit1_max is'||l_unit1_max_value||l_proc,100);
3988: hr_utility.set_location('unit2_max is'||l_unit2_max_value||l_proc,100);
3989: hr_utility.set_location('unit3_max is'||l_unit3_max_value||l_proc,100);
3990: hr_utility.set_location('exit'||l_proc,100);
3991: exception when others then
3992: p_unit1_max_value := null;

Line 3989: hr_utility.set_location('unit3_max is'||l_unit3_max_value||l_proc,100);

3985: p_unit2_max_value := l_unit2_max_value;
3986: p_unit3_max_value := l_unit3_max_value;
3987: hr_utility.set_location('unit1_max is'||l_unit1_max_value||l_proc,100);
3988: hr_utility.set_location('unit2_max is'||l_unit2_max_value||l_proc,100);
3989: hr_utility.set_location('unit3_max is'||l_unit3_max_value||l_proc,100);
3990: hr_utility.set_location('exit'||l_proc,100);
3991: exception when others then
3992: p_unit1_max_value := null;
3993: p_unit2_max_value := null;

Line 3990: hr_utility.set_location('exit'||l_proc,100);

3986: p_unit3_max_value := l_unit3_max_value;
3987: hr_utility.set_location('unit1_max is'||l_unit1_max_value||l_proc,100);
3988: hr_utility.set_location('unit2_max is'||l_unit2_max_value||l_proc,100);
3989: hr_utility.set_location('unit3_max is'||l_unit3_max_value||l_proc,100);
3990: hr_utility.set_location('exit'||l_proc,100);
3991: exception when others then
3992: p_unit1_max_value := null;
3993: p_unit2_max_value := null;
3994: p_unit3_max_value := null;

Line 4012: hr_utility.set_location('entering'||l_proc,10);

4008: /*
4009: if the agregate is accumulate, then the value is added to the total in first period
4010: else the value is added in each period which lies between the start date and end date inputted
4011: */
4012: hr_utility.set_location('entering'||l_proc,10);
4013: i := p_prd_unit_tab.first;
4014: if i is not null then
4015: loop
4016: hr_utility.set_location('calendar start_date '||to_char(p_prd_unit_tab(i).start_date,'mm/dd/RRRR')||l_proc,15);

Line 4016: hr_utility.set_location('calendar start_date '||to_char(p_prd_unit_tab(i).start_date,'mm/dd/RRRR')||l_proc,15);

4012: hr_utility.set_location('entering'||l_proc,10);
4013: i := p_prd_unit_tab.first;
4014: if i is not null then
4015: loop
4016: hr_utility.set_location('calendar start_date '||to_char(p_prd_unit_tab(i).start_date,'mm/dd/RRRR')||l_proc,15);
4017: if p_prd_unit_tab(i).start_date = p_prd_start_date then
4018: hr_utility.set_location('prd_start_date is equal to calendar'||l_proc,10);
4019: if p_unit1_aggregate = 'ACCUMULATE' then
4020: hr_utility.set_location('unit1 is Sum '||l_proc,20);

Line 4018: hr_utility.set_location('prd_start_date is equal to calendar'||l_proc,10);

4014: if i is not null then
4015: loop
4016: hr_utility.set_location('calendar start_date '||to_char(p_prd_unit_tab(i).start_date,'mm/dd/RRRR')||l_proc,15);
4017: if p_prd_unit_tab(i).start_date = p_prd_start_date then
4018: hr_utility.set_location('prd_start_date is equal to calendar'||l_proc,10);
4019: if p_unit1_aggregate = 'ACCUMULATE' then
4020: hr_utility.set_location('unit1 is Sum '||l_proc,20);
4021: p_prd_unit_tab(i).unit1_value := nvl(p_prd_unit_tab(i).unit1_value,0) + nvl(p_prd_unit1_value,0);
4022: end if;

Line 4020: hr_utility.set_location('unit1 is Sum '||l_proc,20);

4016: hr_utility.set_location('calendar start_date '||to_char(p_prd_unit_tab(i).start_date,'mm/dd/RRRR')||l_proc,15);
4017: if p_prd_unit_tab(i).start_date = p_prd_start_date then
4018: hr_utility.set_location('prd_start_date is equal to calendar'||l_proc,10);
4019: if p_unit1_aggregate = 'ACCUMULATE' then
4020: hr_utility.set_location('unit1 is Sum '||l_proc,20);
4021: p_prd_unit_tab(i).unit1_value := nvl(p_prd_unit_tab(i).unit1_value,0) + nvl(p_prd_unit1_value,0);
4022: end if;
4023: if p_unit2_aggregate ='ACCUMULATE' then
4024: hr_utility.set_location('unit2 is Sum '||l_proc,30);

Line 4024: hr_utility.set_location('unit2 is Sum '||l_proc,30);

4020: hr_utility.set_location('unit1 is Sum '||l_proc,20);
4021: p_prd_unit_tab(i).unit1_value := nvl(p_prd_unit_tab(i).unit1_value,0) + nvl(p_prd_unit1_value,0);
4022: end if;
4023: if p_unit2_aggregate ='ACCUMULATE' then
4024: hr_utility.set_location('unit2 is Sum '||l_proc,30);
4025: p_prd_unit_tab(i).unit2_value := nvl(p_prd_unit_tab(i).unit2_value,0) + nvl(p_prd_unit2_value,0);
4026: end if;
4027: if p_unit3_aggregate ='ACCUMULATE' then
4028: hr_utility.set_location('unit3 is Sum '||l_proc,40);

Line 4028: hr_utility.set_location('unit3 is Sum '||l_proc,40);

4024: hr_utility.set_location('unit2 is Sum '||l_proc,30);
4025: p_prd_unit_tab(i).unit2_value := nvl(p_prd_unit_tab(i).unit2_value,0) + nvl(p_prd_unit2_value,0);
4026: end if;
4027: if p_unit3_aggregate ='ACCUMULATE' then
4028: hr_utility.set_location('unit3 is Sum '||l_proc,40);
4029: p_prd_unit_tab(i).unit3_value := nvl(p_prd_unit_tab(i).unit3_value,0) + nvl(p_prd_unit3_value,0);
4030: end if;
4031: end if;
4032: if p_prd_unit_tab(i).start_date between p_prd_start_date and p_prd_end_date then

Line 4033: hr_utility.set_location('prd_start_date is between '||l_proc,10);

4029: p_prd_unit_tab(i).unit3_value := nvl(p_prd_unit_tab(i).unit3_value,0) + nvl(p_prd_unit3_value,0);
4030: end if;
4031: end if;
4032: if p_prd_unit_tab(i).start_date between p_prd_start_date and p_prd_end_date then
4033: hr_utility.set_location('prd_start_date is between '||l_proc,10);
4034: if p_unit1_aggregate in ('MAXIMUM','AVERAGE') then
4035: hr_utility.set_location('unit1 is '||p_unit1_aggregate||l_proc,40);
4036: p_prd_unit_tab(i).unit1_value := nvl(p_prd_unit_tab(i).unit1_value,0) + nvl(p_prd_unit1_value,0);
4037: end if;

Line 4035: hr_utility.set_location('unit1 is '||p_unit1_aggregate||l_proc,40);

4031: end if;
4032: if p_prd_unit_tab(i).start_date between p_prd_start_date and p_prd_end_date then
4033: hr_utility.set_location('prd_start_date is between '||l_proc,10);
4034: if p_unit1_aggregate in ('MAXIMUM','AVERAGE') then
4035: hr_utility.set_location('unit1 is '||p_unit1_aggregate||l_proc,40);
4036: p_prd_unit_tab(i).unit1_value := nvl(p_prd_unit_tab(i).unit1_value,0) + nvl(p_prd_unit1_value,0);
4037: end if;
4038: if p_unit2_aggregate in ('MAXIMUM','AVERAGE') then
4039: hr_utility.set_location('unit2 is '||p_unit2_aggregate||l_proc,40);

Line 4039: hr_utility.set_location('unit2 is '||p_unit2_aggregate||l_proc,40);

4035: hr_utility.set_location('unit1 is '||p_unit1_aggregate||l_proc,40);
4036: p_prd_unit_tab(i).unit1_value := nvl(p_prd_unit_tab(i).unit1_value,0) + nvl(p_prd_unit1_value,0);
4037: end if;
4038: if p_unit2_aggregate in ('MAXIMUM','AVERAGE') then
4039: hr_utility.set_location('unit2 is '||p_unit2_aggregate||l_proc,40);
4040: p_prd_unit_tab(i).unit2_value := nvl(p_prd_unit_tab(i).unit2_value,0) + nvl(p_prd_unit2_value,0);
4041: end if;
4042: if p_unit3_aggregate in ('MAXIMUM','AVERAGE') then
4043: hr_utility.set_location('unit3 is '||p_unit3_aggregate||l_proc,40);

Line 4043: hr_utility.set_location('unit3 is '||p_unit3_aggregate||l_proc,40);

4039: hr_utility.set_location('unit2 is '||p_unit2_aggregate||l_proc,40);
4040: p_prd_unit_tab(i).unit2_value := nvl(p_prd_unit_tab(i).unit2_value,0) + nvl(p_prd_unit2_value,0);
4041: end if;
4042: if p_unit3_aggregate in ('MAXIMUM','AVERAGE') then
4043: hr_utility.set_location('unit3 is '||p_unit3_aggregate||l_proc,40);
4044: p_prd_unit_tab(i).unit3_value := nvl(p_prd_unit_tab(i).unit3_value,0) + nvl(p_prd_unit3_value,0);
4045: end if;
4046: end if;
4047: exit when i = p_prd_unit_tab.LAST;

Line 4051: hr_utility.set_location('exit'||l_proc,100);

4047: exit when i = p_prd_unit_tab.LAST;
4048: i := p_prd_unit_tab.NEXT(i);
4049: end loop;
4050: end if;
4051: hr_utility.set_location('exit'||l_proc,100);
4052: end add_prd;
4053: procedure sub_prd(p_prd_start_date in date,
4054: p_prd_end_date in date,
4055: p_unit1_aggregate in varchar2,

Line 4064: hr_utility.set_location('entering'||l_proc,10);

4060: p_prd_unit3_value in number ) as
4061: i number;
4062: l_proc varchar2(51) := g_package||'sub_prd';
4063: begin
4064: hr_utility.set_location('entering'||l_proc,10);
4065: i := p_prd_unit_tab.first;
4066: if i is not null then
4067: loop
4068: if p_prd_unit_tab(i).start_date = p_prd_start_date then

Line 4094: hr_utility.set_location('exit'||l_proc,100);

4090: exit when i = p_prd_unit_tab.LAST;
4091: i := p_prd_unit_tab.NEXT(i);
4092: end loop;
4093: end if;
4094: hr_utility.set_location('exit'||l_proc,100);
4095: end sub_prd;
4096: procedure add_budgetrow(p_worksheet_detail_id in number,
4097: p_unit1_aggregate in varchar2,
4098: p_unit2_aggregate in varchar2,

Line 4110: hr_utility.set_location('entering'||l_proc,10);

4106: and prd.end_time_period_id = tpe.time_period_id;
4107: l_proc varchar2(51) := g_package||'add_budgetrow';
4108: l_budget_id number;
4109: begin
4110: hr_utility.set_location('entering'||l_proc,10);
4111: l_budget_id := pqh_wks_budget.get_wkd_budget(p_worksheet_detail_id => p_worksheet_detail_id);
4112: init_prd_tab(p_budget_id => l_budget_id);
4113: for i in c1 loop
4114: add_prd(p_prd_start_date => i.prd_start_date,

Line 4123: hr_utility.set_location('exit'||l_proc,100);

4119: p_prd_unit1_value => i.unit1_value,
4120: p_prd_unit2_value => i.unit2_value,
4121: p_prd_unit3_value => i.unit3_value);
4122: end loop;
4123: hr_utility.set_location('exit'||l_proc,100);
4124: end add_budgetrow;
4125: procedure sub_budgetrow(p_worksheet_detail_id in number,
4126: p_unit1_aggregate in varchar2,
4127: p_unit2_aggregate in varchar2,

Line 4138: hr_utility.set_location('entering'||l_proc,10);

4134: and prd.start_time_period_id = tps.time_period_id
4135: and prd.end_time_period_id = tpe.time_period_id;
4136: l_proc varchar2(51) := g_package||'sub_budgetrow';
4137: begin
4138: hr_utility.set_location('entering'||l_proc,10);
4139: for i in c1 loop
4140: sub_prd(p_prd_start_date => i.prd_start_date,
4141: p_prd_end_date => i.prd_end_date,
4142: p_unit1_aggregate => p_unit1_aggregate,

Line 4149: hr_utility.set_location('exit'||l_proc,100);

4145: p_prd_unit1_value => i.unit1_value,
4146: p_prd_unit2_value => i.unit2_value,
4147: p_prd_unit3_value => i.unit3_value);
4148: end loop;
4149: hr_utility.set_location('exit'||l_proc,100);
4150: end sub_budgetrow;
4151:
4152: procedure add_budgetrow(p_budget_detail_id in number,
4153: p_unit1_aggregate in varchar2,

Line 4166: hr_utility.set_location('entering'||l_proc,10);

4162: and prd.end_time_period_id = tpe.time_period_id;
4163: l_proc varchar2(51) := g_package||'add_budgetrow';
4164: l_budget_id number;
4165: begin
4166: hr_utility.set_location('entering'||l_proc,10);
4167: l_budget_id := pqh_wks_budget.get_bgd_budget(p_budget_detail_id => p_budget_detail_id);
4168: init_prd_tab(p_budget_id => l_budget_id);
4169: for i in c1 loop
4170: add_prd(p_prd_start_date => i.prd_start_date,

Line 4179: hr_utility.set_location('exit'||l_proc,100);

4175: p_prd_unit1_value => i.unit1_value,
4176: p_prd_unit2_value => i.unit2_value,
4177: p_prd_unit3_value => i.unit3_value);
4178: end loop;
4179: hr_utility.set_location('exit'||l_proc,100);
4180: end add_budgetrow;
4181: procedure sub_budgetrow(p_budget_detail_id in number,
4182: p_unit1_aggregate in varchar2,
4183: p_unit2_aggregate in varchar2,

Line 4194: hr_utility.set_location('entering'||l_proc,10);

4190: and prd.start_time_period_id = tps.time_period_id
4191: and prd.end_time_period_id = tpe.time_period_id;
4192: l_proc varchar2(51) := g_package||'sub_budgetrow';
4193: begin
4194: hr_utility.set_location('entering'||l_proc,10);
4195: for i in c1 loop
4196: sub_prd(p_prd_start_date => i.prd_start_date,
4197: p_prd_end_date => i.prd_end_date,
4198: p_unit1_aggregate => p_unit1_aggregate,

Line 4205: hr_utility.set_location('exit'||l_proc,100);

4201: p_prd_unit1_value => i.unit1_value,
4202: p_prd_unit2_value => i.unit2_value,
4203: p_prd_unit3_value => i.unit3_value);
4204: end loop;
4205: hr_utility.set_location('exit'||l_proc,100);
4206: end sub_budgetrow;
4207:
4208: PROCEDURE bgt_chg_bgt_available(p_unit1_aggregate in varchar2,
4209: p_unit2_aggregate in varchar2,

Line 4234: hr_utility.set_location('entering'||l_proc,10);

4230: l_unit2_available number := p_unit2_available;
4231: l_unit3_available number := p_unit3_available;
4232: l_proc varchar2(51) := g_package||'bgt_chg_bgt_available';
4233: BEGIN
4234: hr_utility.set_location('entering'||l_proc,10);
4235: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
4236: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4237: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);

Line 4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);

4234: hr_utility.set_location('entering'||l_proc,10);
4235: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
4236: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4237: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);

Line 4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);

4235: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
4236: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4237: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);

Line 4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);

4236: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4237: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);

Line 4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);

4237: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);

Line 4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);

4238: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4246: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);

Line 4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);

4239: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4246: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4247: if p_unit1_aggregate ='MAXIMUM' then

Line 4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);

4240: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4246: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4247: if p_unit1_aggregate ='MAXIMUM' then
4248: p_unit1_available := round(nvl(p_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);

Line 4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);

4241: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4246: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4247: if p_unit1_aggregate ='MAXIMUM' then
4248: p_unit1_available := round(nvl(p_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);
4249: elsif p_unit1_aggregate = 'AVERAGE' then

Line 4246: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);

4242: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4243: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4244: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4245: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4246: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4247: if p_unit1_aggregate ='MAXIMUM' then
4248: p_unit1_available := round(nvl(p_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);
4249: elsif p_unit1_aggregate = 'AVERAGE' then
4250: p_unit1_available := round(nvl(p_unit1_value,0) - nvl(l_unit1_avg,0),p_unit1_precision);

Line 4268: hr_utility.set_location('exiting '||l_proc,150);

4264: p_unit3_available := round(nvl(p_unit3_value,0) - nvl(l_unit3_avg,0),p_unit3_precision);
4265: else
4266: p_unit3_available := round(nvl(p_unit3_value,0) - nvl(l_unit3_sum,0),p_unit3_precision);
4267: end if;
4268: hr_utility.set_location('exiting '||l_proc,150);
4269: exception when others then
4270: p_unit1_available := l_unit1_available;
4271: p_unit2_available := l_unit2_available;
4272: p_unit3_available := l_unit3_available;

Line 4306: hr_utility.set_location('entering'||l_proc,10);

4302: l_unit2_available number := p_unit2_available;
4303: l_unit3_available number := p_unit3_available;
4304: l_proc varchar2(51) := g_package||'prd_chg_bgt_available';
4305: BEGIN
4306: hr_utility.set_location('entering'||l_proc,10);
4307: if p_prd_start_date is not null and p_prd_end_date is not null then
4308: add_prd(p_prd_start_date => p_prd_start_date,
4309: p_prd_end_date => p_prd_end_date,
4310: p_unit1_aggregate => p_unit1_aggregate,

Line 4319: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);

4315: p_prd_unit3_value => p_unit3_value);
4316: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
4317: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4318: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4319: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);

Line 4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);

4316: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
4317: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4318: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4319: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);

Line 4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);

4317: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
4318: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4319: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);

Line 4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);

4318: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
4319: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);

Line 4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);

4319: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4327: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);

Line 4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);

4320: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4327: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4328: if p_unit1_aggregate ='MAXIMUM' then

Line 4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);

4321: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4327: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4328: if p_unit1_aggregate ='MAXIMUM' then
4329: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);

Line 4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);

4322: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4327: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4328: if p_unit1_aggregate ='MAXIMUM' then
4329: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);
4330: elsif p_unit1_aggregate = 'AVERAGE' then

Line 4327: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);

4323: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
4324: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
4325: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
4326: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
4327: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
4328: if p_unit1_aggregate ='MAXIMUM' then
4329: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);
4330: elsif p_unit1_aggregate = 'AVERAGE' then
4331: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_avg,0),p_unit1_precision);

Line 4357: hr_utility.set_location('available max '||p_unit1_available||l_proc,60);

4353: p_unit3_aggregate => p_unit3_aggregate,
4354: p_prd_unit1_value => p_unit1_value,
4355: p_prd_unit2_value => p_unit2_value,
4356: p_prd_unit3_value => p_unit3_value);
4357: hr_utility.set_location('available max '||p_unit1_available||l_proc,60);
4358: end if;
4359: hr_utility.set_location('exiting '||l_proc,150);
4360: exception when others then
4361: p_unit1_available := l_unit1_available;

Line 4359: hr_utility.set_location('exiting '||l_proc,150);

4355: p_prd_unit2_value => p_unit2_value,
4356: p_prd_unit3_value => p_unit3_value);
4357: hr_utility.set_location('available max '||p_unit1_available||l_proc,60);
4358: end if;
4359: hr_utility.set_location('exiting '||l_proc,150);
4360: exception when others then
4361: p_unit1_available := l_unit1_available;
4362: p_unit2_available := l_unit2_available;
4363: p_unit3_available := l_unit3_available;

Line 4494: hr_utility.set_location('entering'||l_proc,10);

4490: ) as
4491: l_proc varchar2(61) := g_package||'Update_wkd';
4492: l_object_version_number number := p_object_version_number;
4493: begin
4494: hr_utility.set_location('entering'||l_proc,10);
4495: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,11);
4496: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,12);
4497: pqh_worksheet_details_api.update_worksheet_detail(
4498: p_validate => FALSE

Line 4495: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,11);

4491: l_proc varchar2(61) := g_package||'Update_wkd';
4492: l_object_version_number number := p_object_version_number;
4493: begin
4494: hr_utility.set_location('entering'||l_proc,10);
4495: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,11);
4496: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,12);
4497: pqh_worksheet_details_api.update_worksheet_detail(
4498: p_validate => FALSE
4499: ,p_worksheet_detail_id => p_worksheet_detail_id

Line 4496: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,12);

4492: l_object_version_number number := p_object_version_number;
4493: begin
4494: hr_utility.set_location('entering'||l_proc,10);
4495: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,11);
4496: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,12);
4497: pqh_worksheet_details_api.update_worksheet_detail(
4498: p_validate => FALSE
4499: ,p_worksheet_detail_id => p_worksheet_detail_id
4500: ,p_worksheet_id => p_worksheet_id

Line 4531: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,20);

4527: ,p_object_version_number => p_object_version_number
4528: ,p_effective_date => trunc(sysdate)
4529: ,p_propagation_method => p_propagation_method
4530: );
4531: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,20);
4532: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,30);
4533: hr_utility.set_location('exiting'||l_proc,100);
4534: exception when others then
4535: p_object_version_number := l_object_version_number;

Line 4532: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,30);

4528: ,p_effective_date => trunc(sysdate)
4529: ,p_propagation_method => p_propagation_method
4530: );
4531: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,20);
4532: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,30);
4533: hr_utility.set_location('exiting'||l_proc,100);
4534: exception when others then
4535: p_object_version_number := l_object_version_number;
4536: raise;

Line 4533: hr_utility.set_location('exiting'||l_proc,100);

4529: ,p_propagation_method => p_propagation_method
4530: );
4531: hr_utility.set_location('wkd id is'||p_worksheet_detail_id||l_proc,20);
4532: hr_utility.set_location('ovn is'||p_object_version_number||l_proc,30);
4533: hr_utility.set_location('exiting'||l_proc,100);
4534: exception when others then
4535: p_object_version_number := l_object_version_number;
4536: raise;
4537: end update_worksheet_detail;

Line 4565: hr_utility.set_location('inside '||l_proc,10);

4561: call to copy_budget_details is to be made.
4562: update worksheet_detail for available figures.
4563: end if;
4564: */
4565: hr_utility.set_location('inside '||l_proc,10);
4566: hr_utility.set_location('called with copy_budget_periods '||p_copy_budget_periods||l_proc,15);
4567: if nvl(p_copy_budget_periods,'X') = 'Y' then
4568: hr_utility.set_location('going to copy prds from bud_det'||p_budget_detail_id||l_proc,20);
4569: hr_utility.set_location('going to copy prds to wks_det'||p_worksheet_detail_id||l_proc,30);

Line 4566: hr_utility.set_location('called with copy_budget_periods '||p_copy_budget_periods||l_proc,15);

4562: update worksheet_detail for available figures.
4563: end if;
4564: */
4565: hr_utility.set_location('inside '||l_proc,10);
4566: hr_utility.set_location('called with copy_budget_periods '||p_copy_budget_periods||l_proc,15);
4567: if nvl(p_copy_budget_periods,'X') = 'Y' then
4568: hr_utility.set_location('going to copy prds from bud_det'||p_budget_detail_id||l_proc,20);
4569: hr_utility.set_location('going to copy prds to wks_det'||p_worksheet_detail_id||l_proc,30);
4570: pqh_wks_budget.get_wkd_unit_aggregate(p_worksheet_detail_id => p_worksheet_detail_id,

Line 4568: hr_utility.set_location('going to copy prds from bud_det'||p_budget_detail_id||l_proc,20);

4564: */
4565: hr_utility.set_location('inside '||l_proc,10);
4566: hr_utility.set_location('called with copy_budget_periods '||p_copy_budget_periods||l_proc,15);
4567: if nvl(p_copy_budget_periods,'X') = 'Y' then
4568: hr_utility.set_location('going to copy prds from bud_det'||p_budget_detail_id||l_proc,20);
4569: hr_utility.set_location('going to copy prds to wks_det'||p_worksheet_detail_id||l_proc,30);
4570: pqh_wks_budget.get_wkd_unit_aggregate(p_worksheet_detail_id => p_worksheet_detail_id,
4571: p_unit1_aggregate => l_unit1_aggregate,
4572: p_unit2_aggregate => l_unit2_aggregate,

Line 4569: hr_utility.set_location('going to copy prds to wks_det'||p_worksheet_detail_id||l_proc,30);

4565: hr_utility.set_location('inside '||l_proc,10);
4566: hr_utility.set_location('called with copy_budget_periods '||p_copy_budget_periods||l_proc,15);
4567: if nvl(p_copy_budget_periods,'X') = 'Y' then
4568: hr_utility.set_location('going to copy prds from bud_det'||p_budget_detail_id||l_proc,20);
4569: hr_utility.set_location('going to copy prds to wks_det'||p_worksheet_detail_id||l_proc,30);
4570: pqh_wks_budget.get_wkd_unit_aggregate(p_worksheet_detail_id => p_worksheet_detail_id,
4571: p_unit1_aggregate => l_unit1_aggregate,
4572: p_unit2_aggregate => l_unit2_aggregate,
4573: p_unit3_aggregate => l_unit3_aggregate);

Line 4578: hr_utility.set_location('unit aggregate fetched'||l_proc,40);

4574: pqh_wks_budget.get_wkd_unit_precision(p_worksheet_detail_id => p_worksheet_detail_id,
4575: p_unit1_precision => l_unit1_precision,
4576: p_unit2_precision => l_unit2_precision,
4577: p_unit3_precision => l_unit3_precision);
4578: hr_utility.set_location('unit aggregate fetched'||l_proc,40);
4579: l_budget_unit1_available := p_budget_unit1_value;
4580: l_budget_unit2_available := p_budget_unit2_value;
4581: l_budget_unit3_available := p_budget_unit3_value;
4582: hr_utility.set_location('going to copy_budget_details'||l_proc,50);

Line 4582: hr_utility.set_location('going to copy_budget_details'||l_proc,50);

4578: hr_utility.set_location('unit aggregate fetched'||l_proc,40);
4579: l_budget_unit1_available := p_budget_unit1_value;
4580: l_budget_unit2_available := p_budget_unit2_value;
4581: l_budget_unit3_available := p_budget_unit3_value;
4582: hr_utility.set_location('going to copy_budget_details'||l_proc,50);
4583: copy_budget_details(p_budget_detail_id => p_budget_detail_id,
4584: p_worksheet_detail_id => p_worksheet_detail_id,
4585: p_unit1_aggregate => l_unit1_aggregate,
4586: p_unit2_aggregate => l_unit2_aggregate,

Line 4597: hr_utility.set_location('after copy_budget_details'||l_proc,60);

4593: p_budget_unit3_value => p_budget_unit3_value,
4594: p_budget_unit1_available => l_budget_unit1_available,
4595: p_budget_unit2_available => l_budget_unit2_available,
4596: p_budget_unit3_available => l_budget_unit3_available);
4597: hr_utility.set_location('after copy_budget_details'||l_proc,60);
4598: hr_utility.set_location('going for update_wkd with ovn'||l_object_version_number||l_proc,70);
4599: update_worksheet_detail(
4600: p_worksheet_detail_id => p_worksheet_detail_id,
4601: p_effective_date => trunc(sysdate),

Line 4598: hr_utility.set_location('going for update_wkd with ovn'||l_object_version_number||l_proc,70);

4594: p_budget_unit1_available => l_budget_unit1_available,
4595: p_budget_unit2_available => l_budget_unit2_available,
4596: p_budget_unit3_available => l_budget_unit3_available);
4597: hr_utility.set_location('after copy_budget_details'||l_proc,60);
4598: hr_utility.set_location('going for update_wkd with ovn'||l_object_version_number||l_proc,70);
4599: update_worksheet_detail(
4600: p_worksheet_detail_id => p_worksheet_detail_id,
4601: p_effective_date => trunc(sysdate),
4602: p_object_version_number => l_object_version_number,

Line 4607: hr_utility.set_location('after update_wkd with ovn'||l_object_version_number||l_proc,80);

4603: p_budget_unit1_available => l_budget_unit1_available,
4604: p_budget_unit2_available => l_budget_unit2_available,
4605: p_budget_unit3_available => l_budget_unit3_available
4606: );
4607: hr_utility.set_location('after update_wkd with ovn'||l_object_version_number||l_proc,80);
4608: end if;
4609: hr_utility.set_location('exiting'||l_proc,100);
4610: end copy_budget_periods;
4611:

Line 4609: hr_utility.set_location('exiting'||l_proc,100);

4605: p_budget_unit3_available => l_budget_unit3_available
4606: );
4607: hr_utility.set_location('after update_wkd with ovn'||l_object_version_number||l_proc,80);
4608: end if;
4609: hr_utility.set_location('exiting'||l_proc,100);
4610: end copy_budget_periods;
4611:
4612: /*
4613: This copy budget_details is called from insert-from_budget procedure when copy_budget_periods is enable

Line 4645: hr_utility.set_location('entering '||l_proc,10);

4641: l_count number ;
4642: l_object_version_number number;
4643: l_proc varchar2(100) := g_package||'copy_budget_details' ;
4644: begin
4645: hr_utility.set_location('entering '||l_proc,10);
4646: select count(*) into l_count
4647: from pqh_worksheet_periods where worksheet_detail_id = p_worksheet_detail_id;
4648: if l_count = 0 then
4649: hr_utility.set_location('no periods found '||l_proc,20);

Line 4649: hr_utility.set_location('no periods found '||l_proc,20);

4645: hr_utility.set_location('entering '||l_proc,10);
4646: select count(*) into l_count
4647: from pqh_worksheet_periods where worksheet_detail_id = p_worksheet_detail_id;
4648: if l_count = 0 then
4649: hr_utility.set_location('no periods found '||l_proc,20);
4650: for i in c1(p_budget_detail_id) loop
4651: hr_utility.set_location('for each budget_detail '||l_proc,30);
4652: pqh_worksheet_periods_api.create_worksheet_period(
4653: p_validate => FALSE

Line 4651: hr_utility.set_location('for each budget_detail '||l_proc,30);

4647: from pqh_worksheet_periods where worksheet_detail_id = p_worksheet_detail_id;
4648: if l_count = 0 then
4649: hr_utility.set_location('no periods found '||l_proc,20);
4650: for i in c1(p_budget_detail_id) loop
4651: hr_utility.set_location('for each budget_detail '||l_proc,30);
4652: pqh_worksheet_periods_api.create_worksheet_period(
4653: p_validate => FALSE
4654: ,p_effective_date => trunc(sysdate)
4655: ,p_worksheet_detail_id => p_worksheet_detail_id

Line 4661: hr_utility.set_location('period inserted '||l_proc,37);

4657: ,p_start_time_period_id => i.start_time_period_id
4658: ,p_end_time_period_id => i.end_time_period_id
4659: ,p_object_version_number => l_object_version_number
4660: );
4661: hr_utility.set_location('period inserted '||l_proc,37);
4662: for j in c2(i.budget_period_id) loop
4663: hr_utility.set_location('for each period '||l_proc,40);
4664: pqh_worksheet_budget_sets_api.create_worksheet_budget_set(
4665: p_validate => FALSE

Line 4663: hr_utility.set_location('for each period '||l_proc,40);

4659: ,p_object_version_number => l_object_version_number
4660: );
4661: hr_utility.set_location('period inserted '||l_proc,37);
4662: for j in c2(i.budget_period_id) loop
4663: hr_utility.set_location('for each period '||l_proc,40);
4664: pqh_worksheet_budget_sets_api.create_worksheet_budget_set(
4665: p_validate => FALSE
4666: ,p_effective_date => trunc(sysdate)
4667: ,p_worksheet_budget_set_id => l_worksheet_budget_set_id

Line 4673: hr_utility.set_location('for each budgetset '||l_proc,50);

4669: ,p_dflt_budget_set_id => j.dflt_budget_set_id
4670: ,p_object_version_number => l_object_version_number
4671: );
4672: for k in c3(j.budget_set_id) loop
4673: hr_utility.set_location('for each budgetset '||l_proc,50);
4674: pqh_worksheet_bdgt_elmnts_api.create_worksheet_bdgt_elmnt(
4675: p_validate => FALSE
4676: ,p_worksheet_budget_set_id => l_worksheet_budget_set_id
4677: ,p_worksheet_bdgt_elmnt_id => l_worksheet_bdgt_elmnt_id

Line 4683: hr_utility.set_location('for each budget_element '||l_proc,60);

4679: ,p_object_version_number => l_object_version_number
4680: ,p_distribution_percentage => k.distribution_percentage
4681: );
4682: for l in c4(k.budget_element_id) loop
4683: hr_utility.set_location('for each budget_element '||l_proc,60);
4684: pqh_worksheet_fund_srcs_api.create_worksheet_fund_src(
4685: p_validate => FALSE
4686: ,p_worksheet_fund_src_id => l_worksheet_fund_src_id
4687: ,p_worksheet_bdgt_elmnt_id => l_worksheet_bdgt_elmnt_id

Line 4697: hr_utility.set_location('exiting '||l_proc,150);

4693: end loop;
4694: end loop;
4695: end loop;
4696: end if;
4697: hr_utility.set_location('exiting '||l_proc,150);
4698: end copy_budget_details;
4699:
4700: /*
4701: procedure which only copies the budget details and values are left blank

Line 4764: hr_utility.set_location('entering '||l_proc,10);

4760: l_rows_inserted number := 0;
4761: l_proc varchar2(100) := g_package||'insert_from_budget' ;
4762: l_worksheet_detail_id number;
4763: begin
4764: hr_utility.set_location('entering '||l_proc,10);
4765: -- available is made equal to value as periods and details are not fetched for the time being.
4766: -- percent calc using the worksheet values and the existing budget values will create problem when the difference
4767: -- in worksheet value and version value is there.
4768: -- so it is decidied that instead of keeping the value same, we will keep the % same and compute the value.

Line 4773: hr_utility.set_location('budget entity is Position '||l_proc,20);

4769: -- but for bottom_up budget % is not entered or computed, so this procedure is to be overloaded so that only
4770: -- the details are copied and not the values
4771:
4772: if p_budgeted_entity_cd = 'POSITION' then
4773: hr_utility.set_location('budget entity is Position '||l_proc,20);
4774: if p_org_hier_ver is null then
4775: hr_utility.set_location('org hier is null using BG '||l_proc,30);
4776: for i in c1 loop
4777: l_rows_inserted := l_rows_inserted + 1;

Line 4775: hr_utility.set_location('org hier is null using BG '||l_proc,30);

4771:
4772: if p_budgeted_entity_cd = 'POSITION' then
4773: hr_utility.set_location('budget entity is Position '||l_proc,20);
4774: if p_org_hier_ver is null then
4775: hr_utility.set_location('org hier is null using BG '||l_proc,30);
4776: for i in c1 loop
4777: l_rows_inserted := l_rows_inserted + 1;
4778: hr_utility.set_location('inserting into plsql table'||l_proc,70);
4779: pqh_budget.insert_pos_is_bud(i.position_id);

Line 4778: hr_utility.set_location('inserting into plsql table'||l_proc,70);

4774: if p_org_hier_ver is null then
4775: hr_utility.set_location('org hier is null using BG '||l_proc,30);
4776: for i in c1 loop
4777: l_rows_inserted := l_rows_inserted + 1;
4778: hr_utility.set_location('inserting into plsql table'||l_proc,70);
4779: pqh_budget.insert_pos_is_bud(i.position_id);
4780: hr_utility.set_location('inserting into worksheet_detail table'||l_proc,80);
4781: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id
4782: ,p_worksheet_id => p_worksheet_id

Line 4780: hr_utility.set_location('inserting into worksheet_detail table'||l_proc,80);

4776: for i in c1 loop
4777: l_rows_inserted := l_rows_inserted + 1;
4778: hr_utility.set_location('inserting into plsql table'||l_proc,70);
4779: pqh_budget.insert_pos_is_bud(i.position_id);
4780: hr_utility.set_location('inserting into worksheet_detail table'||l_proc,80);
4781: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id
4782: ,p_worksheet_id => p_worksheet_id
4783: ,p_organization_id => i.organization_id
4784: ,p_job_id => i.job_id

Line 4793: hr_utility.set_location('insert worksheet_detail table complete'||l_proc,90);

4789: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4790: ,p_user_id => ''
4791: ,p_action_cd => 'B'
4792: ,p_copy_budget_periods => p_copy_budget_periods );
4793: hr_utility.set_location('insert worksheet_detail table complete'||l_proc,90);
4794: if nvl(p_copy_budget_periods,'X') = 'Y' then
4795: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4796: p_worksheet_detail_id => l_worksheet_detail_id) ;
4797: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4797: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4793: hr_utility.set_location('insert worksheet_detail table complete'||l_proc,90);
4794: if nvl(p_copy_budget_periods,'X') = 'Y' then
4795: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4796: p_worksheet_detail_id => l_worksheet_detail_id) ;
4797: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4798: end if;
4799: end loop;
4800: else
4801: hr_utility.set_location('using org hier '||l_proc,120);

Line 4801: hr_utility.set_location('using org hier '||l_proc,120);

4797: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4798: end if;
4799: end loop;
4800: else
4801: hr_utility.set_location('using org hier '||l_proc,120);
4802: hr_utility.set_location('before insert loop '||l_proc,135);
4803: for i in c2 loop
4804: hr_utility.set_location('inside insert loop '||l_proc,140);
4805: l_rows_inserted := l_rows_inserted + 1;

Line 4802: hr_utility.set_location('before insert loop '||l_proc,135);

4798: end if;
4799: end loop;
4800: else
4801: hr_utility.set_location('using org hier '||l_proc,120);
4802: hr_utility.set_location('before insert loop '||l_proc,135);
4803: for i in c2 loop
4804: hr_utility.set_location('inside insert loop '||l_proc,140);
4805: l_rows_inserted := l_rows_inserted + 1;
4806: hr_utility.set_location('going for insert '||l_proc,148);

Line 4804: hr_utility.set_location('inside insert loop '||l_proc,140);

4800: else
4801: hr_utility.set_location('using org hier '||l_proc,120);
4802: hr_utility.set_location('before insert loop '||l_proc,135);
4803: for i in c2 loop
4804: hr_utility.set_location('inside insert loop '||l_proc,140);
4805: l_rows_inserted := l_rows_inserted + 1;
4806: hr_utility.set_location('going for insert '||l_proc,148);
4807: pqh_budget.insert_pos_is_bud(i.position_id);
4808: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id

Line 4806: hr_utility.set_location('going for insert '||l_proc,148);

4802: hr_utility.set_location('before insert loop '||l_proc,135);
4803: for i in c2 loop
4804: hr_utility.set_location('inside insert loop '||l_proc,140);
4805: l_rows_inserted := l_rows_inserted + 1;
4806: hr_utility.set_location('going for insert '||l_proc,148);
4807: pqh_budget.insert_pos_is_bud(i.position_id);
4808: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id
4809: ,p_worksheet_id => p_worksheet_id
4810: ,p_organization_id => i.organization_id

Line 4820: hr_utility.set_location('row inserted going for period copy'||l_proc,150);

4816: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4817: ,p_user_id => ''
4818: ,p_action_cd => 'B'
4819: ,p_copy_budget_periods => p_copy_budget_periods );
4820: hr_utility.set_location('row inserted going for period copy'||l_proc,150);
4821: if nvl(p_copy_budget_periods,'X') = 'Y' then
4822: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4823: p_worksheet_detail_id => l_worksheet_detail_id) ;
4824: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4824: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4820: hr_utility.set_location('row inserted going for period copy'||l_proc,150);
4821: if nvl(p_copy_budget_periods,'X') = 'Y' then
4822: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4823: p_worksheet_detail_id => l_worksheet_detail_id) ;
4824: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4825: end if;
4826: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4827: end loop;
4828: end if;

Line 4826: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4822: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4823: p_worksheet_detail_id => l_worksheet_detail_id) ;
4824: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4825: end if;
4826: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4827: end loop;
4828: end if;
4829: elsif p_budgeted_entity_cd ='ORGANIZATION' then
4830: hr_utility.set_location('budget entity organization '||l_proc,160);

Line 4830: hr_utility.set_location('budget entity organization '||l_proc,160);

4826: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4827: end loop;
4828: end if;
4829: elsif p_budgeted_entity_cd ='ORGANIZATION' then
4830: hr_utility.set_location('budget entity organization '||l_proc,160);
4831: if p_org_hier_ver is null then
4832: hr_utility.set_location('org hier null using bg '||l_proc,170);
4833: hr_utility.set_location('before insert loop '||l_proc,190);
4834: for i in c3 loop

Line 4832: hr_utility.set_location('org hier null using bg '||l_proc,170);

4828: end if;
4829: elsif p_budgeted_entity_cd ='ORGANIZATION' then
4830: hr_utility.set_location('budget entity organization '||l_proc,160);
4831: if p_org_hier_ver is null then
4832: hr_utility.set_location('org hier null using bg '||l_proc,170);
4833: hr_utility.set_location('before insert loop '||l_proc,190);
4834: for i in c3 loop
4835: l_rows_inserted := l_rows_inserted + 1;
4836: pqh_budget.insert_org_is_bud(i.organization_id);

Line 4833: hr_utility.set_location('before insert loop '||l_proc,190);

4829: elsif p_budgeted_entity_cd ='ORGANIZATION' then
4830: hr_utility.set_location('budget entity organization '||l_proc,160);
4831: if p_org_hier_ver is null then
4832: hr_utility.set_location('org hier null using bg '||l_proc,170);
4833: hr_utility.set_location('before insert loop '||l_proc,190);
4834: for i in c3 loop
4835: l_rows_inserted := l_rows_inserted + 1;
4836: pqh_budget.insert_org_is_bud(i.organization_id);
4837: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id

Line 4849: hr_utility.set_location('after insert '||l_proc,200);

4845: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4846: ,p_user_id => ''
4847: ,p_action_cd => 'B'
4848: ,p_copy_budget_periods => p_copy_budget_periods );
4849: hr_utility.set_location('after insert '||l_proc,200);
4850: if nvl(p_copy_budget_periods,'X') = 'Y' then
4851: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4852: p_worksheet_detail_id => l_worksheet_detail_id) ;
4853: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4853: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4849: hr_utility.set_location('after insert '||l_proc,200);
4850: if nvl(p_copy_budget_periods,'X') = 'Y' then
4851: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4852: p_worksheet_detail_id => l_worksheet_detail_id) ;
4853: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4854: end if;
4855: end loop;
4856: else
4857: hr_utility.set_location('using org hier '||l_proc,210);

Line 4857: hr_utility.set_location('using org hier '||l_proc,210);

4853: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4854: end if;
4855: end loop;
4856: else
4857: hr_utility.set_location('using org hier '||l_proc,210);
4858: hr_utility.set_location('before insert loop '||l_proc,230);
4859: for i in c4 loop
4860: l_rows_inserted := l_rows_inserted + 1;
4861: pqh_budget.insert_org_is_bud(i.organization_id);

Line 4858: hr_utility.set_location('before insert loop '||l_proc,230);

4854: end if;
4855: end loop;
4856: else
4857: hr_utility.set_location('using org hier '||l_proc,210);
4858: hr_utility.set_location('before insert loop '||l_proc,230);
4859: for i in c4 loop
4860: l_rows_inserted := l_rows_inserted + 1;
4861: pqh_budget.insert_org_is_bud(i.organization_id);
4862: insert_worksheet_detail(p_worksheet_detail_id => l_worksheet_detail_id

Line 4874: hr_utility.set_location('after insert '||l_proc,240);

4870: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4871: ,p_user_id => ''
4872: ,p_action_cd => 'B'
4873: ,p_copy_budget_periods => p_copy_budget_periods );
4874: hr_utility.set_location('after insert '||l_proc,240);
4875: if nvl(p_copy_budget_periods,'X') = 'Y' then
4876: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4877: p_worksheet_detail_id => l_worksheet_detail_id) ;
4878: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4878: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4874: hr_utility.set_location('after insert '||l_proc,240);
4875: if nvl(p_copy_budget_periods,'X') = 'Y' then
4876: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4877: p_worksheet_detail_id => l_worksheet_detail_id) ;
4878: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4879: end if;
4880: end loop;
4881: end if;
4882: elsif p_budgeted_entity_cd ='JOB' then

Line 4883: hr_utility.set_location('budget entity job'||l_proc,260);

4879: end if;
4880: end loop;
4881: end if;
4882: elsif p_budgeted_entity_cd ='JOB' then
4883: hr_utility.set_location('budget entity job'||l_proc,260);
4884: hr_utility.set_location('before insert loop'||l_proc,270);
4885: for i in c5 loop
4886: l_rows_inserted := l_rows_inserted + 1;
4887: pqh_budget.insert_job_is_bud(i.job_id);

Line 4884: hr_utility.set_location('before insert loop'||l_proc,270);

4880: end loop;
4881: end if;
4882: elsif p_budgeted_entity_cd ='JOB' then
4883: hr_utility.set_location('budget entity job'||l_proc,260);
4884: hr_utility.set_location('before insert loop'||l_proc,270);
4885: for i in c5 loop
4886: l_rows_inserted := l_rows_inserted + 1;
4887: pqh_budget.insert_job_is_bud(i.job_id);
4888: insert_worksheet_detail

Line 4902: hr_utility.set_location('after insert '||l_proc,280);

4898: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4899: ,p_user_id => ''
4900: ,p_action_cd => 'B'
4901: ,p_copy_budget_periods => p_copy_budget_periods );
4902: hr_utility.set_location('after insert '||l_proc,280);
4903: hr_utility.set_location('after available change '||l_proc,290);
4904: if nvl(p_copy_budget_periods,'X') = 'Y' then
4905: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4906: p_worksheet_detail_id => l_worksheet_detail_id) ;

Line 4903: hr_utility.set_location('after available change '||l_proc,290);

4899: ,p_user_id => ''
4900: ,p_action_cd => 'B'
4901: ,p_copy_budget_periods => p_copy_budget_periods );
4902: hr_utility.set_location('after insert '||l_proc,280);
4903: hr_utility.set_location('after available change '||l_proc,290);
4904: if nvl(p_copy_budget_periods,'X') = 'Y' then
4905: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4906: p_worksheet_detail_id => l_worksheet_detail_id) ;
4907: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4907: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4903: hr_utility.set_location('after available change '||l_proc,290);
4904: if nvl(p_copy_budget_periods,'X') = 'Y' then
4905: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4906: p_worksheet_detail_id => l_worksheet_detail_id) ;
4907: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4908: end if;
4909: end loop;
4910: elsif p_budgeted_entity_cd ='GRADE' then
4911: hr_utility.set_location('budget entity grade'||l_proc,300);

Line 4911: hr_utility.set_location('budget entity grade'||l_proc,300);

4907: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4908: end if;
4909: end loop;
4910: elsif p_budgeted_entity_cd ='GRADE' then
4911: hr_utility.set_location('budget entity grade'||l_proc,300);
4912: hr_utility.set_location('before insert loop '||l_proc,310);
4913: for i in c6 loop
4914: l_rows_inserted := l_rows_inserted + 1;
4915: pqh_budget.insert_grd_is_bud(i.grade_id);

Line 4912: hr_utility.set_location('before insert loop '||l_proc,310);

4908: end if;
4909: end loop;
4910: elsif p_budgeted_entity_cd ='GRADE' then
4911: hr_utility.set_location('budget entity grade'||l_proc,300);
4912: hr_utility.set_location('before insert loop '||l_proc,310);
4913: for i in c6 loop
4914: l_rows_inserted := l_rows_inserted + 1;
4915: pqh_budget.insert_grd_is_bud(i.grade_id);
4916: insert_worksheet_detail

Line 4930: hr_utility.set_location('after insert '||l_proc,320);

4926: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4927: ,p_user_id => ''
4928: ,p_action_cd => 'B'
4929: ,p_copy_budget_periods => p_copy_budget_periods );
4930: hr_utility.set_location('after insert '||l_proc,320);
4931: hr_utility.set_location('after available change '||l_proc,330);
4932: if nvl(p_copy_budget_periods,'X') = 'Y' then
4933: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4934: p_worksheet_detail_id => l_worksheet_detail_id) ;

Line 4931: hr_utility.set_location('after available change '||l_proc,330);

4927: ,p_user_id => ''
4928: ,p_action_cd => 'B'
4929: ,p_copy_budget_periods => p_copy_budget_periods );
4930: hr_utility.set_location('after insert '||l_proc,320);
4931: hr_utility.set_location('after available change '||l_proc,330);
4932: if nvl(p_copy_budget_periods,'X') = 'Y' then
4933: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4934: p_worksheet_detail_id => l_worksheet_detail_id) ;
4935: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4935: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4931: hr_utility.set_location('after available change '||l_proc,330);
4932: if nvl(p_copy_budget_periods,'X') = 'Y' then
4933: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4934: p_worksheet_detail_id => l_worksheet_detail_id) ;
4935: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4936: end if;
4937: end loop;
4938: elsif p_budgeted_entity_cd ='OPEN' then
4939: hr_utility.set_location('budget entity OPEN '||l_proc,340);

Line 4939: hr_utility.set_location('budget entity OPEN '||l_proc,340);

4935: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4936: end if;
4937: end loop;
4938: elsif p_budgeted_entity_cd ='OPEN' then
4939: hr_utility.set_location('budget entity OPEN '||l_proc,340);
4940: hr_utility.set_location('before insert loop '||l_proc,350);
4941: for i in c7 loop
4942: l_rows_inserted := l_rows_inserted + 1;
4943: insert_worksheet_detail

Line 4940: hr_utility.set_location('before insert loop '||l_proc,350);

4936: end if;
4937: end loop;
4938: elsif p_budgeted_entity_cd ='OPEN' then
4939: hr_utility.set_location('budget entity OPEN '||l_proc,340);
4940: hr_utility.set_location('before insert loop '||l_proc,350);
4941: for i in c7 loop
4942: l_rows_inserted := l_rows_inserted + 1;
4943: insert_worksheet_detail
4944: (

Line 4957: hr_utility.set_location('after insert '||l_proc,360);

4953: ,p_parent_worksheet_detail_id => p_parent_worksheet_detail_id
4954: ,p_user_id => ''
4955: ,p_action_cd => 'B'
4956: ,p_copy_budget_periods => p_copy_budget_periods );
4957: hr_utility.set_location('after insert '||l_proc,360);
4958: if nvl(p_copy_budget_periods,'X') = 'Y' then
4959: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4960: p_worksheet_detail_id => l_worksheet_detail_id) ;
4961: hr_utility.set_location('after copying budget_periods '||l_proc,100);

Line 4961: hr_utility.set_location('after copying budget_periods '||l_proc,100);

4957: hr_utility.set_location('after insert '||l_proc,360);
4958: if nvl(p_copy_budget_periods,'X') = 'Y' then
4959: copy_budget_details(p_budget_detail_id => i.budget_detail_id,
4960: p_worksheet_detail_id => l_worksheet_detail_id) ;
4961: hr_utility.set_location('after copying budget_periods '||l_proc,100);
4962: end if;
4963: end loop;
4964: end if;
4965: p_rows_inserted := l_rows_inserted;

Line 4966: hr_utility.set_location('exiting '||l_proc,1000);

4962: end if;
4963: end loop;
4964: end if;
4965: p_rows_inserted := l_rows_inserted;
4966: hr_utility.set_location('exiting '||l_proc,1000);
4967: exception when others then
4968: p_rows_inserted := null;
4969: raise;
4970: end insert_from_budget;

Line 5056: hr_utility.set_location('entering'||l_proc,10);

5052: l_unit2_available number := p_unit2_available;
5053: l_unit3_available number := p_unit3_available;
5054: l_proc varchar2(51) := g_package||'prd_chg_bgt_available';
5055: BEGIN
5056: hr_utility.set_location('entering'||l_proc,10);
5057: --
5058: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
5059: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
5060: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);

Line 5061: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);

5057: --
5058: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
5059: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
5060: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
5061: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);

Line 5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);

5058: chk_unit_max(l_unit1_max,l_unit2_max,l_unit3_max);
5059: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
5060: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
5061: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);

Line 5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);

5059: chk_unit_avg(l_unit1_avg,l_unit2_avg,l_unit3_avg);
5060: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
5061: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);

Line 5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);

5060: chk_unit_sum(l_unit1_sum,l_unit2_sum,l_unit3_sum);
5061: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);

Line 5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);

5061: hr_utility.set_location('unit1 max is'||l_unit1_max||l_proc,30);
5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
5069: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);

Line 5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);

5062: hr_utility.set_location('unit2 max is'||l_unit2_max||l_proc,40);
5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
5069: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
5070: if p_unit1_aggregate ='MAXIMUM' then

Line 5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);

5063: hr_utility.set_location('unit3 max is'||l_unit3_max||l_proc,50);
5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
5069: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
5070: if p_unit1_aggregate ='MAXIMUM' then
5071: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);

Line 5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);

5064: hr_utility.set_location('unit1 sum is'||l_unit1_sum||l_proc,60);
5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
5069: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
5070: if p_unit1_aggregate ='MAXIMUM' then
5071: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);
5072: elsif p_unit1_aggregate = 'AVERAGE' then

Line 5069: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);

5065: hr_utility.set_location('unit2 sum is'||l_unit2_sum||l_proc,70);
5066: hr_utility.set_location('unit3 sum is'||l_unit3_sum||l_proc,80);
5067: hr_utility.set_location('unit1 avg is'||l_unit1_avg||l_proc,90);
5068: hr_utility.set_location('unit2 avg is'||l_unit2_avg||l_proc,100);
5069: hr_utility.set_location('unit3 avg is'||l_unit3_avg||l_proc,110);
5070: if p_unit1_aggregate ='MAXIMUM' then
5071: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_max,0),p_unit1_precision);
5072: elsif p_unit1_aggregate = 'AVERAGE' then
5073: p_unit1_available := round(nvl(p_bgt_unit1_value,0) - nvl(l_unit1_avg,0),p_unit1_precision);

Line 5091: hr_utility.set_location('available max '||p_unit1_available||l_proc,60);

5087: p_unit3_available := round(nvl(p_bgt_unit3_value,0) - nvl(l_unit3_avg,0),p_unit3_precision);
5088: else
5089: p_unit3_available := round(nvl(p_bgt_unit3_value,0) - nvl(l_unit3_sum,0),p_unit3_precision);
5090: end if;
5091: hr_utility.set_location('available max '||p_unit1_available||l_proc,60);
5092: --
5093: hr_utility.set_location('exiting '||l_proc,150);
5094: exception when others then
5095: p_unit1_available := l_unit1_available;

Line 5093: hr_utility.set_location('exiting '||l_proc,150);

5089: p_unit3_available := round(nvl(p_bgt_unit3_value,0) - nvl(l_unit3_sum,0),p_unit3_precision);
5090: end if;
5091: hr_utility.set_location('available max '||p_unit1_available||l_proc,60);
5092: --
5093: hr_utility.set_location('exiting '||l_proc,150);
5094: exception when others then
5095: p_unit1_available := l_unit1_available;
5096: p_unit2_available := l_unit2_available;
5097: p_unit3_available := l_unit3_available;

Line 5118: hr_utility.set_location('entering'||l_proc,10);

5114: and prd.end_time_period_id = tpe.time_period_id;
5115: l_proc varchar2(51) := g_package||'add_budgetrow';
5116: l_budget_id number;
5117: begin
5118: hr_utility.set_location('entering'||l_proc,10);
5119: if p_budget_id is not null then
5120: l_budget_id := p_budget_id;
5121: else
5122: l_budget_id := pqh_wks_budget.get_bgd_budget(p_budget_detail_id => p_budget_detail_id);

Line 5135: hr_utility.set_location('exit'||l_proc,100);

5131: p_prd_unit1_value => i.unit1_value,
5132: p_prd_unit2_value => i.unit2_value,
5133: p_prd_unit3_value => i.unit3_value);
5134: end loop;
5135: hr_utility.set_location('exit'||l_proc,100);
5136: end add_budgetrow;
5137: --
5138: procedure add_budgetrow(p_worksheet_detail_id in number,
5139: p_unit1_aggregate in varchar2,

Line 5153: hr_utility.set_location('entering'||l_proc,10);

5149: and prd.end_time_period_id = tpe.time_period_id;
5150: l_proc varchar2(51) := g_package||'add_budgetrow';
5151: l_budget_id number;
5152: begin
5153: hr_utility.set_location('entering'||l_proc,10);
5154: if p_budget_id is not null then
5155: l_budget_id := p_budget_id;
5156: else
5157: l_budget_id := pqh_wks_budget.get_wkd_budget(p_worksheet_detail_id => p_worksheet_detail_id);

Line 5170: hr_utility.set_location('exit'||l_proc,100);

5166: p_prd_unit1_value => i.unit1_value,
5167: p_prd_unit2_value => i.unit2_value,
5168: p_prd_unit3_value => i.unit3_value);
5169: end loop;
5170: hr_utility.set_location('exit'||l_proc,100);
5171: end add_budgetrow;
5172: --
5173: end pqh_budget;