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 346: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

342: BEGIN
343: FOR rec_get_pref in c_get_pref(p_user_name) LOOP
344: x_mail_pref := rec_get_pref.notification_preference;
345:
346: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
347: IBE_UTIL.DEBUG('get_mail_format_pref: Mail preference: '|| x_mail_pref);
348: END IF;
349: EXIT when c_get_pref%NOTFOUND;
350: END LOOP;

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

343: FOR rec_get_pref in c_get_pref(p_user_name) LOOP
344: x_mail_pref := rec_get_pref.notification_preference;
345:
346: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
347: IBE_UTIL.DEBUG('get_mail_format_pref: Mail preference: '|| x_mail_pref);
348: END IF;
349: EXIT when c_get_pref%NOTFOUND;
350: END LOOP;
351: END;*/

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

383: and d.party_id=c_party_id;
384:
385: BEGIN
386:
387: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
388: IBE_UTIL.DEBUG('start: getUserType' ||':partyid='||pPartyId);
389: END IF;
390:
391: open c_get_user_type(pPartyId);

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

384:
385: BEGIN
386:
387: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
388: IBE_UTIL.DEBUG('start: getUserType' ||':partyid='||pPartyId);
389: END IF;
390:
391: open c_get_user_type(pPartyId);
392:

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

391: open c_get_user_type(pPartyId);
392:
393: fetch c_get_user_type into l_UserType;
394:
395: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
396: IBE_UTIL.DEBUG('getUserType:After fetch' ||'l_UserType='||l_UserType);
397: END IF;
398:
399: IF (c_get_user_type%NOTFOUND) THEN

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

392:
393: fetch c_get_user_type into l_UserType;
394:
395: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
396: IBE_UTIL.DEBUG('getUserType:After fetch' ||'l_UserType='||l_UserType);
397: END IF;
398:
399: IF (c_get_user_type%NOTFOUND) THEN
400: -- user not created thru the new JTA UM functionality

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

397: END IF;
398:
399: IF (c_get_user_type%NOTFOUND) THEN
400: -- user not created thru the new JTA UM functionality
401: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
402: IBE_UTIL.DEBUG('getUserType:' ||'l_UserType not found in jta tables');
403: END IF;
404: open c_get_party_type_user_name(pPartyId);
405: fetch c_get_party_type_user_name into l_PartyType,l_user_name;

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

398:
399: IF (c_get_user_type%NOTFOUND) THEN
400: -- user not created thru the new JTA UM functionality
401: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
402: IBE_UTIL.DEBUG('getUserType:' ||'l_UserType not found in jta tables');
403: END IF;
404: open c_get_party_type_user_name(pPartyId);
405: fetch c_get_party_type_user_name into l_PartyType,l_user_name;
406: CLOSE c_get_party_type_user_name;

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

404: open c_get_party_type_user_name(pPartyId);
405: fetch c_get_party_type_user_name into l_PartyType,l_user_name;
406: CLOSE c_get_party_type_user_name;
407:
408: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
409: IBE_UTIL.DEBUG('getUserType:' ||'l_PartyType='||l_PartyType);
410: END IF;
411:
412: if (l_PartyType='PERSON') then

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

405: fetch c_get_party_type_user_name into l_PartyType,l_user_name;
406: CLOSE c_get_party_type_user_name;
407:
408: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
409: IBE_UTIL.DEBUG('getUserType:' ||'l_PartyType='||l_PartyType);
410: END IF;
411:
412: if (l_PartyType='PERSON') then
413: l_userType:='IBE_INDIVIDUAL';

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

411:
412: if (l_PartyType='PERSON') then
413: l_userType:='IBE_INDIVIDUAL';
414: else
415: l_is_int_primary_user := IBE_UTIL.check_jtf_permission('IBE_INT_PRIMARY_USER',l_user_name);
416: -- l_is_pv_partner := IBE_UTIL.check_jtf_permission('PV_PARTNER',l_user_name);
417:
418: -----------------------------------------------------------
419: -- checking the PV_PARTNER permission thru a sql package

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

412: if (l_PartyType='PERSON') then
413: l_userType:='IBE_INDIVIDUAL';
414: else
415: l_is_int_primary_user := IBE_UTIL.check_jtf_permission('IBE_INT_PRIMARY_USER',l_user_name);
416: -- l_is_pv_partner := IBE_UTIL.check_jtf_permission('PV_PARTNER',l_user_name);
417:
418: -----------------------------------------------------------
419: -- checking the PV_PARTNER permission thru a sql package
420: BEGIN

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

418: -----------------------------------------------------------
419: -- checking the PV_PARTNER permission thru a sql package
420: BEGIN
421:
422: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
423: IBE_UTIL.DEBUG('getUserType:Before calling PV_USER_MGMT_PVTS.is_partner_user');
424: END IF;
425:
426: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';

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

419: -- checking the PV_PARTNER permission thru a sql package
420: BEGIN
421:
422: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
423: IBE_UTIL.DEBUG('getUserType:Before calling PV_USER_MGMT_PVTS.is_partner_user');
424: END IF;
425:
426: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';
427: EXECUTE IMMEDIATE plsql_block USING OUT pv_flag,pPartyId;

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

425:
426: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';
427: EXECUTE IMMEDIATE plsql_block USING OUT pv_flag,pPartyId;
428:
429: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
430: IBE_UTIL.DEBUG('getUserType:After calling PV_USER_MGMT_PVTS: value of permission='||pv_flag);
431: END If;
432: EXCEPTION
433: WHEN OTHERS THEN

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

426: plsql_block := 'BEGIN :pvFlag:=PV_USER_MGMT_PVT.is_partner_user(:partyId);END;';
427: EXECUTE IMMEDIATE plsql_block USING OUT pv_flag,pPartyId;
428:
429: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
430: IBE_UTIL.DEBUG('getUserType:After calling PV_USER_MGMT_PVTS: value of permission='||pv_flag);
431: END If;
432: EXCEPTION
433: WHEN OTHERS THEN
434: --set partner permission to 'N'

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

432: EXCEPTION
433: WHEN OTHERS THEN
434: --set partner permission to 'N'
435: pv_flag := 'N';
436: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
437: 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');
438: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
439: 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.');
440: END IF;

Line 437: 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');

433: WHEN OTHERS THEN
434: --set partner permission to 'N'
435: pv_flag := 'N';
436: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
437: 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');
438: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
439: 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.');
440: END IF;
441: END;

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

434: --set partner permission to 'N'
435: pv_flag := 'N';
436: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
437: 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');
438: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
439: 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.');
440: END IF;
441: END;
442: if pv_flag='Y' then

Line 439: 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.');

435: pv_flag := 'N';
436: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
437: 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');
438: IBE_UTIL.DEBUG('getUserType:sqlcode='||sqlcode||' :sqlerr='|| sqlerrm);
439: 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.');
440: END IF;
441: END;
442: if pv_flag='Y' then
443: l_is_pv_partner:=true;

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

461: END IF;
462: END IF;
463: CLOSE c_get_user_type;
464: pUserType:=l_userType;
465: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
466: IBE_UTIL.DEBUG('getUserType:' ||'pUserType='||pUserType);
467: END IF;
468:
469: END getUserType;

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

462: END IF;
463: CLOSE c_get_user_type;
464: pUserType:=l_userType;
465: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
466: IBE_UTIL.DEBUG('getUserType:' ||'pUserType='||pUserType);
467: END IF;
468:
469: END getUserType;
470:

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

478: rec_get_cart_type c_get_cart_type%rowtype;
479: l_is_it_quote VARCHAR2(1) := fnd_api.g_false;
480: BEGIN
481:
482: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
483: IBE_UTIL.DEBUG('Identify_cart_quote: Start');
484: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);
485: END IF;
486: For rec_get_cart_type in c_get_cart_type(p_quote_header_id) LOOP

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

479: l_is_it_quote VARCHAR2(1) := fnd_api.g_false;
480: BEGIN
481:
482: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
483: IBE_UTIL.DEBUG('Identify_cart_quote: Start');
484: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);
485: END IF;
486: For rec_get_cart_type in c_get_cart_type(p_quote_header_id) LOOP
487: IF (rec_get_cart_type.resource_id is not null) THEN

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

480: BEGIN
481:
482: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
483: IBE_UTIL.DEBUG('Identify_cart_quote: Start');
484: IBE_UTIL.DEBUG('Identify_cart_quote:inout quote_header_id: '||p_quote_header_id);
485: END IF;
486: For rec_get_cart_type in c_get_cart_type(p_quote_header_id) LOOP
487: IF (rec_get_cart_type.resource_id is not null) THEN
488: l_is_it_quote := FND_API.G_TRUE;

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

489: END IF;
490: EXIT when c_get_cart_type%notfound;
491: END LOOP;
492: x_is_it_quote := l_is_it_quote;
493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
494: IBE_UTIL.DEBUG('Identify_cart_quote:X_is_it_quote: '||x_is_it_quote);
495: END IF;
496:
497: END;

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

490: EXIT when c_get_cart_type%notfound;
491: END LOOP;
492: x_is_it_quote := l_is_it_quote;
493: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
494: IBE_UTIL.DEBUG('Identify_cart_quote:X_is_it_quote: '||x_is_it_quote);
495: END IF;
496:
497: END;
498:

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

509: l_adhoc_role VARCHAR2(2000);
510: l_adhoc_role_display VARCHAR2(2000);
511:
512: BEGIN
513: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
514: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
515: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
516: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
517: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);

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

510: l_adhoc_role_display VARCHAR2(2000);
511:
512: BEGIN
513: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
514: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
515: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
516: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
517: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
518: END IF;

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

511:
512: BEGIN
513: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
514: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
515: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
516: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
517: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
518: END IF;
519:

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

512: BEGIN
513: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
514: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
515: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
516: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
517: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
518: END IF;
519:
520: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id

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

513: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
514: IBE_UTIL.DEBUG('Create_adhoc_entity:Start');
515: IBE_UTIL.DEBUG('Create_adhoc_entity:Input recipient_id: '||p_quote_recipient_id);
516: IBE_UTIL.DEBUG('Create_adhoc_entity:Input QUOTE_HEADER_ID: '||p_quote_header_id);
517: IBE_UTIL.DEBUG('Create_adhoc_entity:Input email address: '||p_email_address);
518: END IF;
519:
520: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id
521: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');

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

518: END IF;
519:
520: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id
521: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
522: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
523: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_user: '||l_adhoc_user);
524: END IF;
525:
526: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id

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

519:
520: l_adhoc_user := 'SCU'||p_QUOTE_recipient_id
521: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
522: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
523: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_user: '||l_adhoc_user);
524: END IF;
525:
526: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id
527: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');

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

525:
526: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id
527: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
528:
529: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
530: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating adhoc user');
531: END IF;
532: wf_directory.CreateAdHocUser(
533: name => l_adhoc_user ,

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

526: l_adhoc_user_display := 'SCU'||p_QUOTE_recipient_id
527: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
528:
529: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
530: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating adhoc user');
531: END IF;
532: wf_directory.CreateAdHocUser(
533: name => l_adhoc_user ,
534: display_name => l_adhoc_user_display ,

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

540: l_role_users := l_adhoc_user;
541:
542: l_adhoc_role := 'SCR'||p_QUOTE_recipient_id
543: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
544: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
545: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_role: '||l_adhoc_role);
546: END IF;
547:
548: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id

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

541:
542: l_adhoc_role := 'SCR'||p_QUOTE_recipient_id
543: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
544: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
545: IBE_UTIL.DEBUG('Create_adhoc_entity:l_adhoc_role: '||l_adhoc_role);
546: END IF;
547:
548: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id
549: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');

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

546: END IF;
547:
548: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id
549: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
550: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
551: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating ad-hoc role');
552: END IF;
553:
554: wf_directory.CreateAdHocRole

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

547:
548: l_adhoc_role_display := 'SCR'||p_QUOTE_recipient_id
549: ||'Q'||p_quote_header_id||to_char(sysdate,'MMDDYYHH24MISS');
550: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
551: IBE_UTIL.DEBUG('Create_adhoc_entity:Creating ad-hoc role');
552: END IF;
553:
554: wf_directory.CreateAdHocRole
555: (role_name => l_adhoc_role,

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

556: role_display_name => l_adhoc_role_display,
557: notification_preference => p_notification_preference,
558: role_users => l_role_users,
559: expiration_date => sysdate + 1);
560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
561: IBE_UTIL.DEBUG('Create_adhoc_entity:x_adhoc_role: '||x_adhoc_role);
562: END IF;
563: x_adhoc_role := l_adhoc_role;
564: END;

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

557: notification_preference => p_notification_preference,
558: role_users => l_role_users,
559: expiration_date => sysdate + 1);
560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
561: IBE_UTIL.DEBUG('Create_adhoc_entity:x_adhoc_role: '||x_adhoc_role);
562: END IF;
563: x_adhoc_role := l_adhoc_role;
564: END;
565:

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

586: L_temp_update_str Varchar2(2000);
587:
588:
589: BEGIN
590: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
591: IBE_UTIL.DEBUG('Set_item_attributes: Start');
592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);

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

587:
588:
589: BEGIN
590: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
591: IBE_UTIL.DEBUG('Set_item_attributes: Start');
592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);

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

588:
589: BEGIN
590: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
591: IBE_UTIL.DEBUG('Set_item_attributes: Start');
592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);

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

589: BEGIN
590: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
591: IBE_UTIL.DEBUG('Set_item_attributes: Start');
592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);

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

590: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
591: IBE_UTIL.DEBUG('Set_item_attributes: Start');
592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);

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

591: IBE_UTIL.DEBUG('Set_item_attributes: Start');
592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);

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

592: IBE_UTIL.DEBUG('Set_item_attributes:Input messsage name: '||p_message_name);
593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);

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

593: IBE_UTIL.DEBUG('Set_item_attributes:retrieval_number: '||p_recipient_number);
594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);

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

594: IBE_UTIL.DEBUG('Set_item_attributes:old_access_level: '||p_old_access_level);
595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
602: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);

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

595: IBE_UTIL.DEBUG('Set_item_attributes:URL: '||p_url);
596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
602: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
603: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');

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

596: IBE_UTIL.DEBUG('Set_item_attributes:context message: '||p_context_msg);
597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
602: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
603: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
604: END IF;

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

597: IBE_UTIL.DEBUG('Set_item_attributes:msiteid: '||p_minisite_id);
598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
602: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
603: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
604: END IF;
605:

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

598: IBE_UTIL.DEBUG('Set_item_attributes:cartname: '||p_cart_name);
599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
602: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
603: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
604: END IF;
605:
606: wf_engine.CreateProcess(

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

599: IBE_UTIL.DEBUG('Set_item_attributes:first_name: '||p_first_name);
600: IBE_UTIL.DEBUG('Set_item_attributes:last_name: '||p_last_name);
601: IBE_UTIL.DEBUG('Set_item_attributes:p_item_key: '||p_item_key);
602: IBE_UTIL.DEBUG('Set_item_attributes:p_notes: '||p_notes);
603: IBE_UTIL.DEBUG('Set_item_attributes:Wf_engine.create_process: START');
604: END IF;
605:
606: wf_engine.CreateProcess(
607: itemtype => g_ItemType,

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

607: itemtype => g_ItemType,
608: itemkey => p_item_key,
609: process => g_processName);
610:
611: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
612: IBE_UTIL.DEBUG('Set_item_attributes:Done creating process');
613: END IF;
614:
615: wf_engine.SetItemUserKey(

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

608: itemkey => p_item_key,
609: process => g_processName);
610:
611: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
612: IBE_UTIL.DEBUG('Set_item_attributes:Done creating process');
613: END IF;
614:
615: wf_engine.SetItemUserKey(
616: itemtype => g_ItemType,

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

615: wf_engine.SetItemUserKey(
616: itemtype => g_ItemType,
617: itemkey => p_item_key,
618: userkey => p_item_key);
619: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
620: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemUserKey');
621: END IF;
622:
623: wf_engine.SetItemAttrText(

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

616: itemtype => g_ItemType,
617: itemkey => p_item_key,
618: userkey => p_item_key);
619: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
620: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemUserKey');
621: END IF;
622:
623: wf_engine.SetItemAttrText(
624: itemtype => g_ItemType,

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

624: itemtype => g_ItemType,
625: itemkey => p_item_key,
626: aname => 'MESSAGE',
627: avalue => p_Message_Name);
628: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
629: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MESSAGE');
630: END IF;
631:
632: wf_engine.SetItemAttrText(

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

625: itemkey => p_item_key,
626: aname => 'MESSAGE',
627: avalue => p_Message_Name);
628: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
629: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for MESSAGE');
630: END IF;
631:
632: wf_engine.SetItemAttrText(
633: itemtype => g_ItemType,

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

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

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

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

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

642: itemtype => g_ItemType,
643: itemkey => p_item_key,
644: aname => 'CARTNAME',
645: avalue => p_cart_name);
646: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
647: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CARTNAME');
648: END IF;
649:
650: IF((p_first_name is not null) and

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

643: itemkey => p_item_key,
644: aname => 'CARTNAME',
645: avalue => p_cart_name);
646: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
647: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CARTNAME');
648: END IF;
649:
650: IF((p_first_name is not null) and
651: (p_first_name <> FND_API.G_MISS_CHAR)) THEN

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

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

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

655: aname => 'FIRSTNAME',
656: avalue => p_first_name);
657: END IF;
658: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
659: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for FIRSTNAME');
660: END IF;
661:
662: IF((p_last_name is not null) and
663: (p_first_name <> FND_API.G_MISS_CHAR)) THEN

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

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

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

668: avalue => p_last_name);
669: END IF;
670:
671: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
672: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for LASTNAME');
673: END IF;
674: IF((p_notes is not null) and
675: (p_notes <> FND_API.G_MISS_CHAR)) THEN
676: wf_engine.SetItemAttrText(

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

679: aname => 'SHARECOMMENTS',
680: avalue => p_notes);
681: END IF;
682:
683: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
684: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for COMMENTS');
685: END IF;
686:
687: IF((p_notif_context = 'SHARECARTNOTIF') OR

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

680: avalue => p_notes);
681: END IF;
682:
683: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
684: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for COMMENTS');
685: END IF;
686:
687: IF((p_notif_context = 'SHARECARTNOTIF') OR
688: (p_notif_context = 'SHARECARTNOTIF_B2B')OR

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

696: itemkey => p_item_key,
697: aname => 'ACCESSCODE',
698: avalue => p_access_level);
699: END IF;
700: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
701: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for ACCESSLEVEL');
702: END IF;
703:
704:

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

697: aname => 'ACCESSCODE',
698: avalue => p_access_level);
699: END IF;
700: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
701: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for ACCESSLEVEL');
702: END IF;
703:
704:
705: IF((p_notif_context <> 'STOPWORKING' ) AND

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

710: itemkey => p_item_key,
711: aname => 'ISTOREURL',
712: avalue => p_url);
713: END IF;
714: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
715: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for URL');
716: END IF;
717:
718:

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

711: aname => 'ISTOREURL',
712: avalue => p_url);
713: END IF;
714: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
715: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for URL');
716: END IF;
717:
718:
719: IF ((p_notif_context = 'STOPWORKING' ) OR

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

723: itemkey => p_item_key,
724: aname => 'CONTEXT_CODE',
725: avalue => p_context_msg);
726: END IF;
727: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
728: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CONTEXT_MESSAGE');
729: END IF;
730:
731: IF ((p_notif_context = 'CHANGEACCESSLEVEL') OR

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

724: aname => 'CONTEXT_CODE',
725: avalue => p_context_msg);
726: END IF;
727: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
728: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for CONTEXT_MESSAGE');
729: END IF;
730:
731: IF ((p_notif_context = 'CHANGEACCESSLEVEL') OR
732: (p_notif_context = 'CHANGEACCESSLEVEL_QUOTE')) THEN

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

735: itemkey => p_item_key,
736: aname => 'ACCESSCODE_OLD',
737: avalue => p_old_access_level);
738: END IF;
739: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
740: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for OLDACCESSLEVEL');
741: END IF;
742:
743: IF((p_notif_context = 'SHARECARTNOTIF') OR

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

736: aname => 'ACCESSCODE_OLD',
737: avalue => p_old_access_level);
738: END IF;
739: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
740: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for OLDACCESSLEVEL');
741: END IF;
742:
743: IF((p_notif_context = 'SHARECARTNOTIF') OR
744: (p_notif_context = 'SHARECARTNOTIF_B2B')OR

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

751: itemkey => p_item_key,
752: aname => 'UPDATEMSG_CODE',
753: avalue => l_temp_update_str);
754: END IF;
755: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
756: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for UPDATEMSG');
757: END IF;
758:
759: IF ((p_notif_context = 'SHARECARTNOTIF') OR

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

752: aname => 'UPDATEMSG_CODE',
753: avalue => l_temp_update_str);
754: END IF;
755: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
756: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for UPDATEMSG');
757: END IF;
758:
759: IF ((p_notif_context = 'SHARECARTNOTIF') OR
760: (p_notif_context = 'SHAREQUOTENOTIF'))THEN

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

768: itemtype => g_ItemType,
769: itemkey => p_item_key,
770: aname => 'RETRIEVEMSG_CODE',
771: avalue => l_temp_retrieve_str);
772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
773: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for RETRIEVEMSG');
774: END IF;
775:
776: wf_engine.SetItemAttrText(

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

769: itemkey => p_item_key,
770: aname => 'RETRIEVEMSG_CODE',
771: avalue => l_temp_retrieve_str);
772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
773: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for RETRIEVEMSG');
774: END IF;
775:
776: wf_engine.SetItemAttrText(
777: itemtype => g_ItemType,

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

777: itemtype => g_ItemType,
778: itemkey => p_item_key,
779: aname => 'SHNUM',
780: avalue => p_recipient_number);
781: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
782: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SHNUM');
783: END IF;
784:
785: END IF;

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

778: itemkey => p_item_key,
779: aname => 'SHNUM',
780: avalue => p_recipient_number);
781: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
782: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SHNUM');
783: END IF;
784:
785: END IF;
786:

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

789: itemtype => g_ItemType,
790: itemkey => p_item_key,
791: aname => 'SENDTO',
792: avalue => p_adhoc_role);
793: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
794: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SENDTO');
795: END IF;
796:
797: wf_engine.SetItemOwner(

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

790: itemkey => p_item_key,
791: aname => 'SENDTO',
792: avalue => p_adhoc_role);
793: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
794: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemAttribute for SENDTO');
795: END IF;
796:
797: wf_engine.SetItemOwner(
798: itemtype => g_ItemType,

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

797: wf_engine.SetItemOwner(
798: itemtype => g_ItemType,
799: itemkey => p_item_key,
800: owner => l_item_owner);
801: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
802: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemOwner');
803: END IF;
804:
805: wf_engine.StartProcess(

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

798: itemtype => g_ItemType,
799: itemkey => p_item_key,
800: owner => l_item_owner);
801: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
802: IBE_UTIL.DEBUG('Set_item_attributes:Done setItemOwner');
803: END IF;
804:
805: wf_engine.StartProcess(
806: itemtype => g_ItemType,

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

804:
805: wf_engine.StartProcess(
806: itemtype => g_ItemType,
807: itemkey => p_item_key);
808: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
809: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');
810: END IF;
811: EXCEPTION
812: When OTHERS THEN

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

805: wf_engine.StartProcess(
806: itemtype => g_ItemType,
807: itemkey => p_item_key);
808: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
809: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');
810: END IF;
811: EXCEPTION
812: When OTHERS THEN
813: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

809: IBE_UTIL.DEBUG('Set_item_attributes:Done StartProcess');
810: END IF;
811: EXCEPTION
812: When OTHERS THEN
813: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
814: IBE_UTIL.DEBUG('Set_item_attributes:Exception block: '||SQLCODE||': '||SQLERRM);
815: END IF;
816: RAISE;
817: END ;

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

810: END IF;
811: EXCEPTION
812: When OTHERS THEN
813: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
814: IBE_UTIL.DEBUG('Set_item_attributes:Exception block: '||SQLCODE||': '||SQLERRM);
815: END IF;
816: RAISE;
817: END ;
818:

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

849: AND l.object_type = 'ORGANIZATION';
850: rec_party_info b2b_contact_info%rowtype;
851:
852: BEGIN
853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
854:
855: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
856: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
857: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);

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

851:
852: BEGIN
853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
854:
855: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
856: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
857: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);
858: END IF;
859:

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

852: BEGIN
853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
854:
855: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
856: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
857: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);
858: END IF;
859:
860:

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

853: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
854:
855: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
856: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
857: ibe_util.debug('get_name_details:input sharee number: '||p_sharee_number);
858: END IF;
859:
860:
861: IF ((p_user_type = FND_API.G_MISS_CHAR)

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

882: x_contact_last_name := rec_get_recepient_name.person_last_name;
883: END LOOP;
884: END IF;
885: END IF;
886: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
887:
888: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
889: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
890: END IF;

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

884: END IF;
885: END IF;
886: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
887:
888: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
889: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
890: END IF;
891:
892: END Get_Name_details;

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

885: END IF;
886: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
887:
888: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
889: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
890: END IF;
891:
892: END Get_Name_details;
893: */

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

936:
937: rec_party_info c_b2b_contact_info%rowtype;
938:
939: BEGIN
940: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
941: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
942: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
943: END IF;
944: open c_get_party_type_and_name(p_party_id);

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

937: rec_party_info c_b2b_contact_info%rowtype;
938:
939: BEGIN
940: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
941: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
942: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
943: END IF;
944: open c_get_party_type_and_name(p_party_id);
945: Fetch c_get_party_type_and_name into l_partyType, x_contact_first_name ,x_contact_last_name,x_party_id ;

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

938:
939: BEGIN
940: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
941: ibe_util.debug('get_name_details:input user_type: '||p_user_type);
942: ibe_util.debug('get_name_details:input party_id: '||p_party_id);
943: END IF;
944: open c_get_party_type_and_name(p_party_id);
945: Fetch c_get_party_type_and_name into l_partyType, x_contact_first_name ,x_contact_last_name,x_party_id ;
946:

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

953: ELSE
954: x_party_id := p_party_id;
955:
956: END IF;
957: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
958:
959: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
960: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
961: END IF;

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

955:
956: END IF;
957: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
958:
959: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
960: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
961: END IF;
962:
963: END Get_Name_details;

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

956: END IF;
957: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
958:
959: ibe_util.debug('get_name_details:output first_name: '||x_contact_first_name);
960: ibe_util.debug('get_name_details:input last_name: '||x_contact_first_name);
961: END IF;
962:
963: END Get_Name_details;
964:

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

1019:
1020: x_return_status := FND_API.g_ret_sts_success;
1021:
1022:
1023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1024: ibe_util.debug('Check if this notification is enabled.');
1025: END IF;
1026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1020: x_return_status := FND_API.g_ret_sts_success;
1021:
1022:
1023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1024: ibe_util.debug('Check if this notification is enabled.');
1025: END IF;
1026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

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

1023: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1024: ibe_util.debug('Check if this notification is enabled.');
1025: END IF;
1026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1029: END IF;
1030:
1031: If l_notifEnabled = 'Y' Then

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

1024: ibe_util.debug('Check if this notification is enabled.');
1025: END IF;
1026: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1028: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1029: END IF;
1030:
1031: If l_notifEnabled = 'Y' Then
1032:

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

1039:
1040: l_orgId := MO_GLOBAL.get_current_org_id();
1041: getUserType(l_partyId,l_UserType);
1042:
1043: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1044: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId) ||' User Type: '||l_userType);
1045: END IF;
1046:
1047: FOR c_quote_rec In c_quote_header(p_quote_id) LOOP

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

1040: l_orgId := MO_GLOBAL.get_current_org_id();
1041: getUserType(l_partyId,l_UserType);
1042:
1043: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1044: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId) ||' User Type: '||l_userType);
1045: END IF;
1046:
1047: FOR c_quote_rec In c_quote_header(p_quote_id) LOOP
1048: l_resource_id := c_quote_rec.resource_id;

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

1066: x_msg_data => x_msg_data,
1067: x_msg_count => x_msg_count);
1068:
1069:
1070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1071: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1072: END IF;
1073:
1074:

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

1067: x_msg_count => x_msg_count);
1068:
1069:
1070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1071: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1072: END IF;
1073:
1074:
1075: If x_msg_count > 0 Then

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

1079: If l_msgEnabled = 'Y' Then
1080:
1081: l_item_key := l_notifName||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_send_name;
1082:
1083: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1084: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1085: END IF;
1086:
1087: wf_engine.CreateProcess(

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

1080:
1081: l_item_key := l_notifName||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_send_name;
1082:
1083: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1084: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1085: END IF;
1086:
1087: wf_engine.CreateProcess(
1088: itemtype => g_ItemType,

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

1156: wf_engine.StartProcess(
1157: itemtype => g_ItemType,
1158: itemkey => l_item_key);
1159:
1160: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1161: ibe_util.debug('Process Started');
1162: END IF;
1163:
1164: End If;

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

1157: itemtype => g_ItemType,
1158: itemkey => l_item_key);
1159:
1160: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1161: ibe_util.debug('Process Started');
1162: END IF;
1163:
1164: End If;
1165: End If;

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

1188:
1189: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
1190: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
1191: BEGIN
1192: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1193: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1194: END IF;
1195: FND_MESSAGE.set_name('IBE',document_id);
1196: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1189: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
1190: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
1191: BEGIN
1192: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1193: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1194: END IF;
1195: FND_MESSAGE.set_name('IBE',document_id);
1196: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1197: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');

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

1192: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1193: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1194: END IF;
1195: FND_MESSAGE.set_name('IBE',document_id);
1196: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1197: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1198: END IF;
1199: document:=FND_MESSAGE.get();
1200: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1193: IBE_UTIL.DEBUG(L_api_name||':START: value of document id ='||document_id);
1194: END IF;
1195: FND_MESSAGE.set_name('IBE',document_id);
1196: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1197: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1198: END IF;
1199: document:=FND_MESSAGE.get();
1200: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1201: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);

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

