DBA Data[Home] [Help]

APPS.IBE_WORKFLOW_PVT dependencies on IBE_UTIL

Line 93: | 01/14/04 batoleti Bug#3342929 Added IBE_UTIL.nls_number_format function call for quantity and amount values

89: | 12/23/03 batoleti Bug#3334542 Added billing address for B2C return order notifications.
90: | 12/29/03 batoleti Bug#3325710 Added view Netprice token to order confirmation notification
91: | sent to sharee.
92: | 12/30/03 mannamra Bug#3319902 View shared cart should display 'owner' as a role.
93: | 01/14/04 batoleti Bug#3342929 Added IBE_UTIL.nls_number_format function call for quantity and amount values
94: | in istore workflow notification procedures.
95: | 01/19/04 batoleti Bug#3378966 In Return order notification, the INCLUDED items are not shown.
96: | 01/29/04 batoleti Bug#3348583 In Return order notification, order number should not be shown for the
97: | child items.

Line 356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

352: BEGIN
353: FOR rec_get_pref in c_get_pref(p_user_name) LOOP
354: x_mail_pref := rec_get_pref.notification_preference;
355:
356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
357: IBE_UTIL.DEBUG('get_mail_format_pref: Mail preference: '|| x_mail_pref);
358: END IF;
359: EXIT when c_get_pref%NOTFOUND;
360: END LOOP;

Line 357: IBE_UTIL.DEBUG('get_mail_format_pref: Mail preference: '|| x_mail_pref);

353: FOR rec_get_pref in c_get_pref(p_user_name) LOOP
354: x_mail_pref := rec_get_pref.notification_preference;
355:
356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
357: IBE_UTIL.DEBUG('get_mail_format_pref: Mail preference: '|| x_mail_pref);
358: END IF;
359: EXIT when c_get_pref%NOTFOUND;
360: END LOOP;
361: END;*/

Line 397: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

393: and d.party_id=c_party_id;
394:
395: BEGIN
396:
397: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
398: IBE_UTIL.DEBUG('start: getUserType' ||':partyid='||pPartyId);
399: END IF;
400:
401: open c_get_user_type(pPartyId);

Line 398: IBE_UTIL.DEBUG('start: getUserType' ||':partyid='||pPartyId);

394:
395: BEGIN
396:
397: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
398: IBE_UTIL.DEBUG('start: getUserType' ||':partyid='||pPartyId);
399: END IF;
400:
401: open c_get_user_type(pPartyId);
402:

Line 405: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

401: open c_get_user_type(pPartyId);
402:
403: fetch c_get_user_type into l_UserType;
404:
405: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
406: IBE_UTIL.DEBUG('getUserType:After fetch' ||'l_UserType='||l_UserType);
407: END IF;
408:
409: IF (c_get_user_type%NOTFOUND) THEN

Line 406: IBE_UTIL.DEBUG('getUserType:After fetch' ||'l_UserType='||l_UserType);

402:
403: fetch c_get_user_type into l_UserType;
404:
405: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
406: IBE_UTIL.DEBUG('getUserType:After fetch' ||'l_UserType='||l_UserType);
407: END IF;
408:
409: IF (c_get_user_type%NOTFOUND) THEN
410: -- user not created thru the new JTA UM functionality

Line 411: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

407: END IF;
408:
409: IF (c_get_user_type%NOTFOUND) THEN
410: -- user not created thru the new JTA UM functionality
411: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
412: IBE_UTIL.DEBUG('getUserType:' ||'l_UserType not found in jta tables');
413: END IF;
414: open c_get_party_type_user_name(pPartyId);
415: fetch c_get_party_type_user_name into l_PartyType,l_user_name;

Line 412: IBE_UTIL.DEBUG('getUserType:' ||'l_UserType not found in jta tables');

408:
409: IF (c_get_user_type%NOTFOUND) THEN
410: -- user not created thru the new JTA UM functionality
411: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
412: IBE_UTIL.DEBUG('getUserType:' ||'l_UserType not found in jta tables');
413: END IF;
414: open c_get_party_type_user_name(pPartyId);
415: fetch c_get_party_type_user_name into l_PartyType,l_user_name;
416: CLOSE c_get_party_type_user_name;

Line 418: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

414: open c_get_party_type_user_name(pPartyId);
415: fetch c_get_party_type_user_name into l_PartyType,l_user_name;
416: CLOSE c_get_party_type_user_name;
417:
418: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
419: IBE_UTIL.DEBUG('getUserType:' ||'l_PartyType='||l_PartyType);
420: END IF;
421:
422: if (l_PartyType='PERSON') then

Line 419: IBE_UTIL.DEBUG('getUserType:' ||'l_PartyType='||l_PartyType);

415: fetch c_get_party_type_user_name into l_PartyType,l_user_name;
416: CLOSE c_get_party_type_user_name;
417:
418: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
419: IBE_UTIL.DEBUG('getUserType:' ||'l_PartyType='||l_PartyType);
420: END IF;
421:
422: if (l_PartyType='PERSON') then
423: l_userType:='IBE_INDIVIDUAL';

Line 425: l_is_int_primary_user := IBE_UTIL.check_jtf_permission('IBE_INT_PRIMARY_USER',l_user_name);

421:
422: if (l_PartyType='PERSON') then
423: l_userType:='IBE_INDIVIDUAL';
424: else
425: l_is_int_primary_user := IBE_UTIL.check_jtf_permission('IBE_INT_PRIMARY_USER',l_user_name);
426: -- l_is_pv_partner := IBE_UTIL.check_jtf_permission('PV_PARTNER',l_user_name);
427:
428: -----------------------------------------------------------
429: -- checking the PV_PARTNER permission thru a sql package

Line 426: -- l_is_pv_partner := IBE_UTIL.check_jtf_permission('PV_PARTNER',l_user_name);

422: if (l_PartyType='PERSON') then
423: l_userType:='IBE_INDIVIDUAL';
424: else
425: l_is_int_primary_user := IBE_UTIL.check_jtf_permission('IBE_INT_PRIMARY_USER',l_user_name);
426: -- l_is_pv_partner := IBE_UTIL.check_jtf_permission('PV_PARTNER',l_user_name);
427:
428: -----------------------------------------------------------
429: -- checking the PV_PARTNER permission thru a sql package
430: BEGIN

Line 432: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

428: -----------------------------------------------------------
429: -- checking the PV_PARTNER permission thru a sql package
430: BEGIN
431:
432: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
433: IBE_UTIL.DEBUG('getUserType:Before calling PV_USER_MGMT_PVTS.is_partner_user');
434: END IF;
435:
436: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';

Line 433: IBE_UTIL.DEBUG('getUserType:Before calling PV_USER_MGMT_PVTS.is_partner_user');

429: -- checking the PV_PARTNER permission thru a sql package
430: BEGIN
431:
432: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
433: IBE_UTIL.DEBUG('getUserType:Before calling PV_USER_MGMT_PVTS.is_partner_user');
434: END IF;
435:
436: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';
437: EXECUTE IMMEDIATE plsql_block USING OUT pv_flag,pPartyId;

Line 439: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

435:
436: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';
437: EXECUTE IMMEDIATE plsql_block USING OUT pv_flag,pPartyId;
438:
439: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
440: IBE_UTIL.DEBUG('getUserType:After calling PV_USER_MGMT_PVTS: value of permission='||pv_flag);
441: END If;
442: EXCEPTION
443: WHEN OTHERS THEN

Line 440: IBE_UTIL.DEBUG('getUserType:After calling PV_USER_MGMT_PVTS: value of permission='||pv_flag);

436: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';
437: EXECUTE IMMEDIATE plsql_block USING OUT pv_flag,pPartyId;
438:
439: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
440: IBE_UTIL.DEBUG('getUserType:After calling PV_USER_MGMT_PVTS: value of permission='||pv_flag);
441: END If;
442: EXCEPTION
443: WHEN OTHERS THEN
444: --set partner permission to 'N'

Line 446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

442: EXCEPTION
443: WHEN OTHERS THEN
444: --set partner permission to 'N'
445: pv_flag := 'N';
446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
447: IBE_UTIL.DEBUG('getUserType: The This is a standalone iStore installation,with no PRM integration, hence the dynamic call to retrieve the PRM usertypes throws following exception,please ignore it');
448: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
449: IBE_UTIL.DEBUG('getUserType:Reminder:Please ignore the above sql exception,there is no error here.It is an expected behaviour as per the code logic.');
450: END IF;

Line 447: IBE_UTIL.DEBUG('getUserType: The This is a standalone iStore installation,with no PRM integration, hence the dynamic call to retrieve the PRM usertypes throws following exception,please ignore it');

443: WHEN OTHERS THEN
444: --set partner permission to 'N'
445: pv_flag := 'N';
446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
447: IBE_UTIL.DEBUG('getUserType: The This is a standalone iStore installation,with no PRM integration, hence the dynamic call to retrieve the PRM usertypes throws following exception,please ignore it');
448: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
449: IBE_UTIL.DEBUG('getUserType:Reminder:Please ignore the above sql exception,there is no error here.It is an expected behaviour as per the code logic.');
450: END IF;
451: END;

Line 448: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);

444: --set partner permission to 'N'
445: pv_flag := 'N';
446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
447: IBE_UTIL.DEBUG('getUserType: The This is a standalone iStore installation,with no PRM integration, hence the dynamic call to retrieve the PRM usertypes throws following exception,please ignore it');
448: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
449: IBE_UTIL.DEBUG('getUserType:Reminder:Please ignore the above sql exception,there is no error here.It is an expected behaviour as per the code logic.');
450: END IF;
451: END;
452: if pv_flag='Y' then

Line 449: IBE_UTIL.DEBUG('getUserType:Reminder:Please ignore the above sql exception,there is no error here.It is an expected behaviour as per the code logic.');

445: pv_flag := 'N';
446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
447: IBE_UTIL.DEBUG('getUserType: The This is a standalone iStore installation,with no PRM integration, hence the dynamic call to retrieve the PRM usertypes throws following exception,please ignore it');
448: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
449: IBE_UTIL.DEBUG('getUserType:Reminder:Please ignore the above sql exception,there is no error here.It is an expected behaviour as per the code logic.');
450: END IF;
451: END;
452: if pv_flag='Y' then
453: l_is_pv_partner:=true;

Line 475: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

471: END IF;
472: END IF;
473: CLOSE c_get_user_type;
474: pUserType:=l_userType;
475: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
476: IBE_UTIL.DEBUG('getUserType:' ||'pUserType='||pUserType);
477: END IF;
478:
479: END getUserType;

Line 476: IBE_UTIL.DEBUG('getUserType:' ||'pUserType='||pUserType);

472: END IF;
473: CLOSE c_get_user_type;
474: pUserType:=l_userType;
475: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
476: IBE_UTIL.DEBUG('getUserType:' ||'pUserType='||pUserType);
477: END IF;
478:
479: END getUserType;
480:

Line 492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

488: rec_get_cart_type c_get_cart_type%rowtype;
489: l_is_it_quote VARCHAR2(1) := fnd_api.g_false;
490: BEGIN
491:
492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
493: IBE_UTIL.DEBUG('Identify_cart_quote: Start');
494: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);
495: END IF;
496: For rec_get_cart_type in c_get_cart_type(p_quote_header_id) LOOP

Line 493: IBE_UTIL.DEBUG('Identify_cart_quote: Start');

489: l_is_it_quote VARCHAR2(1) := fnd_api.g_false;
490: BEGIN
491:
492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
493: IBE_UTIL.DEBUG('Identify_cart_quote: Start');
494: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);
495: END IF;
496: For rec_get_cart_type in c_get_cart_type(p_quote_header_id) LOOP
497: IF (rec_get_cart_type.resource_id is not null) THEN

Line 494: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);

490: BEGIN
491:
492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
493: IBE_UTIL.DEBUG('Identify_cart_quote: Start');
494: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);
495: END IF;
496: For rec_get_cart_type in c_get_cart_type(p_quote_header_id) LOOP
497: IF (rec_get_cart_type.resource_id is not null) THEN
498: l_is_it_quote := FND_API.G_TRUE;

Line 503: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

499: END IF;
500: EXIT when c_get_cart_type%notfound;
501: END LOOP;
502: x_is_it_quote := l_is_it_quote;
503: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
504: IBE_UTIL.DEBUG('Identify_cart_quote:X_is_it_quote: '||x_is_it_quote);
505: END IF;
506:
507: END;

Line 504: IBE_UTIL.DEBUG('Identify_cart_quote:X_is_it_quote: '||x_is_it_quote);

500: EXIT when c_get_cart_type%notfound;
501: END LOOP;
502: x_is_it_quote := l_is_it_quote;
503: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
504: IBE_UTIL.DEBUG('Identify_cart_quote:X_is_it_quote: '||x_is_it_quote);
505: END IF;
506:
507: END;
508:

Line 523: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

519: l_adhoc_role VARCHAR2(2000);
520: l_adhoc_role_display VARCHAR2(2000);
521:
522: BEGIN
523: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
524: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
525: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
526: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
527: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);

Line 524: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');

520: l_adhoc_role_display VARCHAR2(2000);
521:
522: BEGIN
523: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
524: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
525: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
526: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
527: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
528: END IF;

Line 525: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);

521:
522: BEGIN
523: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
524: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
525: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
526: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
527: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
528: END IF;
529:

Line 526: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);

522: BEGIN
523: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
524: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
525: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
526: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
527: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
528: END IF;
529:
530: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id

Line 527: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);

523: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
524: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
525: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
526: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
527: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
528: END IF;
529:
530: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id
531: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');

Line 532: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

528: END IF;
529:
530: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id
531: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
532: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
533: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_user: '||l_adhoc_user);
534: END IF;
535:
536: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id

Line 533: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_user: '||l_adhoc_user);

529:
530: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id
531: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
532: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
533: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_user: '||l_adhoc_user);
534: END IF;
535:
536: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id
537: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');

Line 539: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

535:
536: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id
537: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
538:
539: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
540: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating adhoc user');
541: END IF;
542: wf_directory.CreateAdHocUser(
543: name => l_adhoc_user ,

Line 540: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating adhoc user');

536: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id
537: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
538:
539: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
540: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating adhoc user');
541: END IF;
542: wf_directory.CreateAdHocUser(
543: name => l_adhoc_user ,
544: display_name => l_adhoc_user_display ,

Line 554: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

550: l_role_users := l_adhoc_user;
551:
552: l_adhoc_role := 'SCR'||p_QUOTE_recipient_id
553: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
554: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
555: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_role: '||l_adhoc_role);
556: END IF;
557:
558: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id

Line 555: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_role: '||l_adhoc_role);

551:
552: l_adhoc_role := 'SCR'||p_QUOTE_recipient_id
553: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
554: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
555: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_role: '||l_adhoc_role);
556: END IF;
557:
558: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id
559: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');

Line 560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

556: END IF;
557:
558: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id
559: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
561: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating ad-hoc role');
562: END IF;
563:
564: wf_directory.CreateAdHocRole

Line 561: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating ad-hoc role');

557:
558: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id
559: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
561: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating ad-hoc role');
562: END IF;
563:
564: wf_directory.CreateAdHocRole
565: (role_name => l_adhoc_role,

Line 570: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

566: role_display_name => l_adhoc_role_display,
567: notification_preference => p_notification_preference,
568: role_users => l_role_users,
569: expiration_date => sysdate + 1);
570: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
571: IBE_UTIL.DEBUG('Create_adhoc_entity:x_adhoc_role: '||x_adhoc_role);
572: END IF;
573: x_adhoc_role := l_adhoc_role;
574: END;

Line 571: IBE_UTIL.DEBUG('Create_adhoc_entity:x_adhoc_role: '||x_adhoc_role);

567: notification_preference => p_notification_preference,
568: role_users => l_role_users,
569: expiration_date => sysdate + 1);
570: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
571: IBE_UTIL.DEBUG('Create_adhoc_entity:x_adhoc_role: '||x_adhoc_role);
572: END IF;
573: x_adhoc_role := l_adhoc_role;
574: END;
575:

Line 600: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

596: L_temp_update_str Varchar2(2000);
597:
598:
599: BEGIN
600: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
601: IBE_UTIL.DEBUG('Set_item_attributes: Start');
602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);

Line 601: IBE_UTIL.DEBUG('Set_item_attributes: Start');

597:
598:
599: BEGIN
600: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
601: IBE_UTIL.DEBUG('Set_item_attributes: Start');
602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);

Line 602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);

598:
599: BEGIN
600: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
601: IBE_UTIL.DEBUG('Set_item_attributes: Start');
602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);

Line 603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);

599: BEGIN
600: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
601: IBE_UTIL.DEBUG('Set_item_attributes: Start');
602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);

Line 604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);

600: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
601: IBE_UTIL.DEBUG('Set_item_attributes: Start');
602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);

Line 605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);

601: IBE_UTIL.DEBUG('Set_item_attributes: Start');
602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);

Line 606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);

602: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);

Line 607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);

603: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);

Line 608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);

604: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);

Line 609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);

605: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
613: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');

Line 610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);

606: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
613: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
614: END IF;

Line 611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);

607: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
613: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
614: END IF;
615:

Line 612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);

608: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
613: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
614: END IF;
615:
616: wf_engine.CreateProcess(

Line 613: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');

609: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
610: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
611: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
612: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
613: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
614: END IF;
615:
616: wf_engine.CreateProcess(
617: itemtype => g_ItemType,

Line 621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

617: itemtype => g_ItemType,
618: itemkey => p_item_key,
619: process => g_processName);
620:
621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
622: IBE_UTIL.DEBUG('Set_item_attributes:Done creating process');
623: END IF;
624:
625: wf_engine.SetItemUserKey(

Line 622: IBE_UTIL.DEBUG('Set_item_attributes:Done creating process');

618: itemkey => p_item_key,
619: process => g_processName);
620:
621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
622: IBE_UTIL.DEBUG('Set_item_attributes:Done creating process');
623: END IF;
624:
625: wf_engine.SetItemUserKey(
626: itemtype => g_ItemType,

Line 629: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

625: wf_engine.SetItemUserKey(
626: itemtype => g_ItemType,
627: itemkey => p_item_key,
628: userkey => p_item_key);
629: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
630: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemUserKey');
631: END IF;
632:
633: wf_engine.SetItemAttrText(

Line 630: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemUserKey');

626: itemtype => g_ItemType,
627: itemkey => p_item_key,
628: userkey => p_item_key);
629: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
630: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemUserKey');
631: END IF;
632:
633: wf_engine.SetItemAttrText(
634: itemtype => g_ItemType,

Line 638: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

634: itemtype => g_ItemType,
635: itemkey => p_item_key,
636: aname => 'MESSAGE',
637: avalue => p_Message_Name);
638: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
639: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MESSAGE');
640: END IF;
641:
642: wf_engine.SetItemAttrText(

Line 639: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MESSAGE');

635: itemkey => p_item_key,
636: aname => 'MESSAGE',
637: avalue => p_Message_Name);
638: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
639: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MESSAGE');
640: END IF;
641:
642: wf_engine.SetItemAttrText(
643: itemtype => g_ItemType,

Line 647: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

643: itemtype => g_ItemType,
644: itemkey => p_item_key,
645: aname => 'MSITEID',
646: avalue => p_minisite_id);
647: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
648: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MSITEID');
649: END IF;
650:
651: wf_engine.SetItemAttrText(

Line 648: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MSITEID');

644: itemkey => p_item_key,
645: aname => 'MSITEID',
646: avalue => p_minisite_id);
647: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
648: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MSITEID');
649: END IF;
650:
651: wf_engine.SetItemAttrText(
652: itemtype => g_ItemType,

Line 656: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

652: itemtype => g_ItemType,
653: itemkey => p_item_key,
654: aname => 'CARTNAME',
655: avalue => p_cart_name);
656: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
657: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CARTNAME');
658: END IF;
659:
660: IF((p_first_name is not null) and

Line 657: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CARTNAME');

653: itemkey => p_item_key,
654: aname => 'CARTNAME',
655: avalue => p_cart_name);
656: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
657: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CARTNAME');
658: END IF;
659:
660: IF((p_first_name is not null) and
661: (p_first_name <> FND_API.G_MISS_CHAR)) THEN

Line 668: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

664: itemkey => p_item_key,
665: aname => 'FIRSTNAME',
666: avalue => p_first_name);
667: END IF;
668: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
669: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for FIRSTNAME');
670: END IF;
671:
672: IF((p_last_name is not null) and

Line 669: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for FIRSTNAME');

665: aname => 'FIRSTNAME',
666: avalue => p_first_name);
667: END IF;
668: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
669: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for FIRSTNAME');
670: END IF;
671:
672: IF((p_last_name is not null) and
673: (p_first_name <> FND_API.G_MISS_CHAR)) THEN

Line 681: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

677: aname => 'LASTNAME',
678: avalue => p_last_name);
679: END IF;
680:
681: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
682: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for LASTNAME');
683: END IF;
684: IF((p_notes is not null) and
685: (p_notes <> FND_API.G_MISS_CHAR)) THEN

Line 682: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for LASTNAME');

678: avalue => p_last_name);
679: END IF;
680:
681: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
682: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for LASTNAME');
683: END IF;
684: IF((p_notes is not null) and
685: (p_notes <> FND_API.G_MISS_CHAR)) THEN
686: wf_engine.SetItemAttrText(

Line 693: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

689: aname => 'SHARECOMMENTS',
690: avalue => p_notes);
691: END IF;
692:
693: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
694: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for COMMENTS');
695: END IF;
696:
697: IF((p_notif_context = 'SHARECARTNOTIF') OR

Line 694: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for COMMENTS');

690: avalue => p_notes);
691: END IF;
692:
693: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
694: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for COMMENTS');
695: END IF;
696:
697: IF((p_notif_context = 'SHARECARTNOTIF') OR
698: (p_notif_context = 'SHARECARTNOTIF_B2B')OR

Line 710: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

706: itemkey => p_item_key,
707: aname => 'ACCESSCODE',
708: avalue => p_access_level);
709: END IF;
710: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
711: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for ACCESSLEVEL');
712: END IF;
713:
714:

Line 711: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for ACCESSLEVEL');

707: aname => 'ACCESSCODE',
708: avalue => p_access_level);
709: END IF;
710: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
711: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for ACCESSLEVEL');
712: END IF;
713:
714:
715: IF((p_notif_context <> 'STOPWORKING' ) AND

Line 724: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

720: itemkey => p_item_key,
721: aname => 'ISTOREURL',
722: avalue => p_url);
723: END IF;
724: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
725: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for URL');
726: END IF;
727:
728:

Line 725: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for URL');

721: aname => 'ISTOREURL',
722: avalue => p_url);
723: END IF;
724: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
725: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for URL');
726: END IF;
727:
728:
729: IF ((p_notif_context = 'STOPWORKING' ) OR

Line 737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

733: itemkey => p_item_key,
734: aname => 'CONTEXT_CODE',
735: avalue => p_context_msg);
736: END IF;
737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
738: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CONTEXT_MESSAGE');
739: END IF;
740:
741: IF ((p_notif_context = 'CHANGEACCESSLEVEL') OR

Line 738: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CONTEXT_MESSAGE');

734: aname => 'CONTEXT_CODE',
735: avalue => p_context_msg);
736: END IF;
737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
738: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CONTEXT_MESSAGE');
739: END IF;
740:
741: IF ((p_notif_context = 'CHANGEACCESSLEVEL') OR
742: (p_notif_context = 'CHANGEACCESSLEVEL_QUOTE')) THEN

Line 749: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

745: itemkey => p_item_key,
746: aname => 'ACCESSCODE_OLD',
747: avalue => p_old_access_level);
748: END IF;
749: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
750: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for OLDACCESSLEVEL');
751: END IF;
752:
753: IF((p_notif_context = 'SHARECARTNOTIF') OR

Line 750: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for OLDACCESSLEVEL');

746: aname => 'ACCESSCODE_OLD',
747: avalue => p_old_access_level);
748: END IF;
749: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
750: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for OLDACCESSLEVEL');
751: END IF;
752:
753: IF((p_notif_context = 'SHARECARTNOTIF') OR
754: (p_notif_context = 'SHARECARTNOTIF_B2B')OR

Line 765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

761: itemkey => p_item_key,
762: aname => 'UPDATEMSG_CODE',
763: avalue => l_temp_update_str);
764: END IF;
765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
766: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for UPDATEMSG');
767: END IF;
768:
769: IF ((p_notif_context = 'SHARECARTNOTIF') OR

Line 766: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for UPDATEMSG');

762: aname => 'UPDATEMSG_CODE',
763: avalue => l_temp_update_str);
764: END IF;
765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
766: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for UPDATEMSG');
767: END IF;
768:
769: IF ((p_notif_context = 'SHARECARTNOTIF') OR
770: (p_notif_context = 'SHAREQUOTENOTIF'))THEN

Line 782: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

778: itemtype => g_ItemType,
779: itemkey => p_item_key,
780: aname => 'RETRIEVEMSG_CODE',
781: avalue => l_temp_retrieve_str);
782: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
783: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for RETRIEVEMSG');
784: END IF;
785:
786: wf_engine.SetItemAttrText(

Line 783: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for RETRIEVEMSG');

779: itemkey => p_item_key,
780: aname => 'RETRIEVEMSG_CODE',
781: avalue => l_temp_retrieve_str);
782: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
783: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for RETRIEVEMSG');
784: END IF;
785:
786: wf_engine.SetItemAttrText(
787: itemtype => g_ItemType,

Line 791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

787: itemtype => g_ItemType,
788: itemkey => p_item_key,
789: aname => 'SHNUM',
790: avalue => p_recipient_number);
791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
792: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SHNUM');
793: END IF;
794:
795: END IF;

Line 792: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SHNUM');

788: itemkey => p_item_key,
789: aname => 'SHNUM',
790: avalue => p_recipient_number);
791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
792: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SHNUM');
793: END IF;
794:
795: END IF;
796:

Line 803: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

799: itemtype => g_ItemType,
800: itemkey => p_item_key,
801: aname => 'SENDTO',
802: avalue => p_adhoc_role);
803: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
804: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SENDTO');
805: END IF;
806:
807: wf_engine.SetItemOwner(

Line 804: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SENDTO');

800: itemkey => p_item_key,
801: aname => 'SENDTO',
802: avalue => p_adhoc_role);
803: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
804: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SENDTO');
805: END IF;
806:
807: wf_engine.SetItemOwner(
808: itemtype => g_ItemType,

Line 811: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

807: wf_engine.SetItemOwner(
808: itemtype => g_ItemType,
809: itemkey => p_item_key,
810: owner => l_item_owner);
811: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
812: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemOwner');
813: END IF;
814:
815: wf_engine.StartProcess(

Line 812: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemOwner');

808: itemtype => g_ItemType,
809: itemkey => p_item_key,
810: owner => l_item_owner);
811: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
812: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemOwner');
813: END IF;
814:
815: wf_engine.StartProcess(
816: itemtype => g_ItemType,

Line 818: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

814:
815: wf_engine.StartProcess(
816: itemtype => g_ItemType,
817: itemkey => p_item_key);
818: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
819: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');
820: END IF;
821: EXCEPTION
822: When OTHERS THEN

Line 819: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');

815: wf_engine.StartProcess(
816: itemtype => g_ItemType,
817: itemkey => p_item_key);
818: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
819: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');
820: END IF;
821: EXCEPTION
822: When OTHERS THEN
823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

819: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');
820: END IF;
821: EXCEPTION
822: When OTHERS THEN
823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
824: IBE_UTIL.DEBUG('Set_item_attributes:Exception block: '||SQLCODE||': '||SQLERRM);
825: END IF;
826: RAISE;
827: END ;

Line 824: IBE_UTIL.DEBUG('Set_item_attributes:Exception block: '||SQLCODE||': '||SQLERRM);

820: END IF;
821: EXCEPTION
822: When OTHERS THEN
823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
824: IBE_UTIL.DEBUG('Set_item_attributes:Exception block: '||SQLCODE||': '||SQLERRM);
825: END IF;
826: RAISE;
827: END ;
828:

Line 863: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

859: AND l.object_type = 'ORGANIZATION';
860: rec_party_info b2b_contact_info%rowtype;
861:
862: BEGIN
863: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
864:
865: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
866: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
867: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);

Line 865: ibe_util.debug('get_name_details:input user_type: '||p_user_type);

861:
862: BEGIN
863: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
864:
865: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
866: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
867: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);
868: END IF;
869:

Line 866: ibe_util.debug('get_name_details:input party_id: '||p_party_id);

862: BEGIN
863: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
864:
865: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
866: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
867: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);
868: END IF;
869:
870:

Line 867: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);

863: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
864:
865: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
866: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
867: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);
868: END IF;
869:
870:
871: IF ((p_user_type = FND_API.G_MISS_CHAR)

Line 896: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

892: x_contact_last_name := rec_get_recepient_name.person_last_name;
893: END LOOP;
894: END IF;
895: END IF;
896: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
897:
898: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
899: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
900: END IF;

Line 898: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);

894: END IF;
895: END IF;
896: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
897:
898: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
899: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
900: END IF;
901:
902: END Get_Name_details;

Line 899: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);

895: END IF;
896: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
897:
898: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
899: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
900: END IF;
901:
902: END Get_Name_details;
903: */

Line 950: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

946:
947: rec_party_info c_b2b_contact_info%rowtype;
948:
949: BEGIN
950: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
951: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
952: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
953: END IF;
954: open c_get_party_type_and_name(p_party_id);

Line 951: ibe_util.debug('get_name_details:input user_type: '||p_user_type);

947: rec_party_info c_b2b_contact_info%rowtype;
948:
949: BEGIN
950: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
951: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
952: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
953: END IF;
954: open c_get_party_type_and_name(p_party_id);
955: Fetch c_get_party_type_and_name into l_partyType, x_contact_first_name ,x_contact_last_name,x_party_id ;

Line 952: ibe_util.debug('get_name_details:input party_id: '||p_party_id);

948:
949: BEGIN
950: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
951: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
952: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
953: END IF;
954: open c_get_party_type_and_name(p_party_id);
955: Fetch c_get_party_type_and_name into l_partyType, x_contact_first_name ,x_contact_last_name,x_party_id ;
956:

Line 967: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

963: ELSE
964: x_party_id := p_party_id;
965:
966: END IF;
967: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
968:
969: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
970: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
971: END IF;

Line 969: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);

965:
966: END IF;
967: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
968:
969: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
970: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
971: END IF;
972:
973: END Get_Name_details;

Line 970: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);

966: END IF;
967: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
968:
969: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
970: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
971: END IF;
972:
973: END Get_Name_details;
974:

Line 1033: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1029:
1030: x_return_status := FND_API.g_ret_sts_success;
1031:
1032:
1033: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1034: ibe_util.debug('Check if this notification is enabled.');
1035: END IF;
1036: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1037: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1034: ibe_util.debug('Check if this notification is enabled.');

