99: (itemtype => l_item_type,
100: itemkey => l_item_key,
101: aname => 'REQ_AMOUNT_DSP');
102:
103: l_header_msg := fnd_message.get_string('PO', 'PO_WF_NOTIF_APPROVED');
104:
105:
106: l_description := wf_engine.GetItemAttrText
107: (itemtype => l_item_type,
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT') || '   | ' || NL;
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT') || '   | ' || NL;' || '(' || l_currency_code || ')' || ' ' || l_req_amount || ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || '   | ' || NL || '||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || '   | ' || NL || '' || l_description || ' | ';|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER') ||
148: l_document := l_document || ' | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER') || 153: '   | ' || NL;' || l_preparer || ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || '   | ' || NL;' || l_preparer || ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || '   | ' || NL;' || l_note || ' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT') || '   | ' || NL;
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT') || '   | ' || NL;' || '(' || l_currency_code || ')' || ' ' || l_req_amount || ' | |||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || '   | ' || NL || '||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || '   | ' || NL || '' || l_description || ' | ';|||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER') ||
324: l_document := l_document || ' | ||||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER') || 329: '   | ' || NL;' || l_preparer || ' | |||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || '   | ' || NL;' || l_preparer || ' | |||||||||||||||||
' || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || '   | ' || NL;' || l_note || ' | |||||||||||||||||
' || NL || 501: fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT') || 502: '   | ' || NL;' || l_currency_code || ' ' || l_req_amount || ' | ' || l_currency_code || ' ' || l_req_amount || ' | ' || NL;
' || 514: fnd_message.get_string('PO', 'PO_WF_NOTIF_LAST_APPROVER') || 515: '   | ' || NL;' || l_approver || ' | ' || l_approver || ' | ' || NL;
' || 520: fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER') || 521: '   | ' || NL;' || l_preparer || ' |
523: l_document := l_document || '
' || NL;
527: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || NL || '
' || NL;
528: l_document := l_document || l_note;
529: l_document := l_document || '
532: else
533:
534: l_document := l_document || l_header_msg || NL || NL;
535:
536: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT');
537: l_document := l_document || ' ' || l_currency_code || ' ' || l_req_amount || NL;
538:
539: if l_description is not null then
540: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || NL;
536: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT');
537: l_document := l_document || ' ' || l_currency_code || ' ' || l_req_amount || NL;
538:
539: if l_description is not null then
540: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || NL;
541: l_document := l_document || l_description || NL;
542: end if;
543:
544: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_LAST_APPROVER');
540: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || NL;
541: l_document := l_document || l_description || NL;
542: end if;
543:
544: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_LAST_APPROVER');
545: l_document := l_document || ' ' || l_approver || NL;
546:
547: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER');
548: l_document := l_document || ' ' || l_preparer || NL;
543:
544: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_LAST_APPROVER');
545: l_document := l_document || ' ' || l_approver || NL;
546:
547: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER');
548: l_document := l_document || ' ' || l_preparer || NL;
549:
550: if l_note is not null then
551: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || NL;
547: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER');
548: l_document := l_document || ' ' || l_preparer || NL;
549:
550: if l_note is not null then
551: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || NL;
552: l_document := l_document || l_note || NL;
553: end if;
554:
555: end if;
636: (itemtype => l_item_type,
637: itemkey => l_item_key,
638: aname => 'REQ_AMOUNT_DSP');
639:
640: l_header_msg := fnd_message.get_string('PO', 'PO_WF_NOTIF_REJECTED_WEB');
641:
642: l_req_amount := wf_engine.GetItemAttrText
643: (itemtype => l_item_type,
644: itemkey => l_item_key,
678:
679: l_document := l_document || '
' || NL || 682: fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT') || 683: '   | ' || NL;' || l_currency_code || ' ' || l_req_amount || ' | ' || l_currency_code || ' ' || l_req_amount || ' | ' || NL;
' || 695: fnd_message.get_string('PO', 'PO_WF_NOTIF_REJECTED_BY') || 696: '   | ' || NL;' || l_rejected_by || ' | ' || l_rejected_by || ' | ' || NL;
' || 701: fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER') || 702: '   | ' || NL;' || l_preparer || ' |
704: l_document := l_document || '
' || NL;
708: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || NL || '
' || NL;
709: l_document := l_document || l_note;
710: l_document := l_document || '
713: else
714:
715: l_document := l_document || l_header_msg || NL || NL;
716:
717: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_AMOUNT');
718: l_document := l_document || ' ' || l_currency_code || ' ' || l_req_amount || NL;
719:
720:
721: if l_description is not null then
718: l_document := l_document || ' ' || l_currency_code || ' ' || l_req_amount || NL;
719:
720:
721: if l_description is not null then
722: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || NL;
723: l_document := l_document || l_description || NL;
724: end if;
725:
726: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_REJECTED_BY');
722: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_DOC_DESCRIPTION') || NL;
723: l_document := l_document || l_description || NL;
724: end if;
725:
726: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_REJECTED_BY');
727: l_document := l_document || ' ' || l_rejected_by || NL;
728:
729: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER');
730: l_document := l_document || ' ' || l_preparer || NL;
725:
726: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_REJECTED_BY');
727: l_document := l_document || ' ' || l_rejected_by || NL;
728:
729: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER');
730: l_document := l_document || ' ' || l_preparer || NL;
731:
732: if l_note is not null then
733: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || NL;
729: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_PREPARER');
730: l_document := l_document || ' ' || l_preparer || NL;
731:
732: if l_note is not null then
733: l_document := l_document || NL || fnd_message.get_string('PO', 'PO_WF_NOTIF_NOTE') || NL;
734: l_document := l_document || l_note || NL;
735: end if;
736:
737: end if;
861: -- l_document := '';
862: l_document := l_document || NL || NL || ''|| NL || NL || '
';
863:
864: l_document := l_document ||'
875: l_document := l_document || '
876:
877: /* View req details link */
878: l_req_line_msg := '
879: ||fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_DETAILS_DESP') || ' '
880: || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_DETAILS_DESP1');
881:
882: l_req_details_url := '' ||
883: fnd_message.get_string('PO', 'PO_WF_NOTIF_VIEW_REQ_URL') || '';
884: /* l_req_line_msg := replace(l_req_line_msg, '&REQ_DTL_LINK', l_req_details_url);
885: */
886:
887:
887:
888: l_document := l_document || l_req_line_msg || NL ;
889:
890: l_req_updates_url := '' ||
891: fnd_message.get_string('PO', 'PO_WF_NOTIF_EDIT_REQ_URL') || '';
892:
893: l_document := l_document || '
906:
907: l_document := l_document || '
909: l_document := l_document || '
912: l_document := l_document || '
915: l_document := l_document || '
918: l_document := l_document || '
921: l_document := l_document || '
924: l_document := l_document || '
969: l_document := l_document || '
980: i := i + 1;
981:
982: exit when line_csr%notfound;
983:
984: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
985: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
981:
982: exit when line_csr%notfound;
983:
984: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
985: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
982: exit when line_csr%notfound;
983:
984: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
985: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
990: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
983:
984: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
985: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
990: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
991: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
984: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
985: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
990: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
991: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
992: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
985: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
990: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
991: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
992: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
993: || to_char(l_line.line_amount, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1 || NL1;
986: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
987: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
990: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
991: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
992: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
993: || to_char(l_line.line_amount, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1 || NL1;
994:
988: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
989: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
990: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
991: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
992: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
993: || to_char(l_line.line_amount, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1 || NL1;
994:
995: exit when i = 5;
996: end loop;
998: l_req_details_url := substr(l_req_details_url,
999: instr(l_req_details_url,'''',1,1)+1,
1000: instr(l_req_details_url,'''',1,2)- instr(l_req_details_url,'''',1)-1);
1001:
1002: l_document := l_document || NL1 || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_DTLS') || ': ' ||
1003: l_req_details_url || NL1;
1004:
1005: l_req_updates_url := substr(l_req_updates_url,
1006: instr(l_req_updates_url,'''',1,1)+1,
1005: l_req_updates_url := substr(l_req_updates_url,
1006: instr(l_req_updates_url,'''',1,1)+1,
1007: instr(l_req_updates_url,'''',1,2)- instr(l_req_updates_url,'''',1)-1);
1008:
1009: l_document := l_document || NL1 || fnd_message.get_string('PO', 'PO_WF_NOTIF_EDIT_REQ') || ': ' ||
1010: l_req_updates_url || NL1;
1011:
1012: end if;
1013:
1124: -- l_document := '';
1125: l_document := l_document || NL || NL || ''|| NL || NL || '
';
1126:
1127: l_document := l_document ||'
1141: l_document := l_document || '
1142:
1143: /* View req details link */
1144: l_req_line_msg := '
1167:
1168: l_document := l_document || '
1170: l_document := l_document || '
1173: l_document := l_document || '
1176: l_document := l_document || '
1179: l_document := l_document || '
1182: l_document := l_document || '
1185: l_document := l_document || '
1229: l_document := l_document || '
1240:
1241: i := i + 1;
1242: exit when line_csr%notfound;
1243:
1244: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
1245: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1241: i := i + 1;
1242: exit when line_csr%notfound;
1243:
1244: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
1245: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1242: exit when line_csr%notfound;
1243:
1244: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
1245: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1250: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
1243:
1244: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
1245: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1250: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
1251: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
1244: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_NUMBER') || ':' || to_char(l_line.line_num) || NL1;
1245: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1250: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
1251: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
1252: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
1245: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_NUMBER') || ': ' || l_line.item_num || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1250: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
1251: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
1252: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
1253: || to_char(l_line.line_amount, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1 || NL1;
1246: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_REVISION') || ': ' || l_line.item_revision || NL1;
1247: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_ITEM_DESC') || ': ' || l_line.item_desc || NL1;
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1250: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
1251: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
1252: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
1253: || to_char(l_line.line_amount, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1 || NL1;
1254:
1248: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UOM') || ': ' || l_line.uom || NL1;
1249: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_QUANTITY') || ': ' || to_char(l_line.quantity) || NL1;
1250: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_UNIT_PRICE') || ': '
1251: || to_char(l_line.unit_price, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1;
1252: l_document := l_document || fnd_message.get_string('PO', 'PO_WF_NOTIF_LINE_AMOUNT') || ': '
1253: || to_char(l_line.line_amount, FND_CURRENCY.GET_FORMAT_MASK(l_currency_code, 30)) || NL1 || NL1;
1254:
1255: exit when i = 5;
1256: end loop;
1259: l_req_details_url := substr(l_req_details_url,
1260: instr(l_req_details_url,'''',1,1)+1,
1261: instr(l_req_details_url,'''',1,2)- instr(l_req_details_url,'''',1)-1);
1262:
1263: l_document := l_document || NL1 || fnd_message.get_string('PO', 'PO_WF_NOTIF_REQ_DTLS') || ': ' ||
1264: l_req_details_url || NL1;
1265: end if;
1266:
1267: document := l_document;
1358:
1359: -- l_document := '';
1360: l_document := NL || NL || ''|| NL || NL || '
';
1361: l_document := l_document || '
1368: l_document := l_document || '
' || 1372: fnd_message.get_string('PO', 'PO_WF_NOTIF_SEQ_NUM') || ' | ' || NL;' || 1375: fnd_message.get_string('PO', 'PO_WF_NOTIF_EMPLOYEE') || ' | ' || NL;' || 1372: fnd_message.get_string('PO', 'PO_WF_NOTIF_SEQ_NUM') || ' | ' || NL;' || 1375: fnd_message.get_string('PO', 'PO_WF_NOTIF_EMPLOYEE') || ' | ' || NL;' || 1378: fnd_message.get_string('PO', 'PO_WF_NOTIF_ACTION') || ' | ' || NL;' || 1375: fnd_message.get_string('PO', 'PO_WF_NOTIF_EMPLOYEE') || ' | ' || NL;' || 1378: fnd_message.get_string('PO', 'PO_WF_NOTIF_ACTION') || ' | ' || NL;' || 1381: fnd_message.get_string('PO', 'PO_WF_NOTIF_ACTION_NOTE') || ' | ' || NL;' || 1378: fnd_message.get_string('PO', 'PO_WF_NOTIF_ACTION') || ' | ' || NL;' || 1381: fnd_message.get_string('PO', 'PO_WF_NOTIF_ACTION_NOTE') || ' | ' || NL;