1196: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1197: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1198: END IF;
1199: document:=FND_MESSAGE.get();
1200: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1201: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);
1202: END IF;
1203: document_type := 'text/plain';
1204: EXCEPTION

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

1197: IBE_UTIL.DEBUG(L_api_name||':After call to FND_MESSAGE.set_name()');
1198: END IF;
1199: document:=FND_MESSAGE.get();
1200: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1201: IBE_UTIL.DEBUG(L_api_name||'After Fnd_message.get(): document='||document);
1202: END IF;
1203: document_type := 'text/plain';
1204: EXCEPTION
1205: WHEN OTHERS THEN

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

1202: END IF;
1203: document_type := 'text/plain';
1204: EXCEPTION
1205: WHEN OTHERS THEN
1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1207: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_Approval_Msg');
1208: END IF;
1209:
1210: END;

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

1203: document_type := 'text/plain';
1204: EXCEPTION
1205: WHEN OTHERS THEN
1206: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1207: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_Approval_Msg');
1208: END IF;
1209:
1210: END;
1211: ----------------------added by abhandar :end -----------------------

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

1248: l_credential_line := ' ';
1249:
1250: END IF;
1251:
1252: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1253: IBE_UTIL.DEBUG('ibe_workflow_pvt.Generater_Credential l_credential_line =' || l_credential_line);
1254: END IF;
1255: document := l_credential_line;
1256:

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

1249:
1250: END IF;
1251:
1252: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1253: IBE_UTIL.DEBUG('ibe_workflow_pvt.Generater_Credential l_credential_line =' || l_credential_line);
1254: END IF;
1255: document := l_credential_line;
1256:
1257: document_type := 'text/plain';

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

1256:
1257: document_type := 'text/plain';
1258: EXCEPTION
1259: WHEN OTHERS THEN
1260: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1261: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_User_Credential_Msg');
1262: END IF;
1263: END Generate_Credential_Msg;
1264:

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

1257: document_type := 'text/plain';
1258: EXCEPTION
1259: WHEN OTHERS THEN
1260: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1261: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_User_Credential_Msg');
1262: END IF;
1263: END Generate_Credential_Msg;
1264:
1265:

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

1364:
1365: -- end-ab
1366: BEGIN
1367:
1368: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1369: ibe_util.debug('NotifyRegistration :start notification for p_login_name='||p_login_name);
1370: END If;
1371: -- get the URL from the profile
1372: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');

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

1365: -- end-ab
1366: BEGIN
1367:
1368: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1369: ibe_util.debug('NotifyRegistration :start notification for p_login_name='||p_login_name);
1370: END If;
1371: -- get the URL from the profile
1372: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');
1373:

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

1370: END If;
1371: -- get the URL from the profile
1372: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');
1373:
1374: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1375: ibe_util.debug('NotifyRegistration:l_url='||l_url);
1376: END If;
1377: -- get the merchant name from the profile
1378: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');

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

1371: -- get the URL from the profile
1372: l_url:=FND_PROFILE.value ('JTA_UM_APPL_URL');
1373:
1374: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1375: ibe_util.debug('NotifyRegistration:l_url='||l_url);
1376: END If;
1377: -- get the merchant name from the profile
1378: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');
1379: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1375: ibe_util.debug('NotifyRegistration:l_url='||l_url);
1376: END If;
1377: -- get the merchant name from the profile
1378: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');
1379: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1380: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1381: END If;
1382: -- end-ab
1383: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1376: END If;
1377: -- get the merchant name from the profile
1378: l_merchant_name:= FND_PROFILE.value('JTF_UM_MERCHANT_NAME');
1379: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1380: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1381: END If;
1382: -- end-ab
1383: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1384: ibe_util.debug('Check if this notification is enabled.');

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

1379: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1380: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1381: END If;
1382: -- end-ab
1383: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1384: ibe_util.debug('Check if this notification is enabled.');
1385: END IF;
1386: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1387:

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

1380: ibe_util.debug('NotifyRegistration:l_merchant_name='||l_merchant_name);
1381: END If;
1382: -- end-ab
1383: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1384: ibe_util.debug('Check if this notification is enabled.');
1385: END IF;
1386: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1387:
1388: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1384: ibe_util.debug('Check if this notification is enabled.');
1385: END IF;
1386: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1387:
1388: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1389: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1390: END IF;
1391:
1392: If l_notifEnabled = 'Y' Then

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

1385: END IF;
1386: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1387:
1388: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1389: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1390: END IF;
1391:
1392: If l_notifEnabled = 'Y' Then
1393: l_adhoc_user := upper(p_login_name);

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

1398: l_orgId := MO_GLOBAL.get_current_org_id();
1399:
1400: OPEN C_get_org_num(l_partyId);
1401: FETCH C_get_org_num into l_partyNum;
1402: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1403: ibe_util.debug('NotifyRegistration '||':l_partyId='||l_partyId ||':p_UserType='||p_UserType||'l_orgId='||l_orgId||':l_partyNum='||l_partyNum);
1404: END IF;
1405: CLOSE C_get_org_num;
1406:

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

1399:
1400: OPEN C_get_org_num(l_partyId);
1401: FETCH C_get_org_num into l_partyNum;
1402: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1403: ibe_util.debug('NotifyRegistration '||':l_partyId='||l_partyId ||':p_UserType='||p_UserType||'l_orgId='||l_orgId||':l_partyNum='||l_partyNum);
1404: END IF;
1405: CLOSE C_get_org_num;
1406:
1407: -- getUserType(l_partyId,l_UserType);

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

1406:
1407: -- getUserType(l_partyId,l_UserType);
1408: l_UserType:=p_usertype;
1409:
1410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1411: ibe_util.debug('NotifyRegistration:Before Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
1412: ||' User Type: '||l_userType);
1413:
1414: END IF;

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

1407: -- getUserType(l_partyId,l_UserType);
1408: l_UserType:=p_usertype;
1409:
1410: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1411: ibe_util.debug('NotifyRegistration:Before Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
1412: ||' User Type: '||l_userType);
1413:
1414: END IF;
1415: --ab-start

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

1416: -- get the approval id associated with the user type
1417:
1418: OPEN C_get_approval_id(l_UserType);
1419: FETCH C_get_approval_id into l_approval_id;
1420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1421: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);
1422: END IF;
1423: IF C_get_approval_id%FOUND AND l_approval_id >0 THEN
1424: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');

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

1417:
1418: OPEN C_get_approval_id(l_UserType);
1419: FETCH C_get_approval_id into l_approval_id;
1420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1421: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);
1422: END IF;
1423: IF C_get_approval_id%FOUND AND l_approval_id >0 THEN
1424: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');
1425: ------ approval associated with the user type -----------

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

1420: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1421: ibe_util.debug('NotifyRegistration:l_approval_id='||l_approval_id);
1422: END IF;
1423: IF C_get_approval_id%FOUND AND l_approval_id >0 THEN
1424: ibe_util.debug('NotifyRegistration:Approval id associated with the user type');
1425: ------ approval associated with the user type -----------
1426: IF (l_UserType='IBE_INDIVIDUAL') THEN
1427: l_approval_msg_name:='IBE_APPRVL_REQD_B2C';
1428: ELSIF (l_UserType='IBE_PRIMARY') OR (l_UserType='IBE_BUSINESS') THEN

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

1430: ELSIF (l_UserType='IBE_PARTNER_PRIMARY') OR (l_UserType='IBE_PARTNER_BUSINESS') THEN
1431: l_approval_msg_name:='IBE_APPRVL_REQD_PRM';
1432: ELSE
1433: l_approval_msg_name:= l_UserType||'_APPR';
1434: ibe_util.debug('NotifyRegistration:l_approval_msg =: '||fnd_message.get(l_approval_msg_name));
1435: If fnd_message.get(l_approval_msg_name)= l_approval_msg_name Then
1436: l_approval_msg_name:='IBE_APPRVL_REQD_CUST';
1437: End if;
1438: END IF;

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

1436: l_approval_msg_name:='IBE_APPRVL_REQD_CUST';
1437: End if;
1438: END IF;
1439: ELSE --approval not associated with the user type
1440: ibe_util.debug('NotifyRegistration:Approval not associated with the user type');
1441: IF (l_UserType='IBE_INDIVIDUAL') THEN
1442: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_B2C';
1443: ELSIF (l_UserType='IBE_PRIMARY')OR (l_UserType='IBE_BUSINESS') THEN
1444: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_B2B';

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

1445: ELSIF (l_UserType='IBE_PARTNER_PRIMARY') OR (l_UserType='IBE_PARTNER_BUSINESS') THEN
1446: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_PRM';
1447: ELSE
1448: l_approval_msg_name:= l_UserType||'_NOAPPR';
1449: ibe_util.debug('NotifyRegistration:l_approval_msg =: '||fnd_message.get(l_approval_msg_name));
1450: If fnd_message.get(l_approval_msg_name)= l_approval_msg_name Then
1451: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_CUST';
1452: End if;
1453: END IF;

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

1451: l_approval_msg_name:='IBE_APPRVL_NOT_REQD_CUST';
1452: End if;
1453: END IF;
1454: END IF;
1455: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1456: ibe_util.debug('NotifyRegistration:l_approval_msg_name='||l_approval_msg_name);
1457: END IF;
1458: CLOSE C_get_approval_id;
1459: --end ab

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

1452: End if;
1453: END IF;
1454: END IF;
1455: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1456: ibe_util.debug('NotifyRegistration:l_approval_msg_name='||l_approval_msg_name);
1457: END IF;
1458: CLOSE C_get_approval_id;
1459: --end ab
1460: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

1467: x_return_status => x_return_status,
1468: x_msg_data => x_msg_data,
1469: x_msg_count => x_msg_count);
1470:
1471: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1472: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1473: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);
1474: END IF;
1475: -- If x_msg_count > 0 Then

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

1468: x_msg_data => x_msg_data,
1469: x_msg_count => x_msg_count);
1470:
1471: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1472: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1473: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);
1474: END IF;
1475: -- If x_msg_count > 0 Then
1476: -- Raise GET_MESSAGE_ERROR;

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

1469: x_msg_count => x_msg_count);
1470:
1471: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1472: ibe_util.debug('NotifyRegistration:Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
1473: ibe_util.debug('NotifyRegistration:x_msg_count=:'||x_msg_count);
1474: END IF;
1475: -- If x_msg_count > 0 Then
1476: -- Raise GET_MESSAGE_ERROR;
1477: -- End if;

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

1474: END IF;
1475: -- If x_msg_count > 0 Then
1476: -- Raise GET_MESSAGE_ERROR;
1477: -- End if;
1478: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1479: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);
1480: END IF;
1481: If l_msgEnabled = 'Y' Then
1482: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;

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

1475: -- If x_msg_count > 0 Then
1476: -- Raise GET_MESSAGE_ERROR;
1477: -- End if;
1478: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1479: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);
1480: END IF;
1481: If l_msgEnabled = 'Y' Then
1482: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1483: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1479: ibe_util.debug('NotifyRegistration:l_msg_enabled='||l_msgEnabled);
1480: END IF;
1481: If l_msgEnabled = 'Y' Then
1482: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1483: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1484: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);
1485: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||
1486: ':ApprovalMsgId='||l_approval_msg_name||
1487: ':FirstName='||p_first_name|| ':LastName='||p_last_name || ':LoginName=' ||p_login_name ||

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

1480: END IF;
1481: If l_msgEnabled = 'Y' Then
1482: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1483: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1484: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);
1485: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||
1486: ':ApprovalMsgId='||l_approval_msg_name||
1487: ':FirstName='||p_first_name|| ':LastName='||p_last_name || ':LoginName=' ||p_login_name ||
1488: ':emailAddress='|| p_email_address || ':eventType='||p_event_type ||

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

1481: If l_msgEnabled = 'Y' Then
1482: l_item_key := p_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_login_name;
1483: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1484: ibe_util.debug('NotifyRegistration:Create and Start Process with Item Key: '||l_item_key);
1485: ibe_util.debug('The attributes to be set are: Message='||l_MessageName ||
1486: ':ApprovalMsgId='||l_approval_msg_name||
1487: ':FirstName='||p_first_name|| ':LastName='||p_last_name || ':LoginName=' ||p_login_name ||
1488: ':emailAddress='|| p_email_address || ':eventType='||p_event_type ||
1489: ':sendTo='||l_adhoc_user ||':URL=''||l_url'||':orgnum='||l_partyNum ||

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

1558: itemkey => l_item_key,
1559: aname => 'APPROVALMSGID',
1560: avalue => l_approval_msg_name);
1561:
1562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1563: ibe_util.debug('NotifyRegistration :set attribute APPROVALMSGID='|| l_approval_msg_name);
1564: END IF;
1565:
1566: wf_engine.SetItemAttrText(

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

1559: aname => 'APPROVALMSGID',
1560: avalue => l_approval_msg_name);
1561:
1562: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1563: ibe_util.debug('NotifyRegistration :set attribute APPROVALMSGID='|| l_approval_msg_name);
1564: END IF;
1565:
1566: wf_engine.SetItemAttrText(
1567: itemtype => g_ItemType,

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

1581: itemkey => l_item_key,
1582: aname => 'ITEMKEY',
1583: avalue => l_item_key);
1584:
1585: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1586: ibe_util.debug('NotifyRegistration : Item key set as'|| l_item_key);
1587: END IF;
1588:
1589: wf_engine.SetItemOwner(

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

1582: aname => 'ITEMKEY',
1583: avalue => l_item_key);
1584:
1585: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1586: ibe_util.debug('NotifyRegistration : Item key set as'|| l_item_key);
1587: END IF;
1588:
1589: wf_engine.SetItemOwner(
1590: itemtype => g_ItemType,

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

1594: wf_engine.StartProcess(
1595: itemtype => g_ItemType,
1596: itemkey => l_item_key);
1597:
1598: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1599: ibe_util.debug('NotifyRegistration :workflow Process Started');
1600: END IF;
1601: End If;
1602: End If;

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

1595: itemtype => g_ItemType,
1596: itemkey => l_item_key);
1597:
1598: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1599: ibe_util.debug('NotifyRegistration :workflow Process Started');
1600: END IF;
1601: End If;
1602: End If;
1603: Exception

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

1651:
1652: x_return_status := FND_API.g_ret_sts_success;
1653:
1654:
1655: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1656: ibe_util.debug('Check if this notification is enabled.');
1657: END IF;
1658:
1659: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

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

1652: x_return_status := FND_API.g_ret_sts_success;
1653:
1654:
1655: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1656: ibe_util.debug('Check if this notification is enabled.');
1657: END IF;
1658:
1659: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1660:

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

1657: END IF;
1658:
1659: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1660:
1661: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1662: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
1663: l_notifEnabled);
1664: END IF;
1665:

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

1658:
1659: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1660:
1661: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1662: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
1663: l_notifEnabled);
1664: END IF;
1665:
1666: IF l_notifEnabled = 'Y' THEN

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

1673:
1674: l_orgId := MO_GLOBAL.get_current_org_id();
1675: getUserType(l_partyId,l_UserType);
1676:
1677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1678: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
1679: ' Org_id: '||to_char(l_orgId) ||' User Type: '||
1680: l_userType);
1681: END IF;

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

1674: l_orgId := MO_GLOBAL.get_current_org_id();
1675: getUserType(l_partyId,l_UserType);
1676:
1677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1678: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
1679: ' Org_id: '||to_char(l_orgId) ||' User Type: '||
1680: l_userType);
1681: END IF;
1682:

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

1692: x_msg_data => x_msg_data,
1693: x_msg_count => x_msg_count);
1694:
1695:
1696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1697: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
1698: l_msgEnabled);
1699: END IF;
1700: IF x_msg_count > 0 THEN

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

1693: x_msg_count => x_msg_count);
1694:
1695:
1696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1697: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
1698: l_msgEnabled);
1699: END IF;
1700: IF x_msg_count > 0 THEN
1701: Raise GET_MESSAGE_ERROR;

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

1704: IF l_msgEnabled = 'Y' THEN
1705:
1706: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||
1707: '-'||p_login_name;
1708: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1709: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1710: END IF;
1711:
1712: wf_engine.CreateProcess(

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

1705:
1706: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||
1707: '-'||p_login_name;
1708: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1709: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
1710: END IF;
1711:
1712: wf_engine.CreateProcess(
1713: itemtype => g_ItemType,

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

1775: wf_engine.StartProcess(
1776: itemtype => g_ItemType,
1777: itemkey => l_item_key);
1778:
1779: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1780: ibe_util.debug('Process Started');
1781: END IF;
1782:
1783: END IF;

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

1776: itemtype => g_ItemType,
1777: itemkey => l_item_key);
1778:
1779: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1780: ibe_util.debug('Process Started');
1781: END IF;
1782:
1783: END IF;
1784: END IF;

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

1896: l_msite_name := 'Msite_name'||rec_minisite_name.msite_name;
1897: exit when c_minisite_name%notfound;
1898: end loop;*/
1899:
1900: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1901: ibe_util.debug('Minisite_id in NotifyOrderStatus is: '||p_msite_id);
1902: END IF;
1903: /* Success 'S' indicates order confirmation for Credit Card or Fax Orders */
1904: l_adhoc_user := NULL;

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

1897: exit when c_minisite_name%notfound;
1898: end loop;*/
1899:
1900: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1901: ibe_util.debug('Minisite_id in NotifyOrderStatus is: '||p_msite_id);
1902: END IF;
1903: /* Success 'S' indicates order confirmation for Credit Card or Fax Orders */
1904: l_adhoc_user := NULL;
1905: IF ( p_status = 'S' ) THEN

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

1930: ElsIF ( p_status = 'E' )THEN
1931: l_event_type := 'ORDERROR';
1932: l_notifName := 'ORDNOTBOOKNOTIFICATION';
1933: l_errmsg_count := p_errmsg_count;
1934: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1935: ibe_util.debug('Notify Order Status - Error Message Count - '||to_char(l_errmsg_count));
1936: END IF;
1937: IF ( l_errmsg_count = 1 ) THEN
1938: l_errmsg_data := p_errmsg_data;

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

1931: l_event_type := 'ORDERROR';
1932: l_notifName := 'ORDNOTBOOKNOTIFICATION';
1933: l_errmsg_count := p_errmsg_count;
1934: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1935: ibe_util.debug('Notify Order Status - Error Message Count - '||to_char(l_errmsg_count));
1936: END IF;
1937: IF ( l_errmsg_count = 1 ) THEN
1938: l_errmsg_data := p_errmsg_data;
1939: ELSE

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

1945: l_errmsg_data := l_errmsg_data || TAB || TAB ||l_temp_str || NEWLINE;
1946: l_this := l_this + 1;
1947: END LOOP;
1948: END IF;
1949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1950: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);
1951: END IF;
1952: END IF;
1953:

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

1946: l_this := l_this + 1;
1947: END LOOP;
1948: END IF;
1949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1950: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);
1951: END IF;
1952: END IF;
1953:
1954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1950: ibe_util.debug('NotifyOrderStatus - Error Message Data After LOOP - '||l_errmsg_data);
1951: END IF;
1952: END IF;
1953:
1954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1955: ibe_util.debug('Check if this notification is enabled.');
1956: END IF;
1957: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1958: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

1951: END IF;
1952: END IF;
1953:
1954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1955: ibe_util.debug('Check if this notification is enabled.');
1956: END IF;
1957: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1958: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1959: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

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

1954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1955: ibe_util.debug('Check if this notification is enabled.');
1956: END IF;
1957: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1958: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1959: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1960: END IF;
1961: If l_notifEnabled = 'Y' Then
1962: IF ( p_status = 'S' ) THEN

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

1955: ibe_util.debug('Check if this notification is enabled.');
1956: END IF;
1957: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
1958: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1959: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
1960: END IF;
1961: If l_notifEnabled = 'Y' Then
1962: IF ( p_status = 'S' ) THEN
1963: getUserType(l_partyId,l_UserType);

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

1965: l_admin_email_addr := FND_PROFILE.VALUE_SPECIFIC('IBE_ORDER_ADMIN',null,null,671);
1966: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
1967: l_admin_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
1968: l_admin_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;
1969: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1970: IBE_UTIL.DEBUG('Partner Order-AdminEmail '||l_admin_email_addr||'Name'||l_admin_adhoc_user||'preference'||l_notification_preference);
1971: END IF;
1972: wf_directory.CreateAdHocUser(
1973: name => l_admin_adhoc_user,

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

1966: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
1967: l_admin_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
1968: l_admin_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;
1969: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1970: IBE_UTIL.DEBUG('Partner Order-AdminEmail '||l_admin_email_addr||'Name'||l_admin_adhoc_user||'preference'||l_notification_preference);
1971: END IF;
1972: wf_directory.CreateAdHocUser(
1973: name => l_admin_adhoc_user,
1974: display_name => l_admin_adhoc_user_display,

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

1987: notification_preference => l_notification_preference,
1988: role_users => l_role_users,
1989: expiration_date => sysdate + 1);
1990: l_adhoc_user := l_adhoc_role;
1991: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1992: IBE_UTIL.DEBUG('Partner Order-Adhoc Role: '||l_adhoc_user);
1993: END IF;
1994: END IF; --Partner UserType End If
1995: Else

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

1988: role_users => l_role_users,
1989: expiration_date => sysdate + 1);
1990: l_adhoc_user := l_adhoc_role;
1991: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
1992: IBE_UTIL.DEBUG('Partner Order-Adhoc Role: '||l_adhoc_user);
1993: END IF;
1994: END IF; --Partner UserType End If
1995: Else
1996: L_adhoc_user := FND_PROFILE.VALUE_SPECIFIC('IBE_DEF_ORDER_ADMIN_EMAIL',null,null,671);

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

1999: FOR c_quote_rec In c_quote_header(p_quote_id) LOOP
2000: l_order_id := c_quote_rec.order_id;
2001: END LOOP;
2002: End if;
2003: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2004: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2005: END IF;
2006:
2007: /*The following function call determines whether the user has permission

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

2000: l_order_id := c_quote_rec.order_id;
2001: END LOOP;
2002: End if;
2003: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2004: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2005: END IF;
2006:
2007: /*The following function call determines whether the user has permission
2008: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission

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

2004: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2005: END IF;
2006:
2007: /*The following function call determines whether the user has permission
2008: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2009: to view net price is enabled for this user otherwise this function return false */
2010:
2011: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2012: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');

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

2007: /*The following function call determines whether the user has permission
2008: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2009: to view net price is enabled for this user otherwise this function return false */
2010:
2011: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2012: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
2013: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
2014:
2015: IF (l_permission_to_view_price) THEN

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

2027: x_wf_message_name => l_MessageName ,
2028: x_return_status => x_return_status,
2029: x_msg_data => x_msg_data ,
2030: x_msg_count => x_msg_data);
2031: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2032: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2033: END IF;
2034: If x_msg_count > 0 Then
2035: Raise GET_MESSAGE_ERROR;

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

2028: x_return_status => x_return_status,
2029: x_msg_data => x_msg_data ,
2030: x_msg_count => x_msg_data);
2031: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2032: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2033: END IF;
2034: If x_msg_count > 0 Then
2035: Raise GET_MESSAGE_ERROR;
2036: End if;

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

2034: If x_msg_count > 0 Then
2035: Raise GET_MESSAGE_ERROR;
2036: End if;
2037: If l_msgEnabled = 'Y' Then
2038: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2039: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2040: END IF;
2041:
2042: get_name_details(

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

2035: Raise GET_MESSAGE_ERROR;
2036: End if;
2037: If l_msgEnabled = 'Y' Then
2038: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2039: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2040: END IF;
2041:
2042: get_name_details(
2043: p_party_id => l_partyId,

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

2045: x_contact_first_name => l_first_name,
2046: x_contact_last_name => l_last_name,
2047: x_party_id => lx_party_id);
2048:
2049: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2050: ibe_util.debug('first_name of the owner: '||l_first_name);
2051: END IF;
2052: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2053: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/

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

2046: x_contact_last_name => l_last_name,
2047: x_party_id => lx_party_id);
2048:
2049: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2050: ibe_util.debug('first_name of the owner: '||l_first_name);
2051: END IF;
2052: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2053: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2054: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

2050: ibe_util.debug('first_name of the owner: '||l_first_name);
2051: END IF;
2052: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2053: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2054: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2055: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2056: END IF;
2057: wf_engine.CreateProcess(
2058: itemtype => g_ItemType,

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

2051: END IF;
2052: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
2053: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2054: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2055: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2056: END IF;
2057: wf_engine.CreateProcess(
2058: itemtype => g_ItemType,
2059: itemkey => l_item_key,

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

2057: wf_engine.CreateProcess(
2058: itemtype => g_ItemType,
2059: itemkey => l_item_key,
2060: process => g_processName);
2061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2062: ibe_util.debug('DONE:Create and Start Process with Item Key: '||l_item_key);
2063: END IF;
2064:
2065:

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

2058: itemtype => g_ItemType,
2059: itemkey => l_item_key,
2060: process => g_processName);
2061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2062: ibe_util.debug('DONE:Create and Start Process with Item Key: '||l_item_key);
2063: END IF;
2064:
2065:
2066: wf_engine.SetItemUserKey(

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

2066: wf_engine.SetItemUserKey(
2067: itemtype => g_ItemType,
2068: itemkey => l_item_key,
2069: userkey => l_item_key);
2070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2071: ibe_util.debug('NotifyOrderStatus: Done setItemUserKey');
2072: END IF;
2073:
2074: wf_engine.SetItemAttrText(

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

2067: itemtype => g_ItemType,
2068: itemkey => l_item_key,
2069: userkey => l_item_key);
2070: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2071: ibe_util.debug('NotifyOrderStatus: Done setItemUserKey');
2072: END IF;
2073:
2074: wf_engine.SetItemAttrText(
2075: itemtype => g_ItemType,

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

2075: itemtype => g_ItemType,
2076: itemkey => l_item_key,
2077: aname => 'MESSAGE',
2078: avalue => l_MessageName);
2079: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2080: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MESSAGE');
2081: END IF;
2082:
2083: wf_engine.SetItemAttrText(

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

2076: itemkey => l_item_key,
2077: aname => 'MESSAGE',
2078: avalue => l_MessageName);
2079: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2080: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MESSAGE');
2081: END IF;
2082:
2083: wf_engine.SetItemAttrText(
2084: itemtype => g_ItemType,

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

2084: itemtype => g_ItemType,
2085: itemkey => l_item_key,
2086: aname => 'ITEMKEY',
2087: avalue => l_item_key);
2088: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2089: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ITEMKEY');
2090: END IF;
2091:
2092: wf_engine.SetItemAttrText(

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

2085: itemkey => l_item_key,
2086: aname => 'ITEMKEY',
2087: avalue => l_item_key);
2088: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2089: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ITEMKEY');
2090: END IF;
2091:
2092: wf_engine.SetItemAttrText(
2093: itemtype => g_ItemType,

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

2093: itemtype => g_ItemType,
2094: itemkey => l_item_key,
2095: aname => 'EVENTTYPE',
2096: avalue => l_event_type);
2097: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2098: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for EVENTTYPE');
2099: END IF;
2100:
2101: wf_engine.SetItemAttrText(

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

2094: itemkey => l_item_key,
2095: aname => 'EVENTTYPE',
2096: avalue => l_event_type);
2097: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2098: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for EVENTTYPE');
2099: END IF;
2100:
2101: wf_engine.SetItemAttrText(
2102: itemtype => g_ItemType,

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

2102: itemtype => g_ItemType,
2103: itemkey => l_item_key,
2104: aname => 'QUOTEID',
2105: avalue => p_quote_id);
2106: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2107: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for QUOTEID');
2108: END IF;
2109:
2110: wf_engine.SetItemAttrText(

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

2103: itemkey => l_item_key,
2104: aname => 'QUOTEID',
2105: avalue => p_quote_id);
2106: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2107: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for QUOTEID');
2108: END IF;
2109:
2110: wf_engine.SetItemAttrText(
2111: itemtype => g_ItemType,

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

2111: itemtype => g_ItemType,
2112: itemkey => l_item_key,
2113: aname => 'MSITEID',
2114: avalue => p_msite_id);
2115: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2116: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MSITENAME');
2117: END IF;
2118:
2119: wf_engine.SetItemAttrText(

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

2112: itemkey => l_item_key,
2113: aname => 'MSITEID',
2114: avalue => p_msite_id);
2115: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2116: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for MSITENAME');
2117: END IF;
2118:
2119: wf_engine.SetItemAttrText(
2120: itemtype => g_ItemType,

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

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

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

2129: avalue => l_last_name);
2130:
2131:
2132: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2133: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for FIRSTNAME');
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 => 'ORDERID',
2140: avalue => l_order_id);
2141: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2142: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ORDERID');
2143: END IF;
2144:
2145: wf_engine.SetItemAttrText(

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

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

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

2165: itemtype => g_ItemType,
2166: itemkey => l_item_key,
2167: aname => 'SENDTO',
2168: avalue => l_adhoc_user);
2169: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2170: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for SENDTO');
2171: END IF;
2172:
2173: wf_engine.SetItemAttrText(

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

2166: itemkey => l_item_key,
2167: aname => 'SENDTO',
2168: avalue => l_adhoc_user);
2169: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2170: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for SENDTO');
2171: END IF;
2172:
2173: wf_engine.SetItemAttrText(
2174: itemtype => g_ItemType,

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

2174: itemtype => g_ItemType,
2175: itemkey => l_item_key,
2176: aname => 'ERRMSG',
2177: avalue => l_errmsg_data);
2178: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2179: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ERRMSG');
2180: END IF;
2181:
2182: wf_engine.SetItemOwner(

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

2175: itemkey => l_item_key,
2176: aname => 'ERRMSG',
2177: avalue => l_errmsg_data);
2178: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2179: ibe_util.debug('NotifyOrderStatus: Done setItemAttrText for ERRMSG');
2180: END IF;
2181:
2182: wf_engine.SetItemOwner(
2183: itemtype => g_ItemType,

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

2182: wf_engine.SetItemOwner(
2183: itemtype => g_ItemType,
2184: itemkey => l_item_key,
2185: owner => l_item_owner);
2186: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2187: ibe_util.debug('NotifyOrderStatus: Done setItemOwner');
2188: END IF;
2189:
2190: wf_engine.StartProcess(

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

2183: itemtype => g_ItemType,
2184: itemkey => l_item_key,
2185: owner => l_item_owner);
2186: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2187: ibe_util.debug('NotifyOrderStatus: Done setItemOwner');
2188: END IF;
2189:
2190: wf_engine.StartProcess(
2191: itemtype => g_ItemType,

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

2190: wf_engine.StartProcess(
2191: itemtype => g_ItemType,
2192: itemkey => l_item_key);
2193:
2194: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2195: ibe_util.debug('Process Started');
2196: END IF;
2197:
2198: End If;

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

2191: itemtype => g_ItemType,
2192: itemkey => l_item_key);
2193:
2194: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2195: ibe_util.debug('Process Started');
2196: END IF;
2197:
2198: End If;
2199: END IF;

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

2218: END IF;
2219: END LOOP;
2220: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2221: END IF;
2222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2223: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2224: END IF;
2225:
2226:

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

2219: END LOOP;
2220: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2221: END IF;
2222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2223: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2224: END IF;
2225:
2226:
2227: /*2369138

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

2227: /*2369138
2228: If (l_msgEnabled = 'Y') AND (l_event_type = 'ORDCONF')
2229: AND (p_status = 'S')
2230: AND (p_sharee_partyId IS NOT NULL) Then*/
2231: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2232: ibe_util.debug('NotifyOrderStatus:p_sharee_party_id: '||p_sharee_partyId);
2233: END IF;
2234:
2235: IF (l_notifEnabled = 'Y') AND (p_sharee_partyId IS NOT NULL) THEN

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

2228: If (l_msgEnabled = 'Y') AND (l_event_type = 'ORDCONF')
2229: AND (p_status = 'S')
2230: AND (p_sharee_partyId IS NOT NULL) Then*/
2231: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2232: ibe_util.debug('NotifyOrderStatus:p_sharee_party_id: '||p_sharee_partyId);
2233: END IF;
2234:
2235: IF (l_notifEnabled = 'Y') AND (p_sharee_partyId IS NOT NULL) THEN
2236: l_partyid := p_sharee_partyid;

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

2248: x_wf_message_name => l_MessageName,
2249: x_return_status => x_return_status,
2250: x_msg_data => x_msg_data,
2251: x_msg_count => x_msg_data);
2252: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2253: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2254: END IF;
2255: If x_msg_count > 0 Then
2256: Raise GET_MESSAGE_ERROR;

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

2249: x_return_status => x_return_status,
2250: x_msg_data => x_msg_data,
2251: x_msg_count => x_msg_data);
2252: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2253: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2254: END IF;
2255: If x_msg_count > 0 Then
2256: Raise GET_MESSAGE_ERROR;
2257: End if;

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