1030: x_return_status := FND_API.g_ret_sts_success;
1031:
1032:
1033: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1034: ibe_util.debug('Check if this notification is enabled.');
1035: END IF;
1036: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1037: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1038: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

Line 1037: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1033: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1034: ibe_util.debug('Check if this notification is enabled.');
1035: END IF;
1036: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1037: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1038: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1039: END IF;
1040:
1041: If l_notifEnabled = 'Y' Then

Line 1038: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

1034: ibe_util.debug('Check if this notification is enabled.');
1035: END IF;
1036: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1037: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1038: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1039: END IF;
1040:
1041: If l_notifEnabled = 'Y' Then
1042:

Line 1053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1049:
1050: l_orgId := MO_GLOBAL.get_current_org_id();
1051: getUserType(l_partyId,l_UserType);
1052:
1053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1054: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId) ||' User Type: '||l_userType);
1055: END IF;
1056:
1057: FOR c_quote_rec In c_quote_header(p_quote_id) LOOP

Line 1054: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId) ||' User Type: '||l_userType);

1050: l_orgId := MO_GLOBAL.get_current_org_id();
1051: getUserType(l_partyId,l_UserType);
1052:
1053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1054: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId) ||' User Type: '||l_userType);
1055: END IF;
1056:
1057: FOR c_quote_rec In c_quote_header(p_quote_id) LOOP
1058: l_resource_id := c_quote_rec.resource_id;

Line 1080: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1076: x_msg_data => x_msg_data,
1077: x_msg_count => x_msg_count);
1078:
1079:
1080: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1081: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1082: END IF;
1083:
1084:

Line 1081: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

1077: x_msg_count => x_msg_count);
1078:
1079:
1080: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1081: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1082: END IF;
1083:
1084:
1085: If x_msg_count > 0 Then

Line 1093: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1089: If l_msgEnabled = 'Y' Then
1090:
1091: l_item_key := l_notifName||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_send_name;
1092:
1093: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1094: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1095: END IF;
1096:
1097: wf_engine.CreateProcess(

Line 1094: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

1090:
1091: l_item_key := l_notifName||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_send_name;
1092:
1093: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1094: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1095: END IF;
1096:
1097: wf_engine.CreateProcess(
1098: itemtype => g_ItemType,

Line 1170: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1166: wf_engine.StartProcess(
1167: itemtype => g_ItemType,
1168: itemkey => l_item_key);
1169:
1170: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1171: ibe_util.debug('Process Started');
1172: END IF;
1173:
1174: End If;

Line 1171: ibe_util.debug('Process Started');

1167: itemtype => g_ItemType,
1168: itemkey => l_item_key);
1169:
1170: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1171: ibe_util.debug('Process Started');
1172: END IF;
1173:
1174: End If;
1175: End If;

Line 1202: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1198:
1199: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
1200: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
1201: BEGIN
1202: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1203: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1204: END IF;
1205: FND_MESSAGE.set_name('IBE',document_id);
1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1203: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);

1199: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
1200: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
1201: BEGIN
1202: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1203: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1204: END IF;
1205: FND_MESSAGE.set_name('IBE',document_id);
1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1207: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');

Line 1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1202: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1203: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1204: END IF;
1205: FND_MESSAGE.set_name('IBE',document_id);
1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1207: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1208: END IF;
1209: document:=FND_MESSAGE.get();
1210: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1207: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');

1203: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1204: END IF;
1205: FND_MESSAGE.set_name('IBE',document_id);
1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1207: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1208: END IF;
1209: document:=FND_MESSAGE.get();
1210: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1211: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);

Line 1210: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1207: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1208: END IF;
1209: document:=FND_MESSAGE.get();
1210: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1211: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);
1212: END IF;
1213: document_type := 'text/plain';
1214: EXCEPTION

Line 1211: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);

1207: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1208: END IF;
1209: document:=FND_MESSAGE.get();
1210: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1211: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);
1212: END IF;
1213: document_type := 'text/plain';
1214: EXCEPTION
1215: WHEN OTHERS THEN

Line 1216: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1212: END IF;
1213: document_type := 'text/plain';
1214: EXCEPTION
1215: WHEN OTHERS THEN
1216: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1217: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_Approval_Msg');
1218: END IF;
1219:
1220: END;

Line 1217: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_Approval_Msg');

1213: document_type := 'text/plain';
1214: EXCEPTION
1215: WHEN OTHERS THEN
1216: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1217: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_Approval_Msg');
1218: END IF;
1219:
1220: END;
1221: ----------------------added by abhandar :end -----------------------

Line 1262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1258: l_credential_line := ' ';
1259:
1260: END IF;
1261:
1262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1263: IBE_UTIL.DEBUG('ibe_workflow_pvt.Generater_Credential l_credential_line =' || l_credential_line);
1264: END IF;
1265: document := l_credential_line;
1266:

Line 1263: IBE_UTIL.DEBUG('ibe_workflow_pvt.Generater_Credential l_credential_line =' || l_credential_line);

1259:
1260: END IF;
1261:
1262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1263: IBE_UTIL.DEBUG('ibe_workflow_pvt.Generater_Credential l_credential_line =' || l_credential_line);
1264: END IF;
1265: document := l_credential_line;
1266:
1267: document_type := 'text/plain';

Line 1270: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1266:
1267: document_type := 'text/plain';
1268: EXCEPTION
1269: WHEN OTHERS THEN
1270: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1271: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_User_Credential_Msg');
1272: END IF;
1273: END Generate_Credential_Msg;
1274:

Line 1271: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_User_Credential_Msg');

1267: document_type := 'text/plain';
1268: EXCEPTION
1269: WHEN OTHERS THEN
1270: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1271: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_User_Credential_Msg');
1272: END IF;
1273: END Generate_Credential_Msg;
1274:
1275:

Line 1378: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1374:
1375: -- end-ab
1376: BEGIN
1377:
1378: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1379: ibe_util.debug('NotifyRegistration :start notification for p_login_name='||p_login_name);
1380: END If;
1381: -- get the URL from the profile
1382: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');

Line 1379: ibe_util.debug('NotifyRegistration :start notification for p_login_name='||p_login_name);

1375: -- end-ab
1376: BEGIN
1377:
1378: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1379: ibe_util.debug('NotifyRegistration :start notification for p_login_name='||p_login_name);
1380: END If;
1381: -- get the URL from the profile
1382: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');
1383:

Line 1384: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1380: END If;
1381: -- get the URL from the profile
1382: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');
1383:
1384: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1385: ibe_util.debug('NotifyRegistration:l_url='||l_url);
1386: END If;
1387: -- get the merchant name from the profile
1388: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');

Line 1385: ibe_util.debug('NotifyRegistration:l_url='||l_url);

1381: -- get the URL from the profile
1382: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');
1383:
1384: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1385: ibe_util.debug('NotifyRegistration:l_url='||l_url);
1386: END If;
1387: -- get the merchant name from the profile
1388: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');
1389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1385: ibe_util.debug('NotifyRegistration:l_url='||l_url);
1386: END If;
1387: -- get the merchant name from the profile
1388: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');
1389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1390: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1391: END If;
1392: -- end-ab
1393: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1390: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);

1386: END If;
1387: -- get the merchant name from the profile
1388: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');
1389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1390: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1391: END If;
1392: -- end-ab
1393: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1394: ibe_util.debug('Check if this notification is enabled.');

Line 1393: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1390: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1391: END If;
1392: -- end-ab
1393: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1394: ibe_util.debug('Check if this notification is enabled.');
1395: END IF;
1396: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1397:

Line 1394: ibe_util.debug('Check if this notification is enabled.');

1390: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1391: END If;
1392: -- end-ab
1393: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1394: ibe_util.debug('Check if this notification is enabled.');
1395: END IF;
1396: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1397:
1398: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1398: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1394: ibe_util.debug('Check if this notification is enabled.');
1395: END IF;
1396: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1397:
1398: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1399: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1400: END IF;
1401:
1402: If l_notifEnabled = 'Y' Then

Line 1399: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

1395: END IF;
1396: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1397:
1398: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1399: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1400: END IF;
1401:
1402: If l_notifEnabled = 'Y' Then
1403: l_adhoc_user := upper(p_login_name);

Line 1412: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1408: l_orgId := MO_GLOBAL.get_current_org_id();
1409:
1410: OPEN C_get_org_num(l_partyId);
1411: FETCH C_get_org_num into l_partyNum;
1412: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1413: ibe_util.debug('NotifyRegistration '||':l_partyId='||l_partyId ||':p_UserType='||p_UserType||'l_orgId='||l_orgId||':l_partyNum='||l_partyNum);
1414: END IF;
1415: CLOSE C_get_org_num;
1416:

Line 1413: ibe_util.debug('NotifyRegistration '||':l_partyId='||l_partyId ||':p_UserType='||p_UserType||'l_orgId='||l_orgId||':l_partyNum='||l_partyNum);

1409:
1410: OPEN C_get_org_num(l_partyId);
1411: FETCH C_get_org_num into l_partyNum;
1412: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1413: ibe_util.debug('NotifyRegistration '||':l_partyId='||l_partyId ||':p_UserType='||p_UserType||'l_orgId='||l_orgId||':l_partyNum='||l_partyNum);
1414: END IF;
1415: CLOSE C_get_org_num;
1416:
1417: -- getUserType(l_partyId,l_UserType);

Line 1420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1416:
1417: -- getUserType(l_partyId,l_UserType);
1418: l_UserType:=p_usertype;
1419:
1420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1421: ibe_util.debug('NotifyRegistration:Before Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
1422: ||' User Type: '||l_userType);
1423:
1424: END IF;

Line 1421: ibe_util.debug('NotifyRegistration:Before Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)

1417: -- getUserType(l_partyId,l_UserType);
1418: l_UserType:=p_usertype;
1419:
1420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1421: ibe_util.debug('NotifyRegistration:Before Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
1422: ||' User Type: '||l_userType);
1423:
1424: END IF;
1425: --ab-start

Line 1430: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1426: -- get the approval id associated with the user type
1427:
1428: OPEN C_get_approval_id(l_UserType);
1429: FETCH C_get_approval_id into l_approval_id;
1430: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1431: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);
1432: END IF;
1433: IF C_get_approval_id%FOUND AND l_approval_id >0 THEN
1434: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');

Line 1431: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);

1427:
1428: OPEN C_get_approval_id(l_UserType);
1429: FETCH C_get_approval_id into l_approval_id;
1430: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1431: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);
1432: END IF;
1433: IF C_get_approval_id%FOUND AND l_approval_id >0 THEN
1434: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');
1435: ------ approval associated with the user type -----------

Line 1434: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');

1430: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1431: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);
1432: END IF;
1433: IF C_get_approval_id%FOUND AND l_approval_id >0 THEN
1434: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');
1435: ------ approval associated with the user type -----------
1436: IF (l_UserType='IBE_INDIVIDUAL') THEN
1437: l_approval_msg_name:='IBE_APPRVL_REQD_B2C';
1438: ELSIF (l_UserType='IBE_PRIMARY') OR (l_UserType='IBE_BUSINESS') THEN

Line 1444: ibe_util.debug('NotifyRegistration:l_approval_msg =: '||fnd_message.get(l_approval_msg_name));

1440: ELSIF (l_UserType='IBE_PARTNER_PRIMARY') OR (l_UserType='IBE_PARTNER_BUSINESS') THEN
1441: l_approval_msg_name:='IBE_APPRVL_REQD_PRM';
1442: ELSE
1443: l_approval_msg_name:= l_UserType||'_APPR';
1444: ibe_util.debug('NotifyRegistration:l_approval_msg =: '||fnd_message.get(l_approval_msg_name));
1445: If fnd_message.get(l_approval_msg_name)= l_approval_msg_name Then
1446: l_approval_msg_name:='IBE_APPRVL_REQD_CUST';
1447: End if;
1448: END IF;

Line 1450: ibe_util.debug('NotifyRegistration:Approval not associated with the user type');

1446: l_approval_msg_name:='IBE_APPRVL_REQD_CUST';
1447: End if;
1448: END IF;
1449: ELSE --approval not associated with the user type
1450: ibe_util.debug('NotifyRegistration:Approval not associated with the user type');
1451: IF (l_UserType='IBE_INDIVIDUAL') THEN
1452: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_B2C';
1453: ELSIF (l_UserType='IBE_PRIMARY')OR (l_UserType='IBE_BUSINESS') THEN
1454: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_B2B';

Line 1459: ibe_util.debug('NotifyRegistration:l_approval_msg =: '||fnd_message.get(l_approval_msg_name));

1455: ELSIF (l_UserType='IBE_PARTNER_PRIMARY') OR (l_UserType='IBE_PARTNER_BUSINESS') THEN
1456: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_PRM';
1457: ELSE
1458: l_approval_msg_name:= l_UserType||'_NOAPPR';
1459: ibe_util.debug('NotifyRegistration:l_approval_msg =: '||fnd_message.get(l_approval_msg_name));
1460: If fnd_message.get(l_approval_msg_name)= l_approval_msg_name Then
1461: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_CUST';
1462: End if;
1463: END IF;

Line 1465: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1461: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_CUST';
1462: End if;
1463: END IF;
1464: END IF;
1465: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1466: ibe_util.debug('NotifyRegistration:l_approval_msg_name='||l_approval_msg_name);
1467: END IF;
1468: CLOSE C_get_approval_id;
1469: --end ab

Line 1466: ibe_util.debug('NotifyRegistration:l_approval_msg_name='||l_approval_msg_name);

1462: End if;
1463: END IF;
1464: END IF;
1465: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1466: ibe_util.debug('NotifyRegistration:l_approval_msg_name='||l_approval_msg_name);
1467: END IF;
1468: CLOSE C_get_approval_id;
1469: --end ab
1470: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 1481: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1477: x_return_status => x_return_status,
1478: x_msg_data => x_msg_data,
1479: x_msg_count => x_msg_count);
1480:
1481: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1482: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1483: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);
1484: END IF;
1485: -- If x_msg_count > 0 Then

Line 1482: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

1478: x_msg_data => x_msg_data,
1479: x_msg_count => x_msg_count);
1480:
1481: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1482: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1483: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);
1484: END IF;
1485: -- If x_msg_count > 0 Then
1486: -- Raise GET_MESSAGE_ERROR;

Line 1483: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);

1479: x_msg_count => x_msg_count);
1480:
1481: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1482: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1483: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);
1484: END IF;
1485: -- If x_msg_count > 0 Then
1486: -- Raise GET_MESSAGE_ERROR;
1487: -- End if;

Line 1488: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1484: END IF;
1485: -- If x_msg_count > 0 Then
1486: -- Raise GET_MESSAGE_ERROR;
1487: -- End if;
1488: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1489: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);
1490: END IF;
1491: If l_msgEnabled = 'Y' Then
1492: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;

Line 1489: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);

1485: -- If x_msg_count > 0 Then
1486: -- Raise GET_MESSAGE_ERROR;
1487: -- End if;
1488: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1489: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);
1490: END IF;
1491: If l_msgEnabled = 'Y' Then
1492: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1489: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);
1490: END IF;
1491: If l_msgEnabled = 'Y' Then
1492: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1494: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);
1495: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||
1496: ':ApprovalMsgId='||l_approval_msg_name||
1497: ':FirstName='||p_first_name|| ':LastName='||p_last_name || ':LoginName=' ||p_login_name ||

Line 1494: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);

1490: END IF;
1491: If l_msgEnabled = 'Y' Then
1492: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1494: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);
1495: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||
1496: ':ApprovalMsgId='||l_approval_msg_name||
1497: ':FirstName='||p_first_name|| ':LastName='||p_last_name || ':LoginName=' ||p_login_name ||
1498: ':emailAddress='|| p_email_address || ':eventType='||p_event_type ||

Line 1495: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||

1491: If l_msgEnabled = 'Y' Then
1492: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1494: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);
1495: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||
1496: ':ApprovalMsgId='||l_approval_msg_name||
1497: ':FirstName='||p_first_name|| ':LastName='||p_last_name || ':LoginName=' ||p_login_name ||
1498: ':emailAddress='|| p_email_address || ':eventType='||p_event_type ||
1499: ':sendTo='||l_adhoc_user ||':URL=''||l_url'||':orgnum='||l_partyNum ||

Line 1572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1568: itemkey => l_item_key,
1569: aname => 'APPROVALMSGID',
1570: avalue => l_approval_msg_name);
1571:
1572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1573: ibe_util.debug('NotifyRegistration :set attribute APPROVALMSGID='|| l_approval_msg_name);
1574: END IF;
1575:
1576: wf_engine.SetItemAttrText(

Line 1573: ibe_util.debug('NotifyRegistration :set attribute APPROVALMSGID='|| l_approval_msg_name);

1569: aname => 'APPROVALMSGID',
1570: avalue => l_approval_msg_name);
1571:
1572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1573: ibe_util.debug('NotifyRegistration :set attribute APPROVALMSGID='|| l_approval_msg_name);
1574: END IF;
1575:
1576: wf_engine.SetItemAttrText(
1577: itemtype => g_ItemType,

Line 1595: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1591: itemkey => l_item_key,
1592: aname => 'ITEMKEY',
1593: avalue => l_item_key);
1594:
1595: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1596: ibe_util.debug('NotifyRegistration : Item key set as'|| l_item_key);
1597: END IF;
1598:
1599: wf_engine.SetItemOwner(

Line 1596: ibe_util.debug('NotifyRegistration : Item key set as'|| l_item_key);

1592: aname => 'ITEMKEY',
1593: avalue => l_item_key);
1594:
1595: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1596: ibe_util.debug('NotifyRegistration : Item key set as'|| l_item_key);
1597: END IF;
1598:
1599: wf_engine.SetItemOwner(
1600: itemtype => g_ItemType,

Line 1608: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1604: wf_engine.StartProcess(
1605: itemtype => g_ItemType,
1606: itemkey => l_item_key);
1607:
1608: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1609: ibe_util.debug('NotifyRegistration :workflow Process Started');
1610: END IF;
1611: End If;
1612: End If;

Line 1609: ibe_util.debug('NotifyRegistration :workflow Process Started');

1605: itemtype => g_ItemType,
1606: itemkey => l_item_key);
1607:
1608: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1609: ibe_util.debug('NotifyRegistration :workflow Process Started');
1610: END IF;
1611: End If;
1612: End If;
1613: Exception

Line 1665: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1661:
1662: x_return_status := FND_API.g_ret_sts_success;
1663:
1664:
1665: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1666: ibe_util.debug('Check if this notification is enabled.');
1667: END IF;
1668:
1669: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 1666: ibe_util.debug('Check if this notification is enabled.');

1662: x_return_status := FND_API.g_ret_sts_success;
1663:
1664:
1665: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1666: ibe_util.debug('Check if this notification is enabled.');
1667: END IF;
1668:
1669: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1670:

Line 1671: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1667: END IF;
1668:
1669: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1670:
1671: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1672: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
1673: l_notifEnabled);
1674: END IF;
1675:

Line 1672: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||

1668:
1669: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1670:
1671: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1672: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
1673: l_notifEnabled);
1674: END IF;
1675:
1676: IF l_notifEnabled = 'Y' THEN

Line 1687: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1683:
1684: l_orgId := MO_GLOBAL.get_current_org_id();
1685: getUserType(l_partyId,l_UserType);
1686:
1687: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1688: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
1689: ' Org_id: '||to_char(l_orgId) ||' User Type: '||
1690: l_userType);
1691: END IF;

Line 1688: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||

1684: l_orgId := MO_GLOBAL.get_current_org_id();
1685: getUserType(l_partyId,l_UserType);
1686:
1687: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1688: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
1689: ' Org_id: '||to_char(l_orgId) ||' User Type: '||
1690: l_userType);
1691: END IF;
1692:

Line 1706: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1702: x_msg_data => x_msg_data,
1703: x_msg_count => x_msg_count);
1704:
1705:
1706: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1707: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
1708: l_msgEnabled);
1709: END IF;
1710: IF x_msg_count > 0 THEN

Line 1707: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||

1703: x_msg_count => x_msg_count);
1704:
1705:
1706: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1707: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
1708: l_msgEnabled);
1709: END IF;
1710: IF x_msg_count > 0 THEN
1711: Raise GET_MESSAGE_ERROR;

Line 1718: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1714: IF l_msgEnabled = 'Y' THEN
1715:
1716: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||
1717: '-'||p_login_name;
1718: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1719: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1720: END IF;
1721:
1722: wf_engine.CreateProcess(

Line 1719: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

1715:
1716: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||
1717: '-'||p_login_name;
1718: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1719: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1720: END IF;
1721:
1722: wf_engine.CreateProcess(
1723: itemtype => g_ItemType,

Line 1789: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1785: wf_engine.StartProcess(
1786: itemtype => g_ItemType,
1787: itemkey => l_item_key);
1788:
1789: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1790: ibe_util.debug('Process Started');
1791: END IF;
1792:
1793: END IF;

Line 1790: ibe_util.debug('Process Started');

1786: itemtype => g_ItemType,
1787: itemkey => l_item_key);
1788:
1789: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1790: ibe_util.debug('Process Started');
1791: END IF;
1792:
1793: END IF;
1794: END IF;

Line 1916: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1912: l_msite_name := 'Msite_name'||rec_minisite_name.msite_name;
1913: exit when c_minisite_name%notfound;
1914: end loop;*/
1915:
1916: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1917: ibe_util.debug('Minisite_id in NotifyOrderStatus is: '||p_msite_id);
1918: END IF;
1919: /* Success 'S' indicates order confirmation for Credit Card or Fax Orders */
1920: l_adhoc_user := NULL;

Line 1917: ibe_util.debug('Minisite_id in NotifyOrderStatus is: '||p_msite_id);

1913: exit when c_minisite_name%notfound;
1914: end loop;*/
1915:
1916: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1917: ibe_util.debug('Minisite_id in NotifyOrderStatus is: '||p_msite_id);
1918: END IF;
1919: /* Success 'S' indicates order confirmation for Credit Card or Fax Orders */
1920: l_adhoc_user := NULL;
1921: IF ( p_status = 'S' ) THEN

Line 1944: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1940: --bug 6877589 ukalaiah
1941: --ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD' And trim(g_header_rec.credit_card_number) is NULL) THEN
1942: ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD') THEN
1943:
1944: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1945: ibe_util.debug('trying for credit card '||to_char(l_order_id));
1946: END IF;
1947: OPEN c_card_number(l_order_id);
1948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1945: ibe_util.debug('trying for credit card '||to_char(l_order_id));

1941: --ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD' And trim(g_header_rec.credit_card_number) is NULL) THEN
1942: ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD') THEN
1943:
1944: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1945: ibe_util.debug('trying for credit card '||to_char(l_order_id));
1946: END IF;
1947: OPEN c_card_number(l_order_id);
1948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1949: ibe_util.debug('opened the cursor successfully');

Line 1948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1944: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1945: ibe_util.debug('trying for credit card '||to_char(l_order_id));
1946: END IF;
1947: OPEN c_card_number(l_order_id);
1948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1949: ibe_util.debug('opened the cursor successfully');
1950: END IF;
1951:
1952: IF (c_card_number%NOTFOUND) THEN

Line 1949: ibe_util.debug('opened the cursor successfully');

1945: ibe_util.debug('trying for credit card '||to_char(l_order_id));
1946: END IF;
1947: OPEN c_card_number(l_order_id);
1948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1949: ibe_util.debug('opened the cursor successfully');
1950: END IF;
1951:
1952: IF (c_card_number%NOTFOUND) THEN
1953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1949: ibe_util.debug('opened the cursor successfully');
1950: END IF;
1951:
1952: IF (c_card_number%NOTFOUND) THEN
1953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1954: ibe_util.debug('query returned zero rows, event type: fax');
1955: END IF;
1956: l_event_type := 'ORDFAX';
1957: l_notifName := 'ORDFAXNOTIFICATION';

Line 1954: ibe_util.debug('query returned zero rows, event type: fax');

1950: END IF;
1951:
1952: IF (c_card_number%NOTFOUND) THEN
1953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1954: ibe_util.debug('query returned zero rows, event type: fax');
1955: END IF;
1956: l_event_type := 'ORDFAX';
1957: l_notifName := 'ORDFAXNOTIFICATION';
1958: ELSE

Line 1959: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1955: END IF;
1956: l_event_type := 'ORDFAX';
1957: l_notifName := 'ORDFAXNOTIFICATION';
1958: ELSE
1959: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1960: ibe_util.debug('query returned some rows, looking for credit card');
1961: END IF;
1962: FETCH c_card_number into l_card_number;
1963: IF (trim(l_card_number) is NULL) THEN

Line 1960: ibe_util.debug('query returned some rows, looking for credit card');

1956: l_event_type := 'ORDFAX';
1957: l_notifName := 'ORDFAXNOTIFICATION';
1958: ELSE
1959: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1960: ibe_util.debug('query returned some rows, looking for credit card');
1961: END IF;
1962: FETCH c_card_number into l_card_number;
1963: IF (trim(l_card_number) is NULL) THEN
1964: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1964: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1960: ibe_util.debug('query returned some rows, looking for credit card');
1961: END IF;
1962: FETCH c_card_number into l_card_number;
1963: IF (trim(l_card_number) is NULL) THEN
1964: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1965: ibe_util.debug('query returned some rows, credit card number not exist');
1966: END IF;
1967: l_event_type := 'ORDFAX';
1968: l_notifName := 'ORDFAXNOTIFICATION';

Line 1965: ibe_util.debug('query returned some rows, credit card number not exist');

1961: END IF;
1962: FETCH c_card_number into l_card_number;
1963: IF (trim(l_card_number) is NULL) THEN
1964: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1965: ibe_util.debug('query returned some rows, credit card number not exist');
1966: END IF;
1967: l_event_type := 'ORDFAX';
1968: l_notifName := 'ORDFAXNOTIFICATION';
1969: END IF;

Line 1978: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1974: ElsIF ( p_status = 'E' )THEN
1975: l_event_type := 'ORDERROR';
1976: l_notifName := 'ORDNOTBOOKNOTIFICATION';
1977: l_errmsg_count := p_errmsg_count;
1978: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1979: ibe_util.debug('Notify Order Status - Error Message Count - '||to_char(l_errmsg_count));
1980: END IF;
1981: IF ( l_errmsg_count = 1 ) THEN
1982: l_errmsg_data := p_errmsg_data;

Line 1979: ibe_util.debug('Notify Order Status - Error Message Count - '||to_char(l_errmsg_count));

1975: l_event_type := 'ORDERROR';
1976: l_notifName := 'ORDNOTBOOKNOTIFICATION';
1977: l_errmsg_count := p_errmsg_count;
1978: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1979: ibe_util.debug('Notify Order Status - Error Message Count - '||to_char(l_errmsg_count));
1980: END IF;
1981: IF ( l_errmsg_count = 1 ) THEN
1982: l_errmsg_data := p_errmsg_data;
1983: ELSE

Line 1993: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1989: l_errmsg_data := l_errmsg_data || TAB || TAB ||l_temp_str || NEWLINE;
1990: l_this := l_this + 1;
1991: END LOOP;
1992: END IF;
1993: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1994: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);
1995: END IF;
1996: END IF;
1997:

Line 1994: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);

1990: l_this := l_this + 1;
1991: END LOOP;
1992: END IF;
1993: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1994: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);
1995: END IF;
1996: END IF;
1997:
1998: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1998: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1994: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);
1995: END IF;
1996: END IF;
1997:
1998: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1999: ibe_util.debug('Check if this notification is enabled.');
2000: END IF;
2001: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2002: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 1999: ibe_util.debug('Check if this notification is enabled.');

1995: END IF;
1996: END IF;
1997:
1998: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1999: ibe_util.debug('Check if this notification is enabled.');
2000: END IF;
2001: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2002: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2003: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

Line 2002: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

1998: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1999: ibe_util.debug('Check if this notification is enabled.');
2000: END IF;
2001: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2002: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2003: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2004: END IF;
2005: If l_notifEnabled = 'Y' Then
2006: IF ( p_status = 'S' ) THEN

Line 2003: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

1999: ibe_util.debug('Check if this notification is enabled.');
2000: END IF;
2001: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2002: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2003: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2004: END IF;
2005: If l_notifEnabled = 'Y' Then
2006: IF ( p_status = 'S' ) THEN
2007: getUserType(l_partyId,l_UserType);

Line 2013: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2009: l_admin_email_addr := FND_PROFILE.VALUE_SPECIFIC('IBE_ORDER_ADMIN',null,null,671);
2010: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
2011: l_admin_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
2012: l_admin_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;
2013: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2014: IBE_UTIL.DEBUG('Partner Order-AdminEmail '||l_admin_email_addr||'Name'||l_admin_adhoc_user||'preference'||l_notification_preference);
2015: END IF;
2016: wf_directory.CreateAdHocUser(
2017: name => l_admin_adhoc_user,

Line 2014: IBE_UTIL.DEBUG('Partner Order-AdminEmail '||l_admin_email_addr||'Name'||l_admin_adhoc_user||'preference'||l_notification_preference);

2010: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
2011: l_admin_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
2012: l_admin_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;
2013: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2014: IBE_UTIL.DEBUG('Partner Order-AdminEmail '||l_admin_email_addr||'Name'||l_admin_adhoc_user||'preference'||l_notification_preference);
2015: END IF;
2016: wf_directory.CreateAdHocUser(
2017: name => l_admin_adhoc_user,
2018: display_name => l_admin_adhoc_user_display,

Line 2035: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2031: notification_preference => l_notification_preference,
2032: role_users => l_role_users,
2033: expiration_date => sysdate + 1);
2034: l_adhoc_user := l_adhoc_role;
2035: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2036: IBE_UTIL.DEBUG('Partner Order-Adhoc Role: '||l_adhoc_user);
2037: END IF;
2038: END IF; --Partner UserType End If
2039: Else

Line 2036: IBE_UTIL.DEBUG('Partner Order-Adhoc Role: '||l_adhoc_user);

2032: role_users => l_role_users,
2033: expiration_date => sysdate + 1);
2034: l_adhoc_user := l_adhoc_role;
2035: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2036: IBE_UTIL.DEBUG('Partner Order-Adhoc Role: '||l_adhoc_user);
2037: END IF;
2038: END IF; --Partner UserType End If
2039: Else
2040: L_adhoc_user := FND_PROFILE.VALUE_SPECIFIC('IBE_DEF_ORDER_ADMIN_EMAIL',null,null,671);

Line 2047: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2043: FOR c_quote_rec In c_quote_header(p_quote_id) LOOP
2044: l_order_id := c_quote_rec.order_id;
2045: END LOOP;
2046: End if;
2047: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2048: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2049: END IF;
2050:
2051: /*The following function call determines whether the user has permission

Line 2048: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);

2044: l_order_id := c_quote_rec.order_id;
2045: END LOOP;
2046: End if;
2047: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2048: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2049: END IF;
2050:
2051: /*The following function call determines whether the user has permission
2052: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission

Line 2052: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission

2048: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2049: END IF;
2050:
2051: /*The following function call determines whether the user has permission
2052: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2053: to view net price is enabled for this user otherwise this function return false */
2054:
2055: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2056: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');

Line 2055: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );

2051: /*The following function call determines whether the user has permission
2052: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2053: to view net price is enabled for this user otherwise this function return false */
2054:
2055: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2056: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
2057: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
2058:
2059: IF (l_permission_to_view_price) THEN

Line 2075: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2071: x_wf_message_name => l_MessageName ,
2072: x_return_status => x_return_status,
2073: x_msg_data => x_msg_data ,
2074: x_msg_count => x_msg_data);
2075: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2076: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2077: END IF;
2078: If x_msg_count > 0 Then
2079: Raise GET_MESSAGE_ERROR;

Line 2076: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

2072: x_return_status => x_return_status,
2073: x_msg_data => x_msg_data ,
2074: x_msg_count => x_msg_data);
2075: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2076: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2077: END IF;
2078: If x_msg_count > 0 Then
2079: Raise GET_MESSAGE_ERROR;
2080: End if;

Line 2082: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2078: If x_msg_count > 0 Then
2079: Raise GET_MESSAGE_ERROR;
2080: End if;
2081: If l_msgEnabled = 'Y' Then
2082: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2083: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2084: END IF;
2085:
2086: get_name_details(

Line 2083: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);

2079: Raise GET_MESSAGE_ERROR;
2080: End if;
2081: If l_msgEnabled = 'Y' Then
2082: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2083: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2084: END IF;
2085:
2086: get_name_details(
2087: p_party_id => l_partyId,

Line 2093: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2089: x_contact_first_name => l_first_name,
2090: x_contact_last_name => l_last_name,
2091: x_party_id => lx_party_id);
2092:
2093: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2094: ibe_util.debug('first_name of the owner: '||l_first_name);
2095: END IF;
2096: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2097: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/

Line 2094: ibe_util.debug('first_name of the owner: '||l_first_name);

2090: x_contact_last_name => l_last_name,
2091: x_party_id => lx_party_id);
2092:
2093: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2094: ibe_util.debug('first_name of the owner: '||l_first_name);
2095: END IF;
2096: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2097: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2098: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 2098: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2094: ibe_util.debug('first_name of the owner: '||l_first_name);
2095: END IF;
2096: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2097: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2098: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2099: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2100: END IF;
2101: wf_engine.CreateProcess(
2102: itemtype => g_ItemType,

Line 2099: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

2095: END IF;
2096: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2097: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2098: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2099: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2100: END IF;
2101: wf_engine.CreateProcess(
2102: itemtype => g_ItemType,
2103: itemkey => l_item_key,

Line 2105: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2101: wf_engine.CreateProcess(
2102: itemtype => g_ItemType,
2103: itemkey => l_item_key,
2104: process => g_processName);
2105: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2106: ibe_util.debug('DONE:Create and Start Process with Item Key: '||l_item_key);
2107: END IF;
2108:
2109:

Line 2106: ibe_util.debug('DONE:Create and Start Process with Item Key: '||l_item_key);

2102: itemtype => g_ItemType,
2103: itemkey => l_item_key,
2104: process => g_processName);
2105: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2106: ibe_util.debug('DONE:Create and Start Process with Item Key: '||l_item_key);
2107: END IF;
2108:
2109:
2110: wf_engine.SetItemUserKey(

Line 2114: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2110: wf_engine.SetItemUserKey(
2111: itemtype => g_ItemType,
2112: itemkey => l_item_key,
2113: userkey => l_item_key);
2114: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2115: ibe_util.debug('NotifyOrderStatus: Done setItemUserKey');
2116: END IF;
2117:
2118: wf_engine.SetItemAttrText(

Line 2115: ibe_util.debug('NotifyOrderStatus: Done setItemUserKey');

2111: itemtype => g_ItemType,
2112: itemkey => l_item_key,
2113: userkey => l_item_key);
2114: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2115: ibe_util.debug('NotifyOrderStatus: Done setItemUserKey');
2116: END IF;
2117:
2118: wf_engine.SetItemAttrText(
2119: itemtype => g_ItemType,

Line 2123: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2119: itemtype => g_ItemType,
2120: itemkey => l_item_key,
2121: aname => 'MESSAGE',
2122: avalue => l_MessageName);
2123: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2124: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MESSAGE');
2125: END IF;
2126:
2127: wf_engine.SetItemAttrText(

Line 2124: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MESSAGE');

2120: itemkey => l_item_key,
2121: aname => 'MESSAGE',
2122: avalue => l_MessageName);
2123: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2124: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MESSAGE');
2125: END IF;
2126:
2127: wf_engine.SetItemAttrText(
2128: itemtype => g_ItemType,

Line 2132: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2128: itemtype => g_ItemType,
2129: itemkey => l_item_key,
2130: aname => 'ITEMKEY',
2131: avalue => l_item_key);
2132: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2133: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ITEMKEY');
2134: END IF;
2135:
2136: wf_engine.SetItemAttrText(

Line 2133: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ITEMKEY');

2129: itemkey => l_item_key,
2130: aname => 'ITEMKEY',
2131: avalue => l_item_key);
2132: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2133: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ITEMKEY');
2134: END IF;
2135:
2136: wf_engine.SetItemAttrText(
2137: itemtype => g_ItemType,

Line 2141: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2137: itemtype => g_ItemType,
2138: itemkey => l_item_key,
2139: aname => 'EVENTTYPE',
2140: avalue => l_event_type);
2141: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2142: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for EVENTTYPE');
2143: END IF;
2144:
2145: wf_engine.SetItemAttrText(

Line 2142: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for EVENTTYPE');

2138: itemkey => l_item_key,
2139: aname => 'EVENTTYPE',
2140: avalue => l_event_type);
2141: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2142: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for EVENTTYPE');
2143: END IF;
2144:
2145: wf_engine.SetItemAttrText(
2146: itemtype => g_ItemType,

Line 2150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2146: itemtype => g_ItemType,
2147: itemkey => l_item_key,
2148: aname => 'QUOTEID',
2149: avalue => p_quote_id);
2150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2151: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for QUOTEID');
2152: END IF;
2153:
2154: wf_engine.SetItemAttrText(

Line 2151: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for QUOTEID');

2147: itemkey => l_item_key,
2148: aname => 'QUOTEID',
2149: avalue => p_quote_id);
2150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2151: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for QUOTEID');
2152: END IF;
2153:
2154: wf_engine.SetItemAttrText(
2155: itemtype => g_ItemType,

Line 2159: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2155: itemtype => g_ItemType,
2156: itemkey => l_item_key,
2157: aname => 'MSITEID',
2158: avalue => p_msite_id);
2159: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2160: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MSITENAME');
2161: END IF;
2162:
2163: wf_engine.SetItemAttrText(

Line 2160: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MSITENAME');

2156: itemkey => l_item_key,
2157: aname => 'MSITEID',
2158: avalue => p_msite_id);
2159: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2160: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MSITENAME');
2161: END IF;
2162:
2163: wf_engine.SetItemAttrText(
2164: itemtype => g_ItemType,

Line 2176: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2172: aname => 'LASTNAME',
2173: avalue => l_last_name);
2174:
2175:
2176: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2177: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for FIRSTNAME');
2178: END IF;
2179:
2180: wf_engine.SetItemAttrText(

Line 2177: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for FIRSTNAME');

2173: avalue => l_last_name);
2174:
2175:
2176: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2177: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for FIRSTNAME');
2178: END IF;
2179:
2180: wf_engine.SetItemAttrText(
2181: itemtype => g_ItemType,

Line 2185: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2181: itemtype => g_ItemType,
2182: itemkey => l_item_key,
2183: aname => 'ORDERID',
2184: avalue => l_order_id);
2185: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2186: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ORDERID');
2187: END IF;
2188:
2189: wf_engine.SetItemAttrText(

Line 2186: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ORDERID');

2182: itemkey => l_item_key,
2183: aname => 'ORDERID',
2184: avalue => l_order_id);
2185: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2186: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ORDERID');
2187: END IF;
2188:
2189: wf_engine.SetItemAttrText(
2190: itemtype => g_ItemType,

Line 2213: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2209: itemtype => g_ItemType,
2210: itemkey => l_item_key,
2211: aname => 'SENDTO',
2212: avalue => l_adhoc_user);
2213: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2214: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for SENDTO');
2215: END IF;
2216:
2217: wf_engine.SetItemAttrText(

Line 2214: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for SENDTO');

2210: itemkey => l_item_key,
2211: aname => 'SENDTO',
2212: avalue => l_adhoc_user);
2213: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2214: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for SENDTO');
2215: END IF;
2216:
2217: wf_engine.SetItemAttrText(
2218: itemtype => g_ItemType,

Line 2222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2218: itemtype => g_ItemType,
2219: itemkey => l_item_key,
2220: aname => 'ERRMSG',
2221: avalue => l_errmsg_data);
2222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2223: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ERRMSG');
2224: END IF;
2225:
2226: wf_engine.SetItemOwner(

Line 2223: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ERRMSG');

2219: itemkey => l_item_key,
2220: aname => 'ERRMSG',
2221: avalue => l_errmsg_data);
2222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2223: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ERRMSG');
2224: END IF;
2225:
2226: wf_engine.SetItemOwner(
2227: itemtype => g_ItemType,

Line 2230: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2226: wf_engine.SetItemOwner(
2227: itemtype => g_ItemType,
2228: itemkey => l_item_key,
2229: owner => l_item_owner);
2230: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2231: ibe_util.debug('NotifyOrderStatus: Done setItemOwner');
2232: END IF;
2233:
2234: wf_engine.StartProcess(

Line 2231: ibe_util.debug('NotifyOrderStatus: Done setItemOwner');

2227: itemtype => g_ItemType,
2228: itemkey => l_item_key,
2229: owner => l_item_owner);
2230: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2231: ibe_util.debug('NotifyOrderStatus: Done setItemOwner');
2232: END IF;
2233:
2234: wf_engine.StartProcess(
2235: itemtype => g_ItemType,

Line 2238: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2234: wf_engine.StartProcess(
2235: itemtype => g_ItemType,
2236: itemkey => l_item_key);
2237:
2238: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2239: ibe_util.debug('Process Started');
2240: END IF;
2241:
2242: End If;

Line 2239: ibe_util.debug('Process Started');

2235: itemtype => g_ItemType,
2236: itemkey => l_item_key);
2237:
2238: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2239: ibe_util.debug('Process Started');
2240: END IF;
2241:
2242: End If;
2243: END IF;

Line 2262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2258: --bug 6877589 ukalaiah
2259: --ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD' And trim(g_header_rec.credit_card_number) is NULL)
2260: ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD' )
2261: THEN
2262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2263: ibe_util.debug('2:trying for credit card '||to_char(l_order_id));
2264: END IF;
2265: OPEN c_card_number(l_order_id);
2266: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 2263: ibe_util.debug('2:trying for credit card '||to_char(l_order_id));

2259: --ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD' And trim(g_header_rec.credit_card_number) is NULL)
2260: ElsIf ( g_header_rec.payment_type_code = 'CREDIT_CARD' )
2261: THEN
2262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2263: ibe_util.debug('2:trying for credit card '||to_char(l_order_id));
2264: END IF;
2265: OPEN c_card_number(l_order_id);
2266: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2267: ibe_util.debug('2:opened the cursor successfully');

Line 2266: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2262: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2263: ibe_util.debug('2:trying for credit card '||to_char(l_order_id));
2264: END IF;
2265: OPEN c_card_number(l_order_id);
2266: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2267: ibe_util.debug('2:opened the cursor successfully');
2268: END IF;
2269:
2270: IF (c_card_number%NOTFOUND) THEN

Line 2267: ibe_util.debug('2:opened the cursor successfully');

2263: ibe_util.debug('2:trying for credit card '||to_char(l_order_id));
2264: END IF;
2265: OPEN c_card_number(l_order_id);
2266: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2267: ibe_util.debug('2:opened the cursor successfully');
2268: END IF;
2269:
2270: IF (c_card_number%NOTFOUND) THEN
2271: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 2271: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2267: ibe_util.debug('2:opened the cursor successfully');
2268: END IF;
2269:
2270: IF (c_card_number%NOTFOUND) THEN
2271: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2272: ibe_util.debug('2:query returned zero rows, event type: fax');
2273: END IF;
2274: l_event_type := 'ORDFAX';
2275: l_notifName := 'ORDFAXNOTIFICATION';

Line 2272: ibe_util.debug('2:query returned zero rows, event type: fax');

2268: END IF;
2269:
2270: IF (c_card_number%NOTFOUND) THEN
2271: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2272: ibe_util.debug('2:query returned zero rows, event type: fax');
2273: END IF;
2274: l_event_type := 'ORDFAX';
2275: l_notifName := 'ORDFAXNOTIFICATION';
2276: ELSE

Line 2277: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2273: END IF;
2274: l_event_type := 'ORDFAX';
2275: l_notifName := 'ORDFAXNOTIFICATION';
2276: ELSE
2277: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2278: ibe_util.debug('2:query returned some rows, looking for credit card');
2279: END IF;
2280: FETCH c_card_number into l_card_number;
2281: IF (trim(l_card_number) is NULL) THEN

Line 2278: ibe_util.debug('2:query returned some rows, looking for credit card');

2274: l_event_type := 'ORDFAX';
2275: l_notifName := 'ORDFAXNOTIFICATION';
2276: ELSE
2277: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2278: ibe_util.debug('2:query returned some rows, looking for credit card');
2279: END IF;
2280: FETCH c_card_number into l_card_number;
2281: IF (trim(l_card_number) is NULL) THEN
2282: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 2282: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2278: ibe_util.debug('2:query returned some rows, looking for credit card');
2279: END IF;
2280: FETCH c_card_number into l_card_number;
2281: IF (trim(l_card_number) is NULL) THEN
2282: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2283: ibe_util.debug('2:query returned some rows, credit card number not exist');
2284: END IF;
2285: l_event_type := 'ORDFAX';
2286: l_notifName := 'ORDFAXNOTIFICATION';

Line 2283: ibe_util.debug('2:query returned some rows, credit card number not exist');

2279: END IF;
2280: FETCH c_card_number into l_card_number;
2281: IF (trim(l_card_number) is NULL) THEN
2282: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2283: ibe_util.debug('2:query returned some rows, credit card number not exist');
2284: END IF;
2285: l_event_type := 'ORDFAX';
2286: l_notifName := 'ORDFAXNOTIFICATION';
2287: END IF;

Line 2295: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2291: END IF;
2292: END LOOP;
2293: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2294: END IF;
2295: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2296: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2297: END IF;
2298:
2299:

Line 2296: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

2292: END LOOP;
2293: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2294: END IF;
2295: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2296: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2297: END IF;
2298:
2299:
2300: /*2369138

Line 2304: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2300: /*2369138
2301: If (l_msgEnabled = 'Y') AND (l_event_type = 'ORDCONF')
2302: AND (p_status = 'S')
2303: AND (p_sharee_partyId IS NOT NULL) Then*/
2304: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2305: ibe_util.debug('NotifyOrderStatus:p_sharee_party_id: '||p_sharee_partyId);
2306: END IF;
2307:
2308: IF (l_notifEnabled = 'Y') AND (p_sharee_partyId IS NOT NULL) THEN

Line 2305: ibe_util.debug('NotifyOrderStatus:p_sharee_party_id: '||p_sharee_partyId);

2301: If (l_msgEnabled = 'Y') AND (l_event_type = 'ORDCONF')
2302: AND (p_status = 'S')
2303: AND (p_sharee_partyId IS NOT NULL) Then*/
2304: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2305: ibe_util.debug('NotifyOrderStatus:p_sharee_party_id: '||p_sharee_partyId);
2306: END IF;
2307:
2308: IF (l_notifEnabled = 'Y') AND (p_sharee_partyId IS NOT NULL) THEN
2309: l_partyid := p_sharee_partyid;

Line 2325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2321: x_wf_message_name => l_MessageName,
2322: x_return_status => x_return_status,
2323: x_msg_data => x_msg_data,
2324: x_msg_count => x_msg_data);
2325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2326: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2327: END IF;
2328: If x_msg_count > 0 Then
2329: Raise GET_MESSAGE_ERROR;

Line 2326: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

2322: x_return_status => x_return_status,
2323: x_msg_data => x_msg_data,
2324: x_msg_count => x_msg_data);
2325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2326: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2327: END IF;
2328: If x_msg_count > 0 Then
2329: Raise GET_MESSAGE_ERROR;
2330: End if;

Line 2342: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission

2338: x_party_id => l_partyid);
2339:
2340:
2341: /*The following function call determines whether the user has permission
2342: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2343: to view net price is enabled for this user otherwise this function return false */
2344:
2345: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2346: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');

Line 2345: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );

2341: /*The following function call determines whether the user has permission
2342: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2343: to view net price is enabled for this user otherwise this function return false */
2344:
2345: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2346: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
2347: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
2348:
2349: IF (l_permission_to_view_price) THEN

Line 2356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2352: l_view_net_price_flag := 'N';
2353: END IF;
2354:
2355:
2356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2357: ibe_util.debug('first_name of the recipient: '||l_first_name);
2358: END IF;
2359:
2360: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 2357: ibe_util.debug('first_name of the recipient: '||l_first_name);

2353: END IF;
2354:
2355:
2356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2357: ibe_util.debug('first_name of the recipient: '||l_first_name);
2358: END IF;
2359:
2360: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2361: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);

Line 2360: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2357: ibe_util.debug('first_name of the recipient: '||l_first_name);
2358: END IF;
2359:
2360: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2361: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2362: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2363: END IF;
2364: wf_engine.CreateProcess(

Line 2361: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);

2357: ibe_util.debug('first_name of the recipient: '||l_first_name);
2358: END IF;
2359:
2360: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2361: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2362: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2363: END IF;
2364: wf_engine.CreateProcess(
2365: itemtype => g_ItemType,

Line 2362: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

2358: END IF;
2359:
2360: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2361: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2362: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2363: END IF;
2364: wf_engine.CreateProcess(
2365: itemtype => g_ItemType,
2366: itemkey => l_item_key,

Line 2464: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2460: wf_engine.StartProcess(
2461: itemtype => g_ItemType,
2462: itemkey => l_item_key);
2463:
2464: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2465: ibe_util.debug('Process Started');
2466: END IF;
2467: End if;
2468: End If;

Line 2465: ibe_util.debug('Process Started');

2461: itemtype => g_ItemType,
2462: itemkey => l_item_key);
2463:
2464: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2465: ibe_util.debug('Process Started');
2466: END IF;
2467: End if;
2468: End If;
2469: Exception

Line 2474: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2470: When OTHERS Then
2471: x_return_status := FND_API.g_ret_sts_error;
2472: x_msg_count := 0;
2473:
2474: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2475: IBE_UTIL.DEBUG('NotifyOrderStatus:Exception block: '||SQLCODE||': '||SQLERRM);
2476: END IF;
2477:
2478: wf_core.context('ibe_workflow_pvt',

Line 2475: IBE_UTIL.DEBUG('NotifyOrderStatus:Exception block: '||SQLCODE||': '||SQLERRM);

2471: x_return_status := FND_API.g_ret_sts_error;
2472: x_msg_count := 0;
2473:
2474: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2475: IBE_UTIL.DEBUG('NotifyOrderStatus:Exception block: '||SQLCODE||': '||SQLERRM);
2476: END IF;
2477:
2478: wf_core.context('ibe_workflow_pvt',
2479: 'NotifyOrderStatus',

Line 2566: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2562:
2563: l_order_header_id := p_order_header_id;
2564:
2565: l_OrgId := MO_GLOBAL.get_current_org_id(); -- bug 7720550, scnagara
2566: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2567: IBE_UTIL.DEBUG('NotifyReturnOrderStatus org id : '|| l_OrgId);
2568: END IF;
2569:
2570: FOR g_header_rec In c_order_header(l_order_header_id) LOOP -- bug 8337371, scnagara

Line 2567: IBE_UTIL.DEBUG('NotifyReturnOrderStatus org id : '|| l_OrgId);

2563: l_order_header_id := p_order_header_id;
2564:
2565: l_OrgId := MO_GLOBAL.get_current_org_id(); -- bug 7720550, scnagara
2566: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2567: IBE_UTIL.DEBUG('NotifyReturnOrderStatus org id : '|| l_OrgId);
2568: END IF;
2569:
2570: FOR g_header_rec In c_order_header(l_order_header_id) LOOP -- bug 8337371, scnagara
2571: l_minisite_id := g_header_rec.minisite_id;

Line 2574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2570: FOR g_header_rec In c_order_header(l_order_header_id) LOOP -- bug 8337371, scnagara
2571: l_minisite_id := g_header_rec.minisite_id;
2572: END LOOP;
2573:
2574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);
2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);
2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);
2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);

Line 2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);

2571: l_minisite_id := g_header_rec.minisite_id;
2572: END LOOP;
2573:
2574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);
2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);
2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);
2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);
2579: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_party_id = ' || l_party_id);

Line 2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);

2572: END LOOP;
2573:
2574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);
2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);
2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);
2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);
2579: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_party_id = ' || l_party_id);
2580: END IF;

Line 2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);

2573:
2574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);
2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);
2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);
2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);
2579: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_party_id = ' || l_party_id);
2580: END IF;
2581:

Line 2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);

2574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);
2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);
2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);
2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);
2579: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_party_id = ' || l_party_id);
2580: END IF;
2581:
2582:

Line 2579: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_party_id = ' || l_party_id);

2575: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_order_header_id = ' || l_order_header_id);
2576: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_usertype = ' || l_usertype);
2577: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_Orgid = ' || l_Orgid);
2578: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_minisite_id = ' || l_minisite_id);
2579: IBE_UTIL.DEBUG('NotifyReturnOrderStatus: l_party_id = ' || l_party_id);
2580: END IF;
2581:
2582:
2583: /* Check whether the notification is enabled or not */

Line 2605: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );

2601: x_msg_count => x_msg_data);
2602:
2603: -- Get permission based pricing value from api function
2604:
2605: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2606: IF (l_permission_to_view_price) THEN
2607: l_view_net_price_flag := 'Y';
2608: ELSE
2609: l_view_net_price_flag := 'N';

Line 2823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2819: ----DBMS_OUTPUT.PUT('Order id is: '||p_order_id);
2820: FOR rec_b2c_contact in c_b2c_contact(p_order_id) LOOP
2821: l_party_type := rec_b2c_contact.party_type;
2822: ----DBMS_OUTPUT.PUT('Party type is: '||l_party_type);
2823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2824: IBE_UTIL.debug('L_party_type in get_contact_details_for_order: '||l_party_type);
2825: END IF;
2826: IF (l_party_type = 'PERSON') then --B2C user, get the details directly from hz_parties
2827: x_contact_party_id := rec_b2c_contact.party_id;

Line 2824: IBE_UTIL.debug('L_party_type in get_contact_details_for_order: '||l_party_type);

2820: FOR rec_b2c_contact in c_b2c_contact(p_order_id) LOOP
2821: l_party_type := rec_b2c_contact.party_type;
2822: ----DBMS_OUTPUT.PUT('Party type is: '||l_party_type);
2823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2824: IBE_UTIL.debug('L_party_type in get_contact_details_for_order: '||l_party_type);
2825: END IF;
2826: IF (l_party_type = 'PERSON') then --B2C user, get the details directly from hz_parties
2827: x_contact_party_id := rec_b2c_contact.party_id;
2828: x_contact_first_name := rec_b2c_contact.person_first_name;

Line 2865: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2861: x_contact_mid_name := l_contact_mid_name;
2862: x_contact_last_name := l_contact_last_name;
2863: END IF;
2864:
2865: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2866: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2867: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2868: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2869: END IF;

Line 2866: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);

2862: x_contact_last_name := l_contact_last_name;
2863: END IF;
2864:
2865: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2866: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2867: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2868: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2869: END IF;
2870:

Line 2867: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);

2863: END IF;
2864:
2865: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2866: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2867: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2868: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2869: END IF;
2870:
2871: -- Standard check of p_commit.

Line 2868: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);

2864:
2865: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2866: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2867: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2868: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2869: END IF;
2870:
2871: -- Standard check of p_commit.
2872: IF FND_API.To_Boolean(p_commit) THEN

Line 2938: --ibe_util.enable_debug;

2934: l_msgEnabled VARCHAR2(3) :='Y';
2935:
2936:
2937: BEGIN
2938: --ibe_util.enable_debug;
2939: ----DBMS_OUTPUT.PUT('reday to call Notify_cancel_order');
2940: x_return_status := FND_API.g_ret_sts_success;
2941: -- Check for WorkFlow Feature Availablity.
2942: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 2942: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2938: --ibe_util.enable_debug;
2939: ----DBMS_OUTPUT.PUT('reday to call Notify_cancel_order');
2940: x_return_status := FND_API.g_ret_sts_success;
2941: -- Check for WorkFlow Feature Availablity.
2942: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2943: ibe_util.debug('Check if this notification is enabled.');
2944: END IF;
2945: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2946: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

Line 2943: ibe_util.debug('Check if this notification is enabled.');

2939: ----DBMS_OUTPUT.PUT('reday to call Notify_cancel_order');
2940: x_return_status := FND_API.g_ret_sts_success;
2941: -- Check for WorkFlow Feature Availablity.
2942: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2943: ibe_util.debug('Check if this notification is enabled.');
2944: END IF;
2945: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2946: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2947: --l_notifEnabled := 'Y';

Line 2949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2945: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2946: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2947: --l_notifEnabled := 'Y';
2948: If l_notifEnabled = 'Y' Then
2949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2950: IBE_UTIL.debug('Getting the contact party id');
2951: END IF;
2952: ----DBMS_OUTPUT.PUT('Getting the contact party id');
2953: ibe_workflow_pvt.get_contact_details_for_order

Line 2950: IBE_UTIL.debug('Getting the contact party id');