2265: x_party_id => l_partyid);
2266:
2267:
2268: /*The following function call determines whether the user has permission
2269: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2270: to view net price is enabled for this user otherwise this function return false */
2271:
2272: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2273: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');

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

2268: /*The following function call determines whether the user has permission
2269: to view Price or not. This ibe_util.check_user_permission return TRUE if the permission
2270: to view net price is enabled for this user otherwise this function return false */
2271:
2272: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2273: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
2274: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
2275:
2276: IF (l_permission_to_view_price) THEN

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

2279: l_view_net_price_flag := 'N';
2280: END IF;
2281:
2282:
2283: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2284: ibe_util.debug('first_name of the recipient: '||l_first_name);
2285: END IF;
2286:
2287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

2280: END IF;
2281:
2282:
2283: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2284: ibe_util.debug('first_name of the recipient: '||l_first_name);
2285: END IF;
2286:
2287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2288: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);

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

2283: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2284: ibe_util.debug('first_name of the recipient: '||l_first_name);
2285: END IF;
2286:
2287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2288: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2289: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2290: END IF;
2291: wf_engine.CreateProcess(

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

2284: ibe_util.debug('first_name of the recipient: '||l_first_name);
2285: END IF;
2286:
2287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2288: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2289: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2290: END IF;
2291: wf_engine.CreateProcess(
2292: itemtype => g_ItemType,

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

2285: END IF;
2286:
2287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2288: ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2289: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
2290: END IF;
2291: wf_engine.CreateProcess(
2292: itemtype => g_ItemType,
2293: itemkey => l_item_key,

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

2387: wf_engine.StartProcess(
2388: itemtype => g_ItemType,
2389: itemkey => l_item_key);
2390:
2391: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2392: ibe_util.debug('Process Started');
2393: END IF;
2394: End if;
2395: End If;

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

2388: itemtype => g_ItemType,
2389: itemkey => l_item_key);
2390:
2391: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2392: ibe_util.debug('Process Started');
2393: END IF;
2394: End if;
2395: End If;
2396: Exception

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

2397: When OTHERS Then
2398: x_return_status := FND_API.g_ret_sts_error;
2399: x_msg_count := 0;
2400:
2401: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2402: IBE_UTIL.DEBUG('NotifyOrderStatus:Exception block: '||SQLCODE||': '||SQLERRM);
2403: END IF;
2404:
2405: wf_core.context('ibe_workflow_pvt',

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

2398: x_return_status := FND_API.g_ret_sts_error;
2399: x_msg_count := 0;
2400:
2401: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2402: IBE_UTIL.DEBUG('NotifyOrderStatus:Exception block: '||SQLCODE||': '||SQLERRM);
2403: END IF;
2404:
2405: wf_core.context('ibe_workflow_pvt',
2406: 'NotifyOrderStatus',

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

2511: x_msg_count => x_msg_data);
2512:
2513: -- Get permission based pricing value from api function
2514:
2515: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
2516: IF (l_permission_to_view_price) THEN
2517: l_view_net_price_flag := 'Y';
2518: ELSE
2519: l_view_net_price_flag := 'N';

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

2729: ----DBMS_OUTPUT.PUT('Order id is: '||p_order_id);
2730: FOR rec_b2c_contact in c_b2c_contact(p_order_id) LOOP
2731: l_party_type := rec_b2c_contact.party_type;
2732: ----DBMS_OUTPUT.PUT('Party type is: '||l_party_type);
2733: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2734: IBE_UTIL.debug('L_party_type in get_contact_details_for_order: '||l_party_type);
2735: END IF;
2736: IF (l_party_type = 'PERSON') then --B2C user, get the details directly from hz_parties
2737: x_contact_party_id := rec_b2c_contact.party_id;

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

2730: FOR rec_b2c_contact in c_b2c_contact(p_order_id) LOOP
2731: l_party_type := rec_b2c_contact.party_type;
2732: ----DBMS_OUTPUT.PUT('Party type is: '||l_party_type);
2733: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2734: IBE_UTIL.debug('L_party_type in get_contact_details_for_order: '||l_party_type);
2735: END IF;
2736: IF (l_party_type = 'PERSON') then --B2C user, get the details directly from hz_parties
2737: x_contact_party_id := rec_b2c_contact.party_id;
2738: x_contact_first_name := rec_b2c_contact.person_first_name;

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

2771: x_contact_mid_name := l_contact_mid_name;
2772: x_contact_last_name := l_contact_last_name;
2773: END IF;
2774:
2775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2776: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2777: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2778: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2779: END IF;

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

2772: x_contact_last_name := l_contact_last_name;
2773: END IF;
2774:
2775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2776: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2777: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2778: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2779: END IF;
2780:

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

2773: END IF;
2774:
2775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2776: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2777: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2778: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2779: END IF;
2780:
2781: -- Standard check of p_commit.

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

2774:
2775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2776: IBE_UTIL.Debug('x_contact_party_id: '||x_contact_party_id);
2777: IBE_UTIL.Debug('x_contact_first_name: '||x_contact_first_name);
2778: IBE_UTIL.Debug('x_contact_last_name: '||x_contact_last_name);
2779: END IF;
2780:
2781: -- Standard check of p_commit.
2782: IF FND_API.To_Boolean(p_commit) THEN

Line 2848: --ibe_util.enable_debug;

2844: l_msgEnabled VARCHAR2(3) :='Y';
2845:
2846:
2847: BEGIN
2848: --ibe_util.enable_debug;
2849: ----DBMS_OUTPUT.PUT('reday to call Notify_cancel_order');
2850: x_return_status := FND_API.g_ret_sts_success;
2851: -- Check for WorkFlow Feature Availablity.
2852: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

2848: --ibe_util.enable_debug;
2849: ----DBMS_OUTPUT.PUT('reday to call Notify_cancel_order');
2850: x_return_status := FND_API.g_ret_sts_success;
2851: -- Check for WorkFlow Feature Availablity.
2852: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2853: ibe_util.debug('Check if this notification is enabled.');
2854: END IF;
2855: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2856: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

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

2849: ----DBMS_OUTPUT.PUT('reday to call Notify_cancel_order');
2850: x_return_status := FND_API.g_ret_sts_success;
2851: -- Check for WorkFlow Feature Availablity.
2852: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2853: ibe_util.debug('Check if this notification is enabled.');
2854: END IF;
2855: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2856: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2857: --l_notifEnabled := 'Y';

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

2855: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
2856: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2857: --l_notifEnabled := 'Y';
2858: If l_notifEnabled = 'Y' Then
2859: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2860: IBE_UTIL.debug('Getting the contact party id');
2861: END IF;
2862: ----DBMS_OUTPUT.PUT('Getting the contact party id');
2863: ibe_workflow_pvt.get_contact_details_for_order

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

2856: ----DBMS_OUTPUT.PUT('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
2857: --l_notifEnabled := 'Y';
2858: If l_notifEnabled = 'Y' Then
2859: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2860: IBE_UTIL.debug('Getting the contact party id');
2861: END IF;
2862: ----DBMS_OUTPUT.PUT('Getting the contact party id');
2863: ibe_workflow_pvt.get_contact_details_for_order
2864: (p_api_version => 1.0 ,

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

2878:
2879: IF x_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
2880: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2881: END IF;
2882: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2883: IBE_UTIL.DEBUG('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2884: END IF;
2885: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2886: getUserType(l_contact_party_Id,

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

2879: IF x_return_status = FND_API.G_RET_STS_UNEXP_ERROR THEN
2880: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2881: END IF;
2882: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2883: IBE_UTIL.DEBUG('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2884: END IF;
2885: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2886: getUserType(l_contact_party_Id,
2887: l_UserType);

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

2884: END IF;
2885: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2886: getUserType(l_contact_party_Id,
2887: l_UserType);
2888: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2889: IBE_UTIL.debug('Getting the contact party id');
2890: END IF;
2891: l_cust_adhoc_user := 'HZ_PARTY:'||l_contact_party_id;--'HZ_PARTY:4230';
2892:

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

2885: ----DBMS_OUTPUT.PUT('Contact party_id in Notify_Cancel_Order obtained from get_contact_from_order: '||l_contact_party_id);
2886: getUserType(l_contact_party_Id,
2887: l_UserType);
2888: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2889: IBE_UTIL.debug('Getting the contact party id');
2890: END IF;
2891: l_cust_adhoc_user := 'HZ_PARTY:'||l_contact_party_id;--'HZ_PARTY:4230';
2892:
2893:

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

2896: from oe_order_headers_all i
2897: where header_id = p_order_id;
2898:
2899:
2900: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2901: ibe_util.debug('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2902: END IF;
2903: ----DBMS_OUTPUT.PUT('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2904:

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

2897: where header_id = p_order_id;
2898:
2899:
2900: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2901: ibe_util.debug('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2902: END IF;
2903: ----DBMS_OUTPUT.PUT('Get Message - Org_id: '||to_char(l_orgId)||' User Type: '||l_userType);
2904:
2905: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping(

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

2911: x_wf_message_name => l_MessageName,
2912: x_return_status => x_return_status,
2913: x_msg_data => x_msg_data,
2914: x_msg_count => x_msg_data);
2915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2916: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2917: END IF;
2918: ----DBMS_OUTPUT.PUT('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2919: If x_msg_count > 0 Then

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

2912: x_return_status => x_return_status,
2913: x_msg_data => x_msg_data,
2914: x_msg_count => x_msg_data);
2915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
2916: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2917: END IF;
2918: ----DBMS_OUTPUT.PUT('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
2919: If x_msg_count > 0 Then
2920: Raise GET_MESSAGE_ERROR;

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

2919: If x_msg_count > 0 Then
2920: Raise GET_MESSAGE_ERROR;
2921: End if;
2922: If l_msgEnabled = 'Y' Then
2923: --ibe_util.debug('NotifyOrderStatus - p_quote_id - '||to_char(p_quote_id)||','||p_status);
2924: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_order_id;
2925: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
2926: ----DBMS_OUTPUT.PUT('Create and Start Process with Item Key: '||l_item_key);
2927:

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

3086:
3087: End if;
3088:
3089:
3090: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3091: ibe_util.debug('Check if this notification is enabled.');
3092: END IF;
3093:
3094: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

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

3087: End if;
3088:
3089:
3090: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3091: ibe_util.debug('Check if this notification is enabled.');
3092: END IF;
3093:
3094: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3095:

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

3092: END IF;
3093:
3094: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3095:
3096: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3097: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3098: END IF;
3099:
3100: If l_notifEnabled = 'Y' Then

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

3093:
3094: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3095:
3096: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3097: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3098: END IF;
3099:
3100: If l_notifEnabled = 'Y' Then
3101:

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

3109: l_msite_id := null;
3110:
3111: getUserType(l_partyId,l_UserType);
3112:
3113: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3114: ibe_util.debug('Get Message - MsiteId: '||to_Char(l_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3115: END IF;
3116:
3117: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

3110:
3111: getUserType(l_partyId,l_UserType);
3112:
3113: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3114: ibe_util.debug('Get Message - MsiteId: '||to_Char(l_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3115: END IF;
3116:
3117: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
3118: (

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

3126: x_msg_data => x_msg_data,
3127: x_msg_count => x_msg_data);
3128:
3129:
3130: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3131: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3132: END IF;
3133:
3134: /*The following function call determines whether the user has permission

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

3127: x_msg_count => x_msg_data);
3128:
3129:
3130: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3131: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3132: END IF;
3133:
3134: /*The following function call determines whether the user has permission
3135: to view Price or not. */

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

3133:
3134: /*The following function call determines whether the user has permission
3135: to view Price or not. */
3136:
3137: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
3138: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
3139: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
3140:
3141: IF (l_permission_to_view_price) THEN

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

3149: End if;
3150:
3151: If l_msgEnabled = 'Y' Then
3152:
3153: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3154: ibe_util.debug('NotifyForContractsStatus - eventtype - '||l_event_type);
3155: END IF;
3156:
3157: If Not (l_notifName = 'TERMREJECTEDNOTIF') Then

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

3150:
3151: If l_msgEnabled = 'Y' Then
3152:
3153: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3154: ibe_util.debug('NotifyForContractsStatus - eventtype - '||l_event_type);
3155: END IF;
3156:
3157: If Not (l_notifName = 'TERMREJECTEDNOTIF') Then
3158:

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

3157: If Not (l_notifName = 'TERMREJECTEDNOTIF') Then
3158:
3159: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-C'||p_quote_id;
3160:
3161: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3162: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3163: END IF;
3164:
3165: wf_engine.CreateProcess(

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

3158:
3159: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-C'||p_quote_id;
3160:
3161: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3162: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3163: END IF;
3164:
3165: wf_engine.CreateProcess(
3166: itemtype => g_ItemType,

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

3242: itemtype => g_ItemType,
3243: itemkey => l_item_key);
3244:
3245:
3246: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3247: ibe_util.debug('Process Started');
3248: END IF;
3249: End If;
3250:

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

3243: itemkey => l_item_key);
3244:
3245:
3246: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3247: ibe_util.debug('Process Started');
3248: END IF;
3249: End If;
3250:
3251: l_org_contract_rep := null;

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

3257: If Not (l_org_contract_rep is null) Then
3258:
3259: l_org_contract_rep := upper(l_org_contract_rep);
3260:
3261: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3262: ibe_util.debug('Sending Mail to Contract Org Rep.: '||l_org_contract_rep);
3263: END IF;
3264:
3265: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;

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

3258:
3259: l_org_contract_rep := upper(l_org_contract_rep);
3260:
3261: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3262: ibe_util.debug('Sending Mail to Contract Org Rep.: '||l_org_contract_rep);
3263: END IF;
3264:
3265: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;
3266:

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

3263: END IF;
3264:
3265: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;
3266:
3267: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3268: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3269: END IF;
3270:
3271: wf_engine.CreateProcess(

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

3264:
3265: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-S'||p_quote_id;
3266:
3267: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3268: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
3269: END IF;
3270:
3271: wf_engine.CreateProcess(
3272: itemtype => g_ItemType,

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

3327:
3328: wf_engine.StartProcess(
3329: itemtype => g_ItemType,
3330: itemkey => l_item_key);
3331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3332: ibe_util.debug('Process Started');
3333: END IF;
3334:
3335: End If;

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

3328: wf_engine.StartProcess(
3329: itemtype => g_ItemType,
3330: itemkey => l_item_key);
3331: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3332: ibe_util.debug('Process Started');
3333: END IF;
3334:
3335: End If;
3336: End If;

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

3370: Begin
3371:
3372: /*For bug 2875949*/
3373: IF (p_salesrep_email_id = fnd_api.g_miss_char) then
3374: IBE_UTIL.DEBUG('salesemail id is g miss char');
3375: return;
3376: ELSE
3377: IBE_UTIL.DEBUG('salesemail id is not g miss char, ideally call from iStore');
3378: END IF;

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

3373: IF (p_salesrep_email_id = fnd_api.g_miss_char) then
3374: IBE_UTIL.DEBUG('salesemail id is g miss char');
3375: return;
3376: ELSE
3377: IBE_UTIL.DEBUG('salesemail id is not g miss char, ideally call from iStore');
3378: END IF;
3379: /*For bug 2875949*/
3380:
3381: NotifyForContractsChange(

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

3450:
3451: l_notifName := 'CUSTQUOTENOTIFICATION';
3452: l_cust_event_type := 'ORDCUSTQUOTE';
3453:
3454: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3455: ibe_util.debug('Check if this notification is enabled.');
3456: END IF;
3457:
3458: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

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

3451: l_notifName := 'CUSTQUOTENOTIFICATION';
3452: l_cust_event_type := 'ORDCUSTQUOTE';
3453:
3454: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3455: ibe_util.debug('Check if this notification is enabled.');
3456: END IF;
3457:
3458: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3459:

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

3456: END IF;
3457:
3458: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3459:
3460: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3461: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3462: END IF;
3463:
3464: If l_notifEnabled = 'Y' Then

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

3457:
3458: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3459:
3460: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3461: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3462: END IF;
3463:
3464: If l_notifEnabled = 'Y' Then
3465:

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

3464: If l_notifEnabled = 'Y' Then
3465:
3466: getUserType(l_partyId,l_UserType);
3467:
3468: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3469: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3470: END IF;
3471:
3472: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

3465:
3466: getUserType(l_partyId,l_UserType);
3467:
3468: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3469: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3470: END IF;
3471:
3472: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
3473: (

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

3480: x_return_status => x_return_status,
3481: x_msg_data => x_msg_data,
3482: x_msg_count => x_msg_data);
3483:
3484: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3485: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3486: END IF;
3487:
3488: If x_msg_count > 0 Then

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

3481: x_msg_data => x_msg_data,
3482: x_msg_count => x_msg_data);
3483:
3484: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3485: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3486: END IF;
3487:
3488: If x_msg_count > 0 Then
3489: Raise GET_MESSAGE_ERROR;

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

3490: End if;
3491:
3492: If l_msgEnabled = 'Y' Then
3493:
3494: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3495: ibe_util.debug('NotifyForContractsChange - p_quote_id '||to_char(p_quote_id));
3496: END IF;
3497:
3498: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;

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

3491:
3492: If l_msgEnabled = 'Y' Then
3493:
3494: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3495: ibe_util.debug('NotifyForContractsChange - p_quote_id '||to_char(p_quote_id));
3496: END IF;
3497:
3498: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3499:

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

3497:
3498: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3499:
3500: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3501: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3502: ibe_util.debug('Create and Start Process with Item Key: '||l_cust_item_key);
3503: END IF;
3504:
3505:

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

3498: l_cust_item_key := l_cust_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3499:
3500: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3501: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3502: ibe_util.debug('Create and Start Process with Item Key: '||l_cust_item_key);
3503: END IF;
3504:
3505:
3506: wf_engine.CreateProcess(

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

3576: wf_engine.StartProcess(
3577: itemtype => g_ItemType,
3578: itemkey => l_cust_item_key);
3579:
3580: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3581: ibe_util.debug('Process Started');
3582: END IF;
3583: End If; --If msg enabled
3584: End If; --If notif enabled

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

3577: itemtype => g_ItemType,
3578: itemkey => l_cust_item_key);
3579:
3580: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3581: ibe_util.debug('Process Started');
3582: END IF;
3583: End If; --If msg enabled
3584: End If; --If notif enabled
3585:

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

3587:
3588: l_notifName := 'SALESQUOTENOTIFICATION';
3589: l_sales_event_type := 'ORDSALESQUOTE';
3590:
3591: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3592: ibe_util.debug('Check if this notification is enabled.');
3593: END IF;
3594:
3595: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

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

3588: l_notifName := 'SALESQUOTENOTIFICATION';
3589: l_sales_event_type := 'ORDSALESQUOTE';
3590:
3591: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3592: ibe_util.debug('Check if this notification is enabled.');
3593: END IF;
3594:
3595: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3596:

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

3593: END IF;
3594:
3595: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3596:
3597: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3598: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3599: END IF;
3600:
3601: If l_notifEnabled = 'Y' Then

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

3594:
3595: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
3596:
3597: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3598: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
3599: END IF;
3600:
3601: If l_notifEnabled = 'Y' Then
3602:

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

3600:
3601: If l_notifEnabled = 'Y' Then
3602:
3603: l_UserType := 'ALL';
3604: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3605: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3606: END IF;
3607:
3608: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

3601: If l_notifEnabled = 'Y' Then
3602:
3603: l_UserType := 'ALL';
3604: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3605: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_quote_org_id)||' User Type: '||l_userType);
3606: END IF;
3607:
3608: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
3609: (

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

3617: x_msg_data => x_msg_data,
3618: x_msg_count => x_msg_data);
3619:
3620:
3621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3622: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3623: END IF;
3624:
3625: If x_msg_count > 0 Then

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

3618: x_msg_count => x_msg_data);
3619:
3620:
3621: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3622: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
3623: END IF;
3624:
3625: If x_msg_count > 0 Then
3626: Raise GET_MESSAGE_ERROR;

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

3633: FOR c_rep_rec In c_contract_rep(l_quote_org_id) LOOP
3634: l_org_contract_rep := c_rep_rec.contract_rep;
3635: END LOOP;
3636:
3637: IF(IBE_UTIL.g_debugon = l_true) THEN
3638: IBE_UTIL.DEBUG('Contracts rep from database l_org_contract_rep: '||l_org_contract_rep);
3639: END IF;
3640:
3641: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');

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

3634: l_org_contract_rep := c_rep_rec.contract_rep;
3635: END LOOP;
3636:
3637: IF(IBE_UTIL.g_debugon = l_true) THEN
3638: IBE_UTIL.DEBUG('Contracts rep from database l_org_contract_rep: '||l_org_contract_rep);
3639: END IF;
3640:
3641: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
3642:

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

3640:
3641: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
3642:
3643: IF ( p_salesrep_email_id is NOT NULL) THEN
3644: IF(IBE_UTIL.g_debugon = l_true) THEN
3645: IBE_UTIL.DEBUG(' p_salesrep_email_id is NOT NULL: '||p_salesrep_email_id );
3646: END IF;
3647: l_sales_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
3648: l_sales_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;

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

3641: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
3642:
3643: IF ( p_salesrep_email_id is NOT NULL) THEN
3644: IF(IBE_UTIL.g_debugon = l_true) THEN
3645: IBE_UTIL.DEBUG(' p_salesrep_email_id is NOT NULL: '||p_salesrep_email_id );
3646: END IF;
3647: l_sales_adhoc_user := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id ;
3648: l_sales_adhoc_user_display := 'IBEU'||to_char(sysdate,'MMDDYYHH24MISS')||'Q'||p_quote_id;
3649: l_sales_email_addr := p_salesrep_email_id;

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

3683: l_sales_item_key := l_sales_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
3684:
3685: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3686:
3687: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3688: ibe_util.debug('Create and Start Process with Item Key: '||l_sales_item_key);
3689: END IF;
3690:
3691: wf_engine.CreateProcess(

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

3684:
3685: /* Item Key should be Unique as it represent a process instance with ITEM TYPE*/
3686:
3687: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3688: ibe_util.debug('Create and Start Process with Item Key: '||l_sales_item_key);
3689: END IF;
3690:
3691: wf_engine.CreateProcess(
3692: itemtype => g_ItemType,

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

3754: wf_engine.StartProcess(
3755: itemtype => g_ItemType,
3756: itemkey => l_sales_item_key);
3757:
3758: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3759: ibe_util.debug('Process Started');
3760: END IF;
3761: End If; -- if l_sales_adhoc_role
3762: End If; -- if salesquote message is enabled

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

3755: itemtype => g_ItemType,
3756: itemkey => l_sales_item_key);
3757:
3758: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3759: ibe_util.debug('Process Started');
3760: END IF;
3761: End If; -- if l_sales_adhoc_role
3762: End If; -- if salesquote message is enabled
3763: End If; -- if salesqute is enabled

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

3764: Exception
3765: When OTHERS Then
3766: x_return_status := FND_API.g_ret_sts_error;
3767: x_msg_count := 0;
3768: IF(IBE_UTIL.g_debugon = l_true) THEN
3769: IBE_UTIL.DEBUG('NotifyForContractsChange:Exception: '||SQLCODE||SQLERRM);
3770: END IF;
3771: wf_core.context('ibe_workflow_pvt','NotifyQuote',l_sales_event_type,to_char(p_quote_id));
3772: raise;

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

3765: When OTHERS Then
3766: x_return_status := FND_API.g_ret_sts_error;
3767: x_msg_count := 0;
3768: IF(IBE_UTIL.g_debugon = l_true) THEN
3769: IBE_UTIL.DEBUG('NotifyForContractsChange:Exception: '||SQLCODE||SQLERRM);
3770: END IF;
3771: wf_core.context('ibe_workflow_pvt','NotifyQuote',l_sales_event_type,to_char(p_quote_id));
3772: raise;
3773: END NotifyForContractsChange;

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

3925: END LOOP;
3926:
3927: --Bug 2223507 start
3928: --Call the procedure to retrieve the token values for header/footer
3929: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3930: ibe_util.debug('NotifyForSalesAssistance - '||
3931: 'calling Get_sales_assist_hdr_tokens');
3932: END IF;
3933: IBE_CART_NOTIFY_UTIL.Get_sales_assist_hdr_tokens (

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

3926:
3927: --Bug 2223507 start
3928: --Call the procedure to retrieve the token values for header/footer
3929: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3930: ibe_util.debug('NotifyForSalesAssistance - '||
3931: 'calling Get_sales_assist_hdr_tokens');
3932: END IF;
3933: IBE_CART_NOTIFY_UTIL.Get_sales_assist_hdr_tokens (
3934: p_api_version => 1.0,

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

3964: x_total => l_total
3965: );
3966:
3967: IF (l_return_status <> 'S') THEN
3968: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3969: ibe_util.debug('NotifyForSalesAssistance - Get_sales_assist_hdr_tokens,'||
3970: 'error occured;' ||l_msg_data);
3971: END IF;
3972: END IF;

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

3965: );
3966:
3967: IF (l_return_status <> 'S') THEN
3968: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
3969: ibe_util.debug('NotifyForSalesAssistance - Get_sales_assist_hdr_tokens,'||
3970: 'error occured;' ||l_msg_data);
3971: END IF;
3972: END IF;
3973:

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

3990:
3991: /* Permission based pricing function call
3992: This function returns TRUE if the user has permission to view net price
3993: Otherwise this function will return FALSE */
3994: l_permission_to_view_price := ibe_util.check_user_permission( p_permission => 'IBE_VIEW_NET_PRICE' );
3995: l_paynow_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_PAY_NOW',null,null,671), 'N');
3996: l_reccharge_flag := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_ENABLE_RECURRING_CHARGES',null,null,671), 'N');
3997:
3998:

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

4005:
4006: l_cust_event_type := 'CUSTASSIST';
4007: l_notifName := 'CUSTASSISTNOTIFICATON';
4008:
4009: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4010: ibe_util.debug('Check if this notification is enabled.');
4011: END IF;
4012:
4013: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

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

4006: l_cust_event_type := 'CUSTASSIST';
4007: l_notifName := 'CUSTASSISTNOTIFICATON';
4008:
4009: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4010: ibe_util.debug('Check if this notification is enabled.');
4011: END IF;
4012:
4013: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4014:

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

4011: END IF;
4012:
4013: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4014:
4015: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4016: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4017: l_notifEnabled);
4018: END IF;
4019: IF l_notifEnabled = 'Y' THEN

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

4012:
4013: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4014:
4015: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4016: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4017: l_notifEnabled);
4018: END IF;
4019: IF l_notifEnabled = 'Y' THEN
4020: getUserType(l_partyId,l_UserType);

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

4017: l_notifEnabled);
4018: END IF;
4019: IF l_notifEnabled = 'Y' THEN
4020: getUserType(l_partyId,l_UserType);
4021: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4022: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4023: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4024: END IF;
4025:

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

4018: END IF;
4019: IF l_notifEnabled = 'Y' THEN
4020: getUserType(l_partyId,l_UserType);
4021: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4022: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4023: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4024: END IF;
4025:
4026: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

4034: x_return_status => x_return_status,
4035: x_msg_data => x_msg_data,
4036: x_msg_count => x_msg_data);
4037:
4038: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4039: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4040: l_msgEnabled);
4041: END IF;
4042:

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

4035: x_msg_data => x_msg_data,
4036: x_msg_count => x_msg_data);
4037:
4038: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4039: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4040: l_msgEnabled);
4041: END IF;
4042:
4043: IF x_msg_count > 0 THEN

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

4044: Raise GET_MESSAGE_ERROR;
4045: END IF;
4046:
4047: IF l_msgEnabled = 'Y' THEN
4048: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4049: ibe_util.debug('NotifyForSalesAssistance - p_quote_id '||to_char(p_quote_id));
4050: END IF;
4051: l_cust_item_key := l_cust_event_type||'-'||
4052: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;

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

4045: END IF;
4046:
4047: IF l_msgEnabled = 'Y' THEN
4048: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4049: ibe_util.debug('NotifyForSalesAssistance - p_quote_id '||to_char(p_quote_id));
4050: END IF;
4051: l_cust_item_key := l_cust_event_type||'-'||
4052: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
4053:

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

4054: /* Item Key should be Unique as it represent a process instance with
4055: ITEM TYPE*/
4056:
4057:
4058: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4059: ibe_util.debug('Create and Start Process with Item Key: '||
4060: l_cust_item_key);
4061: END IF;
4062:

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

4055: ITEM TYPE*/
4056:
4057:
4058: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4059: ibe_util.debug('Create and Start Process with Item Key: '||
4060: l_cust_item_key);
4061: END IF;
4062:
4063: wf_engine.CreateProcess(

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

4207: wf_engine.StartProcess(
4208: itemtype => g_ItemType,
4209: itemkey => l_cust_item_key);
4210:
4211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4212: ibe_util.debug('Process Started');
4213: END IF;
4214: END IF; --l_msgEnabled = 'Y'
4215: END IF; --l_notifEnabled = 'Y'

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

4208: itemtype => g_ItemType,
4209: itemkey => l_cust_item_key);
4210:
4211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4212: ibe_util.debug('Process Started');
4213: END IF;
4214: END IF; --l_msgEnabled = 'Y'
4215: END IF; --l_notifEnabled = 'Y'
4216:

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

4218:
4219: l_sales_event_type := 'SALESASSIST';
4220: l_notifName := 'SALESASSISTNOTIFICATION';
4221:
4222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4223: ibe_util.debug('Check if this notification is enabled.');
4224: END IF;
4225:
4226: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

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

4219: l_sales_event_type := 'SALESASSIST';
4220: l_notifName := 'SALESASSISTNOTIFICATION';
4221:
4222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4223: ibe_util.debug('Check if this notification is enabled.');
4224: END IF;
4225:
4226: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4227:

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

4224: END IF;
4225:
4226: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4227:
4228: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4229: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4230: l_notifEnabled);
4231: END IF;
4232:

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

4225:
4226: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4227:
4228: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4229: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||
4230: l_notifEnabled);
4231: END IF;
4232:
4233: IF l_notifEnabled = 'Y' THEN

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

4232:
4233: IF l_notifEnabled = 'Y' THEN
4234:
4235: l_UserType := 'ALL';
4236: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4237: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4238: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4239: END IF;
4240: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

4233: IF l_notifEnabled = 'Y' THEN
4234:
4235: l_UserType := 'ALL';
4236: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4237: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||
4238: ' Org_id: '||to_char(l_orgid)||' User Type: '||l_userType);
4239: END IF;
4240: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
4241: (

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

4248: x_return_status => x_return_status,
4249: x_msg_data => x_msg_data,
4250: x_msg_count => x_msg_data);
4251:
4252: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4253: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4254: l_msgEnabled);
4255: END IF;
4256: IF x_msg_count > 0 THEN

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

4249: x_msg_data => x_msg_data,
4250: x_msg_count => x_msg_data);
4251:
4252: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4253: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||
4254: l_msgEnabled);
4255: END IF;
4256: IF x_msg_count > 0 THEN
4257: Raise GET_MESSAGE_ERROR;

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

4303: FROM FND_USER
4304: WHERE USER_ID = p_salesrep_user_id;
4305: EXCEPTION
4306: WHEN OTHERS THEN
4307: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4308: ibe_util.debug('NotifyforSalesAssistance: error while'||
4309: 'getting the employee id');
4310: END IF;
4311: END;

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

4304: WHERE USER_ID = p_salesrep_user_id;
4305: EXCEPTION
4306: WHEN OTHERS THEN
4307: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4308: ibe_util.debug('NotifyforSalesAssistance: error while'||
4309: 'getting the employee id');
4310: END IF;
4311: END;
4312: /*Create a role with the salesrep e-mail address (if any passed in)

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

4347: l_sales_adhoc_role := l_sales_rep;
4348:
4349: END IF;
4350:
4351: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4352: ibe_util.debug('NotifySalesAssistance: l_sales_adhoc_role '||
4353: l_sales_adhoc_role);
4354: END IF;
4355:

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

4348:
4349: END IF;
4350:
4351: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4352: ibe_util.debug('NotifySalesAssistance: l_sales_adhoc_role '||
4353: l_sales_adhoc_role);
4354: END IF;
4355:
4356:

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

4357: IF l_sales_adhoc_role is not null THEN
4358: l_sales_adhoc_role := upper(l_sales_adhoc_role);
4359: l_sales_item_key := l_sales_event_type||'-'||
4360: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
4361: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4362: ibe_util.debug('Create and Start Process with Item Key: '||
4363: l_sales_item_key);
4364: END IF;
4365:

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

4358: l_sales_adhoc_role := upper(l_sales_adhoc_role);
4359: l_sales_item_key := l_sales_event_type||'-'||
4360: to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_id;
4361: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4362: ibe_util.debug('Create and Start Process with Item Key: '||
4363: l_sales_item_key);
4364: END IF;
4365:
4366: wf_engine.CreateProcess(

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

4513: wf_engine.SetItemOwner(
4514: itemtype => g_ItemType,
4515: itemkey => l_sales_item_key,
4516: owner => l_item_owner);
4517: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4518: ibe_util.debug('Finally here');
4519: END IF;
4520:
4521:

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

4514: itemtype => g_ItemType,
4515: itemkey => l_sales_item_key,
4516: owner => l_item_owner);
4517: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4518: ibe_util.debug('Finally here');
4519: END IF;
4520:
4521:
4522: wf_engine.StartProcess(

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

4522: wf_engine.StartProcess(
4523: itemtype => g_ItemType,
4524: itemkey => l_sales_item_key);
4525: ELSE
4526: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4527: IBE_UTIL.DEBUG('NotifySalesAssist:Not sending sales assistance e-mail because l_sales_adhoc_role is null');
4528: END IF;
4529:
4530: END IF; --l_sales_adhoc_role is not null

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

4523: itemtype => g_ItemType,
4524: itemkey => l_sales_item_key);
4525: ELSE
4526: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4527: IBE_UTIL.DEBUG('NotifySalesAssist:Not sending sales assistance e-mail because l_sales_adhoc_role is null');
4528: END IF;
4529:
4530: END IF; --l_sales_adhoc_role is not null
4531:

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

4536:
4537: WHEN OTHERS THEN
4538: x_return_status := FND_API.g_ret_sts_error;
4539: x_msg_count := 0;
4540: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4541: IBE_UTIL.DEBUG('NotifySalesAssist:Exception block: '||SQLCODE||': '||SQLERRM);
4542: END IF;
4543:
4544: wf_core.context('ibe_workflow_pvt',

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

4537: WHEN OTHERS THEN
4538: x_return_status := FND_API.g_ret_sts_error;
4539: x_msg_count := 0;
4540: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4541: IBE_UTIL.DEBUG('NotifySalesAssist:Exception block: '||SQLCODE||': '||SQLERRM);
4542: END IF;
4543:
4544: wf_core.context('ibe_workflow_pvt',
4545: 'NotifySalesAssistance',

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

4681: identify_cart_quote(p_quote_header_id => p_Quote_Header_id,
4682: x_is_it_quote => l_is_it_quote);
4683:
4684: IF(l_is_it_quote = l_true) THEN
4685: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4686: IBE_UTIL.DEBUG('Notify_end_working:l_is_it_quote: '||l_is_it_quote);
4687: END IF;
4688: l_notifName := 'ENDWORK_QUOTE';
4689: l_notif_context := 'ENDWORK_QUOTE';

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

4682: x_is_it_quote => l_is_it_quote);
4683:
4684: IF(l_is_it_quote = l_true) THEN
4685: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4686: IBE_UTIL.DEBUG('Notify_end_working:l_is_it_quote: '||l_is_it_quote);
4687: END IF;
4688: l_notifName := 'ENDWORK_QUOTE';
4689: l_notif_context := 'ENDWORK_QUOTE';
4690: ELSE

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

4691: l_notif_context := 'ENDWORK';
4692: END IF;
4693:
4694: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4695: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4696: ibe_util.debug('Notify_end_working: Notification enabled: '||l_notifEnabled);
4697: END IF;
4698:
4699: IF l_notifEnabled = 'Y' THEN

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

4692: END IF;
4693:
4694: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4695: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4696: ibe_util.debug('Notify_end_working: Notification enabled: '||l_notifEnabled);
4697: END IF;
4698:
4699: IF l_notifEnabled = 'Y' THEN
4700: -- IF (p_quote_header_id is not null) or (p_quote_header_id <> fnd_api.g_miss_num) THEN

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

4699: IF l_notifEnabled = 'Y' THEN
4700: -- IF (p_quote_header_id is not null) or (p_quote_header_id <> fnd_api.g_miss_num) THEN
4701: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP
4702: l_user_name :='HZ_PARTY:'||c_quote_rec.party_id;
4703: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4704: ibe_util.debug('Notify_end_working: I_user_name: '||l_user_name);
4705: END IF;
4706: l_orgid := c_quote_rec.org_id;
4707: l_cart_name := c_quote_rec.quote_name;

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

4700: -- IF (p_quote_header_id is not null) or (p_quote_header_id <> fnd_api.g_miss_num) THEN
4701: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP
4702: l_user_name :='HZ_PARTY:'||c_quote_rec.party_id;
4703: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4704: ibe_util.debug('Notify_end_working: I_user_name: '||l_user_name);
4705: END IF;
4706: l_orgid := c_quote_rec.org_id;
4707: l_cart_name := c_quote_rec.quote_name;
4708: l_partyId := c_quote_rec.party_id;

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

4730: x_msg_count => x_msg_data);
4731: IF x_msg_count > 0 THEN
4732: Raise GET_MESSAGE_ERROR;
4733: END IF;
4734: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4735: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);
4736: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);
4737: END IF;
4738:

Line 4735: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);

4731: IF x_msg_count > 0 THEN
4732: Raise GET_MESSAGE_ERROR;
4733: END IF;
4734: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4735: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);
4736: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);
4737: END IF;
4738:
4739: IF l_msgEnabled = 'Y' THEN

Line 4736: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);

4732: Raise GET_MESSAGE_ERROR;
4733: END IF;
4734: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4735: ibe_util.debug('Notify_end_working:l_MessageName: '||l_MessageName);
4736: ibe_util.debug('Notify_end_working:l_msgenabled: '||l_msgEnabled);
4737: END IF;
4738:
4739: IF l_msgEnabled = 'Y' THEN
4740: l_usertype := FND_API.G_MISS_CHAR;

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

4739: IF l_msgEnabled = 'Y' THEN
4740: l_usertype := FND_API.G_MISS_CHAR;
4741: x_contact_first_name := NULL;
4742: x_contact_last_name := NULL;
4743: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4744: ibe_util.debug('Notify_end_working:querying recipient_name');
4745: END IF;
4746: FOR rec_get_recip_name in c_get_recip_name(p_retrieval_number) LOOP
4747: l_recip_name := rec_get_recip_name.recipient_name;

Line 4744: ibe_util.debug('Notify_end_working:querying recipient_name');

4740: l_usertype := FND_API.G_MISS_CHAR;
4741: x_contact_first_name := NULL;
4742: x_contact_last_name := NULL;
4743: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4744: ibe_util.debug('Notify_end_working:querying recipient_name');
4745: END IF;
4746: FOR rec_get_recip_name in c_get_recip_name(p_retrieval_number) LOOP
4747: l_recip_name := rec_get_recip_name.recipient_name;
4748: IF(l_recip_name is not null) THEN

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

4746: FOR rec_get_recip_name in c_get_recip_name(p_retrieval_number) LOOP
4747: l_recip_name := rec_get_recip_name.recipient_name;
4748: IF(l_recip_name is not null) THEN
4749: x_contact_first_name := l_recip_name;
4750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4751: ibe_util.debug('Notify_end_working:recipient_name from sh_quote_access tbl: '||x_contact_first_name);
4752: END IF;
4753:
4754: ELSE

Line 4751: ibe_util.debug('Notify_end_working:recipient_name from sh_quote_access tbl: '||x_contact_first_name);

4747: l_recip_name := rec_get_recip_name.recipient_name;
4748: IF(l_recip_name is not null) THEN
4749: x_contact_first_name := l_recip_name;
4750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4751: ibe_util.debug('Notify_end_working:recipient_name from sh_quote_access tbl: '||x_contact_first_name);
4752: END IF;
4753:
4754: ELSE
4755: Get_Name_details(

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

4761: END IF;
4762: EXIT when c_get_recip_name%NOTFOUND;
4763: END LOOP;
4764:
4765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4766: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4767: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4768: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4769: END IF;

Line 4766: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);

4762: EXIT when c_get_recip_name%NOTFOUND;
4763: END LOOP;
4764:
4765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4766: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4767: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4768: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4769: END IF;
4770: -- Create Item Type and notification Preference

Line 4767: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);

4763: END LOOP;
4764:
4765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4766: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4767: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4768: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4769: END IF;
4770: -- Create Item Type and notification Preference
4771: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;

Line 4768: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);

4764:
4765: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4766: ibe_util.debug('Notify_end_working:p_retrieval_number: '||p_retrieval_number);
4767: ibe_util.debug('Notify_end_working:x_contact_first_name: '||x_contact_first_name);
4768: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4769: END IF;
4770: -- Create Item Type and notification Preference
4771: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;
4772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

4768: ibe_util.debug('Notify_end_working:x_contact_last_name: '||x_contact_last_name);
4769: END IF;
4770: -- Create Item Type and notification Preference
4771: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;
4772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4773: ibe_util.debug('Notify_end_working:l_item_key: '||l_item_key);
4774: END IF;
4775: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
4776:

Line 4773: ibe_util.debug('Notify_end_working:l_item_key: '||l_item_key);

4769: END IF;
4770: -- Create Item Type and notification Preference
4771: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_Quote_Header_id;
4772: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4773: ibe_util.debug('Notify_end_working:l_item_key: '||l_item_key);
4774: END IF;
4775: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
4776:
4777: set_item_attributes

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

4786: ,p_adhoc_role => l_user_name
4787: ,p_notes => p_notes
4788: ,p_notif_context => l_notif_context);
4789:
4790: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4791: ibe_util.debug('Notify_end_working:Create_process start');
4792: END IF;
4793: END IF; --l_msgEnabled
4794: END IF; --l_notifenabled

Line 4791: ibe_util.debug('Notify_end_working:Create_process start');

4787: ,p_notes => p_notes
4788: ,p_notif_context => l_notif_context);
4789:
4790: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4791: ibe_util.debug('Notify_end_working:Create_process start');
4792: END IF;
4793: END IF; --l_msgEnabled
4794: END IF; --l_notifenabled
4795: EXCEPTION

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

4887: identify_cart_quote(p_quote_header_id => p_quote_access_rec.Quote_Header_id,
4888: x_is_it_quote => l_is_it_quote);
4889:
4890: IF(l_is_it_quote = l_true) THEN
4891: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4892: IBE_UTIL.DEBUG('Notify_finish_sharing:l_is_it_quote: '||l_is_it_quote);
4893: END IF;
4894: l_notifName := 'STOPWORKING_QUOTE';
4895: l_notif_context := 'STOPWORKING_QUOTE';

Line 4892: IBE_UTIL.DEBUG('Notify_finish_sharing:l_is_it_quote: '||l_is_it_quote);

4888: x_is_it_quote => l_is_it_quote);
4889:
4890: IF(l_is_it_quote = l_true) THEN
4891: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4892: IBE_UTIL.DEBUG('Notify_finish_sharing:l_is_it_quote: '||l_is_it_quote);
4893: END IF;
4894: l_notifName := 'STOPWORKING_QUOTE';
4895: l_notif_context := 'STOPWORKING_QUOTE';
4896: IF (p_context_code = 'IBE_SC_CART_ORDERED') THEN

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

4905: END IF;
4906:
4907:
4908: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4909: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4910: IBE_UTIL.DEBUG('Notify_finish_sharing: '||l_notifEnabled);
4911: END IF;
4912: IF l_notifEnabled = 'Y' THEN
4913:

Line 4910: IBE_UTIL.DEBUG('Notify_finish_sharing: '||l_notifEnabled);

4906:
4907:
4908: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
4909: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4910: IBE_UTIL.DEBUG('Notify_finish_sharing: '||l_notifEnabled);
4911: END IF;
4912: IF l_notifEnabled = 'Y' THEN
4913:
4914:

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

4911: END IF;
4912: IF l_notifEnabled = 'Y' THEN
4913:
4914:
4915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4916: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');
4917: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');
4918: END IF;
4919: FOR c_quote_rec In c_quote_header(p_quote_access_rec.Quote_Header_id)

Line 4916: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');

4912: IF l_notifEnabled = 'Y' THEN
4913:
4914:
4915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4916: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');
4917: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');
4918: END IF;
4919: FOR c_quote_rec In c_quote_header(p_quote_access_rec.Quote_Header_id)
4920: LOOP

Line 4917: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');

4913:
4914:
4915: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4916: IBE_UTIL.DEBUG('Notify_finish_sharing: Notification enabled');
4917: IBE_UTIL.DEBUG('Notify_finish_sharing:Querying owner party_id');
4918: END IF;
4919: FOR c_quote_rec In c_quote_header(p_quote_access_rec.Quote_Header_id)
4920: LOOP
4921: l_owner_partyid := c_quote_rec.party_id;

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

4920: LOOP
4921: l_owner_partyid := c_quote_rec.party_id;
4922: l_orgid := c_quote_rec.org_id;
4923: l_cart_name := c_quote_rec.quote_name; -- cart name
4924: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4925: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
4926: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
4927: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
4928: END IF;

Line 4925: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);

4921: l_owner_partyid := c_quote_rec.party_id;
4922: l_orgid := c_quote_rec.org_id;
4923: l_cart_name := c_quote_rec.quote_name; -- cart name
4924: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4925: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
4926: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
4927: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
4928: END IF;
4929: END LOOP;

Line 4926: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);

4922: l_orgid := c_quote_rec.org_id;
4923: l_cart_name := c_quote_rec.quote_name; -- cart name
4924: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4925: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
4926: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
4927: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
4928: END IF;
4929: END LOOP;
4930:

Line 4927: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);

4923: l_cart_name := c_quote_rec.quote_name; -- cart name
4924: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4925: IBE_UTIL.DEBUG('Notify_finish_sharing:Quote_header_id for stop_sharing: '||p_quote_access_rec.Quote_Header_id);
4926: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner_party_id: '||l_owner_partyid);
4927: IBE_UTIL.DEBUG('Notify_finish_sharing:Owner cart name: '||l_cart_name);
4928: END IF;
4929: END LOOP;
4930:
4931: l_usertype := FND_API.G_MISS_CHAR;

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

4945: l_stop_working_msg_context := rec_get_context_msg.message_text;
4946: END LOOP;*/
4947:
4948: --whether to create adhoc users or not
4949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4950: IBE_UTIL.DEBUG('Notify_finish_sharing:locate_contact_point:whether to create adhoc users or not');
4951: END IF;
4952: locate_contact_point(
4953: p_contact_point_id => p_quote_access_rec.contact_point_id,

Line 4950: IBE_UTIL.DEBUG('Notify_finish_sharing:locate_contact_point:whether to create adhoc users or not');

4946: END LOOP;*/
4947:
4948: --whether to create adhoc users or not
4949: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4950: IBE_UTIL.DEBUG('Notify_finish_sharing:locate_contact_point:whether to create adhoc users or not');
4951: END IF;
4952: locate_contact_point(
4953: p_contact_point_id => p_quote_access_rec.contact_point_id,
4954: x_create_adhoc_flag => l_create_adhoc_flag);

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

4954: x_create_adhoc_flag => l_create_adhoc_flag);
4955:
4956:
4957: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
4958: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4959: IBE_UTIL.DEBUG('Notify_finish_sharing:l_create_adhoc_flag: '||l_create_adhoc_flag);
4960: END IF;
4961:
4962: /*If an e-mail address is passed then the recipient party

Line 4959: IBE_UTIL.DEBUG('Notify_finish_sharing:l_create_adhoc_flag: '||l_create_adhoc_flag);

4955:
4956:
4957: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
4958: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4959: IBE_UTIL.DEBUG('Notify_finish_sharing:l_create_adhoc_flag: '||l_create_adhoc_flag);
4960: END IF;
4961:
4962: /*If an e-mail address is passed then the recipient party
4963: does not have a contact point, hence we create an adhoc user*/

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

4966: ,p_quote_header_id => p_quote_access_rec.quote_header_id
4967: ,p_email_address => p_quote_access_rec.email_contact_address
4968: ,p_Notification_preference => l_notification_preference
4969: ,x_adhoc_role => l_adhoc_role);
4970: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4971: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_adhoc_entity: done');
4972: END IF;
4973:
4974: Else

Line 4971: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_adhoc_entity: done');

4967: ,p_email_address => p_quote_access_rec.email_contact_address
4968: ,p_Notification_preference => l_notification_preference
4969: ,x_adhoc_role => l_adhoc_role);
4970: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4971: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_adhoc_entity: done');
4972: END IF;
4973:
4974: Else
4975:

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

4977: l_adhoc_role := l_user_name;
4978:
4979: End If;
4980:
4981: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4982: IBE_UTIL.DEBUG('Notify_finish_sharing:l_adhoc_role: '||l_adhoc_role);
4983: END IF;
4984:
4985:

Line 4982: IBE_UTIL.DEBUG('Notify_finish_sharing:l_adhoc_role: '||l_adhoc_role);

4978:
4979: End If;
4980:
4981: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4982: IBE_UTIL.DEBUG('Notify_finish_sharing:l_adhoc_role: '||l_adhoc_role);
4983: END IF;
4984:
4985:
4986: -- Retrive Actual Message

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

4983: END IF;
4984:
4985:
4986: -- Retrive Actual Message
4987: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4988: IBE_UTIL.DEBUG('Notify_finish_sharing:Retrievng message mapping');
4989: END IF;
4990: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
4991: (

Line 4988: IBE_UTIL.DEBUG('Notify_finish_sharing:Retrievng message mapping');

4984:
4985:
4986: -- Retrive Actual Message
4987: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
4988: IBE_UTIL.DEBUG('Notify_finish_sharing:Retrievng message mapping');
4989: END IF;
4990: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
4991: (
4992: p_org_id => l_OrgId,

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

5000: x_msg_count => x_msg_data);
5001: IF x_msg_count > 0 THEN
5002: Raise GET_MESSAGE_ERROR;
5003: END IF;
5004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5005: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);
5006: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);
5007: END IF;
5008:

Line 5005: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);

5001: IF x_msg_count > 0 THEN
5002: Raise GET_MESSAGE_ERROR;
5003: END IF;
5004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5005: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);
5006: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);
5007: END IF;
5008:
5009: IF l_msgEnabled = 'Y' THEN

Line 5006: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);

5002: Raise GET_MESSAGE_ERROR;
5003: END IF;
5004: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5005: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_messagename: '||l_MessageName);
5006: IBE_UTIL.DEBUG('Notify_finish_sharing:After message mapping:l_msg_enabled: '||l_msgEnabled);
5007: END IF;
5008:
5009: IF l_msgEnabled = 'Y' THEN
5010:

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

5010:
5011: -- Create Item Type and notification Preference
5012: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5013: ||p_quote_access_rec.Quote_sharee_number;
5014: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5015: IBE_UTIL.DEBUG('Notify_finish_sharing:Item_key : '||l_item_key);
5016: END IF;
5017: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5018:

Line 5015: IBE_UTIL.DEBUG('Notify_finish_sharing:Item_key : '||l_item_key);

5011: -- Create Item Type and notification Preference
5012: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5013: ||p_quote_access_rec.Quote_sharee_number;
5014: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5015: IBE_UTIL.DEBUG('Notify_finish_sharing:Item_key : '||l_item_key);
5016: END IF;
5017: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5018:
5019:

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

5016: END IF;
5017: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5018:
5019:
5020: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_process start');
5022: END IF;
5023:
5024: set_item_attributes

Line 5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_process start');

5017: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5018:
5019:
5020: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5021: IBE_UTIL.DEBUG('Notify_finish_sharing:Create_process start');
5022: END IF;
5023:
5024: set_item_attributes
5025: ( p_item_key => l_item_key

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

5107: x_return_status := FND_API.g_ret_sts_success ;
5108:
5109: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5110:
5111: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5112: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');
5113: END IF;
5114:
5115:

Line 5112: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');

5108:
5109: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5110:
5111: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5112: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');
5113: END IF;
5114:
5115:
5116: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5112: IBE_UTIL.DEBUG('Notify_shared_cart:calling identify_cart_quote');
5113: END IF;
5114:
5115:
5116: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5117: IBE_UTIL.DEBUG('Notify_shared_cart:Determining party_type');
5118: END IF;
5119: IF ((p_quote_access_rec.party_id is null )
5120: OR (p_quote_access_rec.party_id = FND_API.G_MISS_NUM)) THEN

Line 5117: IBE_UTIL.DEBUG('Notify_shared_cart:Determining party_type');

5113: END IF;
5114:
5115:
5116: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5117: IBE_UTIL.DEBUG('Notify_shared_cart:Determining party_type');
5118: END IF;
5119: IF ((p_quote_access_rec.party_id is null )
5120: OR (p_quote_access_rec.party_id = FND_API.G_MISS_NUM)) THEN
5121:

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

5128: identify_cart_quote(p_quote_header_id => p_quote_access_rec.Quote_Header_id,
5129: x_is_it_quote => l_is_it_quote);
5130:
5131: IF(l_is_it_quote = l_true) THEN
5132: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5133: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5134: END IF;
5135: l_notifname := 'SHAREQUOTENOTIF';
5136: IF (l_usertype = 'IBE_INDIVIDUAL') THEN

Line 5133: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);

5129: x_is_it_quote => l_is_it_quote);
5130:
5131: IF(l_is_it_quote = l_true) THEN
5132: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5133: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5134: END IF;
5135: l_notifname := 'SHAREQUOTENOTIF';
5136: IF (l_usertype = 'IBE_INDIVIDUAL') THEN
5137: l_notif_context := 'SHAREQUOTENOTIF';

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

5146: l_notif_context := 'SHARECARTNOTIF_B2B';
5147: END IF;
5148: END IF;
5149:
5150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5151: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5152: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5153: END IF;
5154: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);