2946: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2947: --l_notifEnabled := 'Y';
2948: If l_notifEnabled = 'Y' Then
2949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2950: IBE_UTIL.debug('Getting the contact party id');
2951: END IF;
2952: ----DBMS_OUTPUT.PUT('Getting the contact party id');
2953: ibe_workflow_pvt.get_contact_details_for_order
2954: (p_api_version => 1.0 ,

Line 2972: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2968:
2969: IF x_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
2970: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2971: END IF;
2972: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2973: IBE_UTIL.DEBUG('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2974: END IF;
2975: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2976: getUserType(l_contact_party_Id,

Line 2973: IBE_UTIL.DEBUG('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);

2969: IF x_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
2970: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2971: END IF;
2972: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2973: IBE_UTIL.DEBUG('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2974: END IF;
2975: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2976: getUserType(l_contact_party_Id,
2977: l_UserType);

Line 2978: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2974: END IF;
2975: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2976: getUserType(l_contact_party_Id,
2977: l_UserType);
2978: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2979: IBE_UTIL.debug('Getting the contact party id');
2980: END IF;
2981: l_cust_adhoc_user := 'HZ_PARTY:'||l_contact_party_id;--'HZ_PARTY:4230';
2982:

Line 2979: IBE_UTIL.debug('Getting the contact party id');

2975: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2976: getUserType(l_contact_party_Id,
2977: l_UserType);
2978: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2979: IBE_UTIL.debug('Getting the contact party id');
2980: END IF;
2981: l_cust_adhoc_user := 'HZ_PARTY:'||l_contact_party_id;--'HZ_PARTY:4230';
2982:
2983:

Line 2990: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2986: from oe_order_headers_all i
2987: where header_id = p_order_id;
2988:
2989:
2990: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2991: ibe_util.debug('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2992: END IF;
2993: ----DBMS_OUTPUT.PUT('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2994:

Line 2991: ibe_util.debug('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);

2987: where header_id = p_order_id;
2988:
2989:
2990: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2991: ibe_util.debug('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2992: END IF;
2993: ----DBMS_OUTPUT.PUT('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2994:
2995: l_OrgId := MO_GLOBAL.get_current_org_id(); -- bug 7720550, scnagara

Line 2996: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

2992: END IF;
2993: ----DBMS_OUTPUT.PUT('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2994:
2995: l_OrgId := MO_GLOBAL.get_current_org_id(); -- bug 7720550, scnagara
2996: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2997: ibe_util.debug('Get Message - After setting, l_OrgId: '||to_char(l_OrgId));
2998: END IF;
2999:
3000: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping(

Line 2997: ibe_util.debug('Get Message - After setting, l_OrgId: '||to_char(l_OrgId));

2993: ----DBMS_OUTPUT.PUT('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2994:
2995: l_OrgId := MO_GLOBAL.get_current_org_id(); -- bug 7720550, scnagara
2996: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2997: ibe_util.debug('Get Message - After setting, l_OrgId: '||to_char(l_OrgId));
2998: END IF;
2999:
3000: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping(
3001: p_org_id => l_OrgId,

Line 3010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3006: x_wf_message_name => l_MessageName,
3007: x_return_status => x_return_status,
3008: x_msg_data => x_msg_data,
3009: x_msg_count => x_msg_data);
3010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3011: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3012: END IF;
3013: ----DBMS_OUTPUT.PUT('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3014: If x_msg_count > 0 Then

Line 3011: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

3007: x_return_status => x_return_status,
3008: x_msg_data => x_msg_data,
3009: x_msg_count => x_msg_data);
3010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3011: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3012: END IF;
3013: ----DBMS_OUTPUT.PUT('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3014: If x_msg_count > 0 Then
3015: Raise GET_MESSAGE_ERROR;

Line 3018: --ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);

3014: If x_msg_count > 0 Then
3015: Raise GET_MESSAGE_ERROR;
3016: End if;
3017: If l_msgEnabled = 'Y' Then
3018: --ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
3019: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_order_id;
3020: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3021: ----DBMS_OUTPUT.PUT('Create and Start Process with Item Key: '||l_item_key);
3022:

Line 3185: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3181:
3182: End if;
3183:
3184:
3185: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3186: ibe_util.debug('Check if this notification is enabled.');
3187: END IF;
3188:
3189: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 3186: ibe_util.debug('Check if this notification is enabled.');

3182: End if;
3183:
3184:
3185: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3186: ibe_util.debug('Check if this notification is enabled.');
3187: END IF;
3188:
3189: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3190:

Line 3191: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3187: END IF;
3188:
3189: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3190:
3191: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3192: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3193: END IF;
3194:
3195: If l_notifEnabled = 'Y' Then

Line 3192: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

3188:
3189: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3190:
3191: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3192: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3193: END IF;
3194:
3195: If l_notifEnabled = 'Y' Then
3196:

Line 3208: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3204: l_msite_id := null;
3205:
3206: getUserType(l_partyId,l_UserType);
3207:
3208: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3209: ibe_util.debug('Get Message - MsiteId: '||to_Char(l_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3210: END IF;
3211:
3212: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 3209: ibe_util.debug('Get Message - MsiteId: '||to_Char(l_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);

3205:
3206: getUserType(l_partyId,l_UserType);
3207:
3208: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3209: ibe_util.debug('Get Message - MsiteId: '||to_Char(l_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3210: END IF;
3211:
3212: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
3213: (

Line 3225: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3221: x_msg_data => x_msg_data,
3222: x_msg_count => x_msg_data);
3223:
3224:
3225: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3226: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3227: END IF;
3228:
3229: /*The following function call determines whether the user has permission

Line 3226: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

3222: x_msg_count => x_msg_data);
3223:
3224:
3225: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3226: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3227: END IF;
3228:
3229: /*The following function call determines whether the user has permission
3230: to view Price or not. */

Line 3232: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );

3228:
3229: /*The following function call determines whether the user has permission
3230: to view Price or not. */
3231:
3232: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
3233: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
3234: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
3235:
3236: IF (l_permission_to_view_price) THEN

Line 3248: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3244: End if;
3245:
3246: If l_msgEnabled = 'Y' Then
3247:
3248: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3249: ibe_util.debug('NotifyForContractsStatus - eventtype - '||l_event_type);
3250: END IF;
3251:
3252: If Not (l_notifName = 'TERMREJECTEDNOTIF') Then

Line 3249: ibe_util.debug('NotifyForContractsStatus - eventtype - '||l_event_type);

3245:
3246: If l_msgEnabled = 'Y' Then
3247:
3248: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3249: ibe_util.debug('NotifyForContractsStatus - eventtype - '||l_event_type);
3250: END IF;
3251:
3252: If Not (l_notifName = 'TERMREJECTEDNOTIF') Then
3253:

Line 3256: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3252: If Not (l_notifName = 'TERMREJECTEDNOTIF') Then
3253:
3254: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-C'||p_quote_id;
3255:
3256: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3257: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3258: END IF;
3259:
3260: wf_engine.CreateProcess(

Line 3257: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

3253:
3254: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-C'||p_quote_id;
3255:
3256: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3257: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3258: END IF;
3259:
3260: wf_engine.CreateProcess(
3261: itemtype => g_ItemType,

Line 3341: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3337: itemtype => g_ItemType,
3338: itemkey => l_item_key);
3339:
3340:
3341: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3342: ibe_util.debug('Process Started');
3343: END IF;
3344: End If;
3345:

Line 3342: ibe_util.debug('Process Started');

3338: itemkey => l_item_key);
3339:
3340:
3341: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3342: ibe_util.debug('Process Started');
3343: END IF;
3344: End If;
3345:
3346: l_org_contract_rep := null;

Line 3356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3352: If Not (l_org_contract_rep is null) Then
3353:
3354: l_org_contract_rep := upper(l_org_contract_rep);
3355:
3356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3357: ibe_util.debug('Sending Mail to Contract Org Rep.: '||l_org_contract_rep);
3358: END IF;
3359:
3360: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;

Line 3357: ibe_util.debug('Sending Mail to Contract Org Rep.: '||l_org_contract_rep);

3353:
3354: l_org_contract_rep := upper(l_org_contract_rep);
3355:
3356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3357: ibe_util.debug('Sending Mail to Contract Org Rep.: '||l_org_contract_rep);
3358: END IF;
3359:
3360: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;
3361:

Line 3362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3358: END IF;
3359:
3360: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;
3361:
3362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3363: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3364: END IF;
3365:
3366: wf_engine.CreateProcess(

Line 3363: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

3359:
3360: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;
3361:
3362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3363: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3364: END IF;
3365:
3366: wf_engine.CreateProcess(
3367: itemtype => g_ItemType,

Line 3426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3422:
3423: wf_engine.StartProcess(
3424: itemtype => g_ItemType,
3425: itemkey => l_item_key);
3426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3427: ibe_util.debug('Process Started');
3428: END IF;
3429:
3430: End If;

Line 3427: ibe_util.debug('Process Started');

3423: wf_engine.StartProcess(
3424: itemtype => g_ItemType,
3425: itemkey => l_item_key);
3426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3427: ibe_util.debug('Process Started');
3428: END IF;
3429:
3430: End If;
3431: End If;

Line 3469: IBE_UTIL.DEBUG('salesemail id is g miss char');

3465: Begin
3466:
3467: /*For bug 2875949*/
3468: IF (p_salesrep_email_id = fnd_api.g_miss_char) then
3469: IBE_UTIL.DEBUG('salesemail id is g miss char');
3470: return;
3471: ELSE
3472: IBE_UTIL.DEBUG('salesemail id is not g miss char, ideally call from iStore');
3473: END IF;

Line 3472: IBE_UTIL.DEBUG('salesemail id is not g miss char, ideally call from iStore');

3468: IF (p_salesrep_email_id = fnd_api.g_miss_char) then
3469: IBE_UTIL.DEBUG('salesemail id is g miss char');
3470: return;
3471: ELSE
3472: IBE_UTIL.DEBUG('salesemail id is not g miss char, ideally call from iStore');
3473: END IF;
3474: /*For bug 2875949*/
3475:
3476: NotifyForContractsChange(

Line 3549: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3545:
3546: l_notifName := 'CUSTQUOTENOTIFICATION';
3547: l_cust_event_type := 'ORDCUSTQUOTE';
3548:
3549: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3550: ibe_util.debug('Check if this notification is enabled.');
3551: END IF;
3552:
3553: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 3550: ibe_util.debug('Check if this notification is enabled.');

3546: l_notifName := 'CUSTQUOTENOTIFICATION';
3547: l_cust_event_type := 'ORDCUSTQUOTE';
3548:
3549: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3550: ibe_util.debug('Check if this notification is enabled.');
3551: END IF;
3552:
3553: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3554:

Line 3555: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3551: END IF;
3552:
3553: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3554:
3555: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3556: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3557: END IF;
3558:
3559: If l_notifEnabled = 'Y' Then

Line 3556: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

3552:
3553: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3554:
3555: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3556: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3557: END IF;
3558:
3559: If l_notifEnabled = 'Y' Then
3560:

Line 3563: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3559: If l_notifEnabled = 'Y' Then
3560:
3561: getUserType(l_partyId,l_UserType);
3562:
3563: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3564: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3565: END IF;
3566:
3567: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 3564: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);

3560:
3561: getUserType(l_partyId,l_UserType);
3562:
3563: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3564: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3565: END IF;
3566:
3567: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
3568: (

Line 3579: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3575: x_return_status => x_return_status,
3576: x_msg_data => x_msg_data,
3577: x_msg_count => x_msg_data);
3578:
3579: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3580: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3581: END IF;
3582:
3583: If x_msg_count > 0 Then

Line 3580: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

3576: x_msg_data => x_msg_data,
3577: x_msg_count => x_msg_data);
3578:
3579: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3580: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3581: END IF;
3582:
3583: If x_msg_count > 0 Then
3584: Raise GET_MESSAGE_ERROR;

Line 3589: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3585: End if;
3586:
3587: If l_msgEnabled = 'Y' Then
3588:
3589: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3590: ibe_util.debug('NotifyForContractsChange - p_quote_id '||to_char(p_quote_id));
3591: END IF;
3592:
3593: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;

Line 3590: ibe_util.debug('NotifyForContractsChange - p_quote_id '||to_char(p_quote_id));

3586:
3587: If l_msgEnabled = 'Y' Then
3588:
3589: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3590: ibe_util.debug('NotifyForContractsChange - p_quote_id '||to_char(p_quote_id));
3591: END IF;
3592:
3593: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3594:

Line 3596: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3592:
3593: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3594:
3595: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3596: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3597: ibe_util.debug('Create and Start Process with Item Key: '||l_cust_item_key);
3598: END IF;
3599:
3600:

Line 3597: ibe_util.debug('Create and Start Process with Item Key: '||l_cust_item_key);

3593: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3594:
3595: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3596: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3597: ibe_util.debug('Create and Start Process with Item Key: '||l_cust_item_key);
3598: END IF;
3599:
3600:
3601: wf_engine.CreateProcess(

Line 3675: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3671: wf_engine.StartProcess(
3672: itemtype => g_ItemType,
3673: itemkey => l_cust_item_key);
3674:
3675: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3676: ibe_util.debug('Process Started');
3677: END IF;
3678: End If; --If msg enabled
3679: End If; --If notif enabled

Line 3676: ibe_util.debug('Process Started');

3672: itemtype => g_ItemType,
3673: itemkey => l_cust_item_key);
3674:
3675: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3676: ibe_util.debug('Process Started');
3677: END IF;
3678: End If; --If msg enabled
3679: End If; --If notif enabled
3680:

Line 3686: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3682:
3683: l_notifName := 'SALESQUOTENOTIFICATION';
3684: l_sales_event_type := 'ORDSALESQUOTE';
3685:
3686: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3687: ibe_util.debug('Check if this notification is enabled.');
3688: END IF;
3689:
3690: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 3687: ibe_util.debug('Check if this notification is enabled.');

3683: l_notifName := 'SALESQUOTENOTIFICATION';
3684: l_sales_event_type := 'ORDSALESQUOTE';
3685:
3686: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3687: ibe_util.debug('Check if this notification is enabled.');
3688: END IF;
3689:
3690: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3691:

Line 3692: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3688: END IF;
3689:
3690: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3691:
3692: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3693: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3694: END IF;
3695:
3696: If l_notifEnabled = 'Y' Then

Line 3693: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

3689:
3690: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3691:
3692: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3693: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3694: END IF;
3695:
3696: If l_notifEnabled = 'Y' Then
3697:

Line 3699: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3695:
3696: If l_notifEnabled = 'Y' Then
3697:
3698: l_UserType := 'ALL';
3699: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3700: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3701: END IF;
3702:
3703: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 3700: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);

3696: If l_notifEnabled = 'Y' Then
3697:
3698: l_UserType := 'ALL';
3699: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3700: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3701: END IF;
3702:
3703: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
3704: (

Line 3716: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3712: x_msg_data => x_msg_data,
3713: x_msg_count => x_msg_data);
3714:
3715:
3716: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3717: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3718: END IF;
3719:
3720: If x_msg_count > 0 Then

Line 3717: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

3713: x_msg_count => x_msg_data);
3714:
3715:
3716: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3717: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3718: END IF;
3719:
3720: If x_msg_count > 0 Then
3721: Raise GET_MESSAGE_ERROR;

Line 3732: IF(IBE_UTIL.g_debugon = l_true) THEN

3728: FOR c_rep_rec In c_contract_rep(l_quote_org_id) LOOP
3729: l_org_contract_rep := c_rep_rec.contract_rep;
3730: END LOOP;
3731:
3732: IF(IBE_UTIL.g_debugon = l_true) THEN
3733: IBE_UTIL.DEBUG('Contracts rep from database l_org_contract_rep: '||l_org_contract_rep);
3734: END IF;
3735:
3736: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');

Line 3733: IBE_UTIL.DEBUG('Contracts rep from database l_org_contract_rep: '||l_org_contract_rep);

3729: l_org_contract_rep := c_rep_rec.contract_rep;
3730: END LOOP;
3731:
3732: IF(IBE_UTIL.g_debugon = l_true) THEN
3733: IBE_UTIL.DEBUG('Contracts rep from database l_org_contract_rep: '||l_org_contract_rep);
3734: END IF;
3735:
3736: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
3737:

Line 3739: IF(IBE_UTIL.g_debugon = l_true) THEN

3735:
3736: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
3737:
3738: IF ( p_salesrep_email_id is NOT NULL) THEN
3739: IF(IBE_UTIL.g_debugon = l_true) THEN
3740: IBE_UTIL.DEBUG(' p_salesrep_email_id is NOT NULL: '||p_salesrep_email_id );
3741: END IF;
3742: l_sales_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
3743: l_sales_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;

Line 3740: IBE_UTIL.DEBUG(' p_salesrep_email_id is NOT NULL: '||p_salesrep_email_id );

3736: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
3737:
3738: IF ( p_salesrep_email_id is NOT NULL) THEN
3739: IF(IBE_UTIL.g_debugon = l_true) THEN
3740: IBE_UTIL.DEBUG(' p_salesrep_email_id is NOT NULL: '||p_salesrep_email_id );
3741: END IF;
3742: l_sales_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
3743: l_sales_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;
3744: l_sales_email_addr := p_salesrep_email_id;

Line 3782: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3778: l_sales_item_key := l_sales_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3779:
3780: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3781:
3782: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3783: ibe_util.debug('Create and Start Process with Item Key: '||l_sales_item_key);
3784: END IF;
3785:
3786: wf_engine.CreateProcess(

Line 3783: ibe_util.debug('Create and Start Process with Item Key: '||l_sales_item_key);

3779:
3780: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3781:
3782: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3783: ibe_util.debug('Create and Start Process with Item Key: '||l_sales_item_key);
3784: END IF;
3785:
3786: wf_engine.CreateProcess(
3787: itemtype => g_ItemType,

Line 3853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

3849: wf_engine.StartProcess(
3850: itemtype => g_ItemType,
3851: itemkey => l_sales_item_key);
3852:
3853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3854: ibe_util.debug('Process Started');
3855: END IF;
3856: End If; -- if l_sales_adhoc_role
3857: End If; -- if salesquote message is enabled

Line 3854: ibe_util.debug('Process Started');

3850: itemtype => g_ItemType,
3851: itemkey => l_sales_item_key);
3852:
3853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3854: ibe_util.debug('Process Started');
3855: END IF;
3856: End If; -- if l_sales_adhoc_role
3857: End If; -- if salesquote message is enabled
3858: End If; -- if salesqute is enabled

Line 3863: IF(IBE_UTIL.g_debugon = l_true) THEN

3859: Exception
3860: When OTHERS Then
3861: x_return_status := FND_API.g_ret_sts_error;
3862: x_msg_count := 0;
3863: IF(IBE_UTIL.g_debugon = l_true) THEN
3864: IBE_UTIL.DEBUG('NotifyForContractsChange:Exception: '||SQLCODE||SQLERRM);
3865: END IF;
3866: wf_core.context('ibe_workflow_pvt','NotifyQuote',l_sales_event_type,to_char(p_quote_id));
3867: raise;

Line 3864: IBE_UTIL.DEBUG('NotifyForContractsChange:Exception: '||SQLCODE||SQLERRM);

3860: When OTHERS Then
3861: x_return_status := FND_API.g_ret_sts_error;
3862: x_msg_count := 0;
3863: IF(IBE_UTIL.g_debugon = l_true) THEN
3864: IBE_UTIL.DEBUG('NotifyForContractsChange:Exception: '||SQLCODE||SQLERRM);
3865: END IF;
3866: wf_core.context('ibe_workflow_pvt','NotifyQuote',l_sales_event_type,to_char(p_quote_id));
3867: raise;
3868: END NotifyForContractsChange;

Line 4024: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4020: END LOOP;
4021:
4022: --Bug 2223507 start
4023: --Call the procedure to retrieve the token values for header/footer
4024: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4025: ibe_util.debug('NotifyForSalesAssistance - '||
4026: 'calling Get_sales_assist_hdr_tokens');
4027: END IF;
4028: IBE_CART_NOTIFY_UTIL.Get_sales_assist_hdr_tokens (

Line 4025: ibe_util.debug('NotifyForSalesAssistance - '||

4021:
4022: --Bug 2223507 start
4023: --Call the procedure to retrieve the token values for header/footer
4024: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4025: ibe_util.debug('NotifyForSalesAssistance - '||
4026: 'calling Get_sales_assist_hdr_tokens');
4027: END IF;
4028: IBE_CART_NOTIFY_UTIL.Get_sales_assist_hdr_tokens (
4029: p_api_version => 1.0,

Line 4063: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4059: x_total => l_total
4060: );
4061:
4062: IF (l_return_status <> 'S') THEN
4063: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4064: ibe_util.debug('NotifyForSalesAssistance - Get_sales_assist_hdr_tokens,'||
4065: 'error occured;' ||l_msg_data);
4066: END IF;
4067: END IF;

Line 4064: ibe_util.debug('NotifyForSalesAssistance - Get_sales_assist_hdr_tokens,'||

4060: );
4061:
4062: IF (l_return_status <> 'S') THEN
4063: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4064: ibe_util.debug('NotifyForSalesAssistance - Get_sales_assist_hdr_tokens,'||
4065: 'error occured;' ||l_msg_data);
4066: END IF;
4067: END IF;
4068:

Line 4089: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );

4085:
4086: /* Permission based pricing function call
4087: This function returns TRUE if the user has permission to view net price
4088: Otherwise this function will return FALSE */
4089: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
4090: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
4091: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
4092:
4093:

Line 4104: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4100:
4101: l_cust_event_type := 'CUSTASSIST';
4102: l_notifName := 'CUSTASSISTNOTIFICATON';
4103:
4104: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4105: ibe_util.debug('Check if this notification is enabled.');
4106: END IF;
4107:
4108: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 4105: ibe_util.debug('Check if this notification is enabled.');

4101: l_cust_event_type := 'CUSTASSIST';
4102: l_notifName := 'CUSTASSISTNOTIFICATON';
4103:
4104: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4105: ibe_util.debug('Check if this notification is enabled.');
4106: END IF;
4107:
4108: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4109:

Line 4110: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4106: END IF;
4107:
4108: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4109:
4110: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4111: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4112: l_notifEnabled);
4113: END IF;
4114: IF l_notifEnabled = 'Y' THEN

Line 4111: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||

4107:
4108: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4109:
4110: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4111: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4112: l_notifEnabled);
4113: END IF;
4114: IF l_notifEnabled = 'Y' THEN
4115: getUserType(l_partyId,l_UserType);

Line 4116: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4112: l_notifEnabled);
4113: END IF;
4114: IF l_notifEnabled = 'Y' THEN
4115: getUserType(l_partyId,l_UserType);
4116: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4117: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4118: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4119: END IF;
4120:

Line 4117: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||

4113: END IF;
4114: IF l_notifEnabled = 'Y' THEN
4115: getUserType(l_partyId,l_UserType);
4116: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4117: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4118: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4119: END IF;
4120:
4121: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 4133: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4129: x_return_status => x_return_status,
4130: x_msg_data => x_msg_data,
4131: x_msg_count => x_msg_data);
4132:
4133: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4134: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4135: l_msgEnabled);
4136: END IF;
4137:

Line 4134: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||

4130: x_msg_data => x_msg_data,
4131: x_msg_count => x_msg_data);
4132:
4133: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4134: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4135: l_msgEnabled);
4136: END IF;
4137:
4138: IF x_msg_count > 0 THEN

Line 4143: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4139: Raise GET_MESSAGE_ERROR;
4140: END IF;
4141:
4142: IF l_msgEnabled = 'Y' THEN
4143: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4144: ibe_util.debug('NotifyForSalesAssistance - p_quote_id '||to_char(p_quote_id));
4145: END IF;
4146: l_cust_item_key := l_cust_event_type||'-'||
4147: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;

Line 4144: ibe_util.debug('NotifyForSalesAssistance - p_quote_id '||to_char(p_quote_id));

4140: END IF;
4141:
4142: IF l_msgEnabled = 'Y' THEN
4143: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4144: ibe_util.debug('NotifyForSalesAssistance - p_quote_id '||to_char(p_quote_id));
4145: END IF;
4146: l_cust_item_key := l_cust_event_type||'-'||
4147: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
4148:

Line 4153: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4149: /* Item Key should be Unique as it represent a process instance with
4150: ITEM TYPE*/
4151:
4152:
4153: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4154: ibe_util.debug('Create and Start Process with Item Key: '||
4155: l_cust_item_key);
4156: END IF;
4157:

Line 4154: ibe_util.debug('Create and Start Process with Item Key: '||

4150: ITEM TYPE*/
4151:
4152:
4153: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4154: ibe_util.debug('Create and Start Process with Item Key: '||
4155: l_cust_item_key);
4156: END IF;
4157:
4158: wf_engine.CreateProcess(

Line 4306: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4302: wf_engine.StartProcess(
4303: itemtype => g_ItemType,
4304: itemkey => l_cust_item_key);
4305:
4306: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4307: ibe_util.debug('Process Started');
4308: END IF;
4309: END IF; --l_msgEnabled = 'Y'
4310: END IF; --l_notifEnabled = 'Y'

Line 4307: ibe_util.debug('Process Started');

4303: itemtype => g_ItemType,
4304: itemkey => l_cust_item_key);
4305:
4306: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4307: ibe_util.debug('Process Started');
4308: END IF;
4309: END IF; --l_msgEnabled = 'Y'
4310: END IF; --l_notifEnabled = 'Y'
4311:

Line 4317: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4313:
4314: l_sales_event_type := 'SALESASSIST';
4315: l_notifName := 'SALESASSISTNOTIFICATION';
4316:
4317: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4318: ibe_util.debug('Check if this notification is enabled.');
4319: END IF;
4320:
4321: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 4318: ibe_util.debug('Check if this notification is enabled.');

4314: l_sales_event_type := 'SALESASSIST';
4315: l_notifName := 'SALESASSISTNOTIFICATION';
4316:
4317: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4318: ibe_util.debug('Check if this notification is enabled.');
4319: END IF;
4320:
4321: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4322:

Line 4323: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4319: END IF;
4320:
4321: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4322:
4323: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4324: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4325: l_notifEnabled);
4326: END IF;
4327:

Line 4324: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||

4320:
4321: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4322:
4323: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4324: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4325: l_notifEnabled);
4326: END IF;
4327:
4328: IF l_notifEnabled = 'Y' THEN

Line 4331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4327:
4328: IF l_notifEnabled = 'Y' THEN
4329:
4330: l_UserType := 'ALL';
4331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4332: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4333: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4334: END IF;
4335: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 4332: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||

4328: IF l_notifEnabled = 'Y' THEN
4329:
4330: l_UserType := 'ALL';
4331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4332: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4333: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4334: END IF;
4335: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
4336: (

Line 4347: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4343: x_return_status => x_return_status,
4344: x_msg_data => x_msg_data,
4345: x_msg_count => x_msg_data);
4346:
4347: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4348: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4349: l_msgEnabled);
4350: END IF;
4351: IF x_msg_count > 0 THEN

Line 4348: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||

4344: x_msg_data => x_msg_data,
4345: x_msg_count => x_msg_data);
4346:
4347: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4348: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4349: l_msgEnabled);
4350: END IF;
4351: IF x_msg_count > 0 THEN
4352: Raise GET_MESSAGE_ERROR;

Line 4402: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4398: FROM FND_USER
4399: WHERE USER_ID = p_salesrep_user_id;
4400: EXCEPTION
4401: WHEN OTHERS THEN
4402: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4403: ibe_util.debug('NotifyforSalesAssistance: error while'||
4404: 'getting the employee id');
4405: END IF;
4406: END;

Line 4403: ibe_util.debug('NotifyforSalesAssistance: error while'||

4399: WHERE USER_ID = p_salesrep_user_id;
4400: EXCEPTION
4401: WHEN OTHERS THEN
4402: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4403: ibe_util.debug('NotifyforSalesAssistance: error while'||
4404: 'getting the employee id');
4405: END IF;
4406: END;
4407: /*Create a role with the salesrep e-mail address (if any passed in)

Line 4446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4442: l_sales_adhoc_role := l_sales_rep;
4443:
4444: END IF;
4445:
4446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4447: ibe_util.debug('NotifySalesAssistance: l_sales_adhoc_role '||
4448: l_sales_adhoc_role);
4449: END IF;
4450:

Line 4447: ibe_util.debug('NotifySalesAssistance: l_sales_adhoc_role '||

4443:
4444: END IF;
4445:
4446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4447: ibe_util.debug('NotifySalesAssistance: l_sales_adhoc_role '||
4448: l_sales_adhoc_role);
4449: END IF;
4450:
4451:

Line 4456: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4452: IF l_sales_adhoc_role is not null THEN
4453: l_sales_adhoc_role := upper(l_sales_adhoc_role);
4454: l_sales_item_key := l_sales_event_type||'-'||
4455: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
4456: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4457: ibe_util.debug('Create and Start Process with Item Key: '||
4458: l_sales_item_key);
4459: END IF;
4460:

Line 4457: ibe_util.debug('Create and Start Process with Item Key: '||

4453: l_sales_adhoc_role := upper(l_sales_adhoc_role);
4454: l_sales_item_key := l_sales_event_type||'-'||
4455: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
4456: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4457: ibe_util.debug('Create and Start Process with Item Key: '||
4458: l_sales_item_key);
4459: END IF;
4460:
4461: wf_engine.CreateProcess(

Line 4612: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4608: wf_engine.SetItemOwner(
4609: itemtype => g_ItemType,
4610: itemkey => l_sales_item_key,
4611: owner => l_item_owner);
4612: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4613: ibe_util.debug('Finally here');
4614: END IF;
4615:
4616:

Line 4613: ibe_util.debug('Finally here');

4609: itemtype => g_ItemType,
4610: itemkey => l_sales_item_key,
4611: owner => l_item_owner);
4612: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4613: ibe_util.debug('Finally here');
4614: END IF;
4615:
4616:
4617: wf_engine.StartProcess(

Line 4621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4617: wf_engine.StartProcess(
4618: itemtype => g_ItemType,
4619: itemkey => l_sales_item_key);
4620: ELSE
4621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4622: IBE_UTIL.DEBUG('NotifySalesAssist:Not sending sales assistance e-mail because l_sales_adhoc_role is null');
4623: END IF;
4624:
4625: END IF; --l_sales_adhoc_role is not null

Line 4622: IBE_UTIL.DEBUG('NotifySalesAssist:Not sending sales assistance e-mail because l_sales_adhoc_role is null');

4618: itemtype => g_ItemType,
4619: itemkey => l_sales_item_key);
4620: ELSE
4621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4622: IBE_UTIL.DEBUG('NotifySalesAssist:Not sending sales assistance e-mail because l_sales_adhoc_role is null');
4623: END IF;
4624:
4625: END IF; --l_sales_adhoc_role is not null
4626:

Line 4635: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4631:
4632: WHEN OTHERS THEN
4633: x_return_status := FND_API.g_ret_sts_error;
4634: x_msg_count := 0;
4635: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4636: IBE_UTIL.DEBUG('NotifySalesAssist:Exception block: '||SQLCODE||': '||SQLERRM);
4637: END IF;
4638:
4639: wf_core.context('ibe_workflow_pvt',

Line 4636: IBE_UTIL.DEBUG('NotifySalesAssist:Exception block: '||SQLCODE||': '||SQLERRM);

4632: WHEN OTHERS THEN
4633: x_return_status := FND_API.g_ret_sts_error;
4634: x_msg_count := 0;
4635: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4636: IBE_UTIL.DEBUG('NotifySalesAssist:Exception block: '||SQLCODE||': '||SQLERRM);
4637: END IF;
4638:
4639: wf_core.context('ibe_workflow_pvt',
4640: 'NotifySalesAssistance',

Line 4780: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4776: identify_cart_quote(p_quote_header_id => p_Quote_Header_id,
4777: x_is_it_quote => l_is_it_quote);
4778:
4779: IF(l_is_it_quote = l_true) THEN
4780: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4781: IBE_UTIL.DEBUG('Notify_end_working:l_is_it_quote: '||l_is_it_quote);
4782: END IF;
4783: l_notifName := 'ENDWORK_QUOTE';
4784: l_notif_context := 'ENDWORK_QUOTE';

Line 4781: IBE_UTIL.DEBUG('Notify_end_working:l_is_it_quote: '||l_is_it_quote);

4777: x_is_it_quote => l_is_it_quote);
4778:
4779: IF(l_is_it_quote = l_true) THEN
4780: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4781: IBE_UTIL.DEBUG('Notify_end_working:l_is_it_quote: '||l_is_it_quote);
4782: END IF;
4783: l_notifName := 'ENDWORK_QUOTE';
4784: l_notif_context := 'ENDWORK_QUOTE';
4785: ELSE

Line 4790: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4786: l_notif_context := 'ENDWORK';
4787: END IF;
4788:
4789: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4790: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4791: ibe_util.debug('Notify_end_working: Notification enabled: '||l_notifEnabled);
4792: END IF;
4793:
4794: IF l_notifEnabled = 'Y' THEN

Line 4791: ibe_util.debug('Notify_end_working: Notification enabled: '||l_notifEnabled);

4787: END IF;
4788:
4789: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4790: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4791: ibe_util.debug('Notify_end_working: Notification enabled: '||l_notifEnabled);
4792: END IF;
4793:
4794: IF l_notifEnabled = 'Y' THEN
4795: -- IF (p_quote_header_id is not null) or (p_quote_header_id <> fnd_api.g_miss_num) THEN

Line 4798: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4794: IF l_notifEnabled = 'Y' THEN
4795: -- IF (p_quote_header_id is not null) or (p_quote_header_id <> fnd_api.g_miss_num) THEN
4796: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP
4797: l_user_name :='HZ_PARTY:'||c_quote_rec.party_id;
4798: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4799: ibe_util.debug('Notify_end_working: I_user_name: '||l_user_name);
4800: END IF;
4801: l_orgid := c_quote_rec.org_id;
4802: l_cart_name := c_quote_rec.quote_name;

Line 4799: ibe_util.debug('Notify_end_working: I_user_name: '||l_user_name);

4795: -- IF (p_quote_header_id is not null) or (p_quote_header_id <> fnd_api.g_miss_num) THEN
4796: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP
4797: l_user_name :='HZ_PARTY:'||c_quote_rec.party_id;
4798: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4799: ibe_util.debug('Notify_end_working: I_user_name: '||l_user_name);
4800: END IF;
4801: l_orgid := c_quote_rec.org_id;
4802: l_cart_name := c_quote_rec.quote_name;
4803: l_partyId := c_quote_rec.party_id;

Line 4829: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4825: x_msg_count => x_msg_data);
4826: IF x_msg_count > 0 THEN
4827: Raise GET_MESSAGE_ERROR;
4828: END IF;
4829: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4830: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);
4831: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);
4832: END IF;
4833:

Line 4830: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);

4826: IF x_msg_count > 0 THEN
4827: Raise GET_MESSAGE_ERROR;
4828: END IF;
4829: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4830: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);
4831: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);
4832: END IF;
4833:
4834: IF l_msgEnabled = 'Y' THEN

Line 4831: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);

4827: Raise GET_MESSAGE_ERROR;
4828: END IF;
4829: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4830: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);
4831: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);
4832: END IF;
4833:
4834: IF l_msgEnabled = 'Y' THEN
4835: l_usertype := FND_API.G_MISS_CHAR;

Line 4838: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4834: IF l_msgEnabled = 'Y' THEN
4835: l_usertype := FND_API.G_MISS_CHAR;
4836: x_contact_first_name := NULL;
4837: x_contact_last_name := NULL;
4838: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4839: ibe_util.debug('Notify_end_working:querying recipient_name');
4840: END IF;
4841: FOR rec_get_recip_name in c_get_recip_name(p_retrieval_number) LOOP
4842: l_recip_name := rec_get_recip_name.recipient_name;

Line 4839: ibe_util.debug('Notify_end_working:querying recipient_name');

4835: l_usertype := FND_API.G_MISS_CHAR;
4836: x_contact_first_name := NULL;
4837: x_contact_last_name := NULL;
4838: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4839: ibe_util.debug('Notify_end_working:querying recipient_name');
4840: END IF;
4841: FOR rec_get_recip_name in c_get_recip_name(p_retrieval_number) LOOP
4842: l_recip_name := rec_get_recip_name.recipient_name;
4843: IF(l_recip_name is not null) THEN

Line 4845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4841: FOR rec_get_recip_name in c_get_recip_name(p_retrieval_number) LOOP
4842: l_recip_name := rec_get_recip_name.recipient_name;
4843: IF(l_recip_name is not null) THEN
4844: x_contact_first_name := l_recip_name;
4845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4846: ibe_util.debug('Notify_end_working:recipient_name from sh_quote_access tbl: '||x_contact_first_name);
4847: END IF;
4848:
4849: ELSE

Line 4846: ibe_util.debug('Notify_end_working:recipient_name from sh_quote_access tbl: '||x_contact_first_name);

4842: l_recip_name := rec_get_recip_name.recipient_name;
4843: IF(l_recip_name is not null) THEN
4844: x_contact_first_name := l_recip_name;
4845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4846: ibe_util.debug('Notify_end_working:recipient_name from sh_quote_access tbl: '||x_contact_first_name);
4847: END IF;
4848:
4849: ELSE
4850: Get_Name_details(

Line 4860: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4856: END IF;
4857: EXIT when c_get_recip_name%NOTFOUND;
4858: END LOOP;
4859:
4860: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4861: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4862: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4863: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4864: END IF;

Line 4861: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);

4857: EXIT when c_get_recip_name%NOTFOUND;
4858: END LOOP;
4859:
4860: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4861: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4862: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4863: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4864: END IF;
4865: -- Create Item Type and notification Preference

Line 4862: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);

4858: END LOOP;
4859:
4860: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4861: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4862: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4863: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4864: END IF;
4865: -- Create Item Type and notification Preference
4866: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;

Line 4863: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);

4859:
4860: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4861: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4862: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4863: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4864: END IF;
4865: -- Create Item Type and notification Preference
4866: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;
4867: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 4867: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4863: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4864: END IF;
4865: -- Create Item Type and notification Preference
4866: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;
4867: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4868: ibe_util.debug('Notify_end_working:l_item_key: '||l_item_key);
4869: END IF;
4870: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
4871:

Line 4868: ibe_util.debug('Notify_end_working:l_item_key: '||l_item_key);

4864: END IF;
4865: -- Create Item Type and notification Preference
4866: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;
4867: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4868: ibe_util.debug('Notify_end_working:l_item_key: '||l_item_key);
4869: END IF;
4870: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
4871:
4872: set_item_attributes

Line 4885: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4881: ,p_adhoc_role => l_user_name
4882: ,p_notes => p_notes
4883: ,p_notif_context => l_notif_context);
4884:
4885: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4886: ibe_util.debug('Notify_end_working:Create_process start');
4887: END IF;
4888: END IF; --l_msgEnabled
4889: END IF; --l_notifenabled

Line 4886: ibe_util.debug('Notify_end_working:Create_process start');

4882: ,p_notes => p_notes
4883: ,p_notif_context => l_notif_context);
4884:
4885: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4886: ibe_util.debug('Notify_end_working:Create_process start');
4887: END IF;
4888: END IF; --l_msgEnabled
4889: END IF; --l_notifenabled
4890: EXCEPTION

Line 4986: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

4982: identify_cart_quote(p_quote_header_id => p_quote_access_rec.Quote_Header_id,
4983: x_is_it_quote => l_is_it_quote);
4984:
4985: IF(l_is_it_quote = l_true) THEN
4986: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4987: IBE_UTIL.DEBUG('Notify_finish_sharing:l_is_it_quote: '||l_is_it_quote);
4988: END IF;
4989: l_notifName := 'STOPWORKING_QUOTE';
4990: l_notif_context := 'STOPWORKING_QUOTE';

Line 4987: IBE_UTIL.DEBUG('Notify_finish_sharing:l_is_it_quote: '||l_is_it_quote);

4983: x_is_it_quote => l_is_it_quote);
4984:
4985: IF(l_is_it_quote = l_true) THEN
4986: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4987: IBE_UTIL.DEBUG('Notify_finish_sharing:l_is_it_quote: '||l_is_it_quote);
4988: END IF;
4989: l_notifName := 'STOPWORKING_QUOTE';
4990: l_notif_context := 'STOPWORKING_QUOTE';
4991: IF (p_context_code = 'IBE_SC_CART_ORDERED') THEN

Line 5004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5000: END IF;
5001:
5002:
5003: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5005: IBE_UTIL.DEBUG('Notify_finish_sharing: '||l_notifEnabled);
5006: END IF;
5007: IF l_notifEnabled = 'Y' THEN
5008:

Line 5005: IBE_UTIL.DEBUG('Notify_finish_sharing: '||l_notifEnabled);

5001:
5002:
5003: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5005: IBE_UTIL.DEBUG('Notify_finish_sharing: '||l_notifEnabled);
5006: END IF;
5007: IF l_notifEnabled = 'Y' THEN
5008:
5009:

Line 5010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5006: END IF;
5007: IF l_notifEnabled = 'Y' THEN
5008:
5009:
5010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5011: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');
5012: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');
5013: END IF;
5014: FOR c_quote_rec In c_quote_header(p_quote_access_rec.Quote_Header_id)

Line 5011: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');

5007: IF l_notifEnabled = 'Y' THEN
5008:
5009:
5010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5011: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');
5012: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');
5013: END IF;
5014: FOR c_quote_rec In c_quote_header(p_quote_access_rec.Quote_Header_id)
5015: LOOP

Line 5012: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');

5008:
5009:
5010: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5011: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');
5012: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');
5013: END IF;
5014: FOR c_quote_rec In c_quote_header(p_quote_access_rec.Quote_Header_id)
5015: LOOP
5016: l_owner_partyid := c_quote_rec.party_id;

Line 5019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5015: LOOP
5016: l_owner_partyid := c_quote_rec.party_id;
5017: l_orgid := c_quote_rec.org_id;
5018: l_cart_name := c_quote_rec.quote_name; -- cart name
5019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5020: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
5022: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
5023: END IF;

Line 5020: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);

5016: l_owner_partyid := c_quote_rec.party_id;
5017: l_orgid := c_quote_rec.org_id;
5018: l_cart_name := c_quote_rec.quote_name; -- cart name
5019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5020: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
5022: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
5023: END IF;
5024: END LOOP;

Line 5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);

5017: l_orgid := c_quote_rec.org_id;
5018: l_cart_name := c_quote_rec.quote_name; -- cart name
5019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5020: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
5022: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
5023: END IF;
5024: END LOOP;
5025:

Line 5022: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);

5018: l_cart_name := c_quote_rec.quote_name; -- cart name
5019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5020: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
5022: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
5023: END IF;
5024: END LOOP;
5025:
5026: l_usertype := FND_API.G_MISS_CHAR;

Line 5044: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5040: l_stop_working_msg_context := rec_get_context_msg.message_text;
5041: END LOOP;*/
5042:
5043: --whether to create adhoc users or not
5044: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5045: IBE_UTIL.DEBUG('Notify_finish_sharing:locate_contact_point:whether to create adhoc users or not');
5046: END IF;
5047: locate_contact_point(
5048: p_contact_point_id => p_quote_access_rec.contact_point_id,

Line 5045: IBE_UTIL.DEBUG('Notify_finish_sharing:locate_contact_point:whether to create adhoc users or not');

5041: END LOOP;*/
5042:
5043: --whether to create adhoc users or not
5044: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5045: IBE_UTIL.DEBUG('Notify_finish_sharing:locate_contact_point:whether to create adhoc users or not');
5046: END IF;
5047: locate_contact_point(
5048: p_contact_point_id => p_quote_access_rec.contact_point_id,
5049: x_create_adhoc_flag => l_create_adhoc_flag);

Line 5053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5049: x_create_adhoc_flag => l_create_adhoc_flag);
5050:
5051:
5052: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5054: IBE_UTIL.DEBUG('Notify_finish_sharing:l_create_adhoc_flag: '||l_create_adhoc_flag);
5055: END IF;
5056:
5057: /*If an e-mail address is passed then the recipient party

Line 5054: IBE_UTIL.DEBUG('Notify_finish_sharing:l_create_adhoc_flag: '||l_create_adhoc_flag);

5050:
5051:
5052: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5054: IBE_UTIL.DEBUG('Notify_finish_sharing:l_create_adhoc_flag: '||l_create_adhoc_flag);
5055: END IF;
5056:
5057: /*If an e-mail address is passed then the recipient party
5058: does not have a contact point, hence we create an adhoc user*/

Line 5065: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5061: ,p_quote_header_id => p_quote_access_rec.quote_header_id
5062: ,p_email_address => p_quote_access_rec.email_contact_address
5063: ,p_Notification_preference => l_notification_preference
5064: ,x_adhoc_role => l_adhoc_role);
5065: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5066: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_adhoc_entity: done');
5067: END IF;
5068:
5069: Else

Line 5066: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_adhoc_entity: done');

5062: ,p_email_address => p_quote_access_rec.email_contact_address
5063: ,p_Notification_preference => l_notification_preference
5064: ,x_adhoc_role => l_adhoc_role);
5065: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5066: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_adhoc_entity: done');
5067: END IF;
5068:
5069: Else
5070:

Line 5076: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5072: l_adhoc_role := l_user_name;
5073:
5074: End If;
5075:
5076: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5077: IBE_UTIL.DEBUG('Notify_finish_sharing:l_adhoc_role: '||l_adhoc_role);
5078: END IF;
5079:
5080:

Line 5077: IBE_UTIL.DEBUG('Notify_finish_sharing:l_adhoc_role: '||l_adhoc_role);

5073:
5074: End If;
5075:
5076: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5077: IBE_UTIL.DEBUG('Notify_finish_sharing:l_adhoc_role: '||l_adhoc_role);
5078: END IF;
5079:
5080:
5081: -- Retrive Actual Message

Line 5082: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5078: END IF;
5079:
5080:
5081: -- Retrive Actual Message
5082: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5083: IBE_UTIL.DEBUG('Notify_finish_sharing:Retrievng message mapping');
5084: END IF;
5085: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
5086: (

Line 5083: IBE_UTIL.DEBUG('Notify_finish_sharing:Retrievng message mapping');

5079:
5080:
5081: -- Retrive Actual Message
5082: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5083: IBE_UTIL.DEBUG('Notify_finish_sharing:Retrievng message mapping');
5084: END IF;
5085: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
5086: (
5087: p_org_id => l_OrgId,

Line 5099: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5095: x_msg_count => x_msg_data);
5096: IF x_msg_count > 0 THEN
5097: Raise GET_MESSAGE_ERROR;
5098: END IF;
5099: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5100: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);
5101: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);
5102: END IF;
5103:

Line 5100: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);

5096: IF x_msg_count > 0 THEN
5097: Raise GET_MESSAGE_ERROR;
5098: END IF;
5099: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5100: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);
5101: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);
5102: END IF;
5103:
5104: IF l_msgEnabled = 'Y' THEN

Line 5101: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);

5097: Raise GET_MESSAGE_ERROR;
5098: END IF;
5099: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5100: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);
5101: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);
5102: END IF;
5103:
5104: IF l_msgEnabled = 'Y' THEN
5105:

Line 5109: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5105:
5106: -- Create Item Type and notification Preference
5107: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5108: ||p_quote_access_rec.Quote_sharee_number;
5109: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5110: IBE_UTIL.DEBUG('Notify_finish_sharing:Item_key : '||l_item_key);
5111: END IF;
5112: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5113:

Line 5110: IBE_UTIL.DEBUG('Notify_finish_sharing:Item_key : '||l_item_key);

5106: -- Create Item Type and notification Preference
5107: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5108: ||p_quote_access_rec.Quote_sharee_number;
5109: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5110: IBE_UTIL.DEBUG('Notify_finish_sharing:Item_key : '||l_item_key);
5111: END IF;
5112: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5113:
5114:

Line 5115: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5111: END IF;
5112: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5113:
5114:
5115: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5116: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_process start');
5117: END IF;
5118:
5119: set_item_attributes

Line 5116: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_process start');

5112: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5113:
5114:
5115: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5116: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_process start');
5117: END IF;
5118:
5119: set_item_attributes
5120: ( p_item_key => l_item_key

Line 5206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5202: x_return_status := FND_API.g_ret_sts_success ;
5203:
5204: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5205:
5206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5207: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');
5208: END IF;
5209:
5210:

Line 5207: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');

5203:
5204: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5205:
5206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5207: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');
5208: END IF;
5209:
5210:
5211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5207: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');
5208: END IF;
5209:
5210:
5211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5212: IBE_UTIL.DEBUG('Notify_shared_cart:Determining party_type');
5213: END IF;
5214: IF ((p_quote_access_rec.party_id is null )
5215: OR (p_quote_access_rec.party_id = FND_API.G_MISS_NUM)) THEN

Line 5212: IBE_UTIL.DEBUG('Notify_shared_cart:Determining party_type');

5208: END IF;
5209:
5210:
5211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5212: IBE_UTIL.DEBUG('Notify_shared_cart:Determining party_type');
5213: END IF;
5214: IF ((p_quote_access_rec.party_id is null )
5215: OR (p_quote_access_rec.party_id = FND_API.G_MISS_NUM)) THEN
5216:

Line 5227: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5223: identify_cart_quote(p_quote_header_id => p_quote_access_rec.Quote_Header_id,
5224: x_is_it_quote => l_is_it_quote);
5225:
5226: IF(l_is_it_quote = l_true) THEN
5227: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5228: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5229: END IF;
5230: l_notifname := 'SHAREQUOTENOTIF';
5231: IF (l_usertype = 'IBE_INDIVIDUAL') THEN

Line 5228: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);

5224: x_is_it_quote => l_is_it_quote);
5225:
5226: IF(l_is_it_quote = l_true) THEN
5227: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5228: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5229: END IF;
5230: l_notifname := 'SHAREQUOTENOTIF';
5231: IF (l_usertype = 'IBE_INDIVIDUAL') THEN
5232: l_notif_context := 'SHAREQUOTENOTIF';

Line 5245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5241: l_notif_context := 'SHARECARTNOTIF_B2B';
5242: END IF;
5243: END IF;
5244:
5245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5246: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5247: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5248: END IF;
5249: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 5246: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);

5242: END IF;
5243: END IF;
5244:
5245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5246: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5247: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5248: END IF;
5249: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5250: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5247: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);

5243: END IF;
5244:
5245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5246: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5247: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5248: END IF;
5249: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5250: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5251: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);

Line 5250: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5246: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5247: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5248: END IF;
5249: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5250: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5251: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);
5252: END IF;
5253:
5254: IF l_notifEnabled = 'Y' THEN

Line 5251: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);

5247: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5248: END IF;
5249: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5250: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5251: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);
5252: END IF;
5253:
5254: IF l_notifEnabled = 'Y' THEN
5255: --get owner party_id, cart_name here from input quote_header_id

Line 5259: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5255: --get owner party_id, cart_name here from input quote_header_id
5256: FOR c_quote_rec IN c_quote_header(p_quote_access_rec.Quote_Header_id)
5257: LOOP
5258: l_owner_partyid := c_quote_rec.party_id;
5259: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5260: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);
5261: END IF;
5262: l_orgid := c_quote_rec.org_id;
5263: l_cart_name := c_quote_rec.quote_name; -- cart name

Line 5260: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);

5256: FOR c_quote_rec IN c_quote_header(p_quote_access_rec.Quote_Header_id)
5257: LOOP
5258: l_owner_partyid := c_quote_rec.party_id;
5259: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5260: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);
5261: END IF;
5262: l_orgid := c_quote_rec.org_id;
5263: l_cart_name := c_quote_rec.quote_name; -- cart name
5264: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5264: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5260: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);
5261: END IF;
5262: l_orgid := c_quote_rec.org_id;
5263: l_cart_name := c_quote_rec.quote_name; -- cart name
5264: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5265: IBE_UTIL.DEBUG('Notify_shared_cart:cart name: '||l_cart_name);
5266: END IF;
5267: END LOOP;
5268:

Line 5265: IBE_UTIL.DEBUG('Notify_shared_cart:cart name: '||l_cart_name);

5261: END IF;
5262: l_orgid := c_quote_rec.org_id;
5263: l_cart_name := c_quote_rec.quote_name; -- cart name
5264: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5265: IBE_UTIL.DEBUG('Notify_shared_cart:cart name: '||l_cart_name);
5266: END IF;
5267: END LOOP;
5268:
5269: --get owner name from owner party_id obtained above

Line 5278: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5274: x_contact_first_name => l_sharedby_first_name,
5275: x_contact_last_name => l_sharedby_last_name,
5276: x_party_id => x_owner_new_party_id);
5277:
5278: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5279: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);
5280: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);
5281: END IF;
5282: --whether to create adhoc user or not

Line 5279: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);

5275: x_contact_last_name => l_sharedby_last_name,
5276: x_party_id => x_owner_new_party_id);
5277:
5278: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5279: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);
5280: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);
5281: END IF;
5282: --whether to create adhoc user or not
5283:

Line 5280: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);

5276: x_party_id => x_owner_new_party_id);
5277:
5278: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5279: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);
5280: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);
5281: END IF;
5282: --whether to create adhoc user or not
5283:
5284: locate_contact_point(

Line 5288: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5284: locate_contact_point(
5285: p_contact_point_id => p_quote_access_rec.contact_point_id,
5286: x_create_adhoc_flag => l_create_adhoc_flag);
5287:
5288: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5289: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5290: END IF;
5291:
5292: --if create adhoc user flag is "true" then call wf_directory API

Line 5289: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);

5285: p_contact_point_id => p_quote_access_rec.contact_point_id,
5286: x_create_adhoc_flag => l_create_adhoc_flag);
5287:
5288: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5289: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5290: END IF;
5291:
5292: --if create adhoc user flag is "true" then call wf_directory API
5293: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN

Line 5294: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5290: END IF;
5291:
5292: --if create adhoc user flag is "true" then call wf_directory API
5293: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5294: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5295: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5296: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5297: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5298: END IF;

Line 5295: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');

5291:
5292: --if create adhoc user flag is "true" then call wf_directory API
5293: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5294: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5295: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5296: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5297: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5298: END IF;
5299:

Line 5296: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);

5292: --if create adhoc user flag is "true" then call wf_directory API
5293: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5294: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5295: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5296: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5297: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5298: END IF;
5299:
5300: create_adhoc_entity

Line 5297: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);

5293: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5294: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5295: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5296: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5297: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5298: END IF;
5299:
5300: create_adhoc_entity
5301: ( p_quote_recipient_id => p_quote_access_rec.QUOTE_SHAREE_ID

Line 5306: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5302: ,p_quote_header_id => p_quote_access_rec.quote_header_id
5303: ,p_email_address => p_quote_access_rec.email_contact_address
5304: ,p_Notification_preference => l_notification_preference
5305: ,x_adhoc_role => l_adhoc_role);
5306: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5307: IBE_UTIL.DEBUG('Notify_shared_cart:Create_adhoc_entity: done');
5308: END IF;
5309: Else
5310:

Line 5307: IBE_UTIL.DEBUG('Notify_shared_cart:Create_adhoc_entity: done');

5303: ,p_email_address => p_quote_access_rec.email_contact_address
5304: ,p_Notification_preference => l_notification_preference
5305: ,x_adhoc_role => l_adhoc_role);
5306: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5307: IBE_UTIL.DEBUG('Notify_shared_cart:Create_adhoc_entity: done');
5308: END IF;
5309: Else
5310:
5311: l_user_name := 'HZ_PARTY:'||p_quote_access_rec.party_id;

Line 5316: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5312: l_adhoc_role := l_user_name;
5313:
5314: End If; --create adhoc user or not
5315:
5316: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5317: IBE_UTIL.DEBUG('Notify_shared_cart:l_adhoc role: '||l_adhoc_role);
5318: END IF;
5319:
5320: --Get Access Level Info.

Line 5317: IBE_UTIL.DEBUG('Notify_shared_cart:l_adhoc role: '||l_adhoc_role);

5313:
5314: End If; --create adhoc user or not
5315:
5316: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5317: IBE_UTIL.DEBUG('Notify_shared_cart:l_adhoc role: '||l_adhoc_role);
5318: END IF;
5319:
5320: --Get Access Level Info.
5321: /* IF (p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE = 'A') THEN

Line 5331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5327: l_accesslevel := 'Viewer';
5328: END IF;*/
5329:
5330: -- Retrive Actual Message
5331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5332: IBE_UTIL.DEBUG('Notify_shared_cart:retrieving message mapping');
5333: END IF;
5334:
5335: -- Retrieve the message text for update message from fnd_messages

Line 5332: IBE_UTIL.DEBUG('Notify_shared_cart:retrieving message mapping');

5328: END IF;*/
5329:
5330: -- Retrive Actual Message
5331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5332: IBE_UTIL.DEBUG('Notify_shared_cart:retrieving message mapping');
5333: END IF;
5334:
5335: -- Retrieve the message text for update message from fnd_messages
5336:

Line 5352: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5348:
5349: IF x_msg_count > 0 THEN
5350: Raise GET_MESSAGE_ERROR;
5351: END IF;
5352: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5353: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);
5354: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);
5355: END IF;
5356:

Line 5353: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);

5349: IF x_msg_count > 0 THEN
5350: Raise GET_MESSAGE_ERROR;
5351: END IF;
5352: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5353: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);
5354: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);
5355: END IF;
5356:
5357: IF l_msgEnabled = 'Y' THEN

Line 5354: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);

5350: Raise GET_MESSAGE_ERROR;
5351: END IF;
5352: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5353: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);
5354: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);
5355: END IF;
5356:
5357: IF l_msgEnabled = 'Y' THEN
5358:

Line 5362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5358:
5359: -- Create Item Type and notification Preference
5360: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5361: ||p_quote_access_rec.Quote_sharee_number;
5362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5363: IBE_UTIL.DEBUG('Notify_shared_cart:Item_key: '||l_item_key);
5364: END IF;
5365: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5366:

Line 5363: IBE_UTIL.DEBUG('Notify_shared_cart:Item_key: '||l_item_key);

5359: -- Create Item Type and notification Preference
5360: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5361: ||p_quote_access_rec.Quote_sharee_number;
5362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5363: IBE_UTIL.DEBUG('Notify_shared_cart:Item_key: '||l_item_key);
5364: END IF;
5365: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5366:
5367: set_item_attributes

Line 5380: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5376: ,p_cart_name => l_cart_name
5377: ,p_adhoc_role => l_adhoc_role
5378: ,p_notes => p_notes
5379: ,p_notif_context => l_notif_context);
5380: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5381: IBE_UTIL.DEBUG('Notify_shared_cart:Set_item_attributes: Done');
5382: END IF;
5383: END IF; ----l_msgEnabled
5384: END IF; -- l_notifenabled

Line 5381: IBE_UTIL.DEBUG('Notify_shared_cart:Set_item_attributes: Done');

5377: ,p_adhoc_role => l_adhoc_role
5378: ,p_notes => p_notes
5379: ,p_notif_context => l_notif_context);
5380: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5381: IBE_UTIL.DEBUG('Notify_shared_cart:Set_item_attributes: Done');
5382: END IF;
5383: END IF; ----l_msgEnabled
5384: END IF; -- l_notifenabled
5385: EXCEPTION

Line 5473: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5469: identify_cart_quote(p_quote_header_id => l_quote_access_rec.Quote_Header_id,
5470: x_is_it_quote => l_is_it_quote);
5471:
5472: IF(l_is_it_quote = l_true) THEN
5473: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5474: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5475: END IF;
5476: l_notifName := 'CHANGEACCESSLEVEL_QUOTE';
5477: l_notif_context := 'CHANGEACCESSLEVEL_QUOTE';

Line 5474: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);

5470: x_is_it_quote => l_is_it_quote);
5471:
5472: IF(l_is_it_quote = l_true) THEN
5473: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5474: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5475: END IF;
5476: l_notifName := 'CHANGEACCESSLEVEL_QUOTE';
5477: l_notif_context := 'CHANGEACCESSLEVEL_QUOTE';
5478: ELSE

Line 5484: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5480: END IF;
5481:
5482:
5483: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5484: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5485: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);
5486: END IF;
5487: --l_notifEnabled := 'Y';
5488: If l_notifEnabled = 'Y' Then

Line 5485: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);

5481:
5482:
5483: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5484: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5485: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);
5486: END IF;
5487: --l_notifEnabled := 'Y';
5488: If l_notifEnabled = 'Y' Then
5489: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5489: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5485: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);
5486: END IF;
5487: --l_notifEnabled := 'Y';
5488: If l_notifEnabled = 'Y' Then
5489: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5490: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');
5491: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);
5492: END IF;
5493: FOR c_quote_rec In c_quote_header(l_quote_access_rec.Quote_Header_id) LOOP

Line 5490: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');

5486: END IF;
5487: --l_notifEnabled := 'Y';
5488: If l_notifEnabled = 'Y' Then
5489: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5490: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');
5491: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);
5492: END IF;
5493: FOR c_quote_rec In c_quote_header(l_quote_access_rec.Quote_Header_id) LOOP
5494: l_owner_partyid := c_quote_rec.party_id;

Line 5491: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);

5487: --l_notifEnabled := 'Y';
5488: If l_notifEnabled = 'Y' Then
5489: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5490: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');
5491: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);
5492: END IF;
5493: FOR c_quote_rec In c_quote_header(l_quote_access_rec.Quote_Header_id) LOOP
5494: l_owner_partyid := c_quote_rec.party_id;
5495: l_orgid := c_quote_rec.org_id;

Line 5521: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5517: x_contact_last_name => l_recepient_last_name,
5518: x_party_id => x_recepient_party_id);
5519:
5520: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5521: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5522: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5523: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5524: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5525: END IF;

Line 5522: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);

5518: x_party_id => x_recepient_party_id);
5519:
5520: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5521: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5522: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5523: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5524: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5525: END IF;
5526:

Line 5523: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);

5519:
5520: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5521: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5522: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5523: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5524: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5525: END IF;
5526:
5527:

Line 5524: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);

5520: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5521: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5522: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5523: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5524: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5525: END IF;
5526:
5527:
5528: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5528: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5524: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5525: END IF;
5526:
5527:
5528: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5529: IBE_UTIL.DEBUG('Notify_access_change:Calling locate_contact_point');
5530: END IF;
5531:
5532: locate_contact_point(

Line 5529: IBE_UTIL.DEBUG('Notify_access_change:Calling locate_contact_point');

5525: END IF;
5526:
5527:
5528: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5529: IBE_UTIL.DEBUG('Notify_access_change:Calling locate_contact_point');
5530: END IF;
5531:
5532: locate_contact_point(
5533: p_contact_point_id => l_quote_access_rec.contact_point_id,

Line 5536: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5532: locate_contact_point(
5533: p_contact_point_id => l_quote_access_rec.contact_point_id,
5534: x_create_adhoc_flag => l_create_adhoc_flag);
5535:
5536: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5537: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);
5538: END IF;
5539: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5540:

Line 5537: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);

5533: p_contact_point_id => l_quote_access_rec.contact_point_id,
5534: x_create_adhoc_flag => l_create_adhoc_flag);
5535:
5536: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5537: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);
5538: END IF;
5539: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5540:
5541: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5541: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5537: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);
5538: END IF;
5539: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5540:
5541: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5542: IBE_UTIL.DEBUG('Notify_access_change:Opening c_get_email');
5543: END IF;
5544:
5545: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP

Line 5542: IBE_UTIL.DEBUG('Notify_access_change:Opening c_get_email');

5538: END IF;
5539: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5540:
5541: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5542: IBE_UTIL.DEBUG('Notify_access_change:Opening c_get_email');
5543: END IF;
5544:
5545: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP
5546: l_quote_access_rec.email_contact_address := rec_get_email.email_address;

Line 5547: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5543: END IF;
5544:
5545: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP
5546: l_quote_access_rec.email_contact_address := rec_get_email.email_address;
5547: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5548: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_quote_access_rec.email_contact_address);
5549: END IF;
5550: EXIT WHEN c_get_email%notfound;
5551: END LOOP;

Line 5548: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_quote_access_rec.email_contact_address);

5544:
5545: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP
5546: l_quote_access_rec.email_contact_address := rec_get_email.email_address;
5547: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5548: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_quote_access_rec.email_contact_address);
5549: END IF;
5550: EXIT WHEN c_get_email%notfound;
5551: END LOOP;
5552:

Line 5562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5558: ,p_quote_header_id => l_quote_access_rec.quote_header_id
5559: ,p_email_address => l_quote_access_rec.email_contact_address
5560: ,p_Notification_preference => l_notification_preference
5561: ,x_adhoc_role => l_adhoc_role);
5562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5563: IBE_UTIL.DEBUG('Notify_access_change:Create_adhoc_entity: done');
5564: END IF;
5565:
5566: Else --for create_adhoc_flag

Line 5563: IBE_UTIL.DEBUG('Notify_access_change:Create_adhoc_entity: done');

5559: ,p_email_address => l_quote_access_rec.email_contact_address
5560: ,p_Notification_preference => l_notification_preference
5561: ,x_adhoc_role => l_adhoc_role);
5562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5563: IBE_UTIL.DEBUG('Notify_access_change:Create_adhoc_entity: done');
5564: END IF;
5565:
5566: Else --for create_adhoc_flag
5567:

Line 5573: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5569: l_adhoc_role := l_user_name;
5570:
5571: End If; --for create_adhoc_flag
5572:
5573: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5574: IBE_UTIL.DEBUG('Notify_access_change:l_adhoc_role: '||l_adhoc_role);
5575: END IF;
5576:
5577: -- Retrive Actual Message

Line 5574: IBE_UTIL.DEBUG('Notify_access_change:l_adhoc_role: '||l_adhoc_role);

5570:
5571: End If; --for create_adhoc_flag
5572:
5573: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5574: IBE_UTIL.DEBUG('Notify_access_change:l_adhoc_role: '||l_adhoc_role);
5575: END IF;
5576:
5577: -- Retrive Actual Message
5578: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 5594: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5590: IF x_msg_count > 0 THEN
5591: Raise GET_MESSAGE_ERROR;
5592: END IF;
5593:
5594: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5595: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);
5596: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);
5597: END IF;
5598:

Line 5595: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);

5591: Raise GET_MESSAGE_ERROR;
5592: END IF;
5593:
5594: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5595: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);
5596: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);
5597: END IF;
5598:
5599: -- Retrieve the message text for update message from fnd_messages

Line 5596: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);

5592: END IF;
5593:
5594: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5595: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);
5596: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);
5597: END IF;
5598:
5599: -- Retrieve the message text for update message from fnd_messages
5600: fnd_message.set_name('IBE','IBE_PRMT_UPDATE_CART');