Line 5151: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);

5147: END IF;
5148: END IF;
5149:
5150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5151: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5152: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5153: END IF;
5154: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5155: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

Line 5152: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);

5148: END IF;
5149:
5150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5151: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5152: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5153: END IF;
5154: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5155: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5156: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);

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

5151: IBE_UTIL.DEBUG('Notify_shared_cart:l_notifname: '||l_notifName);
5152: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5153: END IF;
5154: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5155: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5156: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);
5157: END IF;
5158:
5159: IF l_notifEnabled = 'Y' THEN

Line 5156: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);

5152: IBE_UTIL.DEBUG('Notify_shared_cart:l_usertype: '||l_usertype);
5153: END IF;
5154: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5155: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5156: IBE_UTIL.DEBUG('Notify_shared_cart:Shared cart notification enabled: '||l_notifEnabled);
5157: END IF;
5158:
5159: IF l_notifEnabled = 'Y' THEN
5160: --get owner party_id, cart_name here from input quote_header_id

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

5160: --get owner party_id, cart_name here from input quote_header_id
5161: FOR c_quote_rec IN c_quote_header(p_quote_access_rec.Quote_Header_id)
5162: LOOP
5163: l_owner_partyid := c_quote_rec.party_id;
5164: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5165: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);
5166: END IF;
5167: l_orgid := c_quote_rec.org_id;
5168: l_cart_name := c_quote_rec.quote_name; -- cart name

Line 5165: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);

5161: FOR c_quote_rec IN c_quote_header(p_quote_access_rec.Quote_Header_id)
5162: LOOP
5163: l_owner_partyid := c_quote_rec.party_id;
5164: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5165: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);
5166: END IF;
5167: l_orgid := c_quote_rec.org_id;
5168: l_cart_name := c_quote_rec.quote_name; -- cart name
5169: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5165: IBE_UTIL.DEBUG('Notify_shared_cart:Owner party_id: '||l_owner_partyid);
5166: END IF;
5167: l_orgid := c_quote_rec.org_id;
5168: l_cart_name := c_quote_rec.quote_name; -- cart name
5169: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5170: IBE_UTIL.DEBUG('Notify_shared_cart:cart name: '||l_cart_name);
5171: END IF;
5172: END LOOP;
5173:

Line 5170: IBE_UTIL.DEBUG('Notify_shared_cart:cart name: '||l_cart_name);

5166: END IF;
5167: l_orgid := c_quote_rec.org_id;
5168: l_cart_name := c_quote_rec.quote_name; -- cart name
5169: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5170: IBE_UTIL.DEBUG('Notify_shared_cart:cart name: '||l_cart_name);
5171: END IF;
5172: END LOOP;
5173:
5174: --get owner name from owner party_id obtained above

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

5179: x_contact_first_name => l_sharedby_first_name,
5180: x_contact_last_name => l_sharedby_last_name,
5181: x_party_id => x_owner_new_party_id);
5182:
5183: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5184: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);
5185: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);
5186: END IF;
5187: --whether to create adhoc user or not

Line 5184: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);

5180: x_contact_last_name => l_sharedby_last_name,
5181: x_party_id => x_owner_new_party_id);
5182:
5183: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5184: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);
5185: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);
5186: END IF;
5187: --whether to create adhoc user or not
5188:

Line 5185: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);

5181: x_party_id => x_owner_new_party_id);
5182:
5183: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5184: IBE_UTIL.DEBUG('Notify_shared_cart:Owner first name: '||l_sharedby_first_name);
5185: IBE_UTIL.DEBUG('Notify_shared_cart:owner last name: '||l_sharedby_last_name);
5186: END IF;
5187: --whether to create adhoc user or not
5188:
5189: locate_contact_point(

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

5189: locate_contact_point(
5190: p_contact_point_id => p_quote_access_rec.contact_point_id,
5191: x_create_adhoc_flag => l_create_adhoc_flag);
5192:
5193: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5194: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5195: END IF;
5196:
5197: --if create adhoc user flag is "true" then call wf_directory API

Line 5194: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);

5190: p_contact_point_id => p_quote_access_rec.contact_point_id,
5191: x_create_adhoc_flag => l_create_adhoc_flag);
5192:
5193: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5194: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5195: END IF;
5196:
5197: --if create adhoc user flag is "true" then call wf_directory API
5198: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN

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

5195: END IF;
5196:
5197: --if create adhoc user flag is "true" then call wf_directory API
5198: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5199: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5200: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5201: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5202: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5203: END IF;

Line 5200: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');

5196:
5197: --if create adhoc user flag is "true" then call wf_directory API
5198: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5199: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5200: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5201: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5202: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5203: END IF;
5204:

Line 5201: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);

5197: --if create adhoc user flag is "true" then call wf_directory API
5198: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5199: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5200: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5201: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5202: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5203: END IF;
5204:
5205: create_adhoc_entity

Line 5202: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);

5198: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5199: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5200: IBE_UTIL.DEBUG('Notify_shared_cart:l_create_adhoc_flag is true');
5201: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.QUOTE_SHAREE_ID: '||p_quote_access_rec.QUOTE_SHAREE_ID);
5202: IBE_UTIL.DEBUG('Notify_shared_cart:p_quote_access_rec.quote_header_id: '||p_quote_access_rec.quote_header_id);
5203: END IF;
5204:
5205: create_adhoc_entity
5206: ( p_quote_recipient_id => p_quote_access_rec.QUOTE_SHAREE_ID

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

5207: ,p_quote_header_id => p_quote_access_rec.quote_header_id
5208: ,p_email_address => p_quote_access_rec.email_contact_address
5209: ,p_Notification_preference => l_notification_preference
5210: ,x_adhoc_role => l_adhoc_role);
5211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5212: IBE_UTIL.DEBUG('Notify_shared_cart:Create_adhoc_entity: done');
5213: END IF;
5214: Else
5215:

Line 5212: IBE_UTIL.DEBUG('Notify_shared_cart:Create_adhoc_entity: done');

5208: ,p_email_address => p_quote_access_rec.email_contact_address
5209: ,p_Notification_preference => l_notification_preference
5210: ,x_adhoc_role => l_adhoc_role);
5211: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5212: IBE_UTIL.DEBUG('Notify_shared_cart:Create_adhoc_entity: done');
5213: END IF;
5214: Else
5215:
5216: l_user_name := 'HZ_PARTY:'||p_quote_access_rec.party_id;

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

5217: l_adhoc_role := l_user_name;
5218:
5219: End If; --create adhoc user or not
5220:
5221: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5222: IBE_UTIL.DEBUG('Notify_shared_cart:l_adhoc role: '||l_adhoc_role);
5223: END IF;
5224:
5225: --Get Access Level Info.

Line 5222: IBE_UTIL.DEBUG('Notify_shared_cart:l_adhoc role: '||l_adhoc_role);

5218:
5219: End If; --create adhoc user or not
5220:
5221: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5222: IBE_UTIL.DEBUG('Notify_shared_cart:l_adhoc role: '||l_adhoc_role);
5223: END IF;
5224:
5225: --Get Access Level Info.
5226: /* IF (p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE = 'A') THEN

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

5232: l_accesslevel := 'Viewer';
5233: END IF;*/
5234:
5235: -- Retrive Actual Message
5236: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5237: IBE_UTIL.DEBUG('Notify_shared_cart:retrieving message mapping');
5238: END IF;
5239:
5240: -- Retrieve the message text for update message from fnd_messages

Line 5237: IBE_UTIL.DEBUG('Notify_shared_cart:retrieving message mapping');

5233: END IF;*/
5234:
5235: -- Retrive Actual Message
5236: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5237: IBE_UTIL.DEBUG('Notify_shared_cart:retrieving message mapping');
5238: END IF;
5239:
5240: -- Retrieve the message text for update message from fnd_messages
5241:

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

5253:
5254: IF x_msg_count > 0 THEN
5255: Raise GET_MESSAGE_ERROR;
5256: END IF;
5257: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5258: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);
5259: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);
5260: END IF;
5261:

Line 5258: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);

5254: IF x_msg_count > 0 THEN
5255: Raise GET_MESSAGE_ERROR;
5256: END IF;
5257: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5258: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);
5259: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);
5260: END IF;
5261:
5262: IF l_msgEnabled = 'Y' THEN

Line 5259: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);

5255: Raise GET_MESSAGE_ERROR;
5256: END IF;
5257: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5258: IBE_UTIL.DEBUG('Notify_shared_cart:Message_name: '||l_messageName);
5259: IBE_UTIL.DEBUG('Notify_shared_cart:l_msgenabled: '||l_msgenabled);
5260: END IF;
5261:
5262: IF l_msgEnabled = 'Y' THEN
5263:

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

5263:
5264: -- Create Item Type and notification Preference
5265: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5266: ||p_quote_access_rec.Quote_sharee_number;
5267: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5268: IBE_UTIL.DEBUG('Notify_shared_cart:Item_key: '||l_item_key);
5269: END IF;
5270: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5271:

Line 5268: IBE_UTIL.DEBUG('Notify_shared_cart:Item_key: '||l_item_key);

5264: -- Create Item Type and notification Preference
5265: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||p_quote_access_rec.Quote_Header_id
5266: ||p_quote_access_rec.Quote_sharee_number;
5267: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5268: IBE_UTIL.DEBUG('Notify_shared_cart:Item_key: '||l_item_key);
5269: END IF;
5270: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5271:
5272: set_item_attributes

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

5281: ,p_cart_name => l_cart_name
5282: ,p_adhoc_role => l_adhoc_role
5283: ,p_notes => p_notes
5284: ,p_notif_context => l_notif_context);
5285: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5286: IBE_UTIL.DEBUG('Notify_shared_cart:Set_item_attributes: Done');
5287: END IF;
5288: END IF; ----l_msgEnabled
5289: END IF; -- l_notifenabled

Line 5286: IBE_UTIL.DEBUG('Notify_shared_cart:Set_item_attributes: Done');

5282: ,p_adhoc_role => l_adhoc_role
5283: ,p_notes => p_notes
5284: ,p_notif_context => l_notif_context);
5285: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5286: IBE_UTIL.DEBUG('Notify_shared_cart:Set_item_attributes: Done');
5287: END IF;
5288: END IF; ----l_msgEnabled
5289: END IF; -- l_notifenabled
5290: EXCEPTION

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

5374: identify_cart_quote(p_quote_header_id => l_quote_access_rec.Quote_Header_id,
5375: x_is_it_quote => l_is_it_quote);
5376:
5377: IF(l_is_it_quote = l_true) THEN
5378: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5379: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5380: END IF;
5381: l_notifName := 'CHANGEACCESSLEVEL_QUOTE';
5382: l_notif_context := 'CHANGEACCESSLEVEL_QUOTE';

Line 5379: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);

5375: x_is_it_quote => l_is_it_quote);
5376:
5377: IF(l_is_it_quote = l_true) THEN
5378: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5379: IBE_UTIL.DEBUG('Notify_shared_cart:l_is_it_quote: '||l_is_it_quote);
5380: END IF;
5381: l_notifName := 'CHANGEACCESSLEVEL_QUOTE';
5382: l_notif_context := 'CHANGEACCESSLEVEL_QUOTE';
5383: ELSE

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

5385: END IF;
5386:
5387:
5388: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5390: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);
5391: END IF;
5392: --l_notifEnabled := 'Y';
5393: If l_notifEnabled = 'Y' Then

Line 5390: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);

5386:
5387:
5388: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5389: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5390: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);
5391: END IF;
5392: --l_notifEnabled := 'Y';
5393: If l_notifEnabled = 'Y' Then
5394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5390: IBE_UTIL.DEBUG('Notify_access_change:l_notifEnabled: '||l_notifEnabled);
5391: END IF;
5392: --l_notifEnabled := 'Y';
5393: If l_notifEnabled = 'Y' Then
5394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5395: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');
5396: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);
5397: END IF;
5398: FOR c_quote_rec In c_quote_header(l_quote_access_rec.Quote_Header_id) LOOP

Line 5395: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');

5391: END IF;
5392: --l_notifEnabled := 'Y';
5393: If l_notifEnabled = 'Y' Then
5394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5395: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');
5396: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);
5397: END IF;
5398: FOR c_quote_rec In c_quote_header(l_quote_access_rec.Quote_Header_id) LOOP
5399: l_owner_partyid := c_quote_rec.party_id;

Line 5396: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);

5392: --l_notifEnabled := 'Y';
5393: If l_notifEnabled = 'Y' Then
5394: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5395: IBE_UTIL.DEBUG('Notify_access_change:Notification enabled');
5396: IBE_UTIL.DEBUG('Notify_access_change:Quote_header_id of shared cart: '||l_quote_access_rec.Quote_Header_id);
5397: END IF;
5398: FOR c_quote_rec In c_quote_header(l_quote_access_rec.Quote_Header_id) LOOP
5399: l_owner_partyid := c_quote_rec.party_id;
5400: l_orgid := c_quote_rec.org_id;

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

5422: x_contact_last_name => l_recepient_last_name,
5423: x_party_id => x_recepient_party_id);
5424:
5425: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5427: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5428: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5429: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5430: END IF;

Line 5427: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);

5423: x_party_id => x_recepient_party_id);
5424:
5425: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5427: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5428: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5429: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5430: END IF;
5431:

Line 5428: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);

5424:
5425: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5427: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5428: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5429: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5430: END IF;
5431:
5432:

Line 5429: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);

5425: l_user_name := 'HZ_PARTY:'||x_recepient_party_id;
5426: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5427: IBE_UTIL.DEBUG('Notify_access_change:recipient first name: '||l_recepient_first_name);
5428: IBE_UTIL.DEBUG('Notify_access_change:recipient last name: '||l_recepient_last_name);
5429: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5430: END IF;
5431:
5432:
5433: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5429: IBE_UTIL.DEBUG('Notify_access_change:recipient party_id: '||x_recepient_party_id);
5430: END IF;
5431:
5432:
5433: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5434: IBE_UTIL.DEBUG('Notify_access_change:Calling locate_contact_point');
5435: END IF;
5436:
5437: locate_contact_point(

Line 5434: IBE_UTIL.DEBUG('Notify_access_change:Calling locate_contact_point');

5430: END IF;
5431:
5432:
5433: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5434: IBE_UTIL.DEBUG('Notify_access_change:Calling locate_contact_point');
5435: END IF;
5436:
5437: locate_contact_point(
5438: p_contact_point_id => l_quote_access_rec.contact_point_id,

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

5437: locate_contact_point(
5438: p_contact_point_id => l_quote_access_rec.contact_point_id,
5439: x_create_adhoc_flag => l_create_adhoc_flag);
5440:
5441: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5442: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);
5443: END IF;
5444: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5445:

Line 5442: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);

5438: p_contact_point_id => l_quote_access_rec.contact_point_id,
5439: x_create_adhoc_flag => l_create_adhoc_flag);
5440:
5441: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5442: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);
5443: END IF;
5444: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5445:
5446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5442: IBE_UTIL.DEBUG('Notify_access_change:l_create_adhoc_flag: '||l_create_adhoc_flag);
5443: END IF;
5444: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5445:
5446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5447: IBE_UTIL.DEBUG('Notify_access_change:Opening c_get_email');
5448: END IF;
5449:
5450: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP

Line 5447: IBE_UTIL.DEBUG('Notify_access_change:Opening c_get_email');

5443: END IF;
5444: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5445:
5446: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5447: IBE_UTIL.DEBUG('Notify_access_change:Opening c_get_email');
5448: END IF;
5449:
5450: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP
5451: l_quote_access_rec.email_contact_address := rec_get_email.email_address;

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

5448: END IF;
5449:
5450: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP
5451: l_quote_access_rec.email_contact_address := rec_get_email.email_address;
5452: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5453: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_quote_access_rec.email_contact_address);
5454: END IF;
5455: EXIT WHEN c_get_email%notfound;
5456: END LOOP;

Line 5453: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_quote_access_rec.email_contact_address);

5449:
5450: FOR rec_get_email in c_get_email(l_quote_access_rec.contact_point_id) LOOP
5451: l_quote_access_rec.email_contact_address := rec_get_email.email_address;
5452: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5453: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_quote_access_rec.email_contact_address);
5454: END IF;
5455: EXIT WHEN c_get_email%notfound;
5456: END LOOP;
5457:

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

5463: ,p_quote_header_id => l_quote_access_rec.quote_header_id
5464: ,p_email_address => l_quote_access_rec.email_contact_address
5465: ,p_Notification_preference => l_notification_preference
5466: ,x_adhoc_role => l_adhoc_role);
5467: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5468: IBE_UTIL.DEBUG('Notify_access_change:Create_adhoc_entity: done');
5469: END IF;
5470:
5471: Else --for create_adhoc_flag

Line 5468: IBE_UTIL.DEBUG('Notify_access_change:Create_adhoc_entity: done');

5464: ,p_email_address => l_quote_access_rec.email_contact_address
5465: ,p_Notification_preference => l_notification_preference
5466: ,x_adhoc_role => l_adhoc_role);
5467: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5468: IBE_UTIL.DEBUG('Notify_access_change:Create_adhoc_entity: done');
5469: END IF;
5470:
5471: Else --for create_adhoc_flag
5472:

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

5474: l_adhoc_role := l_user_name;
5475:
5476: End If; --for create_adhoc_flag
5477:
5478: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5479: IBE_UTIL.DEBUG('Notify_access_change:l_adhoc_role: '||l_adhoc_role);
5480: END IF;
5481:
5482: -- Retrive Actual Message

Line 5479: IBE_UTIL.DEBUG('Notify_access_change:l_adhoc_role: '||l_adhoc_role);

5475:
5476: End If; --for create_adhoc_flag
5477:
5478: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5479: IBE_UTIL.DEBUG('Notify_access_change:l_adhoc_role: '||l_adhoc_role);
5480: END IF;
5481:
5482: -- Retrive Actual Message
5483: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

5495: IF x_msg_count > 0 THEN
5496: Raise GET_MESSAGE_ERROR;
5497: END IF;
5498:
5499: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5500: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);
5501: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);
5502: END IF;
5503:

Line 5500: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);

5496: Raise GET_MESSAGE_ERROR;
5497: END IF;
5498:
5499: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5500: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);
5501: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);
5502: END IF;
5503:
5504: -- Retrieve the message text for update message from fnd_messages

Line 5501: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);

5497: END IF;
5498:
5499: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5500: IBE_UTIL.DEBUG('Notify_access_change:After message mapping call:l_MessageName: '||l_MessageName);
5501: IBE_UTIL.DEBUG('Notify_access_change:l_msgEnabled: '||l_msgEnabled);
5502: END IF;
5503:
5504: -- Retrieve the message text for update message from fnd_messages
5505: fnd_message.set_name('IBE','IBE_PRMT_UPDATE_CART');

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

5511: l_url := l_url||p_quote_access_rec.quote_sharee_number;
5512: -- Create Item Type and notification Preference
5513: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||l_quote_access_rec.Quote_Header_id||
5514: l_quote_access_rec.quote_sharee_number ;
5515: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5516: IBE_UTIL.DEBUG('Notify_access_change:Calling set_item_attributes');
5517: END IF;
5518: set_item_attributes
5519: ( p_item_key => l_item_key

Line 5516: IBE_UTIL.DEBUG('Notify_access_change:Calling set_item_attributes');

5512: -- Create Item Type and notification Preference
5513: l_item_key := l_event_type||'-'||to_char(sysdate,'MMDDYYHH24MISS')||'-'||l_quote_access_rec.Quote_Header_id||
5514: l_quote_access_rec.quote_sharee_number ;
5515: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5516: IBE_UTIL.DEBUG('Notify_access_change:Calling set_item_attributes');
5517: END IF;
5518: set_item_attributes
5519: ( p_item_key => l_item_key
5520: ,p_message_name => l_messagename

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

5527: ,p_cart_name => l_cart_name
5528: ,p_adhoc_role => l_adhoc_role
5529: ,p_notes => p_notes
5530: ,p_notif_context => l_notif_context);
5531: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5532: IBE_UTIL.DEBUG('Notify_access_change:Done calling set_item_attributes');
5533: END IF;
5534: END IF; --l_msgEnabled
5535: END IF; --l_notifenabled

Line 5532: IBE_UTIL.DEBUG('Notify_access_change:Done calling set_item_attributes');

5528: ,p_adhoc_role => l_adhoc_role
5529: ,p_notes => p_notes
5530: ,p_notif_context => l_notif_context);
5531: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5532: IBE_UTIL.DEBUG('Notify_access_change:Done calling set_item_attributes');
5533: END IF;
5534: END IF; --l_msgEnabled
5535: END IF; --l_notifenabled
5536: EXCEPTION

Line 5599: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');

5595: l_notif_name VARCHAR2(1000) := 'IBE_VIEWSHAREDCART';
5596: l_notification_preference WF_USERS.NOTIFICATION_PREFERENCE%TYPE;
5597: BEGIN
5598: x_return_status := FND_API.g_ret_sts_success ;
5599: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');
5600:
5601: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5602: ibe_util.debug('Check if this notification is enabled.');
5603: END IF;

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

5597: BEGIN
5598: x_return_status := FND_API.g_ret_sts_success ;
5599: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');
5600:
5601: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5602: ibe_util.debug('Check if this notification is enabled.');
5603: END IF;
5604:
5605: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);

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

5598: x_return_status := FND_API.g_ret_sts_success ;
5599: IBE_UTIL.DEBUG('Notify_view_shared_cart: START');
5600:
5601: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5602: ibe_util.debug('Check if this notification is enabled.');
5603: END IF;
5604:
5605: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);
5606: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5602: ibe_util.debug('Check if this notification is enabled.');
5603: END IF;
5604:
5605: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);
5606: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5607: ibe_util.debug('Notification Name: '||l_notif_Name||' Enabled: '||l_notif_Enabled);
5608: END IF;
5609:
5610: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');

Line 5607: ibe_util.debug('Notification Name: '||l_notif_Name||' Enabled: '||l_notif_Enabled);

5603: END IF;
5604:
5605: l_notif_Enabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notif_Name);
5606: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5607: ibe_util.debug('Notification Name: '||l_notif_Name||' Enabled: '||l_notif_Enabled);
5608: END IF;
5609:
5610: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5611: locate_contact_point(

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

5613: x_create_adhoc_flag => l_create_adhoc_flag);
5614:
5615:
5616: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5617: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5618: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5619: END IF;
5620:
5621:

Line 5618: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);

5614:
5615:
5616: IF (l_create_adhoc_flag = FND_API.G_TRUE) THEN
5617: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5618: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_create_adhoc_flag: '||l_create_adhoc_flag);
5619: END IF;
5620:
5621:
5622: FOR rec_get_email in c_get_email(p_quote_access_rec.contact_point_id) LOOP

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

5620:
5621:
5622: FOR rec_get_email in c_get_email(p_quote_access_rec.contact_point_id) LOOP
5623: l_email_address := rec_get_email.email_address;
5624: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5625: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_email_address);
5626: END IF;
5627: EXIT WHEN c_get_email%notfound;
5628: END LOOP;

Line 5625: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_email_address);

5621:
5622: FOR rec_get_email in c_get_email(p_quote_access_rec.contact_point_id) LOOP
5623: l_email_address := rec_get_email.email_address;
5624: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5625: IBE_UTIL.DEBUG('Notify_access_change:email address in c_get_email: '||l_email_address);
5626: END IF;
5627: EXIT WHEN c_get_email%notfound;
5628: END LOOP;
5629:

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

5635: ,p_email_address => l_email_address
5636: ,p_Notification_preference => l_notification_preference
5637: ,x_adhoc_role => l_adhoc_role);
5638:
5639: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5640: IBE_UTIL.DEBUG('Notify_view_shared_cart:Create_adhoc_entity: done');
5641: END IF;
5642:
5643: ELSE

Line 5640: IBE_UTIL.DEBUG('Notify_view_shared_cart:Create_adhoc_entity: done');

5636: ,p_Notification_preference => l_notification_preference
5637: ,x_adhoc_role => l_adhoc_role);
5638:
5639: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5640: IBE_UTIL.DEBUG('Notify_view_shared_cart:Create_adhoc_entity: done');
5641: END IF;
5642:
5643: ELSE
5644: l_adhoc_role := 'HZ_PARTY:'||p_quote_access_rec.party_id;

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

5645: END IF;
5646:
5647:
5648: IF l_notif_Enabled = 'Y' THEN
5649: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5650: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5651: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5652: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5653: END IF;

Line 5650: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);

5646:
5647:
5648: IF l_notif_Enabled = 'Y' THEN
5649: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5650: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5651: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5652: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5653: END IF;
5654:

Line 5651: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');

5647:
5648: IF l_notif_Enabled = 'Y' THEN
5649: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5650: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5651: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5652: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5653: END IF;
5654:
5655: Get_Name_details(p_party_id => p_sent_by_party_id,

Line 5652: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);

5648: IF l_notif_Enabled = 'Y' THEN
5649: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5650: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by_party_id: '||p_sent_by_party_id);
5651: IBE_UTIL.DEBUG('Notify_view_shared_cart:Calling get_name_details for the owner');
5652: IBE_UTIL.DEBUG('Notify_view_shared_cart:p_quote_access_rec.party_id '||p_quote_access_rec.party_id);
5653: END IF;
5654:
5655: Get_Name_details(p_party_id => p_sent_by_party_id,
5656: p_user_type => FND_API.G_MISS_CHAR,

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

5657: x_contact_first_name => l_sent_by_first_name,
5658: x_contact_last_name => l_sent_by_last_name,
5659: x_party_id => l_sent_by_party_id);
5660:
5661: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5662: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);
5663: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);
5664: END IF;
5665:

Line 5662: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);

5658: x_contact_last_name => l_sent_by_last_name,
5659: x_party_id => l_sent_by_party_id);
5660:
5661: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5662: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);
5663: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);
5664: END IF;
5665:
5666: FOR rec_quote_name in c_quote_name(p_quote_access_rec.quote_header_id) LOOP

Line 5663: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);

5659: x_party_id => l_sent_by_party_id);
5660:
5661: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5662: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by first name: '||l_sent_by_first_name);
5663: IBE_UTIL.DEBUG('Notify_view_shared_cart:sent_by last name: '||l_sent_by_last_name);
5664: END IF;
5665:
5666: FOR rec_quote_name in c_quote_name(p_quote_access_rec.quote_header_id) LOOP
5667: l_quote_name := rec_quote_name.quote_name;

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

5673: IF ((p_owner_party_id is not null ) AND
5674: (p_owner_party_id <> FND_API.G_MISS_NUM)) THEN
5675: l_url := p_url;
5676: l_access_code :='O';
5677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5678: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_access_code '||l_access_code);
5679: END IF;
5680: ELSE
5681: l_access_code := p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE;

Line 5678: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_access_code '||l_access_code);

5674: (p_owner_party_id <> FND_API.G_MISS_NUM)) THEN
5675: l_url := p_url;
5676: l_access_code :='O';
5677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5678: IBE_UTIL.DEBUG('Notify_view_shared_cart:l_access_code '||l_access_code);
5679: END IF;
5680: ELSE
5681: l_access_code := p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE;
5682: l_url := p_url;

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

5682: l_url := p_url;
5683: l_url := l_url|| p_quote_access_rec.quote_sharee_number;
5684: END IF;
5685:
5686: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5687: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);
5688: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');
5689: END IF;
5690:

Line 5687: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);

5683: l_url := l_url|| p_quote_access_rec.quote_sharee_number;
5684: END IF;
5685:
5686: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5687: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);
5688: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');
5689: END IF;
5690:
5691: l_org_Id := MO_GLOBAL.get_current_org_id();

Line 5688: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');

5684: END IF;
5685:
5686: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5687: IBE_UTIL.DEBUG('Notify_view_shared_cart:quote name: '||l_quote_name);
5688: IBE_UTIL.DEBUG('Notify_view_shared_cart:retrieving message mapping');
5689: END IF;
5690:
5691: l_org_Id := MO_GLOBAL.get_current_org_id();
5692: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

5703:
5704: IF x_msg_count > 0 Then
5705: Raise GET_MESSAGE_ERROR;
5706: END IF;
5707: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5708: ibe_util.debug('Message Name: '||l_msg_name||' Enabled: '||l_msg_Enabled);
5709: END IF;
5710:
5711: IF l_msg_Enabled = 'Y' THEN

Line 5708: ibe_util.debug('Message Name: '||l_msg_name||' Enabled: '||l_msg_Enabled);

5704: IF x_msg_count > 0 Then
5705: Raise GET_MESSAGE_ERROR;
5706: END IF;
5707: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5708: ibe_util.debug('Message Name: '||l_msg_name||' Enabled: '||l_msg_Enabled);
5709: END IF;
5710:
5711: IF l_msg_Enabled = 'Y' THEN
5712: IF (p_quote_access_rec.Quote_sharee_number is not null AND

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

5718: END IF;
5719:
5720: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5721:
5722: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5723: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);
5724: ibe_util.debug('ready to create process');
5725: END IF;
5726:

Line 5723: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);

5719:
5720: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5721:
5722: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5723: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);
5724: ibe_util.debug('ready to create process');
5725: END IF;
5726:
5727: wf_engine.CreateProcess(

Line 5724: ibe_util.debug('ready to create process');

5720: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
5721:
5722: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5723: ibe_util.debug('view_shared_cart:item_key: '||l_item_key);
5724: ibe_util.debug('ready to create process');
5725: END IF;
5726:
5727: wf_engine.CreateProcess(
5728: itemtype => g_ItemType,

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

5770: itemkey => l_item_key,
5771: aname => 'CARTNAME',
5772: avalue => l_quote_name);
5773:
5774: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5775: IBE_UTIL.DEBUG('Notify_view_shared_cart:ACCESSCODE: '||p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE);
5776: END IF;
5777: wf_engine.SetItemAttrText(
5778: itemtype => g_ItemType,

Line 5775: IBE_UTIL.DEBUG('Notify_view_shared_cart:ACCESSCODE: '||p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE);

5771: aname => 'CARTNAME',
5772: avalue => l_quote_name);
5773:
5774: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5775: IBE_UTIL.DEBUG('Notify_view_shared_cart:ACCESSCODE: '||p_quote_access_rec.UPDATE_PRIVILEGE_TYPE_CODE);
5776: END IF;
5777: wf_engine.SetItemAttrText(
5778: itemtype => g_ItemType,
5779: itemkey => l_item_key,

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

5824: wf_engine.StartProcess(
5825: itemtype => g_ItemType,
5826: itemkey => l_item_key);
5827:
5828: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5829: IBE_UTIL.DEBUG('Process Started');
5830: END IF;
5831:
5832: END IF;

Line 5829: IBE_UTIL.DEBUG('Process Started');

5825: itemtype => g_ItemType,
5826: itemkey => l_item_key);
5827:
5828: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5829: IBE_UTIL.DEBUG('Process Started');
5830: END IF;
5831:
5832: END IF;
5833: END IF;

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

5924: BEGIN
5925: x_return_status := FND_API.g_ret_sts_success;
5926:
5927: -- Check for WorkFlow Feature Availablity.
5928: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5929: ibe_util.debug('Check if this notification is enabled.');
5930: END IF;
5931: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5932: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5925: x_return_status := FND_API.g_ret_sts_success;
5926:
5927: -- Check for WorkFlow Feature Availablity.
5928: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5929: ibe_util.debug('Check if this notification is enabled.');
5930: END IF;
5931: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5932: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5933: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);

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

5928: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5929: ibe_util.debug('Check if this notification is enabled.');
5930: END IF;
5931: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5932: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5933: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
5934: END IF;
5935: If l_notifEnabled = 'Y' Then
5936: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP

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

5929: ibe_util.debug('Check if this notification is enabled.');
5930: END IF;
5931: l_notifEnabled := IBE_WF_NOTIF_SETUP_PVT.Check_Notif_Enabled(l_notifName);
5932: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5933: ibe_util.debug('Notification Name: '||l_notifName||' Enabled: '||l_notifEnabled);
5934: END IF;
5935: If l_notifEnabled = 'Y' Then
5936: FOR c_quote_rec In c_quote_header(p_Quote_Header_id) LOOP
5937: l_user_name :='HZ_PARTY:'||c_quote_rec.party_id;

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

5950:
5951: GetLastName (p_Quote_Header_id, null,
5952: l_last_name_sc,
5953: l_dummy_document_type);
5954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5955: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));
5956: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
5957: END IF;
5958:

Line 5955: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));

5951: GetLastName (p_Quote_Header_id, null,
5952: l_last_name_sc,
5953: l_dummy_document_type);
5954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5955: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));
5956: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
5957: END IF;
5958:
5959: getUserType(l_partyId,l_UserType);

Line 5956: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);

5952: l_last_name_sc,
5953: l_dummy_document_type);
5954: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5955: ibe_util.debug('Sharee First Name: '||nvl(l_first_name_sc,'noname'));
5956: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
5957: END IF;
5958:
5959: getUserType(l_partyId,l_UserType);
5960: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

5956: ibe_util.debug('Sharee Last Name: '||l_last_name_sc);
5957: END IF;
5958:
5959: getUserType(l_partyId,l_UserType);
5960: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5961: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
5962: ||' User Type: '||l_userType);
5963: END IF;
5964: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping

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

5957: END IF;
5958:
5959: getUserType(l_partyId,l_UserType);
5960: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5961: ibe_util.debug('Get Message - MsiteId: '||to_Char(p_msite_id)||' Org_id: '||to_char(l_orgId)
5962: ||' User Type: '||l_userType);
5963: END IF;
5964: IBE_WF_MSG_MAPPING_PVT.Retrieve_Msg_Mapping
5965: (

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

5972: x_return_status => x_return_status,
5973: x_msg_data => x_msg_data,
5974: x_msg_count => x_msg_data);
5975:
5976: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5977: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
5978: END IF;
5979: If x_msg_count > 0 Then
5980: Raise GET_MESSAGE_ERROR;

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

5973: x_msg_data => x_msg_data,
5974: x_msg_count => x_msg_data);
5975:
5976: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
5977: ibe_util.debug('Message Name: '||l_MessageName||' Enabled: '||l_msgEnabled);
5978: END IF;
5979: If x_msg_count > 0 Then
5980: Raise GET_MESSAGE_ERROR;
5981: End if;

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

6008: l_adhoc_role := l_user_name;
6009: End If;
6010:
6011:
6012: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6013: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
6014: END IF;
6015:
6016: wf_engine.CreateProcess(

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

6009: End If;
6010:
6011:
6012: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6013: ibe_util.debug('Create and Start Process with Item Key: '||l_item_key);
6014: END IF;
6015:
6016: wf_engine.CreateProcess(
6017: itemtype => g_ItemType,

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

6114: wf_engine.StartProcess(
6115: itemtype => g_ItemType,
6116: itemkey => l_item_key);
6117:
6118: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6119: ibe_util.debug('Process Started');
6120: END IF;
6121:
6122: End If;

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

6115: itemtype => g_ItemType,
6116: itemkey => l_item_key);
6117:
6118: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6119: ibe_util.debug('Process Started');
6120: END IF;
6121:
6122: End If;
6123: End If;

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

6180: p_string_out := rpad(p_string_out,20,' ');
6181: END IF;
6182: p_string_left := substr(p_string_in,l_pos+1,length(p_string_in)-l_pos);
6183: END IF;
6184: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6185: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);
6186: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);
6187: END IF;
6188: END ParseThisString;

Line 6185: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);

6181: END IF;
6182: p_string_left := substr(p_string_in,l_pos+1,length(p_string_in)-l_pos);
6183: END IF;
6184: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6185: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);
6186: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);
6187: END IF;
6188: END ParseThisString;
6189:

Line 6186: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);

6182: p_string_left := substr(p_string_in,l_pos+1,length(p_string_in)-l_pos);
6183: END IF;
6184: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6185: ibe_util.debug('ParseThisString - p_string_out - '||p_string_out);
6186: ibe_util.debug('ParseThisString - p_string_left - '||p_string_left);
6187: END IF;
6188: END ParseThisString;
6189:
6190: PROCEDURE ParseThisString1 (

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

6309: aname => 'ORDERID'
6310: );
6311:
6312:
6313: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6314: ibe_util.debug('GenerateHeader - l_event_type -'|| l_event_type);
6315: END IF;
6316:
6317: OPEN c_order_header(l_order_id);

Line 6314: ibe_util.debug('GenerateHeader - l_event_type -'|| l_event_type);

6310: );
6311:
6312:
6313: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6314: ibe_util.debug('GenerateHeader - l_event_type -'|| l_event_type);
6315: END IF;
6316:
6317: OPEN c_order_header(l_order_id);
6318: LOOP

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

6456: l_temp_str := null;
6457: l_temp_str := fnd_message.get;
6458: l_document := l_document || l_temp_str ||TAB||TAB || NEWLINE ;
6459: l_document := l_document ||TAB||TAB||TAB|| l_errmsg_data ||NEWLINE;
6460: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6461: ibe_util.debug('Error Message '|| l_errmsg_data);
6462: END IF;
6463: -- ELSE
6464: -- null;

Line 6461: ibe_util.debug('Error Message '|| l_errmsg_data);

6457: l_temp_str := fnd_message.get;
6458: l_document := l_document || l_temp_str ||TAB||TAB || NEWLINE ;
6459: l_document := l_document ||TAB||TAB||TAB|| l_errmsg_data ||NEWLINE;
6460: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6461: ibe_util.debug('Error Message '|| l_errmsg_data);
6462: END IF;
6463: -- ELSE
6464: -- null;
6465: --END IF;

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

6468: CLOSE c_order_header;
6469:
6470:
6471:
6472: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6473: ibe_util.debug('GenerateHeader - l_document - '||NEWLINE|| l_document);
6474: END IF;
6475: l_document := l_document||NEWLINE;
6476: document := l_document;

Line 6473: ibe_util.debug('GenerateHeader - l_document - '||NEWLINE|| l_document);

6469:
6470:
6471:
6472: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6473: ibe_util.debug('GenerateHeader - l_document - '||NEWLINE|| l_document);
6474: END IF;
6475: l_document := l_document||NEWLINE;
6476: document := l_document;
6477:

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

6538: BEGIN
6539:
6540: l_item_key := document_id;
6541:
6542: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6543: ibe_util.debug('GenerateAssistHeader - l_item_key - '||l_item_key);
6544: END IF;
6545:
6546: l_quote_id := wf_engine.GetItemAttrText (

Line 6543: ibe_util.debug('GenerateAssistHeader - l_item_key - '||l_item_key);

6539:
6540: l_item_key := document_id;
6541:
6542: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6543: ibe_util.debug('GenerateAssistHeader - l_item_key - '||l_item_key);
6544: END IF;
6545:
6546: l_quote_id := wf_engine.GetItemAttrText (
6547: itemtype => g_itemType,

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

6547: itemtype => g_itemType,
6548: itemkey => l_item_key,
6549: aname => 'QUOTEID');
6550:
6551: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6552: ibe_util.debug('GenerateAssistHeader - l_quote_id - '||l_quote_id);
6553: END IF;
6554:
6555: l_order_id := wf_engine.GetItemAttrText (

Line 6552: ibe_util.debug('GenerateAssistHeader - l_quote_id - '||l_quote_id);

6548: itemkey => l_item_key,
6549: aname => 'QUOTEID');
6550:
6551: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6552: ibe_util.debug('GenerateAssistHeader - l_quote_id - '||l_quote_id);
6553: END IF;
6554:
6555: l_order_id := wf_engine.GetItemAttrText (
6556: itemtype => g_itemType,

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

6556: itemtype => g_itemType,
6557: itemkey => l_item_key,
6558: aname => 'ORDERID');
6559:
6560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6561: ibe_util.debug('GenerateHeader - l_order_id - '||l_order_id);
6562: END IF;
6563:
6564: l_event_type := wf_engine.GetItemAttrText (

Line 6561: ibe_util.debug('GenerateHeader - l_order_id - '||l_order_id);

6557: itemkey => l_item_key,
6558: aname => 'ORDERID');
6559:
6560: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6561: ibe_util.debug('GenerateHeader - l_order_id - '||l_order_id);
6562: END IF;
6563:
6564: l_event_type := wf_engine.GetItemAttrText (
6565: itemtype => g_itemType,

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

6570: itemtype => g_itemType,
6571: itemkey => l_item_key,
6572: aname => 'COMMENTS');
6573:
6574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6575: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);
6576: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);
6577: END IF;
6578:

Line 6575: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);

6571: itemkey => l_item_key,
6572: aname => 'COMMENTS');
6573:
6574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6575: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);
6576: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);
6577: END IF;
6578:
6579: OPEN c_order_header(l_order_id);

Line 6576: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);

6572: aname => 'COMMENTS');
6573:
6574: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6575: ibe_util.debug('GenerateAssistHeader - l_event_type - '|| l_event_type);
6576: ibe_util.debug('GenerateAssistHeader - l_event_type -'|| l_event_type);
6577: END IF;
6578:
6579: OPEN c_order_header(l_order_id);
6580: LOOP

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

6600: l_contact_party_id := g_header_rec.party_id;
6601: End If;
6602: END LOOP;
6603:
6604: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6605: ibe_util.debug('GenerateAssistHeader - l_contact_name '|| l_contact_name);
6606: END IF;
6607:
6608: l_contact_number := NULL;

Line 6605: ibe_util.debug('GenerateAssistHeader - l_contact_name '|| l_contact_name);

6601: End If;
6602: END LOOP;
6603:
6604: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6605: ibe_util.debug('GenerateAssistHeader - l_contact_name '|| l_contact_name);
6606: END IF;
6607:
6608: l_contact_number := NULL;
6609: l_contact_email := NULL;

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

6628: End If;
6629:
6630: END LOOP;
6631:
6632: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6633: ibe_util.debug('GenerateAssistHeader - l_contact_number - '|| l_contact_number);
6634: END IF;
6635:
6636: l_ship_address := rtrim(g_header_rec.ship_to_address1) ||' '||rtrim(g_header_rec.ship_to_address2) ||' '||

Line 6633: ibe_util.debug('GenerateAssistHeader - l_contact_number - '|| l_contact_number);

6629:
6630: END LOOP;
6631:
6632: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6633: ibe_util.debug('GenerateAssistHeader - l_contact_number - '|| l_contact_number);
6634: END IF;
6635:
6636: l_ship_address := rtrim(g_header_rec.ship_to_address1) ||' '||rtrim(g_header_rec.ship_to_address2) ||' '||
6637: rtrim(g_header_rec.ship_to_address3) ||' '||rtrim(g_header_rec.ship_to_address4) ;

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

6638:
6639: l_bill_address := rtrim(g_header_rec.bill_to_address1) ||' '||rtrim(g_header_rec.bill_to_address2) ||' '||
6640: rtrim(g_header_rec.bill_to_address3) ||' '||rtrim(g_header_rec.bill_to_address4) ;
6641:
6642: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6643: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);
6644: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);
6645: END IF;
6646:

Line 6643: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);

6639: l_bill_address := rtrim(g_header_rec.bill_to_address1) ||' '||rtrim(g_header_rec.bill_to_address2) ||' '||
6640: rtrim(g_header_rec.bill_to_address3) ||' '||rtrim(g_header_rec.bill_to_address4) ;
6641:
6642: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6643: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);
6644: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);
6645: END IF;
6646:
6647: For c_ship_method_rec in c_ship_methods(g_header_rec.shipping_method_code) LOOP

Line 6644: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);

6640: rtrim(g_header_rec.bill_to_address3) ||' '||rtrim(g_header_rec.bill_to_address4) ;
6641:
6642: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6643: ibe_util.debug('GenerateAssistHeader - l_bill_address - '|| l_bill_address);
6644: ibe_util.debug('GenerateAssistHeader - l_ship_address - '|| l_ship_address);
6645: END IF;
6646:
6647: For c_ship_method_rec in c_ship_methods(g_header_rec.shipping_method_code) LOOP
6648: l_Ship_Method := c_ship_method_rec.Meaning;

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

6854: END IF;
6855: END LOOP;
6856: CLOSE c_order_header;
6857:
6858: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6859: ibe_util.debug('GenerateAssistHeader - l_document - '||NEWLINE|| l_document);
6860: END IF;
6861:
6862: document := l_document;

Line 6859: ibe_util.debug('GenerateAssistHeader - l_document - '||NEWLINE|| l_document);

6855: END LOOP;
6856: CLOSE c_order_header;
6857:
6858: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
6859: ibe_util.debug('GenerateAssistHeader - l_document - '||NEWLINE|| l_document);
6860: END IF;
6861:
6862: document := l_document;
6863:

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

7295:
7296: -- ord_detail_rec order_details_rec_type;
7297: BEGIN
7298:
7299: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7300: IBE_UTIL.DEBUG('Generate_detail:START');
7301: END IF;
7302: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7303: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);

Line 7300: IBE_UTIL.DEBUG('Generate_detail:START');

7296: -- ord_detail_rec order_details_rec_type;
7297: BEGIN
7298:
7299: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7300: IBE_UTIL.DEBUG('Generate_detail:START');
7301: END IF;
7302: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7303: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);
7304: l_item_key := p_item_key;

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