Line 5610: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5606: l_url := l_url||p_quote_access_rec.quote_sharee_number;
5607: -- Create Item Type and notification Preference
5608: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||l_quote_access_rec.Quote_Header_id||
5609: l_quote_access_rec.quote_sharee_number ;
5610: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5611: IBE_UTIL.DEBUG('Notify_access_change:Calling set_item_attributes');
5612: END IF;
5613: set_item_attributes
5614: ( p_item_key => l_item_key

Line 5611: IBE_UTIL.DEBUG('Notify_access_change:Calling set_item_attributes');

5607: -- Create Item Type and notification Preference
5608: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||l_quote_access_rec.Quote_Header_id||
5609: l_quote_access_rec.quote_sharee_number ;
5610: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5611: IBE_UTIL.DEBUG('Notify_access_change:Calling set_item_attributes');
5612: END IF;
5613: set_item_attributes
5614: ( p_item_key => l_item_key
5615: ,p_message_name => l_messagename

Line 5626: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5622: ,p_cart_name => l_cart_name
5623: ,p_adhoc_role => l_adhoc_role
5624: ,p_notes => p_notes
5625: ,p_notif_context => l_notif_context);
5626: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5627: IBE_UTIL.DEBUG('Notify_access_change:Done calling set_item_attributes');
5628: END IF;
5629: END IF; --l_msgEnabled
5630: END IF; --l_notifenabled

Line 5627: IBE_UTIL.DEBUG('Notify_access_change:Done calling set_item_attributes');

5623: ,p_adhoc_role => l_adhoc_role
5624: ,p_notes => p_notes
5625: ,p_notif_context => l_notif_context);
5626: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5627: IBE_UTIL.DEBUG('Notify_access_change:Done calling set_item_attributes');
5628: END IF;
5629: END IF; --l_msgEnabled
5630: END IF; --l_notifenabled
5631: EXCEPTION

Line 5694: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');

5690: l_notif_name VARCHAR2(1000) := 'IBE_VIEWSHAREDCART';
5691: l_notification_preference WF_USERS.NOTIFICATION_PREFERENCE%TYPE;
5692: BEGIN
5693: x_return_status := FND_API.g_ret_sts_success ;
5694: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');
5695:
5696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5697: ibe_util.debug('Check if this notification is enabled.');
5698: END IF;

Line 5696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5692: BEGIN
5693: x_return_status := FND_API.g_ret_sts_success ;
5694: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');
5695:
5696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5697: ibe_util.debug('Check if this notification is enabled.');
5698: END IF;
5699:
5700: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);

Line 5697: ibe_util.debug('Check if this notification is enabled.');

5693: x_return_status := FND_API.g_ret_sts_success ;
5694: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');
5695:
5696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5697: ibe_util.debug('Check if this notification is enabled.');
5698: END IF;
5699:
5700: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);
5701: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5701: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5697: ibe_util.debug('Check if this notification is enabled.');
5698: END IF;
5699:
5700: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);
5701: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5702: ibe_util.debug('Notification Name: '||l_notif_Name||' Enabled: '||l_notif_Enabled);
5703: END IF;
5704:
5705: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');

Line 5702: ibe_util.debug('Notification Name: '||l_notif_Name||' Enabled: '||l_notif_Enabled);

5698: END IF;
5699:
5700: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);
5701: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5702: ibe_util.debug('Notification Name: '||l_notif_Name||' Enabled: '||l_notif_Enabled);
5703: END IF;
5704:
5705: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5706: locate_contact_point(

Line 5712: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5708: x_create_adhoc_flag => l_create_adhoc_flag);
5709:
5710:
5711: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5712: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5713: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5714: END IF;
5715:
5716:

Line 5713: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);

5709:
5710:
5711: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5712: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5713: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5714: END IF;
5715:
5716:
5717: FOR rec_get_email in c_get_email(p_quote_access_rec.contact_point_id) LOOP

Line 5719: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5715:
5716:
5717: FOR rec_get_email in c_get_email(p_quote_access_rec.contact_point_id) LOOP
5718: l_email_address := rec_get_email.email_address;
5719: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5720: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_email_address);
5721: END IF;
5722: EXIT WHEN c_get_email%notfound;
5723: END LOOP;

Line 5720: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_email_address);

5716:
5717: FOR rec_get_email in c_get_email(p_quote_access_rec.contact_point_id) LOOP
5718: l_email_address := rec_get_email.email_address;
5719: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5720: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_email_address);
5721: END IF;
5722: EXIT WHEN c_get_email%notfound;
5723: END LOOP;
5724:

Line 5734: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5730: ,p_email_address => l_email_address
5731: ,p_Notification_preference => l_notification_preference
5732: ,x_adhoc_role => l_adhoc_role);
5733:
5734: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5735: IBE_UTIL.DEBUG('Notify_view_shared_cart:Create_adhoc_entity: done');
5736: END IF;
5737:
5738: ELSE

Line 5735: IBE_UTIL.DEBUG('Notify_view_shared_cart:Create_adhoc_entity: done');

5731: ,p_Notification_preference => l_notification_preference
5732: ,x_adhoc_role => l_adhoc_role);
5733:
5734: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5735: IBE_UTIL.DEBUG('Notify_view_shared_cart:Create_adhoc_entity: done');
5736: END IF;
5737:
5738: ELSE
5739: l_adhoc_role := 'HZ_PARTY:'||p_quote_access_rec.party_id;

Line 5744: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5740: END IF;
5741:
5742:
5743: IF l_notif_Enabled = 'Y' THEN
5744: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5745: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5746: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5747: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5748: END IF;

Line 5745: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);

5741:
5742:
5743: IF l_notif_Enabled = 'Y' THEN
5744: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5745: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5746: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5747: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5748: END IF;
5749:

Line 5746: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');

5742:
5743: IF l_notif_Enabled = 'Y' THEN
5744: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5745: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5746: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5747: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5748: END IF;
5749:
5750: Get_Name_details(p_party_id => p_sent_by_party_id,

Line 5747: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);

5743: IF l_notif_Enabled = 'Y' THEN
5744: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5745: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5746: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5747: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5748: END IF;
5749:
5750: Get_Name_details(p_party_id => p_sent_by_party_id,
5751: p_user_type => FND_API.G_MISS_CHAR,

Line 5756: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5752: x_contact_first_name => l_sent_by_first_name,
5753: x_contact_last_name => l_sent_by_last_name,
5754: x_party_id => l_sent_by_party_id);
5755:
5756: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5757: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);
5758: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);
5759: END IF;
5760:

Line 5757: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);

5753: x_contact_last_name => l_sent_by_last_name,
5754: x_party_id => l_sent_by_party_id);
5755:
5756: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5757: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);
5758: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);
5759: END IF;
5760:
5761: FOR rec_quote_name in c_quote_name(p_quote_access_rec.quote_header_id) LOOP

Line 5758: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);

5754: x_party_id => l_sent_by_party_id);
5755:
5756: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5757: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);
5758: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);
5759: END IF;
5760:
5761: FOR rec_quote_name in c_quote_name(p_quote_access_rec.quote_header_id) LOOP
5762: l_quote_name := rec_quote_name.quote_name;

Line 5772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5768: IF ((p_owner_party_id is not null ) AND
5769: (p_owner_party_id <> FND_API.G_MISS_NUM)) THEN
5770: l_url := p_url;
5771: l_access_code :='O';
5772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5773: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_access_code '||l_access_code);
5774: END IF;
5775: ELSE
5776: l_access_code := p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE;

Line 5773: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_access_code '||l_access_code);

5769: (p_owner_party_id <> FND_API.G_MISS_NUM)) THEN
5770: l_url := p_url;
5771: l_access_code :='O';
5772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5773: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_access_code '||l_access_code);
5774: END IF;
5775: ELSE
5776: l_access_code := p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE;
5777: l_url := p_url;

Line 5781: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5777: l_url := p_url;
5778: l_url := l_url|| p_quote_access_rec.quote_sharee_number;
5779: END IF;
5780:
5781: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5782: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);
5783: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');
5784: END IF;
5785:

Line 5782: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);

5778: l_url := l_url|| p_quote_access_rec.quote_sharee_number;
5779: END IF;
5780:
5781: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5782: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);
5783: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');
5784: END IF;
5785:
5786: l_org_Id := MO_GLOBAL.get_current_org_id();

Line 5783: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');

5779: END IF;
5780:
5781: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5782: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);
5783: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');
5784: END IF;
5785:
5786: l_org_Id := MO_GLOBAL.get_current_org_id();
5787: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 5802: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5798:
5799: IF x_msg_count > 0 Then
5800: Raise GET_MESSAGE_ERROR;
5801: END IF;
5802: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5803: ibe_util.debug('Message Name: '||l_msg_name||' Enabled: '||l_msg_Enabled);
5804: END IF;
5805:
5806: IF l_msg_Enabled = 'Y' THEN

Line 5803: ibe_util.debug('Message Name: '||l_msg_name||' Enabled: '||l_msg_Enabled);

5799: IF x_msg_count > 0 Then
5800: Raise GET_MESSAGE_ERROR;
5801: END IF;
5802: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5803: ibe_util.debug('Message Name: '||l_msg_name||' Enabled: '||l_msg_Enabled);
5804: END IF;
5805:
5806: IF l_msg_Enabled = 'Y' THEN
5807: IF (p_quote_access_rec.Quote_sharee_number is not null AND

Line 5817: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5813: END IF;
5814:
5815: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5816:
5817: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5818: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);
5819: ibe_util.debug('ready to create process');
5820: END IF;
5821:

Line 5818: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);

5814:
5815: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5816:
5817: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5818: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);
5819: ibe_util.debug('ready to create process');
5820: END IF;
5821:
5822: wf_engine.CreateProcess(

Line 5819: ibe_util.debug('ready to create process');

5815: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5816:
5817: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5818: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);
5819: ibe_util.debug('ready to create process');
5820: END IF;
5821:
5822: wf_engine.CreateProcess(
5823: itemtype => g_ItemType,

Line 5869: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5865: itemkey => l_item_key,
5866: aname => 'CARTNAME',
5867: avalue => l_quote_name);
5868:
5869: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5870: IBE_UTIL.DEBUG('Notify_view_shared_cart:ACCESSCODE: '||p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE);
5871: END IF;
5872: wf_engine.SetItemAttrText(
5873: itemtype => g_ItemType,

Line 5870: IBE_UTIL.DEBUG('Notify_view_shared_cart:ACCESSCODE: '||p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE);

5866: aname => 'CARTNAME',
5867: avalue => l_quote_name);
5868:
5869: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5870: IBE_UTIL.DEBUG('Notify_view_shared_cart:ACCESSCODE: '||p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE);
5871: END IF;
5872: wf_engine.SetItemAttrText(
5873: itemtype => g_ItemType,
5874: itemkey => l_item_key,

Line 5923: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

5919: wf_engine.StartProcess(
5920: itemtype => g_ItemType,
5921: itemkey => l_item_key);
5922:
5923: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5924: IBE_UTIL.DEBUG('Process Started');
5925: END IF;
5926:
5927: END IF;

Line 5924: IBE_UTIL.DEBUG('Process Started');

5920: itemtype => g_ItemType,
5921: itemkey => l_item_key);
5922:
5923: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5924: IBE_UTIL.DEBUG('Process Started');
5925: END IF;
5926:
5927: END IF;
5928: END IF;

Line 6023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6019: BEGIN
6020: x_return_status := FND_API.g_ret_sts_success;
6021:
6022: -- Check for WorkFlow Feature Availablity.
6023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6024: ibe_util.debug('Check if this notification is enabled.');
6025: END IF;
6026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
6027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 6024: ibe_util.debug('Check if this notification is enabled.');

6020: x_return_status := FND_API.g_ret_sts_success;
6021:
6022: -- Check for WorkFlow Feature Availablity.
6023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6024: ibe_util.debug('Check if this notification is enabled.');
6025: END IF;
6026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
6027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

Line 6027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6024: ibe_util.debug('Check if this notification is enabled.');
6025: END IF;
6026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
6027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
6029: END IF;
6030: If l_notifEnabled = 'Y' Then
6031: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP

Line 6028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

6024: ibe_util.debug('Check if this notification is enabled.');
6025: END IF;
6026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
6027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
6029: END IF;
6030: If l_notifEnabled = 'Y' Then
6031: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP
6032: l_user_name :='HZ_PARTY:'||c_quote_rec.party_id;

Line 6049: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6045:
6046: GetLastName (p_Quote_Header_id, null,
6047: l_last_name_sc,
6048: l_dummy_document_type);
6049: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6050: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));
6051: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
6052: END IF;
6053:

Line 6050: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));

6046: GetLastName (p_Quote_Header_id, null,
6047: l_last_name_sc,
6048: l_dummy_document_type);
6049: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6050: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));
6051: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
6052: END IF;
6053:
6054: getUserType(l_partyId,l_UserType);

Line 6051: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);

6047: l_last_name_sc,
6048: l_dummy_document_type);
6049: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6050: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));
6051: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
6052: END IF;
6053:
6054: getUserType(l_partyId,l_UserType);
6055: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 6055: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6051: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
6052: END IF;
6053:
6054: getUserType(l_partyId,l_UserType);
6055: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6056: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
6057: ||' User Type: '||l_userType);
6058: END IF;
6059: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

Line 6056: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)

6052: END IF;
6053:
6054: getUserType(l_partyId,l_UserType);
6055: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6056: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
6057: ||' User Type: '||l_userType);
6058: END IF;
6059: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
6060: (

Line 6071: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6067: x_return_status => x_return_status,
6068: x_msg_data => x_msg_data,
6069: x_msg_count => x_msg_data);
6070:
6071: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6072: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
6073: END IF;
6074: If x_msg_count > 0 Then
6075: Raise GET_MESSAGE_ERROR;

Line 6072: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);

6068: x_msg_data => x_msg_data,
6069: x_msg_count => x_msg_data);
6070:
6071: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6072: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
6073: END IF;
6074: If x_msg_count > 0 Then
6075: Raise GET_MESSAGE_ERROR;
6076: End if;

Line 6107: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6103: l_adhoc_role := l_user_name;
6104: End If;
6105:
6106:
6107: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6108: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
6109: END IF;
6110:
6111: wf_engine.CreateProcess(

Line 6108: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);

6104: End If;
6105:
6106:
6107: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6108: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
6109: END IF;
6110:
6111: wf_engine.CreateProcess(
6112: itemtype => g_ItemType,

Line 6213: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6209: wf_engine.StartProcess(
6210: itemtype => g_ItemType,
6211: itemkey => l_item_key);
6212:
6213: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6214: ibe_util.debug('Process Started');
6215: END IF;
6216:
6217: End If;

Line 6214: ibe_util.debug('Process Started');

6210: itemtype => g_ItemType,
6211: itemkey => l_item_key);
6212:
6213: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6214: ibe_util.debug('Process Started');
6215: END IF;
6216:
6217: End If;
6218: End If;

Line 6279: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6275: p_string_out := rpad(p_string_out,20,' ');
6276: END IF;
6277: p_string_left := substr(p_string_in,l_pos+1,length(p_string_in)-l_pos);
6278: END IF;
6279: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6280: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);
6281: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);
6282: END IF;
6283: END ParseThisString;

Line 6280: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);

6276: END IF;
6277: p_string_left := substr(p_string_in,l_pos+1,length(p_string_in)-l_pos);
6278: END IF;
6279: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6280: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);
6281: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);
6282: END IF;
6283: END ParseThisString;
6284:

Line 6281: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);

6277: p_string_left := substr(p_string_in,l_pos+1,length(p_string_in)-l_pos);
6278: END IF;
6279: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6280: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);
6281: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);
6282: END IF;
6283: END ParseThisString;
6284:
6285: PROCEDURE ParseThisString1 (

Line 6408: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6404: aname => 'ORDERID'
6405: );
6406:
6407:
6408: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6409: ibe_util.debug('GenerateHeader - l_event_type -'|| l_event_type);
6410: END IF;
6411:
6412: OPEN c_order_header(l_order_id);

Line 6409: ibe_util.debug('GenerateHeader - l_event_type -'|| l_event_type);

6405: );
6406:
6407:
6408: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6409: ibe_util.debug('GenerateHeader - l_event_type -'|| l_event_type);
6410: END IF;
6411:
6412: OPEN c_order_header(l_order_id);
6413: LOOP

Line 6555: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6551: l_temp_str := null;
6552: l_temp_str := fnd_message.get;
6553: l_document := l_document || l_temp_str ||TAB||TAB || NEWLINE ;
6554: l_document := l_document ||TAB||TAB||TAB|| l_errmsg_data ||NEWLINE;
6555: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6556: ibe_util.debug('Error Message '|| l_errmsg_data);
6557: END IF;
6558: -- ELSE
6559: -- null;

Line 6556: ibe_util.debug('Error Message '|| l_errmsg_data);

6552: l_temp_str := fnd_message.get;
6553: l_document := l_document || l_temp_str ||TAB||TAB || NEWLINE ;
6554: l_document := l_document ||TAB||TAB||TAB|| l_errmsg_data ||NEWLINE;
6555: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6556: ibe_util.debug('Error Message '|| l_errmsg_data);
6557: END IF;
6558: -- ELSE
6559: -- null;
6560: --END IF;

Line 6567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6563: CLOSE c_order_header;
6564:
6565:
6566:
6567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6568: ibe_util.debug('GenerateHeader - l_document - '||NEWLINE|| l_document);
6569: END IF;
6570: l_document := l_document||NEWLINE;
6571: document := l_document;

Line 6568: ibe_util.debug('GenerateHeader - l_document - '||NEWLINE|| l_document);

6564:
6565:
6566:
6567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6568: ibe_util.debug('GenerateHeader - l_document - '||NEWLINE|| l_document);
6569: END IF;
6570: l_document := l_document||NEWLINE;
6571: document := l_document;
6572:

Line 6637: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6633: BEGIN
6634:
6635: l_item_key := document_id;
6636:
6637: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6638: ibe_util.debug('GenerateAssistHeader - l_item_key - '||l_item_key);
6639: END IF;
6640:
6641: l_quote_id := wf_engine.GetItemAttrText (

Line 6638: ibe_util.debug('GenerateAssistHeader - l_item_key - '||l_item_key);

6634:
6635: l_item_key := document_id;
6636:
6637: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6638: ibe_util.debug('GenerateAssistHeader - l_item_key - '||l_item_key);
6639: END IF;
6640:
6641: l_quote_id := wf_engine.GetItemAttrText (
6642: itemtype => g_itemType,

Line 6646: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6642: itemtype => g_itemType,
6643: itemkey => l_item_key,
6644: aname => 'QUOTEID');
6645:
6646: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6647: ibe_util.debug('GenerateAssistHeader - l_quote_id - '||l_quote_id);
6648: END IF;
6649:
6650: l_order_id := wf_engine.GetItemAttrText (

Line 6647: ibe_util.debug('GenerateAssistHeader - l_quote_id - '||l_quote_id);

6643: itemkey => l_item_key,
6644: aname => 'QUOTEID');
6645:
6646: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6647: ibe_util.debug('GenerateAssistHeader - l_quote_id - '||l_quote_id);
6648: END IF;
6649:
6650: l_order_id := wf_engine.GetItemAttrText (
6651: itemtype => g_itemType,

Line 6655: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6651: itemtype => g_itemType,
6652: itemkey => l_item_key,
6653: aname => 'ORDERID');
6654:
6655: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6656: ibe_util.debug('GenerateHeader - l_order_id - '||l_order_id);
6657: END IF;
6658:
6659: l_event_type := wf_engine.GetItemAttrText (

Line 6656: ibe_util.debug('GenerateHeader - l_order_id - '||l_order_id);

6652: itemkey => l_item_key,
6653: aname => 'ORDERID');
6654:
6655: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6656: ibe_util.debug('GenerateHeader - l_order_id - '||l_order_id);
6657: END IF;
6658:
6659: l_event_type := wf_engine.GetItemAttrText (
6660: itemtype => g_itemType,

Line 6669: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6665: itemtype => g_itemType,
6666: itemkey => l_item_key,
6667: aname => 'COMMENTS');
6668:
6669: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6670: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);
6671: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);
6672: END IF;
6673:

Line 6670: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);

6666: itemkey => l_item_key,
6667: aname => 'COMMENTS');
6668:
6669: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6670: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);
6671: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);
6672: END IF;
6673:
6674: OPEN c_order_header(l_order_id);

Line 6671: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);

6667: aname => 'COMMENTS');
6668:
6669: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6670: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);
6671: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);
6672: END IF;
6673:
6674: OPEN c_order_header(l_order_id);
6675: LOOP

Line 6699: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6695: l_contact_party_id := g_header_rec.party_id;
6696: End If;
6697: END LOOP;
6698:
6699: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6700: ibe_util.debug('GenerateAssistHeader - l_contact_name '|| l_contact_name);
6701: END IF;
6702:
6703: l_contact_number := NULL;

Line 6700: ibe_util.debug('GenerateAssistHeader - l_contact_name '|| l_contact_name);

6696: End If;
6697: END LOOP;
6698:
6699: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6700: ibe_util.debug('GenerateAssistHeader - l_contact_name '|| l_contact_name);
6701: END IF;
6702:
6703: l_contact_number := NULL;
6704: l_contact_email := NULL;

Line 6727: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6723: End If;
6724:
6725: END LOOP;
6726:
6727: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6728: ibe_util.debug('GenerateAssistHeader - l_contact_number - '|| l_contact_number);
6729: END IF;
6730:
6731: l_ship_address := rtrim(g_header_rec.ship_to_address1) ||' '||rtrim(g_header_rec.ship_to_address2) ||' '||

Line 6728: ibe_util.debug('GenerateAssistHeader - l_contact_number - '|| l_contact_number);

6724:
6725: END LOOP;
6726:
6727: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6728: ibe_util.debug('GenerateAssistHeader - l_contact_number - '|| l_contact_number);
6729: END IF;
6730:
6731: l_ship_address := rtrim(g_header_rec.ship_to_address1) ||' '||rtrim(g_header_rec.ship_to_address2) ||' '||
6732: rtrim(g_header_rec.ship_to_address3) ||' '||rtrim(g_header_rec.ship_to_address4) ;

Line 6737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6733:
6734: l_bill_address := rtrim(g_header_rec.bill_to_address1) ||' '||rtrim(g_header_rec.bill_to_address2) ||' '||
6735: rtrim(g_header_rec.bill_to_address3) ||' '||rtrim(g_header_rec.bill_to_address4) ;
6736:
6737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6738: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);
6739: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);
6740: END IF;
6741:

Line 6738: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);

6734: l_bill_address := rtrim(g_header_rec.bill_to_address1) ||' '||rtrim(g_header_rec.bill_to_address2) ||' '||
6735: rtrim(g_header_rec.bill_to_address3) ||' '||rtrim(g_header_rec.bill_to_address4) ;
6736:
6737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6738: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);
6739: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);
6740: END IF;
6741:
6742: For c_ship_method_rec in c_ship_methods(g_header_rec.shipping_method_code) LOOP

Line 6739: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);

6735: rtrim(g_header_rec.bill_to_address3) ||' '||rtrim(g_header_rec.bill_to_address4) ;
6736:
6737: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6738: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);
6739: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);
6740: END IF;
6741:
6742: For c_ship_method_rec in c_ship_methods(g_header_rec.shipping_method_code) LOOP
6743: l_Ship_Method := c_ship_method_rec.Meaning;

Line 6953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

6949: END IF;
6950: END LOOP;
6951: CLOSE c_order_header;
6952:
6953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6954: ibe_util.debug('GenerateAssistHeader - l_document - '||NEWLINE|| l_document);
6955: END IF;
6956:
6957: document := l_document;

Line 6954: ibe_util.debug('GenerateAssistHeader - l_document - '||NEWLINE|| l_document);

6950: END LOOP;
6951: CLOSE c_order_header;
6952:
6953: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6954: ibe_util.debug('GenerateAssistHeader - l_document - '||NEWLINE|| l_document);
6955: END IF;
6956:
6957: document := l_document;
6958:

Line 7394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7390:
7391: -- ord_detail_rec order_details_rec_type;
7392: BEGIN
7393:
7394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7395: IBE_UTIL.DEBUG('Generate_detail:START');
7396: END IF;
7397: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7398: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);

Line 7395: IBE_UTIL.DEBUG('Generate_detail:START');

7391: -- ord_detail_rec order_details_rec_type;
7392: BEGIN
7393:
7394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7395: IBE_UTIL.DEBUG('Generate_detail:START');
7396: END IF;
7397: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7398: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);
7399: l_item_key := p_item_key;

Line 7400: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7396: END IF;
7397: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7398: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);
7399: l_item_key := p_item_key;
7400: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7401: ibe_util.debug('Generate_Detail - l_item_key - '||l_item_key);
7402: END IF;
7403:
7404: l_quote_id := wf_engine.GetItemAttrText (

Line 7401: ibe_util.debug('Generate_Detail - l_item_key - '||l_item_key);

7397: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7398: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);
7399: l_item_key := p_item_key;
7400: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7401: ibe_util.debug('Generate_Detail - l_item_key - '||l_item_key);
7402: END IF;
7403:
7404: l_quote_id := wf_engine.GetItemAttrText (
7405: itemtype => g_itemType,

Line 7409: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7405: itemtype => g_itemType,
7406: itemkey => l_item_key,
7407: aname => 'QUOTEID'
7408: );
7409: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7410: ibe_util.debug('Generate_Detail - l_quote_id - '||l_quote_id);
7411: END IF;
7412: l_order_id := wf_engine.GetItemAttrText (
7413: itemtype => g_itemType,

Line 7410: ibe_util.debug('Generate_Detail - l_quote_id - '||l_quote_id);

7406: itemkey => l_item_key,
7407: aname => 'QUOTEID'
7408: );
7409: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7410: ibe_util.debug('Generate_Detail - l_quote_id - '||l_quote_id);
7411: END IF;
7412: l_order_id := wf_engine.GetItemAttrText (
7413: itemtype => g_itemType,
7414: itemkey => l_item_key,

Line 7417: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7413: itemtype => g_itemType,
7414: itemkey => l_item_key,
7415: aname => 'ORDERID'
7416: );
7417: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7418: ibe_util.debug('Generate_Detail - l_order_id - '||l_order_id);
7419: END IF;
7420: l_event_type := wf_engine.GetItemAttrText (
7421: itemtype => g_itemType,

Line 7418: ibe_util.debug('Generate_Detail - l_order_id - '||l_order_id);

7414: itemkey => l_item_key,
7415: aname => 'ORDERID'
7416: );
7417: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7418: ibe_util.debug('Generate_Detail - l_order_id - '||l_order_id);
7419: END IF;
7420: l_event_type := wf_engine.GetItemAttrText (
7421: itemtype => g_itemType,
7422: itemkey => l_item_key,

Line 7425: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7421: itemtype => g_itemType,
7422: itemkey => l_item_key,
7423: aname => 'EVENTTYPE'
7424: );
7425: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7426: ibe_util.debug('Generate_Detail - l_event_type - '|| l_event_type);
7427: END IF;
7428:
7429:

Line 7426: ibe_util.debug('Generate_Detail - l_event_type - '|| l_event_type);