7301: END IF;
7302: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7303: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);
7304: l_item_key := p_item_key;
7305: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7306: ibe_util.debug('Generate_Detail - l_item_key - '||l_item_key);
7307: END IF;
7308:
7309: l_quote_id := wf_engine.GetItemAttrText (

Line 7306: ibe_util.debug('Generate_Detail - l_item_key - '||l_item_key);

7302: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7303: ----DBMS_OUTPUT.PUT('Tax flag is: '||p_tax_flag);
7304: l_item_key := p_item_key;
7305: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7306: ibe_util.debug('Generate_Detail - l_item_key - '||l_item_key);
7307: END IF;
7308:
7309: l_quote_id := wf_engine.GetItemAttrText (
7310: itemtype => g_itemType,

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

7310: itemtype => g_itemType,
7311: itemkey => l_item_key,
7312: aname => 'QUOTEID'
7313: );
7314: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7315: ibe_util.debug('Generate_Detail - l_quote_id - '||l_quote_id);
7316: END IF;
7317: l_order_id := wf_engine.GetItemAttrText (
7318: itemtype => g_itemType,

Line 7315: ibe_util.debug('Generate_Detail - l_quote_id - '||l_quote_id);

7311: itemkey => l_item_key,
7312: aname => 'QUOTEID'
7313: );
7314: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7315: ibe_util.debug('Generate_Detail - l_quote_id - '||l_quote_id);
7316: END IF;
7317: l_order_id := wf_engine.GetItemAttrText (
7318: itemtype => g_itemType,
7319: itemkey => l_item_key,

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

7318: itemtype => g_itemType,
7319: itemkey => l_item_key,
7320: aname => 'ORDERID'
7321: );
7322: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7323: ibe_util.debug('Generate_Detail - l_order_id - '||l_order_id);
7324: END IF;
7325: l_event_type := wf_engine.GetItemAttrText (
7326: itemtype => g_itemType,

Line 7323: ibe_util.debug('Generate_Detail - l_order_id - '||l_order_id);

7319: itemkey => l_item_key,
7320: aname => 'ORDERID'
7321: );
7322: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7323: ibe_util.debug('Generate_Detail - l_order_id - '||l_order_id);
7324: END IF;
7325: l_event_type := wf_engine.GetItemAttrText (
7326: itemtype => g_itemType,
7327: itemkey => l_item_key,

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

7326: itemtype => g_itemType,
7327: itemkey => l_item_key,
7328: aname => 'EVENTTYPE'
7329: );
7330: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7331: ibe_util.debug('Generate_Detail - l_event_type - '|| l_event_type);
7332: END IF;
7333:
7334:

Line 7331: ibe_util.debug('Generate_Detail - l_event_type - '|| l_event_type);

7327: itemkey => l_item_key,
7328: aname => 'EVENTTYPE'
7329: );
7330: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7331: ibe_util.debug('Generate_Detail - l_event_type - '|| l_event_type);
7332: END IF;
7333:
7334:
7335: l_view_net_price_flag := wf_engine.GetItemAttrText (

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

7352: For curr_sym_rec In c_curr_symbol(g_quote_header_rec.currency_code)
7353: Loop
7354: l_curr_sym := trim(nvl(curr_sym_rec.symbol,' '));
7355: g_curr_sym := l_curr_sym;
7356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7357: IBE_UTIL.DEBUG('currency symbol is: '||nvl(l_curr_sym,'nothing'));
7358: END IF;
7359: End Loop;
7360: END IF;

Line 7357: IBE_UTIL.DEBUG('currency symbol is: '||nvl(l_curr_sym,'nothing'));

7353: Loop
7354: l_curr_sym := trim(nvl(curr_sym_rec.symbol,' '));
7355: g_curr_sym := l_curr_sym;
7356: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7357: IBE_UTIL.DEBUG('currency symbol is: '||nvl(l_curr_sym,'nothing'));
7358: END IF;
7359: End Loop;
7360: END IF;
7361: End Loop;

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

7359: End Loop;
7360: END IF;
7361: End Loop;
7362: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7363: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7364: ibe_util.debug('p_quote_flag '||p_quote_flag);
7365: END IF;
7366: --Get Display Option class profile value
7367: l_displayOptionClass := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DISPLAY_OPTION_CLASSES',null,null,671), 'Y');

Line 7364: ibe_util.debug('p_quote_flag '||p_quote_flag);

7360: END IF;
7361: End Loop;
7362: ----DBMS_OUTPUT.PUT('Quote flag is: '||p_quote_flag);
7363: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7364: ibe_util.debug('p_quote_flag '||p_quote_flag);
7365: END IF;
7366: --Get Display Option class profile value
7367: l_displayOptionClass := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DISPLAY_OPTION_CLASSES',null,null,671), 'Y');
7368: l_displayUnchangedItem := NVL( FND_PROFILE.VALUE_SPECIFIC('CZ_OUTPUT_IB_UNCHD_CHILD_ITEMS',null,null,671), 'Y');

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

7412: END LOOP;
7413: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7414: --Order details content generation
7415: Elsif(p_quote_flag = fnd_api.g_false) then
7416: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7417: IBE_UTIL.debug('p_quote_flag is false, entering the order area');
7418: END IF;
7419: --Begin New Order Generate Detail
7420: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP

Line 7417: IBE_UTIL.debug('p_quote_flag is false, entering the order area');

7413: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7414: --Order details content generation
7415: Elsif(p_quote_flag = fnd_api.g_false) then
7416: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7417: IBE_UTIL.debug('p_quote_flag is false, entering the order area');
7418: END IF;
7419: --Begin New Order Generate Detail
7420: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP
7421: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

7417: IBE_UTIL.debug('p_quote_flag is false, entering the order area');
7418: END IF;
7419: --Begin New Order Generate Detail
7420: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP
7421: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7422: IBE_UTIL.debug('Notif Order Line not null');
7423: END IF;
7424: if(g_notif_order_line_rec.config_instance_name is not null) then
7425: notif_line_tbl(l_index).Product := g_notif_order_line_rec.description||':'||g_notif_order_line_rec.config_instance_name;

Line 7422: IBE_UTIL.debug('Notif Order Line not null');

7418: END IF;
7419: --Begin New Order Generate Detail
7420: FOR g_notif_order_line_rec IN c_get_top_order_lines(l_order_id) LOOP
7421: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7422: IBE_UTIL.debug('Notif Order Line not null');
7423: END IF;
7424: if(g_notif_order_line_rec.config_instance_name is not null) then
7425: notif_line_tbl(l_index).Product := g_notif_order_line_rec.description||':'||g_notif_order_line_rec.config_instance_name;
7426: else

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

7459: END IF;--Hide Option class and Unchanged Lines
7460: END LOOP;
7461: END IF;
7462: if(g_notif_order_line_rec.item_type_code = 'KIT') then
7463: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7464: IBE_UTIL.Debug('Kit found here: Need to do changes');
7465: END IF;
7466: 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
7467: notif_line_tbl(l_index).NetAmount := notif_line_tbl(l_index).NetAmount + g_notif_config_orderline_rec.lines_total;

Line 7464: IBE_UTIL.Debug('Kit found here: Need to do changes');

7460: END LOOP;
7461: END IF;
7462: if(g_notif_order_line_rec.item_type_code = 'KIT') then
7463: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7464: IBE_UTIL.Debug('Kit found here: Need to do changes');
7465: END IF;
7466: 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
7467: notif_line_tbl(l_index).NetAmount := notif_line_tbl(l_index).NetAmount + g_notif_config_orderline_rec.lines_total;
7468: notif_line_tbl(l_index).TaxAmount := notif_line_tbl(l_index).NetAmount + g_notif_config_orderline_rec.lines_total;

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

7473: --End New Order Generate Detail
7474: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7475: END IF; --for l_quote_flag
7476: x_document := l_document;
7477: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7478: ibe_util.debug('Generate_Detail - l_document - ' ||NEWLINE||l_document);
7479: END IF;
7480: END;
7481:

Line 7478: ibe_util.debug('Generate_Detail - l_document - ' ||NEWLINE||l_document);

7474: l_document := buildDocument(notif_line_tbl,l_view_net_price_flag,l_view_line_type_flag,p_tax_flag);
7475: END IF; --for l_quote_flag
7476: x_document := l_document;
7477: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7478: ibe_util.debug('Generate_Detail - l_document - ' ||NEWLINE||l_document);
7479: END IF;
7480: END;
7481:
7482: /********************************************************

Line 7703: l_can_qty := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).returned_quantity));

7699: l_document := l_document || rpad(to_char(ord_detail_tbl(i).source_order_number),9)||' ';
7700: ELSE
7701: l_document := l_document || rpad(' ',10);
7702: END IF;
7703: l_can_qty := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).returned_quantity));
7704: l_document := l_document || rpad(to_char(to_number(l_can_qty)),5)||' ';
7705:
7706: l_view_net_price_flag:= wf_engine.GetItemAttrText (
7707: itemtype => g_itemType,

Line 7715: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).lines_total));

7711: IF l_view_net_price_flag = 'Y' THEN
7712: IF (to_char(ord_detail_tbl(i).lines_total) is null) THEN
7713: l_document := l_document || lpad(' ' || to_char(to_number(ord_detail_tbl(i).lines_total),l_amt_format), 14, ' ');
7714: ELSE
7715: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).lines_total));
7716: l_document := l_document || lpad(l_curr_sym || to_char(to_number(l_can_amt),l_amt_format), 14, ' ')||' ';
7717: END IF;
7718: END IF;
7719: IF (ord_detail_tbl(i).return_reason_code is not NULL) THEN

Line 7814: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).taxes_total));

7810: IF (to_char(ord_detail_tbl(i).taxes_total) is not null) THEN
7811: --l_document := l_document ||
7812: --lpad(l_temp_str||': '||' '|| to_char(to_number(ord_detail_tbl(i).taxes_total),l_amt_format),72,' ')||NEWLINE;
7813: --ELSE
7814: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(ord_detail_tbl(i).taxes_total));
7815: l_document := l_document ||
7816: lpad(l_temp_str||': '||l_curr_sym|| to_char(to_number(l_can_amt),l_amt_format),59,' ')||NEWLINE;
7817: END IF;
7818: END IF;

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

7842:
7843: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
7844: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
7845: BEGIN
7846: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7847: IBE_UTIL.DEBUG('Generate_order_Detail_wtax:START');
7848: END IF;
7849: ibe_workflow_pvt.Generate_Detail(
7850: P_item_key => document_id,

Line 7847: IBE_UTIL.DEBUG('Generate_order_Detail_wtax:START');

7843: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
7844: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
7845: BEGIN
7846: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7847: IBE_UTIL.DEBUG('Generate_order_Detail_wtax:START');
7848: END IF;
7849: ibe_workflow_pvt.Generate_Detail(
7850: P_item_key => document_id,
7851: p_quote_flag => l_quote_flag,

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

7860: END IF;
7861:
7862: EXCEPTION
7863: WHEN OTHERS THEN
7864: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7865: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_wtax');
7866: END IF;
7867:
7868: END;

Line 7865: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_wtax');

7861:
7862: EXCEPTION
7863: WHEN OTHERS THEN
7864: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7865: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_wtax');
7866: END IF;
7867:
7868: END;
7869: /********************************************************

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

7905: END IF;
7906:
7907: EXCEPTION
7908: WHEN OTHERS THEN
7909: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7910: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_wtax');
7911: END IF;
7912:
7913: END Generate_Rtn_ord_Detail_wtax ;

Line 7910: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_wtax');

7906:
7907: EXCEPTION
7908: WHEN OTHERS THEN
7909: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7910: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_wtax');
7911: END IF;
7912:
7913: END Generate_Rtn_ord_Detail_wtax ;
7914:

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

7926:
7927: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
7928: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
7929: BEGIN
7930: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7931: IBE_UTIL.DEBUG('Generate_quote_Detail_wtax:START');
7932: END IF;
7933: ibe_workflow_pvt.Generate_Detail(
7934: P_item_key => document_id,

Line 7931: IBE_UTIL.DEBUG('Generate_quote_Detail_wtax:START');

7927: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
7928: L_tax_flag VARCHAR2(1) := fnd_api.g_true;
7929: BEGIN
7930: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7931: IBE_UTIL.DEBUG('Generate_quote_Detail_wtax:START');
7932: END IF;
7933: ibe_workflow_pvt.Generate_Detail(
7934: P_item_key => document_id,
7935: p_quote_flag => l_quote_flag,

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

7944: END IF;
7945:
7946: EXCEPTION
7947: WHEN OTHERS THEN
7948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7949: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_wtax');
7950: END IF;
7951:
7952: END;

Line 7949: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_wtax');

7945:
7946: EXCEPTION
7947: WHEN OTHERS THEN
7948: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7949: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_wtax');
7950: END IF;
7951:
7952: END;
7953: --Added by mannamra

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

7962:
7963: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
7964: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
7965: BEGIN
7966: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7967: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
7968: END IF;
7969: ----DBMS_OUTPUT.PUT('Generate_order_Detail_notax:START');
7970: ibe_workflow_pvt.Generate_Detail(

Line 7967: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');

7963: L_quote_flag VARCHAR2(1) := fnd_api.g_false;
7964: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
7965: BEGIN
7966: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7967: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
7968: END IF;
7969: ----DBMS_OUTPUT.PUT('Generate_order_Detail_notax:START');
7970: ibe_workflow_pvt.Generate_Detail(
7971: P_item_key => document_id,

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

7980: document_type := 'text/plain';
7981: END IF;
7982: EXCEPTION
7983: WHEN OTHERS THEN
7984: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7985: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_notax');
7986: END IF;
7987:
7988: END;

Line 7985: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_notax');

7981: END IF;
7982: EXCEPTION
7983: WHEN OTHERS THEN
7984: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
7985: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_order_Detail_notax');
7986: END IF;
7987:
7988: END;
7989:

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

8026: END IF;
8027:
8028: EXCEPTION
8029: WHEN OTHERS THEN
8030: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8031: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_notax');
8032: END IF;
8033:
8034: END Generate_Rtn_ord_Detail_notax;

Line 8031: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_notax');

8027:
8028: EXCEPTION
8029: WHEN OTHERS THEN
8030: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8031: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_rtn_ord_Detail_notax');
8032: END IF;
8033:
8034: END Generate_Rtn_ord_Detail_notax;
8035:

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

8047:
8048: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
8049: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
8050: BEGIN
8051: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8052: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
8053: END IF;
8054: ibe_workflow_pvt.Generate_Detail(
8055: P_item_key => document_id,

Line 8052: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');

8048: L_quote_flag VARCHAR2(1) := fnd_api.g_true;
8049: L_tax_flag VARCHAR2(1) := fnd_api.g_false;
8050: BEGIN
8051: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8052: IBE_UTIL.DEBUG('Generate_order_Detail_notax:START');
8053: END IF;
8054: ibe_workflow_pvt.Generate_Detail(
8055: P_item_key => document_id,
8056: p_quote_flag => l_quote_flag,

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

8065: END IF;
8066:
8067: EXCEPTION
8068: WHEN OTHERS THEN
8069: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8070: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_notax');
8071: END IF;
8072:
8073: END;

Line 8070: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_notax');

8066:
8067: EXCEPTION
8068: WHEN OTHERS THEN
8069: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8070: IBE_UTIL.DEBUG('Unidentified error in ibe_workflow_pvt.Generate_quote_Detail_notax');
8071: END IF;
8072:
8073: END;
8074: --existing API

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

8108: BEGIN
8109:
8110: l_item_key := document_id;
8111: ----DBMS_OUTPUT.PUT('Calling GenerateDetail - l_item_key - '||l_item_key);
8112: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8113: ibe_util.debug('GenerateDetail - l_item_key - '||l_item_key);
8114: END IF;
8115:
8116: l_quote_id := wf_engine.GetItemAttrText (

Line 8113: ibe_util.debug('GenerateDetail - l_item_key - '||l_item_key);

8109:
8110: l_item_key := document_id;
8111: ----DBMS_OUTPUT.PUT('Calling GenerateDetail - l_item_key - '||l_item_key);
8112: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8113: ibe_util.debug('GenerateDetail - l_item_key - '||l_item_key);
8114: END IF;
8115:
8116: l_quote_id := wf_engine.GetItemAttrText (
8117: itemtype => g_itemType,

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

8117: itemtype => g_itemType,
8118: itemkey => l_item_key,
8119: aname => 'QUOTEID'
8120: );
8121: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8122: ibe_util.debug('GenerateDetail - l_quote_id - '||l_quote_id);
8123: END IF;
8124:
8125: l_order_id := wf_engine.GetItemAttrText (

Line 8122: ibe_util.debug('GenerateDetail - l_quote_id - '||l_quote_id);

8118: itemkey => l_item_key,
8119: aname => 'QUOTEID'
8120: );
8121: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8122: ibe_util.debug('GenerateDetail - l_quote_id - '||l_quote_id);
8123: END IF;
8124:
8125: l_order_id := wf_engine.GetItemAttrText (
8126: itemtype => g_itemType,

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

8127: itemkey => l_item_key,
8128: aname => 'ORDERID'
8129: );
8130:
8131: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8132: ibe_util.debug('GenerateDetail - l_order_id - '||l_order_id);
8133: END IF;
8134:
8135:

Line 8132: ibe_util.debug('GenerateDetail - l_order_id - '||l_order_id);

8128: aname => 'ORDERID'
8129: );
8130:
8131: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8132: ibe_util.debug('GenerateDetail - l_order_id - '||l_order_id);
8133: END IF;
8134:
8135:
8136: l_event_type := wf_engine.GetItemAttrText (

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

8146: aname => 'VIEWNETPRICE'
8147: );
8148:
8149:
8150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8151: ibe_util.debug('GenerateDetail - l_event_type - '|| l_event_type);
8152: END IF;
8153:
8154: IF l_view_net_price_flag = 'Y' THEN

Line 8151: ibe_util.debug('GenerateDetail - l_event_type - '|| l_event_type);

8147: );
8148:
8149:
8150: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8151: ibe_util.debug('GenerateDetail - l_event_type - '|| l_event_type);
8152: END IF;
8153:
8154: IF l_view_net_price_flag = 'Y' THEN
8155: For ord_hd_rec In c_order_header(l_order_id) Loop

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

8218: ELSE
8219: document_type := 'text/plain';
8220: END IF;
8221:
8222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8223: ibe_util.debug('GenerateDetail - l_document - ' ||NEWLINE||l_document);
8224: END IF;
8225:
8226: EXCEPTION

Line 8223: ibe_util.debug('GenerateDetail - l_document - ' ||NEWLINE||l_document);

8219: document_type := 'text/plain';
8220: END IF;
8221:
8222: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8223: ibe_util.debug('GenerateDetail - l_document - ' ||NEWLINE||l_document);
8224: END IF;
8225:
8226: EXCEPTION
8227: When Others Then

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

8274: BEGIN
8275:
8276: l_item_key := document_id;
8277: ----DBMS_OUTPUT.PUT('Calling GenerateFooter - l_item_key - '||l_item_key);
8278: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8279: ibe_util.debug('GenerateFooter - l_item_key - '||l_item_key);
8280: END IF;
8281:
8282: l_quote_id := wf_engine.GetItemAttrText (

Line 8279: ibe_util.debug('GenerateFooter - l_item_key - '||l_item_key);

8275:
8276: l_item_key := document_id;
8277: ----DBMS_OUTPUT.PUT('Calling GenerateFooter - l_item_key - '||l_item_key);
8278: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8279: ibe_util.debug('GenerateFooter - l_item_key - '||l_item_key);
8280: END IF;
8281:
8282: l_quote_id := wf_engine.GetItemAttrText (
8283: itemtype => g_itemType,

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

8283: itemtype => g_itemType,
8284: itemkey => l_item_key,
8285: aname => 'QUOTEID'
8286: );
8287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8288: ibe_util.debug('GenerateFooter - l_quote_id - '||l_quote_id);
8289: END IF;
8290:
8291: l_order_id := wf_engine.GetItemAttrText (

Line 8288: ibe_util.debug('GenerateFooter - l_quote_id - '||l_quote_id);

8284: itemkey => l_item_key,
8285: aname => 'QUOTEID'
8286: );
8287: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8288: ibe_util.debug('GenerateFooter - l_quote_id - '||l_quote_id);
8289: END IF;
8290:
8291: l_order_id := wf_engine.GetItemAttrText (
8292: itemtype => g_itemType,

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

8293: itemkey => l_item_key,
8294: aname => 'ORDERID'
8295: );
8296:
8297: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8298: ibe_util.debug('GenerateFooter - l_order_id - '||l_order_id);
8299: END IF;
8300:
8301: l_event_type := wf_engine.GetItemAttrText (

Line 8298: ibe_util.debug('GenerateFooter - l_order_id - '||l_order_id);

8294: aname => 'ORDERID'
8295: );
8296:
8297: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8298: ibe_util.debug('GenerateFooter - l_order_id - '||l_order_id);
8299: END IF;
8300:
8301: l_event_type := wf_engine.GetItemAttrText (
8302: itemtype => g_itemType,

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

8321: itemkey => l_item_key,
8322: aname => 'RECCHARGEENABLED'
8323: );
8324:
8325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8326: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8327: ibe_util.debug('Event Type ' || l_event_type);
8328: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8329: END IF;

Line 8326: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);

8322: aname => 'RECCHARGEENABLED'
8323: );
8324:
8325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8326: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8327: ibe_util.debug('Event Type ' || l_event_type);
8328: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8329: END IF;
8330:

Line 8327: ibe_util.debug('Event Type ' || l_event_type);

8323: );
8324:
8325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8326: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8327: ibe_util.debug('Event Type ' || l_event_type);
8328: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8329: END IF;
8330:
8331: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN

Line 8328: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);

8324:
8325: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8326: ibe_util.debug('l_reccharge and l_paynow'||l_reccharge||'paynow'||l_paynow);
8327: ibe_util.debug('Event Type ' || l_event_type);
8328: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8329: END IF;
8330:
8331: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN
8332: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

8328: ibe_util.debug('l_view_net_price_flag'||l_view_net_price_flag);
8329: END IF;
8330:
8331: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN
8332: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8333: ibe_util.debug('GenerateFooter - MACD Order Footer '|| l_event_type);
8334: END IF;
8335: OPEN c_macd_order_header(l_order_id);
8336: LOOP

Line 8333: ibe_util.debug('GenerateFooter - MACD Order Footer '|| l_event_type);

8329: END IF;
8330:
8331: if(l_reccharge = 'Y' and l_event_type <> 'RETURNORDER') THEN
8332: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8333: ibe_util.debug('GenerateFooter - MACD Order Footer '|| l_event_type);
8334: END IF;
8335: OPEN c_macd_order_header(l_order_id);
8336: LOOP
8337: FETCH c_macd_order_header INTO g_macd_ord_rec;

Line 8350: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.order_total));

8346: IF l_view_net_price_flag = 'Y' THEN
8347: fnd_message.set_name('IBE','IBE_PRMT_OT_ONE_TIME_PRICE');
8348: l_temp_str := null;
8349: l_temp_str := fnd_message.get;
8350: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.order_total));
8351: 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;
8352:
8353: --Call OM to find the recurring totals
8354: OE_Totals_GRP.GET_RECURRING_TOTALS

Line 8364: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_rec_charge_tbl(i).rec_subtotal));

8360: i := l_rec_charge_tbl.FIRST;
8361: WHILE i is not null
8362: LOOP
8363: l_document := l_document || lpad(l_rec_charge_tbl(i).charge_periodicity_meaning,51,' ');
8364: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_rec_charge_tbl(i).rec_subtotal));
8365: l_document := l_document || lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
8366: i := l_rec_charge_tbl.NEXT(i);
8367: END LOOP;
8368: END IF;

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

8369: END IF;
8370: END LOOP;
8371: CLOSE c_macd_order_header;
8372: ELSE
8373: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8374: ibe_util.debug('GenerateFooter - NON-MACD Order Footer l_event_type - '|| l_event_type);
8375: END IF;
8376:
8377: OPEN c_order_header(l_order_id);

Line 8374: ibe_util.debug('GenerateFooter - NON-MACD Order Footer l_event_type - '|| l_event_type);

8370: END LOOP;
8371: CLOSE c_macd_order_header;
8372: ELSE
8373: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8374: ibe_util.debug('GenerateFooter - NON-MACD Order Footer l_event_type - '|| l_event_type);
8375: END IF;
8376:
8377: OPEN c_order_header(l_order_id);
8378: LOOP

Line 8400: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));

8396: l_temp_str := null;
8397: l_temp_str := fnd_message.get;
8398:
8399: l_sub_total := g_header_rec.lines_total;
8400: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));
8401: IF l_event_type = 'RETURNORDER' THEN
8402: 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;
8403: ELSE
8404: 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 8406: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.charges_total));

8402: 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;
8403: ELSE
8404: 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;
8405: END IF;
8406: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.charges_total));
8407: IF l_event_type = 'RETURNORDER' THEN
8408: fnd_message.set_name('IBE','IBE_OT_RET_CHARGES');
8409: l_temp_str := null;
8410: l_temp_str := fnd_message.get;

Line 8423: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.taxes_total));

8419: END IF;
8420: fnd_message.set_name('IBE','IBE_PRMT_TAX_EST_COLON');
8421: l_temp_str := null;
8422: l_temp_str := fnd_message.get;
8423: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.taxes_total));
8424: IF l_event_type = 'RETURNORDER' THEN
8425: 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;
8426: ELSE
8427: 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 8434: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.order_total));

8430:
8431: fnd_message.set_name('IBE','IBE_PRMT_SC_TOTAL2');
8432: l_temp_str := null;
8433: l_temp_str := fnd_message.get;
8434: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_header_rec.order_total));
8435: IF l_event_type = 'RETURNORDER' THEN
8436: 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;
8437: ELSE
8438: 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 8471: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_lines_total));

8467:
8468: fnd_message.set_name('IBE','IBE_PRMT_SUBTOTAL_COLON');
8469: l_temp_str := null;
8470: l_temp_str := fnd_message.get;
8471: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_lines_total));
8472: 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;
8473:
8474: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
8475: l_temp_str := null;

Line 8477: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_taxes_total));

8473:
8474: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
8475: l_temp_str := null;
8476: l_temp_str := fnd_message.get;
8477: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_taxes_total));
8478: 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;
8479:
8480: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
8481: l_temp_str := null;

Line 8483: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_charges_total));

8479:
8480: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
8481: l_temp_str := null;
8482: l_temp_str := fnd_message.get;
8483: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_charges_total));
8484: 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;
8485:
8486: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
8487: l_temp_str := null;

Line 8489: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_order_total));

8485:
8486: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
8487: l_temp_str := null;
8488: l_temp_str := fnd_message.get;
8489: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_ord_rec.paynow_order_total));
8490: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ');
8491: END IF;
8492: END LOOP;
8493: CLOSE c_macd_order_header;

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

8499: document_type := 'text/html';
8500: ELSE
8501: document_type := 'text/plain';
8502: END IF;
8503: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8504: ibe_util.debug('GenerateFooter - l_document - '||NEWLINE|| l_document);
8505: END IF;
8506:
8507: EXCEPTION

Line 8504: ibe_util.debug('GenerateFooter - l_document - '||NEWLINE|| l_document);

8500: ELSE
8501: document_type := 'text/plain';
8502: END IF;
8503: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8504: ibe_util.debug('GenerateFooter - l_document - '||NEWLINE|| l_document);
8505: END IF;
8506:
8507: EXCEPTION
8508: When Others Then

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

8590: BEGIN
8591:
8592: l_item_key := document_id;
8593:
8594: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8595: ibe_util.debug('GenerateQuoteHeader - l_item_key - '||l_item_key);
8596: END IF;
8597:
8598: l_quote_id := wf_engine.GetItemAttrText (

Line 8595: ibe_util.debug('GenerateQuoteHeader - l_item_key - '||l_item_key);

8591:
8592: l_item_key := document_id;
8593:
8594: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8595: ibe_util.debug('GenerateQuoteHeader - l_item_key - '||l_item_key);
8596: END IF;
8597:
8598: l_quote_id := wf_engine.GetItemAttrText (
8599: itemtype => g_ItemType,

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

8599: itemtype => g_ItemType,
8600: itemkey => l_item_key,
8601: aname => 'QUOTEID'
8602: );
8603: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8604: ibe_util.debug('GenerateQuoteHeader - l_quote_id - '||l_quote_id);
8605: END IF;
8606:
8607: l_event_type := wf_engine.GetItemAttrText (

Line 8604: ibe_util.debug('GenerateQuoteHeader - l_quote_id - '||l_quote_id);

8600: itemkey => l_item_key,
8601: aname => 'QUOTEID'
8602: );
8603: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8604: ibe_util.debug('GenerateQuoteHeader - l_quote_id - '||l_quote_id);
8605: END IF;
8606:
8607: l_event_type := wf_engine.GetItemAttrText (
8608: itemtype => g_ItemType,

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

8616: aname => 'CONTRACTNO'
8617: );
8618:
8619:
8620: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8621: ibe_util.debug('GenerateQuoteHeader - l_event_type - '|| l_event_type);
8622: END IF;
8623:
8624: FOR c_contract_rec In c_contract_header(l_contract_id) LOOP

Line 8621: ibe_util.debug('GenerateQuoteHeader - l_event_type - '|| l_event_type);

8617: );
8618:
8619:
8620: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8621: ibe_util.debug('GenerateQuoteHeader - l_event_type - '|| l_event_type);
8622: END IF;
8623:
8624: FOR c_contract_rec In c_contract_header(l_contract_id) LOOP
8625: l_contract_number := c_contract_rec.contract_number;

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

8652: l_sold_contact_party_id := c_hz_cust_acct_rec.party_id;
8653: End Loop;
8654: End If;
8655:
8656: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8657: ibe_util.debug('GenerateQuoteHeader - l_contact_name '|| l_contact_name);
8658: END IF;
8659:
8660: l_contact_number := null;

Line 8657: ibe_util.debug('GenerateQuoteHeader - l_contact_name '|| l_contact_name);

8653: End Loop;
8654: End If;
8655:
8656: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8657: ibe_util.debug('GenerateQuoteHeader - l_contact_name '|| l_contact_name);
8658: END IF;
8659:
8660: l_contact_number := null;
8661: l_contact_email := null;

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

8673:
8674: End If;
8675: END LOOP;
8676:
8677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8678: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);
8679: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);
8680: END IF;
8681:

Line 8678: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);

8674: End If;
8675: END LOOP;
8676:
8677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8678: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);
8679: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);
8680: END IF;
8681:
8682: /* Get all billing information */

Line 8679: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);

8675: END LOOP;
8676:
8677: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8678: ibe_util.debug('GenerateQuoteHeader - l_contact_number - '|| l_contact_number);
8679: ibe_util.debug('GenerateQuoteHeader - l_contact_email - '|| l_contact_email);
8680: END IF;
8681:
8682: /* Get all billing information */
8683:

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

8692: l_bill_to_name := upper(rtrim(c_hz_cust_acct_rec.person_first_name))||' '||upper(rtrim(c_hz_cust_acct_rec.person_last_name));
8693: l_bill_contact_party_id := c_hz_cust_acct_rec.party_id;
8694: End Loop;
8695:
8696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8697: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);
8698: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);
8699: END IF;
8700:

Line 8697: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);

8693: l_bill_contact_party_id := c_hz_cust_acct_rec.party_id;
8694: End Loop;
8695:
8696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8697: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);
8698: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);
8699: END IF;
8700:
8701:

Line 8698: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);

8694: End Loop;
8695:
8696: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8697: ibe_util.debug('GenerateQuoteHeader - bill_party_name - '||l_bill_to_party_name);
8698: ibe_util.debug('GenerateQuoteHeader - bill_name - '||l_bill_to_name);
8699: END IF;
8700:
8701:
8702: l_bill_to_number := null;

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

8724:
8725: End If;
8726: END LOOP;
8727:
8728: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8729: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);
8730: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);
8731: END IF;
8732:

Line 8729: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);

8725: End If;
8726: END LOOP;
8727:
8728: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8729: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);
8730: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);
8731: END IF;
8732:
8733: l_bill_to_address := null;

Line 8730: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);

8726: END LOOP;
8727:
8728: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8729: ibe_util.debug('GenerateQuoteHeader - bill_party_number - '||l_bill_to_number);
8730: ibe_util.debug('GenerateQuoteHeader - bill_fax - '||l_bill_to_fax);
8731: END IF;
8732:
8733: l_bill_to_address := null;
8734: l_bill_to_city := null;

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

8746: l_bill_to_country := c_hz_locations_rec.loc_country;
8747:
8748: END LOOP;
8749:
8750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);

Line 8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);

8747:
8748: END LOOP;
8749:
8750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8755: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);

Line 8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);

8748: END LOOP;
8749:
8750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8755: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8756: END IF;

Line 8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);

8749:
8750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8755: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8756: END IF;
8757:

Line 8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);

8750: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8755: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8756: END IF;
8757:
8758: /* Get all shipping information */

Line 8755: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);

8751: ibe_util.debug('GenerateQuoteHeader - bill_address - '||l_bill_to_address);
8752: ibe_util.debug('GenerateQuoteHeader - bill_city - '||l_bill_to_city);
8753: ibe_util.debug('GenerateQuoteHeader - bill_state - '||l_bill_to_state);
8754: ibe_util.debug('GenerateQuoteHeader - bill_zip - '||l_bill_to_zip);
8755: ibe_util.debug('GenerateQuoteHeader - bill_country - '||l_bill_to_country);
8756: END IF;
8757:
8758: /* Get all shipping information */
8759:

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

8771: For c_ship_method_rec in c_ship_methods(l_ship_method_code) LOOP
8772: l_Ship_Method := c_ship_method_rec.Meaning;
8773: End Loop;
8774:
8775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8776: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8777: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8778: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8779: END IF;

Line 8776: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);

8772: l_Ship_Method := c_ship_method_rec.Meaning;
8773: End Loop;
8774:
8775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8776: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8777: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8778: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8779: END IF;
8780:

Line 8777: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);

8773: End Loop;
8774:
8775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8776: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8777: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8778: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8779: END IF;
8780:
8781: /* Shipping Customer Information - ship_to_cust_account_id */

Line 8778: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);

8774:
8775: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8776: ibe_util.debug('GenerateQuoteHeader - ship_to_site_id - '||l_ship_to_site_id);
8777: ibe_util.debug('GenerateQuoteHeader - ship_to_party_id - '||l_ship_to_party_id);
8778: ibe_util.debug('GenerateQuoteHeader - ship_to_method - '||l_ship_method_code);
8779: END IF;
8780:
8781: /* Shipping Customer Information - ship_to_cust_account_id */
8782:

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

8789: l_ship_contact_party_id := c_hz_cust_acct_rec.party_id;
8790: End Loop;
8791:
8792:
8793: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8794: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);
8795: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);
8796: END IF;
8797:

Line 8794: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);

8790: End Loop;
8791:
8792:
8793: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8794: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);
8795: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);
8796: END IF;
8797:
8798: /* Shipping Contact ship_to_party_id(PARTY_REALTIONSHIP) OR Ship Customer's Party Id */

Line 8795: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);

8791:
8792:
8793: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8794: ibe_util.debug('GenerateQuoteHeader - ship_to_party_name - '||l_ship_to_party_name);
8795: ibe_util.debug('GenerateQuoteHeader - ship_to_name - '||l_ship_to_name);
8796: END IF;
8797:
8798: /* Shipping Contact ship_to_party_id(PARTY_REALTIONSHIP) OR Ship Customer's Party Id */
8799: If l_ship_to_party_id is not null Then

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

8816:
8817: End If;
8818: END LOOP;
8819:
8820: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8821: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);
8822: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);
8823: END IF;
8824:

Line 8821: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);

8817: End If;
8818: END LOOP;
8819:
8820: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8821: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);
8822: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);
8823: END IF;
8824:
8825: l_ship_to_address := null;

Line 8822: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);

8818: END LOOP;
8819:
8820: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8821: ibe_util.debug('GenerateQuoteHeader - ship_to_number - '||l_ship_to_number);
8822: ibe_util.debug('GenerateQuoteHeader - ship_to_fax - '||l_ship_to_fax);
8823: END IF;
8824:
8825: l_ship_to_address := null;
8826: l_ship_to_city := null;

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

8838:
8839: END LOOP;
8840:
8841:
8842: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);

Line 8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);

8839: END LOOP;
8840:
8841:
8842: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);

Line 8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);

8840:
8841:
8842: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8848: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);

Line 8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);

8841:
8842: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8848: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8849: END IF;

Line 8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);

8842: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8848: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8849: END IF;
8850:

Line 8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);

8843: ibe_util.debug('GenerateQuoteHeader - ship_address - '||l_ship_to_address);
8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8848: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8849: END IF;
8850:
8851: --IF (display_type = 'text/plain' ) THEN

Line 8848: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);

8844: ibe_util.debug('GenerateQuoteHeader - ship_city - '||l_ship_to_city);
8845: ibe_util.debug('GenerateQuoteHeader - ship_state - '||l_ship_to_state);
8846: ibe_util.debug('GenerateQuoteHeader - ship_zip - '||l_ship_to_zip);
8847: ibe_util.debug('GenerateQuoteHeader - ship_country - '||l_ship_to_country);
8848: ibe_util.debug('GenerateQuoteHeader - quote_header_id - '||g_quote_header_rec.quote_header_id);
8849: END IF;
8850:
8851: --IF (display_type = 'text/plain' ) THEN
8852: fnd_message.set_name('IBE','IBE_PRMT_QUOTE_ID_COLON');

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

9008:
9009: END LOOP;
9010: CLOSE c_quote_header;
9011:
9012: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9013: ibe_util.debug('GenerateQuoteHeader - l_document'||NEWLINE|| l_document);
9014: END IF;
9015:
9016: document := l_document;

Line 9013: ibe_util.debug('GenerateQuoteHeader - l_document'||NEWLINE|| l_document);

9009: END LOOP;
9010: CLOSE c_quote_header;
9011:
9012: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9013: ibe_util.debug('GenerateQuoteHeader - l_document'||NEWLINE|| l_document);
9014: END IF;
9015:
9016: document := l_document;
9017:

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

9063:
9064:
9065: l_item_key := document_id;
9066:
9067: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9068: ibe_util.debug('GenerateQuoteDetail_new - l_item_key - '||l_item_key);
9069: END IF;
9070:
9071: l_quote_id := wf_engine.GetItemAttrText (

Line 9068: ibe_util.debug('GenerateQuoteDetail_new - l_item_key - '||l_item_key);

9064:
9065: l_item_key := document_id;
9066:
9067: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9068: ibe_util.debug('GenerateQuoteDetail_new - l_item_key - '||l_item_key);
9069: END IF;
9070:
9071: l_quote_id := wf_engine.GetItemAttrText (
9072: itemtype => g_ItemType,

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

9072: itemtype => g_ItemType,
9073: itemkey => l_item_key,
9074: aname => 'QUOTEID'
9075: );
9076: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9077: ibe_util.debug('GenerateQuoteDetail_new - l_quote_id - '||l_quote_id);
9078: END IF;
9079:
9080: l_event_type := wf_engine.GetItemAttrText (

Line 9077: ibe_util.debug('GenerateQuoteDetail_new - l_quote_id - '||l_quote_id);

9073: itemkey => l_item_key,
9074: aname => 'QUOTEID'
9075: );
9076: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9077: ibe_util.debug('GenerateQuoteDetail_new - l_quote_id - '||l_quote_id);
9078: END IF;
9079:
9080: l_event_type := wf_engine.GetItemAttrText (
9081: itemtype => g_ItemType,

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

9081: itemtype => g_ItemType,
9082: itemkey => l_item_key,
9083: aname => 'EVENTTYPE'
9084: );
9085: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9086: ibe_util.debug('GenerateQuoteDetail - l_event_type - '|| l_event_type);
9087: END IF;
9088:
9089: l_view_net_price_flag := wf_engine.GetItemAttrText (

Line 9086: ibe_util.debug('GenerateQuoteDetail - l_event_type - '|| l_event_type);

9082: itemkey => l_item_key,
9083: aname => 'EVENTTYPE'
9084: );
9085: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9086: ibe_util.debug('GenerateQuoteDetail - l_event_type - '|| l_event_type);
9087: END IF;
9088:
9089: l_view_net_price_flag := wf_engine.GetItemAttrText (
9090: itemtype => g_itemType,

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

9121: l_description := c_ship_rec.description;
9122:
9123: END LOOP;
9124:
9125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9126: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9127: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9128: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9129: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);

Line 9126: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);

9122:
9123: END LOOP;
9124:
9125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9126: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9127: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9128: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9129: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9130: END IF;

Line 9127: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);

9123: END LOOP;
9124:
9125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9126: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9127: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9128: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9129: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9130: END IF;
9131:

Line 9128: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);

9124:
9125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9126: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9127: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9128: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9129: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9130: END IF;
9131:
9132: l_string_in := l_description;

Line 9129: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);

9125: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9126: ibe_util.debug('GenerateQuoteDetail - l_ship_flag - '|| l_ship_flag);
9127: ibe_util.debug('GenerateQuoteDetail - l_description - '|| l_description);
9128: ibe_util.debug('GenerateQuoteDetail - quantity - '||g_quote_line_rec.quantity);
9129: ibe_util.debug('GenerateQuoteDetail - price '||g_quote_line_rec.line_quote_price);
9130: END IF;
9131:
9132: l_string_in := l_description;
9133: l_string_out := '';

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

9161: ELSE
9162: document_type := 'text/plain';
9163: END IF;
9164:
9165: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9166: ibe_util.debug('GenerateQuoteDetail - l_document - '||NEWLINE|| l_document);
9167: END IF;
9168:
9169: EXCEPTION

Line 9166: ibe_util.debug('GenerateQuoteDetail - l_document - '||NEWLINE|| l_document);

9162: document_type := 'text/plain';
9163: END IF;
9164:
9165: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9166: ibe_util.debug('GenerateQuoteDetail - l_document - '||NEWLINE|| l_document);
9167: END IF;
9168:
9169: EXCEPTION
9170: When Others Then

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

9221: BEGIN
9222:
9223: l_item_key := document_id;
9224:
9225: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9226: ibe_util.debug('GenerateQuoteFooter - l_item_key - '||l_item_key);
9227: END IF;
9228:
9229: l_quote_id := wf_engine.GetItemAttrText (

Line 9226: ibe_util.debug('GenerateQuoteFooter - l_item_key - '||l_item_key);

9222:
9223: l_item_key := document_id;
9224:
9225: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9226: ibe_util.debug('GenerateQuoteFooter - l_item_key - '||l_item_key);
9227: END IF;
9228:
9229: l_quote_id := wf_engine.GetItemAttrText (
9230: itemtype => g_ItemType,

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

9230: itemtype => g_ItemType,
9231: itemkey => l_item_key,
9232: aname => 'QUOTEID'
9233: );
9234: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9235: ibe_util.debug('GenerateQuoteFooter - l_quote_id - '||l_quote_id);
9236: END IF;
9237:
9238: l_event_type := wf_engine.GetItemAttrText (

Line 9235: ibe_util.debug('GenerateQuoteFooter - l_quote_id - '||l_quote_id);

9231: itemkey => l_item_key,
9232: aname => 'QUOTEID'
9233: );
9234: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9235: ibe_util.debug('GenerateQuoteFooter - l_quote_id - '||l_quote_id);
9236: END IF;
9237:
9238: l_event_type := wf_engine.GetItemAttrText (
9239: itemtype => g_ItemType,

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

9239: itemtype => g_ItemType,
9240: itemkey => l_item_key,
9241: aname => 'EVENTTYPE'
9242: );
9243: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9244: ibe_util.debug('GenerateQuoteFooter - l_event_type - '|| l_event_type);
9245: END IF;
9246:
9247:

Line 9244: ibe_util.debug('GenerateQuoteFooter - l_event_type - '|| l_event_type);

9240: itemkey => l_item_key,
9241: aname => 'EVENTTYPE'
9242: );
9243: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9244: ibe_util.debug('GenerateQuoteFooter - l_event_type - '|| l_event_type);
9245: END IF;
9246:
9247:
9248: l_view_net_price_flag := wf_engine.GetItemAttrText (

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

9263: aname => 'RECCHARGEENABLED'
9264: );
9265:
9266: if(l_reccharge = 'Y') THEN
9267: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9268: ibe_util.debug('GenerateQuoteFooter - Recurring loop');
9269: end if;
9270: OPEN c_quote_header(l_quote_id);
9271: LOOP

Line 9268: ibe_util.debug('GenerateQuoteFooter - Recurring loop');

9264: );
9265:
9266: if(l_reccharge = 'Y') THEN
9267: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9268: ibe_util.debug('GenerateQuoteFooter - Recurring loop');
9269: end if;
9270: OPEN c_quote_header(l_quote_id);
9271: LOOP
9272: FETCH c_quote_header INTO g_quote_header_rec;

Line 9283: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));

9279:
9280: fnd_message.set_name('IBE','IBE_PRMT_OT_ONE_TIME_PRICE');
9281: l_temp_str := null;
9282: l_temp_str := fnd_message.get;
9283: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));
9284: 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;
9285:
9286: OPEN c_reccur_quote_footer(l_quote_id);
9287: LOOP

Line 9291: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_recur_quote_rec.rec_subtotal));

9287: LOOP
9288: FETCH c_reccur_quote_footer INTO g_recur_quote_rec;
9289: EXIT WHEN c_reccur_quote_footer%NOTFOUND;
9290: l_document := l_document || lpad(g_recur_quote_rec.charge_periodicity_desc,51,' ');
9291: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_recur_quote_rec.rec_subtotal));
9292: l_document := l_document || lpad(l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),20,' ')||NEWLINE;
9293: END LOOP;
9294: CLOSE c_reccur_quote_footer;
9295:

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

9311: END IF;
9312:
9313:
9314:
9315: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9316: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9317: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9318: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9319: END IF;

Line 9316: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));

9312:
9313:
9314:
9315: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9316: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9317: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9318: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9319: END IF;
9320:

Line 9317: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));

9313:
9314:
9315: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9316: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9317: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9318: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9319: END IF;
9320:
9321: --IF (display_type = 'text/plain' ) THEN

Line 9318: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));

9314:
9315: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9316: ibe_util.debug('GenerateQuoteFooter - shipping - '||to_char(g_quote_header_rec.total_shipping_charge));
9317: ibe_util.debug('GenerateQuoteFooter - tax - '||to_char(g_quote_header_rec.total_tax));
9318: ibe_util.debug('GenerateQuoteFooter - total quote price - '||to_char(g_quote_header_rec.total_quote_price));
9319: END IF;
9320:
9321: --IF (display_type = 'text/plain' ) THEN
9322: IF l_view_net_price_flag = 'Y' THEN

Line 9329: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));

9325: l_temp_str := null;
9326: l_temp_str := fnd_message.get;
9327:
9328: l_sub_total := g_quote_header_rec.total_list_price - abs(g_quote_header_rec.total_adjusted_amount);
9329: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(l_sub_total));
9330: 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;
9331:
9332:
9333: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');

Line 9336: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_shipping_charge));

9332:
9333: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
9334: l_temp_str := null;
9335: l_temp_str := fnd_message.get;
9336: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_shipping_charge));
9337: 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;
9338:
9339:
9340: fnd_message.set_name('IBE','IBE_PRMT_TAX_EST_COLON');

Line 9343: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_tax));

9339:
9340: fnd_message.set_name('IBE','IBE_PRMT_TAX_EST_COLON');
9341: l_temp_str := null;
9342: l_temp_str := fnd_message.get;
9343: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_tax));
9344: 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;
9345:
9346: fnd_message.set_name('IBE','IBE_PRMT_SC_TOTAL2');
9347: l_temp_str := null;

Line 9349: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));

9345:
9346: fnd_message.set_name('IBE','IBE_PRMT_SC_TOTAL2');
9347: l_temp_str := null;
9348: l_temp_str := fnd_message.get;
9349: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_quote_header_rec.total_quote_price));
9350: l_document := l_document || lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym|| to_char(to_number(l_can_amt),l_amt_format),20,' ');
9351: END IF;
9352: --ELSE
9353: --null;

Line 9381: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_lines_total));

9377:
9378: fnd_message.set_name('IBE','IBE_PRMT_SUBTOTAL_COLON');
9379: l_temp_str := null;
9380: l_temp_str := fnd_message.get;
9381: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_lines_total));
9382: 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;
9383:
9384: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
9385: l_temp_str := null;

Line 9387: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_taxes_total));

9383:
9384: fnd_message.set_name('IBE','IBE_PRMT_TAX_COL');
9385: l_temp_str := null;
9386: l_temp_str := fnd_message.get;
9387: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_taxes_total));
9388: 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;
9389:
9390: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
9391: l_temp_str := null;

Line 9393: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_charges_total));

9389:
9390: fnd_message.set_name('IBE','IBE_PRMT_SHIP_HAND_COLON');
9391: l_temp_str := null;
9392: l_temp_str := fnd_message.get;
9393: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_charges_total));
9394: 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;
9395:
9396: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
9397: l_temp_str := null;

Line 9399: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_order_total));

9395:
9396: fnd_message.set_name('IBE','IBE_PRMT_SC_PN_TOTAL_COL');
9397: l_temp_str := null;
9398: l_temp_str := fnd_message.get;
9399: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(g_macd_quote_rec.paynow_order_total));
9400: l_document := l_document|| lpad(l_temp_str,51,' ')|| ' '|| lpad(l_curr_sym||to_char(to_number(l_can_amt), l_amt_format), 20, ' ');
9401: END IF;
9402: END LOOP;
9403: CLOSE c_macd_quote_footer;

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

9411: document_type := 'text/plain';
9412: END IF;
9413:
9414:
9415: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9416: ibe_util.debug('GenerateQuoteFooter - l_document - '||NEWLINE|| l_document);
9417: END IF;
9418:
9419: EXCEPTION

Line 9416: ibe_util.debug('GenerateQuoteFooter - l_document - '||NEWLINE|| l_document);

9412: END IF;
9413:
9414:
9415: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9416: ibe_util.debug('GenerateQuoteFooter - l_document - '||NEWLINE|| l_document);
9417: END IF;
9418:
9419: EXCEPTION
9420: When Others Then

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

9441: itemkey => itemkey,
9442: aname => 'EVENTTYPE'
9443: );
9444:
9445: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9446: ibe_util.debug('Selector - Inside RUN- '||l_event_type);
9447: END IF;
9448:
9449: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN

Line 9446: ibe_util.debug('Selector - Inside RUN- '||l_event_type);

9442: aname => 'EVENTTYPE'
9443: );
9444:
9445: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9446: ibe_util.debug('Selector - Inside RUN- '||l_event_type);
9447: END IF;
9448:
9449: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN
9450: result := 'COMPLETE:ACCTREG';

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

9448:
9449: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN
9450: result := 'COMPLETE:ACCTREG';
9451: ELSIF l_event_type = 'ORDCONF' THEN
9452: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9453: ibe_util.debug('Selector - Inside order confirmation selection ');
9454: END IF;
9455: result := 'COMPLETE:ORDCONF';
9456: ELSIF l_event_type = 'ORDFAX' THEN

Line 9453: ibe_util.debug('Selector - Inside order confirmation selection ');

9449: IF l_event_type = 'ACCOUNT_REGISTRATION' THEN
9450: result := 'COMPLETE:ACCTREG';
9451: ELSIF l_event_type = 'ORDCONF' THEN
9452: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9453: ibe_util.debug('Selector - Inside order confirmation selection ');
9454: END IF;
9455: result := 'COMPLETE:ORDCONF';
9456: ELSIF l_event_type = 'ORDFAX' THEN
9457: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9453: ibe_util.debug('Selector - Inside order confirmation selection ');
9454: END IF;
9455: result := 'COMPLETE:ORDCONF';
9456: ELSIF l_event_type = 'ORDFAX' THEN
9457: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9458: ibe_util.debug('Selector - Inside order fax selection ');
9459: END IF;
9460: result := 'COMPLETE:ORDFAX';
9461: ELSIF l_event_type = 'ORDERROR' THEN

Line 9458: ibe_util.debug('Selector - Inside order fax selection ');

9454: END IF;
9455: result := 'COMPLETE:ORDCONF';
9456: ELSIF l_event_type = 'ORDFAX' THEN
9457: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9458: ibe_util.debug('Selector - Inside order fax selection ');
9459: END IF;
9460: result := 'COMPLETE:ORDFAX';
9461: ELSIF l_event_type = 'ORDERROR' THEN
9462: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9458: ibe_util.debug('Selector - Inside order fax selection ');
9459: END IF;
9460: result := 'COMPLETE:ORDFAX';
9461: ELSIF l_event_type = 'ORDERROR' THEN
9462: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9463: ibe_util.debug('Selector - Inside order error selection ');
9464: END IF;
9465: result := 'COMPLETE:ORDERROR';
9466: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN

Line 9463: ibe_util.debug('Selector - Inside order error selection ');

9459: END IF;
9460: result := 'COMPLETE:ORDFAX';
9461: ELSIF l_event_type = 'ORDERROR' THEN
9462: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9463: ibe_util.debug('Selector - Inside order error selection ');
9464: END IF;
9465: result := 'COMPLETE:ORDERROR';
9466: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN
9467: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9463: ibe_util.debug('Selector - Inside order error selection ');
9464: END IF;
9465: result := 'COMPLETE:ORDERROR';
9466: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN
9467: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9468: ibe_util.debug('Selector - Inside order cust quote selection ');
9469: END IF;
9470: result := 'COMPLETE:ORDCUSTQUOTE';
9471: ELSIF l_event_type = 'ORDSALESQUOTE' THEN

Line 9468: ibe_util.debug('Selector - Inside order cust quote selection ');

9464: END IF;
9465: result := 'COMPLETE:ORDERROR';
9466: ELSIF l_event_type = 'ORDCUSTQUOTE' THEN
9467: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9468: ibe_util.debug('Selector - Inside order cust quote selection ');
9469: END IF;
9470: result := 'COMPLETE:ORDCUSTQUOTE';
9471: ELSIF l_event_type = 'ORDSALESQUOTE' THEN
9472: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9468: ibe_util.debug('Selector - Inside order cust quote selection ');
9469: END IF;
9470: result := 'COMPLETE:ORDCUSTQUOTE';
9471: ELSIF l_event_type = 'ORDSALESQUOTE' THEN
9472: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9473: ibe_util.debug('Selector - Inside order sales quote selection ');
9474: END IF;
9475: result := 'COMPLETE:ORDSALESQUOTE';
9476: ELSIF l_event_type = 'CUSTASSIST' THEN

Line 9473: ibe_util.debug('Selector - Inside order sales quote selection ');

9469: END IF;
9470: result := 'COMPLETE:ORDCUSTQUOTE';
9471: ELSIF l_event_type = 'ORDSALESQUOTE' THEN
9472: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9473: ibe_util.debug('Selector - Inside order sales quote selection ');
9474: END IF;
9475: result := 'COMPLETE:ORDSALESQUOTE';
9476: ELSIF l_event_type = 'CUSTASSIST' THEN
9477: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9473: ibe_util.debug('Selector - Inside order sales quote selection ');
9474: END IF;
9475: result := 'COMPLETE:ORDSALESQUOTE';
9476: ELSIF l_event_type = 'CUSTASSIST' THEN
9477: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9478: ibe_util.debug('Selector - Inside cust assist selection ');
9479: END IF;
9480: result := 'COMPLETE:CUSTASSIST';
9481: ELSIF l_event_type = 'SALESASSIST' THEN

Line 9478: ibe_util.debug('Selector - Inside cust assist selection ');

9474: END IF;
9475: result := 'COMPLETE:ORDSALESQUOTE';
9476: ELSIF l_event_type = 'CUSTASSIST' THEN
9477: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9478: ibe_util.debug('Selector - Inside cust assist selection ');
9479: END IF;
9480: result := 'COMPLETE:CUSTASSIST';
9481: ELSIF l_event_type = 'SALESASSIST' THEN
9482: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9478: ibe_util.debug('Selector - Inside cust assist selection ');
9479: END IF;
9480: result := 'COMPLETE:CUSTASSIST';
9481: ELSIF l_event_type = 'SALESASSIST' THEN
9482: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9483: ibe_util.debug('Selector - Inside sales assist selection ');
9484: END IF;
9485: result := 'COMPLETE:SALESASSIST';
9486: ELSIF l_event_type = 'TERMAPPROVED' THEN

Line 9483: ibe_util.debug('Selector - Inside sales assist selection ');

9479: END IF;
9480: result := 'COMPLETE:CUSTASSIST';
9481: ELSIF l_event_type = 'SALESASSIST' THEN
9482: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9483: ibe_util.debug('Selector - Inside sales assist selection ');
9484: END IF;
9485: result := 'COMPLETE:SALESASSIST';
9486: ELSIF l_event_type = 'TERMAPPROVED' THEN
9487: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9483: ibe_util.debug('Selector - Inside sales assist selection ');
9484: END IF;
9485: result := 'COMPLETE:SALESASSIST';
9486: ELSIF l_event_type = 'TERMAPPROVED' THEN
9487: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9488: ibe_util.debug('Selector - Inside Term Apporved selection ');
9489: END IF;
9490: result := 'COMPLETE:TERMAPPROVED';
9491: ELSIF l_event_type = 'TERMREJECTED' THEN

Line 9488: ibe_util.debug('Selector - Inside Term Apporved selection ');

9484: END IF;
9485: result := 'COMPLETE:SALESASSIST';
9486: ELSIF l_event_type = 'TERMAPPROVED' THEN
9487: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9488: ibe_util.debug('Selector - Inside Term Apporved selection ');
9489: END IF;
9490: result := 'COMPLETE:TERMAPPROVED';
9491: ELSIF l_event_type = 'TERMREJECTED' THEN
9492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9488: ibe_util.debug('Selector - Inside Term Apporved selection ');
9489: END IF;
9490: result := 'COMPLETE:TERMAPPROVED';
9491: ELSIF l_event_type = 'TERMREJECTED' THEN
9492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9493: ibe_util.debug('Selector - Inside Term Rejected selection ');
9494: END IF;
9495: result := 'COMPLETE:TERMREJECTED';
9496: ELSIF l_event_type = 'TERMCANCELLED' THEN

Line 9493: ibe_util.debug('Selector - Inside Term Rejected selection ');

9489: END IF;
9490: result := 'COMPLETE:TERMAPPROVED';
9491: ELSIF l_event_type = 'TERMREJECTED' THEN
9492: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9493: ibe_util.debug('Selector - Inside Term Rejected selection ');
9494: END IF;
9495: result := 'COMPLETE:TERMREJECTED';
9496: ELSIF l_event_type = 'TERMCANCELLED' THEN
9497: IF (IBE_UTIL.G_DEBUGON = l_true) THEN

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

9493: ibe_util.debug('Selector - Inside Term Rejected selection ');
9494: END IF;
9495: result := 'COMPLETE:TERMREJECTED';
9496: ELSIF l_event_type = 'TERMCANCELLED' THEN
9497: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9498: ibe_util.debug('Selector - Inside Term Cancelled selection ');
9499: END IF;
9500: result := 'COMPLETE:TERMCANCELLED';
9501: END IF;

Line 9498: ibe_util.debug('Selector - Inside Term Cancelled selection ');

9494: END IF;
9495: result := 'COMPLETE:TERMREJECTED';
9496: ELSIF l_event_type = 'TERMCANCELLED' THEN
9497: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9498: ibe_util.debug('Selector - Inside Term Cancelled selection ');
9499: END IF;
9500: result := 'COMPLETE:TERMCANCELLED';
9501: END IF;
9502: END IF;

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

9822: l_notif_pref WF_USERS.NOTIFICATION_PREFERENCE%TYPE;
9823: l_email_addr VARCHAR2(2000);
9824:
9825: BEGIN
9826: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);

Line 9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');

9823: l_email_addr VARCHAR2(2000);
9824:
9825: BEGIN
9826: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9831: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);

Line 9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);

9824:
9825: BEGIN
9826: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9831: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9832: END IF;

Line 9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);

9825: BEGIN
9826: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9831: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9832: END IF;
9833:

Line 9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);

9826: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9831: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9832: END IF;
9833:
9834: IF (p_user_id > 0) THEN

Line 9831: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);

9827: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Start');
9828: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_id: '||p_user_id);
9829: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input user_source: '||p_user_source);
9830: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input email_address: '||p_email_address);
9831: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Input quote_header_id: '||p_quote_header_id);
9832: END IF;
9833:
9834: IF (p_user_id > 0) THEN
9835: IF (p_user_source IS NOT NULL AND p_user_source = 'HZ_PARTY') THEN

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

9918: x_adhoc_user := l_adhoc_user;
9919:
9920: END IF;
9921:
9922: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;
9925: END IF;
9926:

Line 9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);

9919:
9920: END IF;
9921:
9922: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;
9925: END IF;
9926:
9927: EXCEPTION

Line 9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;

9920: END IF;
9921:
9922: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9923: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user = '||x_adhoc_user);
9924: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:x_adhoc_user:End') ;
9925: END IF;
9926:
9927: EXCEPTION
9928: WHEN OTHERS THEN

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

9925: END IF;
9926:
9927: EXCEPTION
9928: WHEN OTHERS THEN
9929: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9930: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Exception occured');
9931: END IF;
9932: RAISE;
9933: END get_wf_user;

Line 9930: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Exception occured');

9926:
9927: EXCEPTION
9928: WHEN OTHERS THEN
9929: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9930: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_user:Exception occured');
9931: END IF;
9932: RAISE;
9933: END get_wf_user;
9934:

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

9948: l_notification_preference WF_USERS.NOTIFICATION_PREFERENCE%TYPE;
9949:
9950: BEGIN
9951:
9952: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9953: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Start');
9954: END IF;
9955: IF (p_wf_users_tbl IS NULL OR p_wf_users_tbl.COUNT <= 0) THEN
9956: return;

Line 9953: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Start');

9949:
9950: BEGIN
9951:
9952: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9953: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Start');
9954: END IF;
9955: IF (p_wf_users_tbl IS NULL OR p_wf_users_tbl.COUNT <= 0) THEN
9956: return;
9957: END IF;

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

9971:
9972: FOR i IN 1..p_wf_users_tbl.COUNT LOOP
9973: l_wf_role_usrs := l_wf_role_usrs ||','|| p_wf_users_tbl(i);
9974: END LOOP;
9975: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9976: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:l_wf_role_usrs='||l_wf_role_usrs);
9977: END IF;
9978:
9979: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');

Line 9976: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:l_wf_role_usrs='||l_wf_role_usrs);

9972: FOR i IN 1..p_wf_users_tbl.COUNT LOOP
9973: l_wf_role_usrs := l_wf_role_usrs ||','|| p_wf_users_tbl(i);
9974: END LOOP;
9975: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9976: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:l_wf_role_usrs='||l_wf_role_usrs);
9977: END IF;
9978:
9979: l_notification_preference := NVL( FND_PROFILE.VALUE_SPECIFIC('IBE_DEFAULT_USER_EMAIL_FORMAT',null,null,671), 'MAILTEXT');
9980:

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

9987: role_users => l_wf_role_usrs,
9988: expiration_date => sysdate + 1);
9989:
9990: x_wf_role := l_adhoc_role;
9991: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9992: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:End');
9993: END IF;
9994:
9995: EXCEPTION

Line 9992: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:End');

9988: expiration_date => sysdate + 1);
9989:
9990: x_wf_role := l_adhoc_role;
9991: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9992: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:End');
9993: END IF;
9994:
9995: EXCEPTION
9996: WHEN OTHERS THEN

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

9993: END IF;
9994:
9995: EXCEPTION
9996: WHEN OTHERS THEN
9997: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9998: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Exception occured');
9999: END IF;
10000: RAISE;
10001: END get_wf_role;

Line 9998: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Exception occured');

9994:
9995: EXCEPTION
9996: WHEN OTHERS THEN
9997: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
9998: IBE_UTIL.DEBUG('ibe_workflow_pvt.get_wf_role:Exception occured');
9999: END IF;
10000: RAISE;
10001: END get_wf_role;
10002:

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

10015: WHERE msite_id = c_msite_id;
10016: rec_msite_name c_msite_name%rowtype;
10017:
10018: BEGIN
10019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10020: IBE_UTIL.DEBUG('get_speciality_store_name:Document_id: '||document_id);
10021: END IF;
10022: FOR rec_msite_name IN c_msite_name(document_id) LOOP
10023: document := rec_msite_name.msite_name;

Line 10020: IBE_UTIL.DEBUG('get_speciality_store_name:Document_id: '||document_id);

10016: rec_msite_name c_msite_name%rowtype;
10017:
10018: BEGIN
10019: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10020: IBE_UTIL.DEBUG('get_speciality_store_name:Document_id: '||document_id);
10021: END IF;
10022: FOR rec_msite_name IN c_msite_name(document_id) LOOP
10023: document := rec_msite_name.msite_name;
10024: EXIT when c_msite_name%NOTFOUND;

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

10023: document := rec_msite_name.msite_name;
10024: EXIT when c_msite_name%NOTFOUND;
10025: END LOOP;
10026:
10027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10028: IBE_UTIL.DEBUG('get_speciality_store_name:Document: '||document);
10029: END IF;
10030:
10031: IF(display_type = 'text/html') THEN

Line 10028: IBE_UTIL.DEBUG('get_speciality_store_name:Document: '||document);

10024: EXIT when c_msite_name%NOTFOUND;
10025: END LOOP;
10026:
10027: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10028: IBE_UTIL.DEBUG('get_speciality_store_name:Document: '||document);
10029: END IF;
10030:
10031: IF(display_type = 'text/html') THEN
10032: document_type := 'text/html';

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

10049:
10050: rec_fnd_lkpup_value c_fnd_lkpup_value%rowtype;
10051: BEGIN
10052:
10053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10054: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document_id: '||document_id);
10055: END IF;
10056: FOR rec_fnd_lkpup_value in c_fnd_lkpup_value(document_id) LOOP
10057: document := rec_fnd_lkpup_value.meaning;

Line 10054: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document_id: '||document_id);

10050: rec_fnd_lkpup_value c_fnd_lkpup_value%rowtype;
10051: BEGIN
10052:
10053: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10054: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document_id: '||document_id);
10055: END IF;
10056: FOR rec_fnd_lkpup_value in c_fnd_lkpup_value(document_id) LOOP
10057: document := rec_fnd_lkpup_value.meaning;
10058: EXIT when c_fnd_lkpup_value%NOTFOUND;

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

10057: document := rec_fnd_lkpup_value.meaning;
10058: EXIT when c_fnd_lkpup_value%NOTFOUND;
10059: END LOOP;
10060:
10061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10062: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document: '||document);
10063: END IF;
10064:
10065: IF(display_type = 'text/html') THEN

Line 10062: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document: '||document);

10058: EXIT when c_fnd_lkpup_value%NOTFOUND;
10059: END LOOP;
10060:
10061: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10062: IBE_UTIL.DEBUG('get_fnd_lkpup_value:Document: '||document);
10063: END IF;
10064:
10065: IF(display_type = 'text/html') THEN
10066: document_type := 'text/html';

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

10076: document_type IN OUT NOCOPY VARCHAR2
10077: ) is
10078:
10079: BEGIN
10080: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10081: IBE_UTIL.DEBUG('get_FND_message:START: value of document id ='||document_id);
10082: END IF;
10083: FND_MESSAGE.set_name('IBE',document_id);
10084: document:=FND_MESSAGE.get();

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

10077: ) is
10078:
10079: BEGIN
10080: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10081: IBE_UTIL.DEBUG('get_FND_message:START: value of document id ='||document_id);
10082: END IF;
10083: FND_MESSAGE.set_name('IBE',document_id);
10084: document:=FND_MESSAGE.get();
10085:

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

10122:
10123: rec_fnd_lkpup_value c_fnd_lookup_value%rowtype;
10124: BEGIN
10125:
10126: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10127: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document_id: '||document_id);
10128: END IF;
10129: FOR rec_fnd_lookup_value in c_fnd_lookup_value(document_id) LOOP
10130: document := rec_fnd_lookup_value.meaning;

Line 10127: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document_id: '||document_id);

10123: rec_fnd_lkpup_value c_fnd_lookup_value%rowtype;
10124: BEGIN
10125:
10126: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10127: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document_id: '||document_id);
10128: END IF;
10129: FOR rec_fnd_lookup_value in c_fnd_lookup_value(document_id) LOOP
10130: document := rec_fnd_lookup_value.meaning;
10131: EXIT when c_fnd_lookup_value%NOTFOUND;

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

10130: document := rec_fnd_lookup_value.meaning;
10131: EXIT when c_fnd_lookup_value%NOTFOUND;
10132: END LOOP;
10133:
10134: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10135: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document: '||document);
10136: END IF;
10137:
10138: IF(display_type = 'text/html') THEN

Line 10135: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document: '||document);

10131: EXIT when c_fnd_lookup_value%NOTFOUND;
10132: END LOOP;
10133:
10134: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10135: IBE_UTIL.DEBUG('get_sales_assist_rsn_meaning:Document: '||document);
10136: END IF;
10137:
10138: IF(display_type = 'text/html') THEN
10139: document_type := 'text/html';

Line 10190: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).NetAmount));

10186: if(view_line_type_flag <> fnd_api.g_true) then
10187: ldocument := ldocument || lpad(trim(Notif_Line_Tbl(counter).Shippable),9)||' ';
10188: end if;
10189: if(view_net_price_flag = 'Y') then
10190: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).NetAmount));
10191: ldocument := ldocument || lpad(trim(l_curr_sym)||trim(to_char(to_number(l_can_amt),l_amt_format)),16);
10192: end if;
10193: ldocument := ldocument ||NEWLINE;
10194: l_string_in := l_string_left;

Line 10233: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).TaxAmount));

10229: IF view_net_price_flag = 'Y' THEN
10230: fnd_message.set_name('IBE','IBE_PRMT_ORD_TAX');
10231: l_temp_str := null;
10232: l_temp_str := fnd_message.get;
10233: l_can_amt := ibe_util.nls_number_format(p_number_in => to_char(Notif_Line_Tbl(counter).TaxAmount));
10234: ldocument := ldocument ||lpad(l_temp_str||': '||l_curr_sym||to_char(to_number(l_can_amt),l_amt_format),72,' ')||NEWLINE;
10235: END IF;
10236: END IF;
10237:

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

10237:
10238: IF (FND_API.To_Boolean(Notif_Line_Tbl(counter).LastItem) and counter <> Notif_Line_Tbl.count) THEN
10239: ldocument := ldocument || '------------------------------------------------------------------------'||NEWLINE;
10240: END IF;
10241: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10242: IBE_UTIL.DEBUG('Going to print ldocument in buildDocument'||ldocument);
10243: END IF;
10244: end loop;
10245: return ldocument;

Line 10242: IBE_UTIL.DEBUG('Going to print ldocument in buildDocument'||ldocument);

10238: IF (FND_API.To_Boolean(Notif_Line_Tbl(counter).LastItem) and counter <> Notif_Line_Tbl.count) THEN
10239: ldocument := ldocument || '------------------------------------------------------------------------'||NEWLINE;
10240: END IF;
10241: IF (IBE_UTIL.G_DEBUGON = l_true) THEN
10242: IBE_UTIL.DEBUG('Going to print ldocument in buildDocument'||ldocument);
10243: END IF;
10244: end loop;
10245: return ldocument;
10246: END buildDocument;