7422: itemkey => l_item_key,
7423: aname => 'EVENTTYPE'
7424: );
7425: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7426: ibe_util.debug('Generate_Detail - l_event_type - '|| l_event_type);
7427: END IF;
7428:
7429:
7430: l_view_net_price_flag := wf_engine.GetItemAttrText (

Line 7451: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7447: For curr_sym_rec In c_curr_symbol(g_quote_header_rec.currency_code)
7448: Loop
7449: l_curr_sym := trim(nvl(curr_sym_rec.symbol,' '));
7450: g_curr_sym := l_curr_sym;
7451: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7452: IBE_UTIL.DEBUG('currency symbol is: '||nvl(l_curr_sym,'nothing'));
7453: END IF;
7454: End Loop;
7455: END IF;

Line 7452: IBE_UTIL.DEBUG('currency symbol is: '||nvl(l_curr_sym,'nothing'));

7448: Loop
7449: l_curr_sym := trim(nvl(curr_sym_rec.symbol,' '));
7450: g_curr_sym := l_curr_sym;
7451: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7452: IBE_UTIL.DEBUG('currency symbol is: '||nvl(l_curr_sym,'nothing'));
7453: END IF;
7454: End Loop;
7455: END IF;
7456: End Loop;

Line 7458: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7454: End Loop;
7455: END IF;
7456: End Loop;
7457: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7458: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7459: ibe_util.debug('p_quote_flag '||p_quote_flag);
7460: END IF;
7461: --Get Display Option class profile value
7462: l_displayOptionClass := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DISPLAY_OPTION_CLASSES',null,null,671), 'Y');

Line 7459: ibe_util.debug('p_quote_flag '||p_quote_flag);

7455: END IF;
7456: End Loop;
7457: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7458: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7459: ibe_util.debug('p_quote_flag '||p_quote_flag);
7460: END IF;
7461: --Get Display Option class profile value
7462: l_displayOptionClass := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DISPLAY_OPTION_CLASSES',null,null,671), 'Y');
7463: l_displayUnchangedItem := NVL( FND_PROFILE.VALUE_SPECIFIC('CZ_OUTPUT_IB_UNCHD_CHILD_ITEMS',null,null,671), 'Y');

Line 7511: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7507: END LOOP;
7508: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7509: --Order details content generation
7510: Elsif(p_quote_flag = fnd_api.g_false) then
7511: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7512: IBE_UTIL.debug('p_quote_flag is false, entering the order area');
7513: END IF;
7514: --Begin New Order Generate Detail
7515: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP

Line 7512: IBE_UTIL.debug('p_quote_flag is false, entering the order area');

7508: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7509: --Order details content generation
7510: Elsif(p_quote_flag = fnd_api.g_false) then
7511: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7512: IBE_UTIL.debug('p_quote_flag is false, entering the order area');
7513: END IF;
7514: --Begin New Order Generate Detail
7515: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP
7516: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 7516: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7512: IBE_UTIL.debug('p_quote_flag is false, entering the order area');
7513: END IF;
7514: --Begin New Order Generate Detail
7515: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP
7516: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7517: IBE_UTIL.debug('Notif Order Line not null');
7518: END IF;
7519: if(g_notif_order_line_rec.config_instance_name is not null) then
7520: notif_line_tbl(l_index).Product := g_notif_order_line_rec.description||':'||g_notif_order_line_rec.config_instance_name;

Line 7517: IBE_UTIL.debug('Notif Order Line not null');

7513: END IF;
7514: --Begin New Order Generate Detail
7515: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP
7516: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7517: IBE_UTIL.debug('Notif Order Line not null');
7518: END IF;
7519: if(g_notif_order_line_rec.config_instance_name is not null) then
7520: notif_line_tbl(l_index).Product := g_notif_order_line_rec.description||':'||g_notif_order_line_rec.config_instance_name;
7521: else

Line 7558: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7554: END IF;--Hide Option class and Unchanged Lines
7555: END LOOP;
7556: END IF;
7557: if(g_notif_order_line_rec.item_type_code = 'KIT') then
7558: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7559: IBE_UTIL.Debug('Kit found here: Need to do changes');
7560: END IF;
7561: For g_notif_config_orderline_rec In c_get_order_config_tree(l_quote_id,g_notif_order_line_rec.top_model_line_id) Loop
7562: notif_line_tbl(l_index).NetAmount := notif_line_tbl(l_index).NetAmount + g_notif_config_orderline_rec.lines_total;

Line 7559: IBE_UTIL.Debug('Kit found here: Need to do changes');

7555: END LOOP;
7556: END IF;
7557: if(g_notif_order_line_rec.item_type_code = 'KIT') then
7558: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7559: IBE_UTIL.Debug('Kit found here: Need to do changes');
7560: END IF;
7561: For g_notif_config_orderline_rec In c_get_order_config_tree(l_quote_id,g_notif_order_line_rec.top_model_line_id) Loop
7562: notif_line_tbl(l_index).NetAmount := notif_line_tbl(l_index).NetAmount + g_notif_config_orderline_rec.lines_total;
7563: notif_line_tbl(l_index).TaxAmount := notif_line_tbl(l_index).NetAmount + g_notif_config_orderline_rec.lines_total;

Line 7572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7568: --End New Order Generate Detail
7569: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7570: END IF; --for l_quote_flag
7571: x_document := l_document;
7572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7573: ibe_util.debug('Generate_Detail - l_document - ' ||NEWLINE||l_document);
7574: END IF;
7575: END;
7576:

Line 7573: ibe_util.debug('Generate_Detail - l_document - ' ||NEWLINE||l_document);

7569: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7570: END IF; --for l_quote_flag
7571: x_document := l_document;
7572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7573: ibe_util.debug('Generate_Detail - l_document - ' ||NEWLINE||l_document);
7574: END IF;
7575: END;
7576:
7577: /********************************************************

Line 7798: l_can_qty := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).returned_quantity));

7794: l_document := l_document || rpad(to_char(ord_detail_tbl(i).source_order_number),9)||' ';
7795: ELSE
7796: l_document := l_document || rpad(' ',10);
7797: END IF;
7798: l_can_qty := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).returned_quantity));
7799: l_document := l_document || rpad(to_char(to_number(l_can_qty)),5)||' ';
7800:
7801: l_view_net_price_flag:= wf_engine.GetItemAttrText (
7802: itemtype => g_itemType,

Line 7810: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).lines_total));

7806: IF l_view_net_price_flag = 'Y' THEN
7807: IF (to_char(ord_detail_tbl(i).lines_total) is null) THEN
7808: l_document := l_document || lpad(' ' || to_char(to_number(ord_detail_tbl(i).lines_total),l_amt_format), 14, ' ');
7809: ELSE
7810: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).lines_total));
7811: l_document := l_document || lpad(l_curr_sym || to_char(to_number(l_can_amt),l_amt_format), 14, ' ')||' ';
7812: END IF;
7813: END IF;
7814: IF (ord_detail_tbl(i).return_reason_code is not NULL) THEN

Line 7909: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).taxes_total));

7905: IF (to_char(ord_detail_tbl(i).taxes_total) is not null) THEN
7906: --l_document := l_document ||
7907: --lpad(l_temp_str||': '||' '|| to_char(to_number(ord_detail_tbl(i).taxes_total),l_amt_format),72,' ')||NEWLINE;
7908: --ELSE
7909: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).taxes_total));
7910: l_document := l_document ||
7911: lpad(l_temp_str||': '||l_curr_sym|| to_char(to_number(l_can_amt),l_amt_format),59,' ')||NEWLINE;
7912: END IF;
7913: END IF;

Line 7941: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7937:
7938: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
7939: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
7940: BEGIN
7941: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7942: IBE_UTIL.DEBUG('Generate_order_Detail_wtax:START');
7943: END IF;
7944: ibe_workflow_pvt.Generate_Detail(
7945: P_item_key => document_id,

Line 7942: IBE_UTIL.DEBUG('Generate_order_Detail_wtax:START');

7938: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
7939: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
7940: BEGIN
7941: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7942: IBE_UTIL.DEBUG('Generate_order_Detail_wtax:START');
7943: END IF;
7944: ibe_workflow_pvt.Generate_Detail(
7945: P_item_key => document_id,
7946: p_quote_flag => l_quote_flag,

Line 7959: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

7955: END IF;
7956:
7957: EXCEPTION
7958: WHEN OTHERS THEN
7959: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7960: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_wtax');
7961: END IF;
7962:
7963: END;

Line 7960: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_wtax');

7956:
7957: EXCEPTION
7958: WHEN OTHERS THEN
7959: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7960: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_wtax');
7961: END IF;
7962:
7963: END;
7964: /********************************************************

Line 8004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8000: END IF;
8001:
8002: EXCEPTION
8003: WHEN OTHERS THEN
8004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8005: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_wtax');
8006: END IF;
8007:
8008: END Generate_Rtn_ord_Detail_wtax ;

Line 8005: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_wtax');

8001:
8002: EXCEPTION
8003: WHEN OTHERS THEN
8004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8005: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_wtax');
8006: END IF;
8007:
8008: END Generate_Rtn_ord_Detail_wtax ;
8009:

Line 8025: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8021:
8022: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
8023: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
8024: BEGIN
8025: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8026: IBE_UTIL.DEBUG('Generate_quote_Detail_wtax:START');
8027: END IF;
8028: ibe_workflow_pvt.Generate_Detail(
8029: P_item_key => document_id,

Line 8026: IBE_UTIL.DEBUG('Generate_quote_Detail_wtax:START');

8022: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
8023: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
8024: BEGIN
8025: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8026: IBE_UTIL.DEBUG('Generate_quote_Detail_wtax:START');
8027: END IF;
8028: ibe_workflow_pvt.Generate_Detail(
8029: P_item_key => document_id,
8030: p_quote_flag => l_quote_flag,

Line 8043: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8039: END IF;
8040:
8041: EXCEPTION
8042: WHEN OTHERS THEN
8043: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8044: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_wtax');
8045: END IF;
8046:
8047: END;

Line 8044: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_wtax');

8040:
8041: EXCEPTION
8042: WHEN OTHERS THEN
8043: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8044: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_wtax');
8045: END IF;
8046:
8047: END;
8048: --Added by mannamra

Line 8061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8057:
8058: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
8059: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
8060: BEGIN
8061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8062: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
8063: END IF;
8064: ----DBMS_OUTPUT.PUT('Generate_order_Detail_notax:START');
8065: ibe_workflow_pvt.Generate_Detail(

Line 8062: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');

8058: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
8059: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
8060: BEGIN
8061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8062: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
8063: END IF;
8064: ----DBMS_OUTPUT.PUT('Generate_order_Detail_notax:START');
8065: ibe_workflow_pvt.Generate_Detail(
8066: P_item_key => document_id,

Line 8079: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8075: document_type := 'text/plain';
8076: END IF;
8077: EXCEPTION
8078: WHEN OTHERS THEN
8079: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8080: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_notax');
8081: END IF;
8082:
8083: END;

Line 8080: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_notax');

8076: END IF;
8077: EXCEPTION
8078: WHEN OTHERS THEN
8079: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8080: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_notax');
8081: END IF;
8082:
8083: END;
8084:

Line 8125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8121: END IF;
8122:
8123: EXCEPTION
8124: WHEN OTHERS THEN
8125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8126: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_notax');
8127: END IF;
8128:
8129: END Generate_Rtn_ord_Detail_notax;

Line 8126: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_notax');

8122:
8123: EXCEPTION
8124: WHEN OTHERS THEN
8125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8126: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_notax');
8127: END IF;
8128:
8129: END Generate_Rtn_ord_Detail_notax;
8130:

Line 8146: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8142:
8143: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
8144: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
8145: BEGIN
8146: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8147: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
8148: END IF;
8149: ibe_workflow_pvt.Generate_Detail(
8150: P_item_key => document_id,

Line 8147: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');

8143: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
8144: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
8145: BEGIN
8146: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8147: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
8148: END IF;
8149: ibe_workflow_pvt.Generate_Detail(
8150: P_item_key => document_id,
8151: p_quote_flag => l_quote_flag,

Line 8164: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8160: END IF;
8161:
8162: EXCEPTION
8163: WHEN OTHERS THEN
8164: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8165: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_notax');
8166: END IF;
8167:
8168: END;

Line 8165: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_notax');

8161:
8162: EXCEPTION
8163: WHEN OTHERS THEN
8164: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8165: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_notax');
8166: END IF;
8167:
8168: END;
8169: --existing API

Line 8207: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8203: BEGIN
8204:
8205: l_item_key := document_id;
8206: ----DBMS_OUTPUT.PUT('Calling GenerateDetail - l_item_key - '||l_item_key);
8207: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8208: ibe_util.debug('GenerateDetail - l_item_key - '||l_item_key);
8209: END IF;
8210:
8211: l_quote_id := wf_engine.GetItemAttrText (

Line 8208: ibe_util.debug('GenerateDetail - l_item_key - '||l_item_key);

8204:
8205: l_item_key := document_id;
8206: ----DBMS_OUTPUT.PUT('Calling GenerateDetail - l_item_key - '||l_item_key);
8207: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8208: ibe_util.debug('GenerateDetail - l_item_key - '||l_item_key);
8209: END IF;
8210:
8211: l_quote_id := wf_engine.GetItemAttrText (
8212: itemtype => g_itemType,

Line 8216: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8212: itemtype => g_itemType,
8213: itemkey => l_item_key,
8214: aname => 'QUOTEID'
8215: );
8216: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8217: ibe_util.debug('GenerateDetail - l_quote_id - '||l_quote_id);
8218: END IF;
8219:
8220: l_order_id := wf_engine.GetItemAttrText (

Line 8217: ibe_util.debug('GenerateDetail - l_quote_id - '||l_quote_id);

8213: itemkey => l_item_key,
8214: aname => 'QUOTEID'
8215: );
8216: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8217: ibe_util.debug('GenerateDetail - l_quote_id - '||l_quote_id);
8218: END IF;
8219:
8220: l_order_id := wf_engine.GetItemAttrText (
8221: itemtype => g_itemType,

Line 8226: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8222: itemkey => l_item_key,
8223: aname => 'ORDERID'
8224: );
8225:
8226: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8227: ibe_util.debug('GenerateDetail - l_order_id - '||l_order_id);
8228: END IF;
8229:
8230:

Line 8227: ibe_util.debug('GenerateDetail - l_order_id - '||l_order_id);

8223: aname => 'ORDERID'
8224: );
8225:
8226: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8227: ibe_util.debug('GenerateDetail - l_order_id - '||l_order_id);
8228: END IF;
8229:
8230:
8231: l_event_type := wf_engine.GetItemAttrText (

Line 8245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8241: aname => 'VIEWNETPRICE'
8242: );
8243:
8244:
8245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8246: ibe_util.debug('GenerateDetail - l_event_type - '|| l_event_type);
8247: END IF;
8248:
8249: IF l_view_net_price_flag = 'Y' THEN

Line 8246: ibe_util.debug('GenerateDetail - l_event_type - '|| l_event_type);

8242: );
8243:
8244:
8245: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8246: ibe_util.debug('GenerateDetail - l_event_type - '|| l_event_type);
8247: END IF;
8248:
8249: IF l_view_net_price_flag = 'Y' THEN
8250: For ord_hd_rec In c_order_header(l_order_id) Loop

Line 8317: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8313: ELSE
8314: document_type := 'text/plain';
8315: END IF;
8316:
8317: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8318: ibe_util.debug('GenerateDetail - l_document - ' ||NEWLINE||l_document);
8319: END IF;
8320:
8321: EXCEPTION

Line 8318: ibe_util.debug('GenerateDetail - l_document - ' ||NEWLINE||l_document);

8314: document_type := 'text/plain';
8315: END IF;
8316:
8317: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8318: ibe_util.debug('GenerateDetail - l_document - ' ||NEWLINE||l_document);
8319: END IF;
8320:
8321: EXCEPTION
8322: When Others Then

Line 8373: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8369: BEGIN
8370:
8371: l_item_key := document_id;
8372: ----DBMS_OUTPUT.PUT('Calling GenerateFooter - l_item_key - '||l_item_key);
8373: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8374: ibe_util.debug('GenerateFooter - l_item_key - '||l_item_key);
8375: END IF;
8376:
8377: l_quote_id := wf_engine.GetItemAttrText (

Line 8374: ibe_util.debug('GenerateFooter - l_item_key - '||l_item_key);

8370:
8371: l_item_key := document_id;
8372: ----DBMS_OUTPUT.PUT('Calling GenerateFooter - l_item_key - '||l_item_key);
8373: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8374: ibe_util.debug('GenerateFooter - l_item_key - '||l_item_key);
8375: END IF;
8376:
8377: l_quote_id := wf_engine.GetItemAttrText (
8378: itemtype => g_itemType,

Line 8382: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8378: itemtype => g_itemType,
8379: itemkey => l_item_key,
8380: aname => 'QUOTEID'
8381: );
8382: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8383: ibe_util.debug('GenerateFooter - l_quote_id - '||l_quote_id);
8384: END IF;
8385:
8386: l_order_id := wf_engine.GetItemAttrText (

Line 8383: ibe_util.debug('GenerateFooter - l_quote_id - '||l_quote_id);

8379: itemkey => l_item_key,
8380: aname => 'QUOTEID'
8381: );
8382: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8383: ibe_util.debug('GenerateFooter - l_quote_id - '||l_quote_id);
8384: END IF;
8385:
8386: l_order_id := wf_engine.GetItemAttrText (
8387: itemtype => g_itemType,

Line 8392: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8388: itemkey => l_item_key,
8389: aname => 'ORDERID'
8390: );
8391:
8392: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8393: ibe_util.debug('GenerateFooter - l_order_id - '||l_order_id);
8394: END IF;
8395:
8396: l_event_type := wf_engine.GetItemAttrText (

Line 8393: ibe_util.debug('GenerateFooter - l_order_id - '||l_order_id);

8389: aname => 'ORDERID'
8390: );
8391:
8392: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8393: ibe_util.debug('GenerateFooter - l_order_id - '||l_order_id);
8394: END IF;
8395:
8396: l_event_type := wf_engine.GetItemAttrText (
8397: itemtype => g_itemType,

Line 8420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8416: itemkey => l_item_key,
8417: aname => 'RECCHARGEENABLED'
8418: );
8419:
8420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8421: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8422: ibe_util.debug('Event Type ' || l_event_type);
8423: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8424: END IF;

Line 8421: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);

8417: aname => 'RECCHARGEENABLED'
8418: );
8419:
8420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8421: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8422: ibe_util.debug('Event Type ' || l_event_type);
8423: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8424: END IF;
8425:

Line 8422: ibe_util.debug('Event Type ' || l_event_type);

8418: );
8419:
8420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8421: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8422: ibe_util.debug('Event Type ' || l_event_type);
8423: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8424: END IF;
8425:
8426: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN

Line 8423: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);

8419:
8420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8421: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8422: ibe_util.debug('Event Type ' || l_event_type);
8423: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8424: END IF;
8425:
8426: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN
8427: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 8427: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8423: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8424: END IF;
8425:
8426: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN
8427: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8428: ibe_util.debug('GenerateFooter - MACD Order Footer '|| l_event_type);
8429: END IF;
8430: OPEN c_macd_order_header(l_order_id);
8431: LOOP

Line 8428: ibe_util.debug('GenerateFooter - MACD Order Footer '|| l_event_type);

8424: END IF;
8425:
8426: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN
8427: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8428: ibe_util.debug('GenerateFooter - MACD Order Footer '|| l_event_type);
8429: END IF;
8430: OPEN c_macd_order_header(l_order_id);
8431: LOOP
8432: FETCH c_macd_order_header INTO g_macd_ord_rec;

Line 8445: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.order_total));

8441: IF l_view_net_price_flag = 'Y' THEN
8442: fnd_message.set_name('IBE','IBE_PRMT_OT_ONE_TIME_PRICE');
8443: l_temp_str := null;
8444: l_temp_str := fnd_message.get;
8445: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.order_total));
8446: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ')||NEWLINE;
8447:
8448: --Call OM to find the recurring totals
8449: OE_Totals_GRP.GET_RECURRING_TOTALS

Line 8459: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_rec_charge_tbl(i).rec_subtotal));

8455: i := l_rec_charge_tbl.FIRST;
8456: WHILE i is not null
8457: LOOP
8458: l_document := l_document || lpad(l_rec_charge_tbl(i).charge_periodicity_meaning,51,' ');
8459: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_rec_charge_tbl(i).rec_subtotal));
8460: l_document := l_document || lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
8461: i := l_rec_charge_tbl.NEXT(i);
8462: END LOOP;
8463: END IF;

Line 8468: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8464: END IF;
8465: END LOOP;
8466: CLOSE c_macd_order_header;
8467: ELSE
8468: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8469: ibe_util.debug('GenerateFooter - NON-MACD Order Footer l_event_type - '|| l_event_type);
8470: END IF;
8471:
8472: OPEN c_order_header(l_order_id);

Line 8469: ibe_util.debug('GenerateFooter - NON-MACD Order Footer l_event_type - '|| l_event_type);

8465: END LOOP;
8466: CLOSE c_macd_order_header;
8467: ELSE
8468: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8469: ibe_util.debug('GenerateFooter - NON-MACD Order Footer l_event_type - '|| l_event_type);
8470: END IF;
8471:
8472: OPEN c_order_header(l_order_id);
8473: LOOP

Line 8495: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));

8491: l_temp_str := null;
8492: l_temp_str := fnd_message.get;
8493:
8494: l_sub_total := g_header_rec.lines_total;
8495: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));
8496: IF l_event_type = 'RETURNORDER' THEN
8497: l_document := l_document ||lpad(l_temp_str,44,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),14,' ')||NEWLINE;
8498: ELSE
8499: l_document := l_document ||lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;

Line 8501: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.charges_total));

8497: l_document := l_document ||lpad(l_temp_str,44,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),14,' ')||NEWLINE;
8498: ELSE
8499: l_document := l_document ||lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
8500: END IF;
8501: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.charges_total));
8502: IF l_event_type = 'RETURNORDER' THEN
8503: fnd_message.set_name('IBE','IBE_OT_RET_CHARGES');
8504: l_temp_str := null;
8505: l_temp_str := fnd_message.get;

Line 8518: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.taxes_total));

8514: END IF;
8515: fnd_message.set_name('IBE','IBE_PRMT_TAX_EST_COLON');
8516: l_temp_str := null;
8517: l_temp_str := fnd_message.get;
8518: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.taxes_total));
8519: IF l_event_type = 'RETURNORDER' THEN
8520: l_document := l_document || lpad(l_temp_str,44,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),14,' ')||NEWLINE;
8521: ELSE
8522: l_document := l_document || lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;

Line 8529: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.order_total));

8525:
8526: fnd_message.set_name('IBE','IBE_PRMT_SC_TOTAL2');
8527: l_temp_str := null;
8528: l_temp_str := fnd_message.get;
8529: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.order_total));
8530: IF l_event_type = 'RETURNORDER' THEN
8531: l_document := l_document|| lpad(l_temp_str,44,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 14, ' ')||NEWLINE;
8532: ELSE
8533: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ')||NEWLINE;

Line 8566: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_lines_total));

8562:
8563: fnd_message.set_name('IBE','IBE_PRMT_SUBTOTAL_COLON');
8564: l_temp_str := null;
8565: l_temp_str := fnd_message.get;
8566: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_lines_total));
8567: l_document := l_document ||lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
8568:
8569: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
8570: l_temp_str := null;

Line 8572: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_taxes_total));

8568:
8569: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
8570: l_temp_str := null;
8571: l_temp_str := fnd_message.get;
8572: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_taxes_total));
8573: l_document := l_document || lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
8574:
8575: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
8576: l_temp_str := null;

Line 8578: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_charges_total));

8574:
8575: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
8576: l_temp_str := null;
8577: l_temp_str := fnd_message.get;
8578: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_charges_total));
8579: l_document := l_document || lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
8580:
8581: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
8582: l_temp_str := null;

Line 8584: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_order_total));

8580:
8581: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
8582: l_temp_str := null;
8583: l_temp_str := fnd_message.get;
8584: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_order_total));
8585: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ');
8586: END IF;
8587: END LOOP;
8588: CLOSE c_macd_order_header;

Line 8598: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8594: document_type := 'text/html';
8595: ELSE
8596: document_type := 'text/plain';
8597: END IF;
8598: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8599: ibe_util.debug('GenerateFooter - l_document - '||NEWLINE|| l_document);
8600: END IF;
8601:
8602: EXCEPTION

Line 8599: ibe_util.debug('GenerateFooter - l_document - '||NEWLINE|| l_document);

8595: ELSE
8596: document_type := 'text/plain';
8597: END IF;
8598: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8599: ibe_util.debug('GenerateFooter - l_document - '||NEWLINE|| l_document);
8600: END IF;
8601:
8602: EXCEPTION
8603: When Others Then

Line 8689: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8685: BEGIN
8686:
8687: l_item_key := document_id;
8688:
8689: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8690: ibe_util.debug('GenerateQuoteHeader - l_item_key - '||l_item_key);
8691: END IF;
8692:
8693: l_quote_id := wf_engine.GetItemAttrText (

Line 8690: ibe_util.debug('GenerateQuoteHeader - l_item_key - '||l_item_key);

8686:
8687: l_item_key := document_id;
8688:
8689: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8690: ibe_util.debug('GenerateQuoteHeader - l_item_key - '||l_item_key);
8691: END IF;
8692:
8693: l_quote_id := wf_engine.GetItemAttrText (
8694: itemtype => g_ItemType,

Line 8698: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8694: itemtype => g_ItemType,
8695: itemkey => l_item_key,
8696: aname => 'QUOTEID'
8697: );
8698: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8699: ibe_util.debug('GenerateQuoteHeader - l_quote_id - '||l_quote_id);
8700: END IF;
8701:
8702: l_event_type := wf_engine.GetItemAttrText (

Line 8699: ibe_util.debug('GenerateQuoteHeader - l_quote_id - '||l_quote_id);

8695: itemkey => l_item_key,
8696: aname => 'QUOTEID'
8697: );
8698: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8699: ibe_util.debug('GenerateQuoteHeader - l_quote_id - '||l_quote_id);
8700: END IF;
8701:
8702: l_event_type := wf_engine.GetItemAttrText (
8703: itemtype => g_ItemType,

Line 8715: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8711: aname => 'CONTRACTNO'
8712: );
8713:
8714:
8715: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8716: ibe_util.debug('GenerateQuoteHeader - l_event_type - '|| l_event_type);
8717: END IF;
8718:
8719: FOR c_contract_rec In c_contract_header(l_contract_id) LOOP

Line 8716: ibe_util.debug('GenerateQuoteHeader - l_event_type - '|| l_event_type);

8712: );
8713:
8714:
8715: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8716: ibe_util.debug('GenerateQuoteHeader - l_event_type - '|| l_event_type);
8717: END IF;
8718:
8719: FOR c_contract_rec In c_contract_header(l_contract_id) LOOP
8720: l_contract_number := c_contract_rec.contract_number;

Line 8751: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8747: l_sold_contact_party_id := c_hz_cust_acct_rec.party_id;
8748: End Loop;
8749: End If;
8750:
8751: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8752: ibe_util.debug('GenerateQuoteHeader - l_contact_name '|| l_contact_name);
8753: END IF;
8754:
8755: l_contact_number := null;

Line 8752: ibe_util.debug('GenerateQuoteHeader - l_contact_name '|| l_contact_name);

8748: End Loop;
8749: End If;
8750:
8751: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8752: ibe_util.debug('GenerateQuoteHeader - l_contact_name '|| l_contact_name);
8753: END IF;
8754:
8755: l_contact_number := null;
8756: l_contact_email := null;

Line 8772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8768:
8769: End If;
8770: END LOOP;
8771:
8772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8773: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);
8774: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);
8775: END IF;
8776:

Line 8773: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);

8769: End If;
8770: END LOOP;
8771:
8772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8773: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);
8774: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);
8775: END IF;
8776:
8777: /* Get all billing information */

Line 8774: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);

8770: END LOOP;
8771:
8772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8773: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);
8774: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);
8775: END IF;
8776:
8777: /* Get all billing information */
8778:

Line 8791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8787: l_bill_to_name := upper(rtrim(c_hz_cust_acct_rec.person_first_name))||' '||upper(rtrim(c_hz_cust_acct_rec.person_last_name));
8788: l_bill_contact_party_id := c_hz_cust_acct_rec.party_id;
8789: End Loop;
8790:
8791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8792: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);
8793: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);
8794: END IF;
8795:

Line 8792: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);

8788: l_bill_contact_party_id := c_hz_cust_acct_rec.party_id;
8789: End Loop;
8790:
8791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8792: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);
8793: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);
8794: END IF;
8795:
8796:

Line 8793: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);

8789: End Loop;
8790:
8791: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8792: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);
8793: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);
8794: END IF;
8795:
8796:
8797: l_bill_to_number := null;

Line 8823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8819:
8820: End If;
8821: END LOOP;
8822:
8823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8824: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);
8825: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);
8826: END IF;
8827:

Line 8824: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);

8820: End If;
8821: END LOOP;
8822:
8823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8824: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);
8825: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);
8826: END IF;
8827:
8828: l_bill_to_address := null;

Line 8825: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);

8821: END LOOP;
8822:
8823: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8824: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);
8825: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);
8826: END IF;
8827:
8828: l_bill_to_address := null;
8829: l_bill_to_city := null;

Line 8845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8841: l_bill_to_country := c_hz_locations_rec.loc_country;
8842:
8843: END LOOP;
8844:
8845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);

Line 8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);

8842:
8843: END LOOP;
8844:
8845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8850: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);

Line 8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);

8843: END LOOP;
8844:
8845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8850: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8851: END IF;

Line 8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);

8844:
8845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8850: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8851: END IF;
8852:

Line 8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);

8845: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8850: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8851: END IF;
8852:
8853: /* Get all shipping information */

Line 8850: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);

8846: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8847: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8848: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8849: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8850: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8851: END IF;
8852:
8853: /* Get all shipping information */
8854:

Line 8870: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8866: For c_ship_method_rec in c_ship_methods(l_ship_method_code) LOOP
8867: l_Ship_Method := c_ship_method_rec.Meaning;
8868: End Loop;
8869:
8870: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8871: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8872: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8873: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8874: END IF;

Line 8871: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);

8867: l_Ship_Method := c_ship_method_rec.Meaning;
8868: End Loop;
8869:
8870: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8871: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8872: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8873: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8874: END IF;
8875:

Line 8872: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);

8868: End Loop;
8869:
8870: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8871: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8872: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8873: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8874: END IF;
8875:
8876: /* Shipping Customer Information - ship_to_cust_account_id */

Line 8873: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);

8869:
8870: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8871: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8872: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8873: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8874: END IF;
8875:
8876: /* Shipping Customer Information - ship_to_cust_account_id */
8877:

Line 8888: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8884: l_ship_contact_party_id := c_hz_cust_acct_rec.party_id;
8885: End Loop;
8886:
8887:
8888: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8889: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);
8890: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);
8891: END IF;
8892:

Line 8889: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);

8885: End Loop;
8886:
8887:
8888: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8889: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);
8890: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);
8891: END IF;
8892:
8893: /* Shipping Contact ship_to_party_id(PARTY_REALTIONSHIP) OR Ship Customer's Party Id */

Line 8890: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);

8886:
8887:
8888: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8889: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);
8890: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);
8891: END IF;
8892:
8893: /* Shipping Contact ship_to_party_id(PARTY_REALTIONSHIP) OR Ship Customer's Party Id */
8894: If l_ship_to_party_id is not null Then

Line 8915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8911:
8912: End If;
8913: END LOOP;
8914:
8915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8916: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);
8917: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);
8918: END IF;
8919:

Line 8916: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);

8912: End If;
8913: END LOOP;
8914:
8915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8916: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);
8917: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);
8918: END IF;
8919:
8920: l_ship_to_address := null;

Line 8917: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);

8913: END LOOP;
8914:
8915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8916: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);
8917: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);
8918: END IF;
8919:
8920: l_ship_to_address := null;
8921: l_ship_to_city := null;

Line 8937: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

8933:
8934: END LOOP;
8935:
8936:
8937: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);

Line 8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);

8934: END LOOP;
8935:
8936:
8937: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);

Line 8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);

8935:
8936:
8937: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8943: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);

Line 8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);

8936:
8937: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8943: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8944: END IF;

Line 8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);

8937: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8943: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8944: END IF;
8945:

Line 8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);

8938: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8943: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8944: END IF;
8945:
8946: --IF (display_type = 'text/plain' ) THEN

Line 8943: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);

8939: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8940: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8941: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8942: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8943: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8944: END IF;
8945:
8946: --IF (display_type = 'text/plain' ) THEN
8947: fnd_message.set_name('IBE','IBE_PRMT_QUOTE_ID_COLON');

Line 9107: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9103:
9104: END LOOP;
9105: CLOSE c_quote_header;
9106:
9107: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9108: ibe_util.debug('GenerateQuoteHeader - l_document'||NEWLINE|| l_document);
9109: END IF;
9110:
9111: document := l_document;

Line 9108: ibe_util.debug('GenerateQuoteHeader - l_document'||NEWLINE|| l_document);

9104: END LOOP;
9105: CLOSE c_quote_header;
9106:
9107: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9108: ibe_util.debug('GenerateQuoteHeader - l_document'||NEWLINE|| l_document);
9109: END IF;
9110:
9111: document := l_document;
9112:

Line 9162: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9158:
9159:
9160: l_item_key := document_id;
9161:
9162: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9163: ibe_util.debug('GenerateQuoteDetail_new - l_item_key - '||l_item_key);
9164: END IF;
9165:
9166: l_quote_id := wf_engine.GetItemAttrText (

Line 9163: ibe_util.debug('GenerateQuoteDetail_new - l_item_key - '||l_item_key);

9159:
9160: l_item_key := document_id;
9161:
9162: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9163: ibe_util.debug('GenerateQuoteDetail_new - l_item_key - '||l_item_key);
9164: END IF;
9165:
9166: l_quote_id := wf_engine.GetItemAttrText (
9167: itemtype => g_ItemType,

Line 9171: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9167: itemtype => g_ItemType,
9168: itemkey => l_item_key,
9169: aname => 'QUOTEID'
9170: );
9171: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9172: ibe_util.debug('GenerateQuoteDetail_new - l_quote_id - '||l_quote_id);
9173: END IF;
9174:
9175: l_event_type := wf_engine.GetItemAttrText (

Line 9172: ibe_util.debug('GenerateQuoteDetail_new - l_quote_id - '||l_quote_id);

9168: itemkey => l_item_key,
9169: aname => 'QUOTEID'
9170: );
9171: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9172: ibe_util.debug('GenerateQuoteDetail_new - l_quote_id - '||l_quote_id);
9173: END IF;
9174:
9175: l_event_type := wf_engine.GetItemAttrText (
9176: itemtype => g_ItemType,

Line 9180: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9176: itemtype => g_ItemType,
9177: itemkey => l_item_key,
9178: aname => 'EVENTTYPE'
9179: );
9180: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9181: ibe_util.debug('GenerateQuoteDetail - l_event_type - '|| l_event_type);
9182: END IF;
9183:
9184: l_view_net_price_flag := wf_engine.GetItemAttrText (

Line 9181: ibe_util.debug('GenerateQuoteDetail - l_event_type - '|| l_event_type);

9177: itemkey => l_item_key,
9178: aname => 'EVENTTYPE'
9179: );
9180: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9181: ibe_util.debug('GenerateQuoteDetail - l_event_type - '|| l_event_type);
9182: END IF;
9183:
9184: l_view_net_price_flag := wf_engine.GetItemAttrText (
9185: itemtype => g_itemType,

Line 9220: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9216: l_description := c_ship_rec.description;
9217:
9218: END LOOP;
9219:
9220: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9221: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9222: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9223: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9224: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);

Line 9221: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);

9217:
9218: END LOOP;
9219:
9220: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9221: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9222: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9223: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9224: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9225: END IF;

Line 9222: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);

9218: END LOOP;
9219:
9220: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9221: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9222: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9223: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9224: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9225: END IF;
9226:

Line 9223: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);

9219:
9220: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9221: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9222: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9223: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9224: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9225: END IF;
9226:
9227: l_string_in := l_description;

Line 9224: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);

9220: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9221: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9222: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9223: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9224: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9225: END IF;
9226:
9227: l_string_in := l_description;
9228: l_string_out := '';

Line 9260: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9256: ELSE
9257: document_type := 'text/plain';
9258: END IF;
9259:
9260: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9261: ibe_util.debug('GenerateQuoteDetail - l_document - '||NEWLINE|| l_document);
9262: END IF;
9263:
9264: EXCEPTION

Line 9261: ibe_util.debug('GenerateQuoteDetail - l_document - '||NEWLINE|| l_document);

9257: document_type := 'text/plain';
9258: END IF;
9259:
9260: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9261: ibe_util.debug('GenerateQuoteDetail - l_document - '||NEWLINE|| l_document);
9262: END IF;
9263:
9264: EXCEPTION
9265: When Others Then

Line 9320: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9316: BEGIN
9317:
9318: l_item_key := document_id;
9319:
9320: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9321: ibe_util.debug('GenerateQuoteFooter - l_item_key - '||l_item_key);
9322: END IF;
9323:
9324: l_quote_id := wf_engine.GetItemAttrText (

Line 9321: ibe_util.debug('GenerateQuoteFooter - l_item_key - '||l_item_key);

9317:
9318: l_item_key := document_id;
9319:
9320: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9321: ibe_util.debug('GenerateQuoteFooter - l_item_key - '||l_item_key);
9322: END IF;
9323:
9324: l_quote_id := wf_engine.GetItemAttrText (
9325: itemtype => g_ItemType,

Line 9329: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9325: itemtype => g_ItemType,
9326: itemkey => l_item_key,
9327: aname => 'QUOTEID'
9328: );
9329: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9330: ibe_util.debug('GenerateQuoteFooter - l_quote_id - '||l_quote_id);
9331: END IF;
9332:
9333: l_event_type := wf_engine.GetItemAttrText (

Line 9330: ibe_util.debug('GenerateQuoteFooter - l_quote_id - '||l_quote_id);

9326: itemkey => l_item_key,
9327: aname => 'QUOTEID'
9328: );
9329: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9330: ibe_util.debug('GenerateQuoteFooter - l_quote_id - '||l_quote_id);
9331: END IF;
9332:
9333: l_event_type := wf_engine.GetItemAttrText (
9334: itemtype => g_ItemType,

Line 9338: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9334: itemtype => g_ItemType,
9335: itemkey => l_item_key,
9336: aname => 'EVENTTYPE'
9337: );
9338: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9339: ibe_util.debug('GenerateQuoteFooter - l_event_type - '|| l_event_type);
9340: END IF;
9341:
9342:

Line 9339: ibe_util.debug('GenerateQuoteFooter - l_event_type - '|| l_event_type);

9335: itemkey => l_item_key,
9336: aname => 'EVENTTYPE'
9337: );
9338: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9339: ibe_util.debug('GenerateQuoteFooter - l_event_type - '|| l_event_type);
9340: END IF;
9341:
9342:
9343: l_view_net_price_flag := wf_engine.GetItemAttrText (

Line 9362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9358: aname => 'RECCHARGEENABLED'
9359: );
9360:
9361: if(l_reccharge = 'Y') THEN
9362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9363: ibe_util.debug('GenerateQuoteFooter - Recurring loop');
9364: end if;
9365: OPEN c_quote_header(l_quote_id);
9366: LOOP

Line 9363: ibe_util.debug('GenerateQuoteFooter - Recurring loop');

9359: );
9360:
9361: if(l_reccharge = 'Y') THEN
9362: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9363: ibe_util.debug('GenerateQuoteFooter - Recurring loop');
9364: end if;
9365: OPEN c_quote_header(l_quote_id);
9366: LOOP
9367: FETCH c_quote_header INTO g_quote_header_rec;

Line 9378: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));

9374:
9375: fnd_message.set_name('IBE','IBE_PRMT_OT_ONE_TIME_PRICE');
9376: l_temp_str := null;
9377: l_temp_str := fnd_message.get;
9378: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));
9379: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ')||NEWLINE;
9380:
9381: OPEN c_reccur_quote_footer(l_quote_id);
9382: LOOP

Line 9386: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_recur_quote_rec.rec_subtotal));

9382: LOOP
9383: FETCH c_reccur_quote_footer INTO g_recur_quote_rec;
9384: EXIT WHEN c_reccur_quote_footer%NOTFOUND;
9385: l_document := l_document || lpad(g_recur_quote_rec.charge_periodicity_desc,51,' ');
9386: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_recur_quote_rec.rec_subtotal));
9387: l_document := l_document || lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
9388: END LOOP;
9389: CLOSE c_reccur_quote_footer;
9390:

Line 9410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9406: END IF;
9407:
9408:
9409:
9410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9411: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9412: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9413: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9414: END IF;

Line 9411: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));

9407:
9408:
9409:
9410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9411: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9412: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9413: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9414: END IF;
9415:

Line 9412: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));

9408:
9409:
9410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9411: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9412: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9413: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9414: END IF;
9415:
9416: --IF (display_type = 'text/plain' ) THEN

Line 9413: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));

9409:
9410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9411: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9412: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9413: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9414: END IF;
9415:
9416: --IF (display_type = 'text/plain' ) THEN
9417: IF l_view_net_price_flag = 'Y' THEN

Line 9424: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));

9420: l_temp_str := null;
9421: l_temp_str := fnd_message.get;
9422:
9423: l_sub_total := g_quote_header_rec.total_list_price - abs(g_quote_header_rec.total_adjusted_amount);
9424: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));
9425: l_document := l_document || lpad(l_temp_str,51,' ')|| ' '|| lpad( l_curr_sym||to_char(to_number(l_can_amt),l_amt_format), 20, ' ')|| NEWLINE;
9426:
9427:
9428: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');

Line 9431: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_shipping_charge));

9427:
9428: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
9429: l_temp_str := null;
9430: l_temp_str := fnd_message.get;
9431: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_shipping_charge));
9432: l_document := l_document || lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ')|| NEWLINE;
9433:
9434:
9435: fnd_message.set_name('IBE','IBE_PRMT_TAX_EST_COLON');

Line 9438: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_tax));

9434:
9435: fnd_message.set_name('IBE','IBE_PRMT_TAX_EST_COLON');
9436: l_temp_str := null;
9437: l_temp_str := fnd_message.get;
9438: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_tax));
9439: l_document := l_document || lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')|| NEWLINE;
9440:
9441: fnd_message.set_name('IBE','IBE_PRMT_SC_TOTAL2');
9442: l_temp_str := null;

Line 9444: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));

9440:
9441: fnd_message.set_name('IBE','IBE_PRMT_SC_TOTAL2');
9442: l_temp_str := null;
9443: l_temp_str := fnd_message.get;
9444: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));
9445: l_document := l_document || lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym|| to_char(to_number(l_can_amt),l_amt_format),20,' ');
9446: END IF;
9447: --ELSE
9448: --null;

Line 9476: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_lines_total));

9472:
9473: fnd_message.set_name('IBE','IBE_PRMT_SUBTOTAL_COLON');
9474: l_temp_str := null;
9475: l_temp_str := fnd_message.get;
9476: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_lines_total));
9477: l_document := l_document ||lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
9478:
9479: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
9480: l_temp_str := null;

Line 9482: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_taxes_total));

9478:
9479: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
9480: l_temp_str := null;
9481: l_temp_str := fnd_message.get;
9482: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_taxes_total));
9483: l_document := l_document || lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
9484:
9485: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
9486: l_temp_str := null;

Line 9488: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_charges_total));

9484:
9485: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
9486: l_temp_str := null;
9487: l_temp_str := fnd_message.get;
9488: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_charges_total));
9489: l_document := l_document || lpad(l_temp_str,51,' ')||' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
9490:
9491: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
9492: l_temp_str := null;

Line 9494: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_order_total));

9490:
9491: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
9492: l_temp_str := null;
9493: l_temp_str := fnd_message.get;
9494: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_order_total));
9495: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ');
9496: END IF;
9497: END LOOP;
9498: CLOSE c_macd_quote_footer;

Line 9510: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9506: document_type := 'text/plain';
9507: END IF;
9508:
9509:
9510: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9511: ibe_util.debug('GenerateQuoteFooter - l_document - '||NEWLINE|| l_document);
9512: END IF;
9513:
9514: EXCEPTION

Line 9511: ibe_util.debug('GenerateQuoteFooter - l_document - '||NEWLINE|| l_document);

9507: END IF;
9508:
9509:
9510: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9511: ibe_util.debug('GenerateQuoteFooter - l_document - '||NEWLINE|| l_document);
9512: END IF;
9513:
9514: EXCEPTION
9515: When Others Then

Line 9540: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9536: itemkey => itemkey,
9537: aname => 'EVENTTYPE'
9538: );
9539:
9540: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9541: ibe_util.debug('Selector - Inside RUN- '||l_event_type);
9542: END IF;
9543:
9544: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN

Line 9541: ibe_util.debug('Selector - Inside RUN- '||l_event_type);

9537: aname => 'EVENTTYPE'
9538: );
9539:
9540: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9541: ibe_util.debug('Selector - Inside RUN- '||l_event_type);
9542: END IF;
9543:
9544: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN
9545: result := 'COMPLETE:ACCTREG';

Line 9547: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9543:
9544: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN
9545: result := 'COMPLETE:ACCTREG';
9546: ELSIF l_event_type = 'ORDCONF' THEN
9547: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9548: ibe_util.debug('Selector - Inside order confirmation selection ');
9549: END IF;
9550: result := 'COMPLETE:ORDCONF';
9551: ELSIF l_event_type = 'ORDFAX' THEN

Line 9548: ibe_util.debug('Selector - Inside order confirmation selection ');

9544: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN
9545: result := 'COMPLETE:ACCTREG';
9546: ELSIF l_event_type = 'ORDCONF' THEN
9547: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9548: ibe_util.debug('Selector - Inside order confirmation selection ');
9549: END IF;
9550: result := 'COMPLETE:ORDCONF';
9551: ELSIF l_event_type = 'ORDFAX' THEN
9552: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9552: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9548: ibe_util.debug('Selector - Inside order confirmation selection ');
9549: END IF;
9550: result := 'COMPLETE:ORDCONF';
9551: ELSIF l_event_type = 'ORDFAX' THEN
9552: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9553: ibe_util.debug('Selector - Inside order fax selection ');
9554: END IF;
9555: result := 'COMPLETE:ORDFAX';
9556: ELSIF l_event_type = 'ORDERROR' THEN

Line 9553: ibe_util.debug('Selector - Inside order fax selection ');

9549: END IF;
9550: result := 'COMPLETE:ORDCONF';
9551: ELSIF l_event_type = 'ORDFAX' THEN
9552: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9553: ibe_util.debug('Selector - Inside order fax selection ');
9554: END IF;
9555: result := 'COMPLETE:ORDFAX';
9556: ELSIF l_event_type = 'ORDERROR' THEN
9557: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9557: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9553: ibe_util.debug('Selector - Inside order fax selection ');
9554: END IF;
9555: result := 'COMPLETE:ORDFAX';
9556: ELSIF l_event_type = 'ORDERROR' THEN
9557: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9558: ibe_util.debug('Selector - Inside order error selection ');
9559: END IF;
9560: result := 'COMPLETE:ORDERROR';
9561: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN

Line 9558: ibe_util.debug('Selector - Inside order error selection ');

9554: END IF;
9555: result := 'COMPLETE:ORDFAX';
9556: ELSIF l_event_type = 'ORDERROR' THEN
9557: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9558: ibe_util.debug('Selector - Inside order error selection ');
9559: END IF;
9560: result := 'COMPLETE:ORDERROR';
9561: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN
9562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9558: ibe_util.debug('Selector - Inside order error selection ');
9559: END IF;
9560: result := 'COMPLETE:ORDERROR';
9561: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN
9562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9563: ibe_util.debug('Selector - Inside order cust quote selection ');
9564: END IF;
9565: result := 'COMPLETE:ORDCUSTQUOTE';
9566: ELSIF l_event_type = 'ORDSALESQUOTE' THEN

Line 9563: ibe_util.debug('Selector - Inside order cust quote selection ');

9559: END IF;
9560: result := 'COMPLETE:ORDERROR';
9561: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN
9562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9563: ibe_util.debug('Selector - Inside order cust quote selection ');
9564: END IF;
9565: result := 'COMPLETE:ORDCUSTQUOTE';
9566: ELSIF l_event_type = 'ORDSALESQUOTE' THEN
9567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9563: ibe_util.debug('Selector - Inside order cust quote selection ');
9564: END IF;
9565: result := 'COMPLETE:ORDCUSTQUOTE';
9566: ELSIF l_event_type = 'ORDSALESQUOTE' THEN
9567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9568: ibe_util.debug('Selector - Inside order sales quote selection ');
9569: END IF;
9570: result := 'COMPLETE:ORDSALESQUOTE';
9571: ELSIF l_event_type = 'CUSTASSIST' THEN

Line 9568: ibe_util.debug('Selector - Inside order sales quote selection ');

9564: END IF;
9565: result := 'COMPLETE:ORDCUSTQUOTE';
9566: ELSIF l_event_type = 'ORDSALESQUOTE' THEN
9567: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9568: ibe_util.debug('Selector - Inside order sales quote selection ');
9569: END IF;
9570: result := 'COMPLETE:ORDSALESQUOTE';
9571: ELSIF l_event_type = 'CUSTASSIST' THEN
9572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9568: ibe_util.debug('Selector - Inside order sales quote selection ');
9569: END IF;
9570: result := 'COMPLETE:ORDSALESQUOTE';
9571: ELSIF l_event_type = 'CUSTASSIST' THEN
9572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9573: ibe_util.debug('Selector - Inside cust assist selection ');
9574: END IF;
9575: result := 'COMPLETE:CUSTASSIST';
9576: ELSIF l_event_type = 'SALESASSIST' THEN

Line 9573: ibe_util.debug('Selector - Inside cust assist selection ');

9569: END IF;
9570: result := 'COMPLETE:ORDSALESQUOTE';
9571: ELSIF l_event_type = 'CUSTASSIST' THEN
9572: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9573: ibe_util.debug('Selector - Inside cust assist selection ');
9574: END IF;
9575: result := 'COMPLETE:CUSTASSIST';
9576: ELSIF l_event_type = 'SALESASSIST' THEN
9577: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9577: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9573: ibe_util.debug('Selector - Inside cust assist selection ');
9574: END IF;
9575: result := 'COMPLETE:CUSTASSIST';
9576: ELSIF l_event_type = 'SALESASSIST' THEN
9577: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9578: ibe_util.debug('Selector - Inside sales assist selection ');
9579: END IF;
9580: result := 'COMPLETE:SALESASSIST';
9581: ELSIF l_event_type = 'TERMAPPROVED' THEN

Line 9578: ibe_util.debug('Selector - Inside sales assist selection ');

9574: END IF;
9575: result := 'COMPLETE:CUSTASSIST';
9576: ELSIF l_event_type = 'SALESASSIST' THEN
9577: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9578: ibe_util.debug('Selector - Inside sales assist selection ');
9579: END IF;
9580: result := 'COMPLETE:SALESASSIST';
9581: ELSIF l_event_type = 'TERMAPPROVED' THEN
9582: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9582: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9578: ibe_util.debug('Selector - Inside sales assist selection ');
9579: END IF;
9580: result := 'COMPLETE:SALESASSIST';
9581: ELSIF l_event_type = 'TERMAPPROVED' THEN
9582: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9583: ibe_util.debug('Selector - Inside Term Apporved selection ');
9584: END IF;
9585: result := 'COMPLETE:TERMAPPROVED';
9586: ELSIF l_event_type = 'TERMREJECTED' THEN

Line 9583: ibe_util.debug('Selector - Inside Term Apporved selection ');

9579: END IF;
9580: result := 'COMPLETE:SALESASSIST';
9581: ELSIF l_event_type = 'TERMAPPROVED' THEN
9582: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9583: ibe_util.debug('Selector - Inside Term Apporved selection ');
9584: END IF;
9585: result := 'COMPLETE:TERMAPPROVED';
9586: ELSIF l_event_type = 'TERMREJECTED' THEN
9587: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9587: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9583: ibe_util.debug('Selector - Inside Term Apporved selection ');
9584: END IF;
9585: result := 'COMPLETE:TERMAPPROVED';
9586: ELSIF l_event_type = 'TERMREJECTED' THEN
9587: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9588: ibe_util.debug('Selector - Inside Term Rejected selection ');
9589: END IF;
9590: result := 'COMPLETE:TERMREJECTED';
9591: ELSIF l_event_type = 'TERMCANCELLED' THEN

Line 9588: ibe_util.debug('Selector - Inside Term Rejected selection ');

9584: END IF;
9585: result := 'COMPLETE:TERMAPPROVED';
9586: ELSIF l_event_type = 'TERMREJECTED' THEN
9587: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9588: ibe_util.debug('Selector - Inside Term Rejected selection ');
9589: END IF;
9590: result := 'COMPLETE:TERMREJECTED';
9591: ELSIF l_event_type = 'TERMCANCELLED' THEN
9592: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 9592: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9588: ibe_util.debug('Selector - Inside Term Rejected selection ');
9589: END IF;
9590: result := 'COMPLETE:TERMREJECTED';
9591: ELSIF l_event_type = 'TERMCANCELLED' THEN
9592: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9593: ibe_util.debug('Selector - Inside Term Cancelled selection ');
9594: END IF;
9595: result := 'COMPLETE:TERMCANCELLED';
9596: END IF;

Line 9593: ibe_util.debug('Selector - Inside Term Cancelled selection ');

9589: END IF;
9590: result := 'COMPLETE:TERMREJECTED';
9591: ELSIF l_event_type = 'TERMCANCELLED' THEN
9592: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9593: ibe_util.debug('Selector - Inside Term Cancelled selection ');
9594: END IF;
9595: result := 'COMPLETE:TERMCANCELLED';
9596: END IF;
9597: END IF;

Line 9921: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

9917: l_notif_pref WF_USERS.NOTIFICATION_PREFERENCE%TYPE;
9918: l_email_addr VARCHAR2(2000);
9919:
9920: BEGIN
9921: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);

Line 9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');

9918: l_email_addr VARCHAR2(2000);
9919:
9920: BEGIN
9921: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9926: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);

Line 9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);

9919:
9920: BEGIN
9921: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9926: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9927: END IF;

Line 9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);

9920: BEGIN
9921: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9926: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9927: END IF;
9928:

Line 9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);

9921: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9926: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9927: END IF;
9928:
9929: IF (p_user_id > 0) THEN

Line 9926: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);

9922: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9925: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9926: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9927: END IF;
9928:
9929: IF (p_user_id > 0) THEN
9930: IF (p_user_source IS NOT NULL AND p_user_source = 'HZ_PARTY') THEN

Line 10017: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10013: x_adhoc_user := l_adhoc_user;
10014:
10015: END IF;
10016:
10017: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10018: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);
10019: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;
10020: END IF;
10021:

Line 10018: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);

10014:
10015: END IF;
10016:
10017: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10018: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);
10019: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;
10020: END IF;
10021:
10022: EXCEPTION

Line 10019: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;

10015: END IF;
10016:
10017: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10018: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);
10019: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;
10020: END IF;
10021:
10022: EXCEPTION
10023: WHEN OTHERS THEN

Line 10024: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10020: END IF;
10021:
10022: EXCEPTION
10023: WHEN OTHERS THEN
10024: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10025: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Exception occured');
10026: END IF;
10027: RAISE;
10028: END get_wf_user;

Line 10025: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Exception occured');

10021:
10022: EXCEPTION
10023: WHEN OTHERS THEN
10024: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10025: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Exception occured');
10026: END IF;
10027: RAISE;
10028: END get_wf_user;
10029:

Line 10047: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10043: l_notification_preference WF_USERS.NOTIFICATION_PREFERENCE%TYPE;
10044:
10045: BEGIN
10046:
10047: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10048: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Start');
10049: END IF;
10050: IF (p_wf_users_tbl IS NULL OR p_wf_users_tbl.COUNT <= 0) THEN
10051: return;

Line 10048: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Start');

10044:
10045: BEGIN
10046:
10047: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10048: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Start');
10049: END IF;
10050: IF (p_wf_users_tbl IS NULL OR p_wf_users_tbl.COUNT <= 0) THEN
10051: return;
10052: END IF;

Line 10070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10066:
10067: FOR i IN 1..p_wf_users_tbl.COUNT LOOP
10068: l_wf_role_usrs := l_wf_role_usrs ||','|| p_wf_users_tbl(i);
10069: END LOOP;
10070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10071: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:l_wf_role_usrs='||l_wf_role_usrs);
10072: END IF;
10073:
10074: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');

Line 10071: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:l_wf_role_usrs='||l_wf_role_usrs);

10067: FOR i IN 1..p_wf_users_tbl.COUNT LOOP
10068: l_wf_role_usrs := l_wf_role_usrs ||','|| p_wf_users_tbl(i);
10069: END LOOP;
10070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10071: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:l_wf_role_usrs='||l_wf_role_usrs);
10072: END IF;
10073:
10074: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
10075:

Line 10086: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10082: role_users => l_wf_role_usrs,
10083: expiration_date => sysdate + 1);
10084:
10085: x_wf_role := l_adhoc_role;
10086: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10087: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:End');
10088: END IF;
10089:
10090: EXCEPTION

Line 10087: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:End');

10083: expiration_date => sysdate + 1);
10084:
10085: x_wf_role := l_adhoc_role;
10086: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10087: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:End');
10088: END IF;
10089:
10090: EXCEPTION
10091: WHEN OTHERS THEN

Line 10092: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10088: END IF;
10089:
10090: EXCEPTION
10091: WHEN OTHERS THEN
10092: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10093: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Exception occured');
10094: END IF;
10095: RAISE;
10096: END get_wf_role;

Line 10093: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Exception occured');

10089:
10090: EXCEPTION
10091: WHEN OTHERS THEN
10092: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10093: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Exception occured');
10094: END IF;
10095: RAISE;
10096: END get_wf_role;
10097:

Line 10114: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10110: WHERE msite_id = c_msite_id;
10111: rec_msite_name c_msite_name%rowtype;
10112:
10113: BEGIN
10114: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10115: IBE_UTIL.DEBUG('get_speciality_store_name:Document_id: '||document_id);
10116: END IF;
10117: FOR rec_msite_name IN c_msite_name(document_id) LOOP
10118: document := rec_msite_name.msite_name;

Line 10115: IBE_UTIL.DEBUG('get_speciality_store_name:Document_id: '||document_id);

10111: rec_msite_name c_msite_name%rowtype;
10112:
10113: BEGIN
10114: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10115: IBE_UTIL.DEBUG('get_speciality_store_name:Document_id: '||document_id);
10116: END IF;
10117: FOR rec_msite_name IN c_msite_name(document_id) LOOP
10118: document := rec_msite_name.msite_name;
10119: EXIT when c_msite_name%NOTFOUND;

Line 10122: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10118: document := rec_msite_name.msite_name;
10119: EXIT when c_msite_name%NOTFOUND;
10120: END LOOP;
10121:
10122: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10123: IBE_UTIL.DEBUG('get_speciality_store_name:Document: '||document);
10124: END IF;
10125:
10126: IF(display_type = 'text/html') THEN

Line 10123: IBE_UTIL.DEBUG('get_speciality_store_name:Document: '||document);

10119: EXIT when c_msite_name%NOTFOUND;
10120: END LOOP;
10121:
10122: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10123: IBE_UTIL.DEBUG('get_speciality_store_name:Document: '||document);
10124: END IF;
10125:
10126: IF(display_type = 'text/html') THEN
10127: document_type := 'text/html';

Line 10148: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10144:
10145: rec_fnd_lkpup_value c_fnd_lkpup_value%rowtype;
10146: BEGIN
10147:
10148: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10149: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document_id: '||document_id);
10150: END IF;
10151: FOR rec_fnd_lkpup_value in c_fnd_lkpup_value(document_id) LOOP
10152: document := rec_fnd_lkpup_value.meaning;

Line 10149: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document_id: '||document_id);

10145: rec_fnd_lkpup_value c_fnd_lkpup_value%rowtype;
10146: BEGIN
10147:
10148: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10149: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document_id: '||document_id);
10150: END IF;
10151: FOR rec_fnd_lkpup_value in c_fnd_lkpup_value(document_id) LOOP
10152: document := rec_fnd_lkpup_value.meaning;
10153: EXIT when c_fnd_lkpup_value%NOTFOUND;

Line 10156: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10152: document := rec_fnd_lkpup_value.meaning;
10153: EXIT when c_fnd_lkpup_value%NOTFOUND;
10154: END LOOP;
10155:
10156: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10157: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document: '||document);
10158: END IF;
10159:
10160: IF(display_type = 'text/html') THEN

Line 10157: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document: '||document);

10153: EXIT when c_fnd_lkpup_value%NOTFOUND;
10154: END LOOP;
10155:
10156: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10157: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document: '||document);
10158: END IF;
10159:
10160: IF(display_type = 'text/html') THEN
10161: document_type := 'text/html';

Line 10175: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10171: document_type IN OUT NOCOPY VARCHAR2
10172: ) is
10173:
10174: BEGIN
10175: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10176: IBE_UTIL.DEBUG('get_FND_message:START: value of document id ='||document_id);
10177: END IF;
10178: FND_MESSAGE.set_name('IBE',document_id);
10179: document:=FND_MESSAGE.get();

Line 10176: IBE_UTIL.DEBUG('get_FND_message:START: value of document id ='||document_id);

10172: ) is
10173:
10174: BEGIN
10175: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10176: IBE_UTIL.DEBUG('get_FND_message:START: value of document id ='||document_id);
10177: END IF;
10178: FND_MESSAGE.set_name('IBE',document_id);
10179: document:=FND_MESSAGE.get();
10180:

Line 10221: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10217:
10218: rec_fnd_lkpup_value c_fnd_lookup_value%rowtype;
10219: BEGIN
10220:
10221: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10222: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document_id: '||document_id);
10223: END IF;
10224: FOR rec_fnd_lookup_value in c_fnd_lookup_value(document_id) LOOP
10225: document := rec_fnd_lookup_value.meaning;

Line 10222: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document_id: '||document_id);

10218: rec_fnd_lkpup_value c_fnd_lookup_value%rowtype;
10219: BEGIN
10220:
10221: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10222: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document_id: '||document_id);
10223: END IF;
10224: FOR rec_fnd_lookup_value in c_fnd_lookup_value(document_id) LOOP
10225: document := rec_fnd_lookup_value.meaning;
10226: EXIT when c_fnd_lookup_value%NOTFOUND;

Line 10229: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10225: document := rec_fnd_lookup_value.meaning;
10226: EXIT when c_fnd_lookup_value%NOTFOUND;
10227: END LOOP;
10228:
10229: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10230: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document: '||document);
10231: END IF;
10232:
10233: IF(display_type = 'text/html') THEN

Line 10230: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document: '||document);

10226: EXIT when c_fnd_lookup_value%NOTFOUND;
10227: END LOOP;
10228:
10229: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10230: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document: '||document);
10231: END IF;
10232:
10233: IF(display_type = 'text/html') THEN
10234: document_type := 'text/html';

Line 10285: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).NetAmount));

10281: if(view_line_type_flag <> fnd_api.g_true) then
10282: ldocument := ldocument || lpad(trim(Notif_Line_Tbl(counter).Shippable),9)||' ';
10283: end if;
10284: if(view_net_price_flag = 'Y') then
10285: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).NetAmount));
10286: ldocument := ldocument || lpad(trim(l_curr_sym)||trim(to_char(to_number(l_can_amt),l_amt_format)),16);
10287: end if;
10288: ldocument := ldocument ||NEWLINE;
10289: l_string_in := l_string_left;

Line 10328: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).TaxAmount));

10324: IF view_net_price_flag = 'Y' THEN
10325: fnd_message.set_name('IBE','IBE_PRMT_ORD_TAX');
10326: l_temp_str := null;
10327: l_temp_str := fnd_message.get;
10328: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).TaxAmount));
10329: ldocument := ldocument ||lpad(l_temp_str||': '||l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),72,' ')||NEWLINE;
10330: END IF;
10331: END IF;
10332:

Line 10336: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

10332:
10333: IF (FND_API.To_Boolean(Notif_Line_Tbl(counter).LastItem) and counter <> Notif_Line_Tbl.count) THEN
10334: ldocument := ldocument || '------------------------------------------------------------------------'||NEWLINE;
10335: END IF;
10336: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10337: IBE_UTIL.DEBUG('Going to print ldocument in buildDocument'||ldocument);
10338: END IF;
10339: end loop;
10340: return ldocument;

Line 10337: IBE_UTIL.DEBUG('Going to print ldocument in buildDocument'||ldocument);

10333: IF (FND_API.To_Boolean(Notif_Line_Tbl(counter).LastItem) and counter <> Notif_Line_Tbl.count) THEN
10334: ldocument := ldocument || '------------------------------------------------------------------------'||NEWLINE;
10335: END IF;
10336: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10337: IBE_UTIL.DEBUG('Going to print ldocument in buildDocument'||ldocument);
10338: END IF;
10339: end loop;
10340: return ldocument;
10341: END buildDocument;