DBA Data[Home] [Help]

APPS.POS_ASN_SEARCH_PKG dependencies on POS_ASN

Line 1: PACKAGE BODY pos_asn_search_pkg AS

1: PACKAGE BODY pos_asn_search_pkg AS
2: /* $Header: POSASNSB.pls 115.8 2001/03/30 17:37:02 pkm ship $ */
3:
4: TYPE t_attribute_record IS RECORD (
5: attribute_name VARCHAR2(30),

Line 90: delete pos_asn_search_result where session_id = l_session_id;

86:
87:
88: if p_start_row = 0 then
89:
90: delete pos_asn_search_result where session_id = l_session_id;
91: commit;
92:
93: end if;
94:

Line 109:

105: htp.p('
106:
107:
108:
109: 110: NAME="criteria" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE FRAMEBORDER=NO>
111:
112: 113: NAME="counter" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING=NO NORESIZE FRAMEBORDER=NO>

Line 112:

108:
109: 110: NAME="criteria" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE FRAMEBORDER=NO>
111:
112: 113: NAME="counter" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING=NO NORESIZE FRAMEBORDER=NO>
114:
115:

Line 115: 113: NAME="counter" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING=NO NORESIZE FRAMEBORDER=NO>
114:
115: 117: NAME="result" MARGINWIDTH="5" MARGINHEIGHT="0" NORESIZE FRAMEBORDER=NO>
118:
119:

Line 119:

115: 117: NAME="result" MARGINWIDTH="5" MARGINHEIGHT="0" NORESIZE FRAMEBORDER=NO>
118:
119: 120: NAME="add" MARGINWIDTH="5" MARGINHEIGHT="10" SCROLLING=NO NORESIZE FRAMEBORDER=NO>
121:
122:
123:

Line 183: from POS_ASN_SHOP_CART_DETAILS

179: -- Check if the shopping cart is empty
180:
181: select decode(count(1), 0, 'Y', 'N')
182: into l_empty_cart
183: from POS_ASN_SHOP_CART_DETAILS
184: where session_id = l_session_id;
185:
186: if l_empty_cart = 'N' then
187:

Line 199: from POS_ASN_SHOP_CART_HEADERS ct,

195: into l_supplier_site_id,
196: l_supplier_site,
197: l_ship_to_loc_id,
198: l_ship_to_location
199: from POS_ASN_SHOP_CART_HEADERS ct,
200: PO_VENDOR_SITES vs,
201: HR_LOCATIONS hrl
202: where ct.session_id = l_session_id
203: and ct.vendor_site_id = vs.vendor_site_id

Line 249: fnd_message.get_string('ICX','ICX_POS_ASN_ENTER_CRITERIA') ||

245:
246: htp.p('');
247:
248: htp.p('');
252:
253: htp.p('
&`nbsp;' ||
249: fnd_message.get_string('ICX','ICX_POS_ASN_ENTER_CRITERIA') ||
250: '` ` ` ' ||
251: fnd_message.get_string('ICX','ICX_POS_REQUIRED_FIELD') || '
');

Line 255: htp.p('
');
257:
258: htp.p('');
259:

Line 256: '/POS_ASN_SEARCH_PKG.RESULT_FRAME" TARGET="result" METHOD="GET">');

252:
253: htp.p('

');
254:
255: htp.p('');
257:
258: htp.p('');
259:
260: htp.p('');

Line 329: fnd_message.get_string('ICX','ICX_POS_ASN_SELECT_RESULT') || '');

325:
326: htp.p('

');
327:
328: htp.p('');
330:
331: l_msg := fnd_message.get_string('ICX','ICX_POS_ASN_RESULT_COUNTER');
332:
333: l_msg := replace(l_msg, '`&TOTAL', to_char(p_total));

Line 331: l_msg := fnd_message.get_string('ICX','ICX_POS_ASN_RESULT_COUNTER');

327:
328: htp.p('

');
330:
331: l_msg := fnd_message.get_string('ICX','ICX_POS_ASN_RESULT_COUNTER');
332:
333: l_msg := replace(l_msg, '`&TOTAL', to_char(p_total));
334: l_msg := replace(l_msg, '`&FROM', to_char(p_first));
335: l_msg := replace(l_msg, '`&TO', to_char(p_last));

Line 420: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));

416:
417: l_required_flag := GetRequiredFlag('POS_VENDOR_SITE_NAME');
418:
419: IF pos_vendor_site_name IS NULL and l_required_flag = 'Y' THEN
420: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));
421: return;
422: ELSIF pos_vendor_site_id IS NOT NULL THEN
423: l_where_clause := l_where_clause || ' and supplier_site_id = ' || pos_vendor_site_id;
424: ELSIF pos_vendor_site_name IS NOT NULL THEN

Line 433: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));

429:
430: l_required_flag := GetRequiredFlag('POS_SHIP_TO_LOCATION');
431:
432: IF pos_ship_to_location IS NULL and l_required_flag = 'Y' THEN
433: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));
434: return;
435: ELSIF pos_ship_to_location_id IS NOT NULL THEN
436: l_where_clause := l_where_clause || ' and ship_to_location_id = ' || pos_ship_to_location_id;
437: ELSIF pos_ship_to_location IS NOT NULL THEN

Line 446: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));

442:
443: l_required_flag := GetRequiredFlag('POS_SUPPLIER_ITEM_NUMBER');
444:
445: IF pos_supplier_item_number IS NULL and l_required_flag = 'Y' THEN
446: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));
447: return;
448: ELSIF pos_supplier_item_number is not null then
449: l_where_clause := l_where_clause || ' and supplier_item_number like ''' || pos_supplier_item_number || '''';
450: end if;

Line 455: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));

451:
452: l_required_flag := GetRequiredFlag('POS_ITEM_DESCRIPTION');
453:
454: IF pos_item_description IS NULL and l_required_flag = 'Y' THEN
455: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));
456: return;
457: ELSIF pos_item_description is not null then
458: l_where_clause := l_where_clause || ' and item_description like ''' || pos_item_description || '''';
459: end if;

Line 467: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));

463: -- Bug# 1696725. Changed the po_number to po_num_search
464: -- while building l_where_clause to improve performance.
465:
466: IF pos_po_number IS NULL and l_required_flag = 'Y' THEN
467: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_ASN_MISSING_FIELD'));
468: return;
469: ELSIF pos_po_number is not null then
470: l_where_clause := l_where_clause || ' and po_num_search like ''' || pos_po_number || '''';
471: end if;

Line 525: delete pos_asn_search_result where session_id = l_session_id;

521: EXCEPTION
522:
523: when others then
524:
525: delete pos_asn_search_result where session_id = l_session_id;
526: commit;
527:
528: ShowResult(p_start_row, fnd_message.get_string('ICX','ICX_POS_NO_RECORDS'));
529:

Line 577: from pos_asn_shop_cart_details

573: htp.p('');
574:
575: select count(1)
576: into l_num_shipments
577: from pos_asn_shop_cart_details
578: where session_id = l_session_id;
579:
580: ak_query_pkg.exec_query(p_parent_region_appl_id=>178,
581: p_parent_region_code=>'POS_ASN_RESULT_R',

Line 581: p_parent_region_code=>'POS_ASN_RESULT_R',

577: from pos_asn_shop_cart_details
578: where session_id = l_session_id;
579:
580: ak_query_pkg.exec_query(p_parent_region_appl_id=>178,
581: p_parent_region_code=>'POS_ASN_RESULT_R',
582: p_where_clause=>l_where_clause,
583: p_responsibility_id=>icx_sec.getID(icx_sec.PV_RESPONSIBILITY_ID),
584: p_user_id=>icx_sec.getID(icx_sec.PV_WEB_USER_ID),
585: p_return_parents=>'T',

Line 595: button('javascript:parent.result.document.POS_ASN_RESULT_R.submit()',

591: htp.p('

` ' ||
329: fnd_message.get_string('ICX','ICX_POS_ASN_SELECT_RESULT') || '
` ' ||
329: fnd_message.get_string('ICX','ICX_POS_ASN_SELECT_RESULT') || '
');
592:
593: if l_num_results > 0 then
594:
595: button('javascript:parent.result.document.POS_ASN_RESULT_R.submit()',
596: fnd_message.get_string('ICX','ICX_POS_ASN_ADD'));
597:
598: end if;
599:

Line 596: fnd_message.get_string('ICX','ICX_POS_ASN_ADD'));

592:
593: if l_num_results > 0 then
594:
595: button('javascript:parent.result.document.POS_ASN_RESULT_R.submit()',
596: fnd_message.get_string('ICX','ICX_POS_ASN_ADD'));
597:
598: end if;
599:
600: htp.p('

');

Line 671: from pos_asn_shop_cart_headers

667: select ship_to_organization_id,
668: ship_to_location_id
669: into l_first_org_id,
670: l_first_loc_id
671: from pos_asn_shop_cart_headers
672: where session_id = l_session_id;
673: exception
674: when others then
675: null;

Line 699: pos_asn_search_pkg.search_page('N', 'ICX_POS_ASN_DIFF_ORG', pos_start_row);

695: end if;
696:
697: if l_first_org_id <> l_ship_to_org_id then
698: if pos_submit = 'NEXT' then
699: pos_asn_search_pkg.search_page('N', 'ICX_POS_ASN_DIFF_ORG', pos_start_row);
700: else
701: ShowResult(to_number(pos_start_row), 'ICX_POS_ASN_DIFF_ORG');
702: end if;
703: return;

Line 701: ShowResult(to_number(pos_start_row), 'ICX_POS_ASN_DIFF_ORG');

697: if l_first_org_id <> l_ship_to_org_id then
698: if pos_submit = 'NEXT' then
699: pos_asn_search_pkg.search_page('N', 'ICX_POS_ASN_DIFF_ORG', pos_start_row);
700: else
701: ShowResult(to_number(pos_start_row), 'ICX_POS_ASN_DIFF_ORG');
702: end if;
703: return;
704: end if;
705:

Line 708: pos_asn_search_pkg.search_page('N', 'ICX_POS_ASN_DIFF_LOC', pos_start_row);

704: end if;
705:
706: if l_first_loc_id <> l_ship_to_loc_id then
707: if pos_submit = 'NEXT' then
708: pos_asn_search_pkg.search_page('N', 'ICX_POS_ASN_DIFF_LOC', pos_start_row);
709: else
710: ShowResult(to_number(pos_start_row), 'ICX_POS_ASN_DIFF_LOC');
711: end if;
712: return;

Line 710: ShowResult(to_number(pos_start_row), 'ICX_POS_ASN_DIFF_LOC');

706: if l_first_loc_id <> l_ship_to_loc_id then
707: if pos_submit = 'NEXT' then
708: pos_asn_search_pkg.search_page('N', 'ICX_POS_ASN_DIFF_LOC', pos_start_row);
709: else
710: ShowResult(to_number(pos_start_row), 'ICX_POS_ASN_DIFF_LOC');
711: end if;
712: return;
713: end if;
714:

Line 723: from pos_asn_shop_cart_headers

719: -- if no, create a new ASN header.
720:
721: select count(1)
722: into l_header_count
723: from pos_asn_shop_cart_headers
724: where session_id = l_session_id;
725:
726: if l_header_count = 0 and pos_select.count > 0 then
727:

Line 743: insert into pos_asn_shop_cart_headers

739: po_headers poh
740: where poh.po_header_id = poll.po_header_id
741: and poll.line_location_id = l_po_shipment_id;
742:
743: insert into pos_asn_shop_cart_headers
744: (
745: SESSION_ID,
746: SHIP_TO_ORGANIZATION_ID,
747: SHIP_TO_LOCATION_ID,

Line 776: from pos_asn_shop_cart_details

772: FOR l_counter IN 1..pos_select.count LOOP
773:
774: select nvl(max(asn_line_id), 0) + 1
775: into l_asn_line_id
776: from pos_asn_shop_cart_details
777: where session_id = l_session_id;
778:
779: l_po_shipment_id := to_number(pos_po_shipment_id(to_number(pos_select(l_counter))));
780:

Line 794: insert into pos_asn_shop_cart_details

790: po_lines pol
791: where poll.line_location_id = l_po_shipment_id
792: and poll.po_line_id = pol.po_line_id;
793:
794: insert into pos_asn_shop_cart_details
795: (
796: SESSION_ID,
797: ASN_LINE_ID,
798: PO_LINE_LOCATION_ID,

Line 834: pos_asn.show_edit_page;

830:
831: -- If pos_submit = 'NEXT', means go to next page.
832:
833: if pos_submit = 'NEXT' then
834: pos_asn.show_edit_page;
835: else
836: ShowResult(to_number(pos_start_row));
837: end if;
838:

Line 855: delete pos_asn_search_result where session_id = p_session_id;

851: result NUMBER;
852:
853: BEGIN
854:
855: delete pos_asn_search_result where session_id = p_session_id;
856:
857: v_cursor_id := DBMS_SQL.open_cursor;
858:
859: v_stmt :=

Line 860: 'insert into pos_asn_search_result select ' || to_char(p_session_id) || ',

856:
857: v_cursor_id := DBMS_SQL.open_cursor;
858:
859: v_stmt :=
860: 'insert into pos_asn_search_result select ' || to_char(p_session_id) || ',
861: PO_HEADER_ID,
862: PO_NUMBER,
863: PO_RELEASE_ID,
864: PO_LINE_ID,

Line 887: from POS_ASN_PO_SHIPMENTS_V

883: ITEM_NUMBER,
884: ITEM_REVISION,
885: CATEGORY_ID,
886: CATEGORY
887: from POS_ASN_PO_SHIPMENTS_V
888: where ' || p_where_clause;
889:
890: DBMS_SQL.parse(v_cursor_id, v_stmt, dbms_sql.native);
891:

Line 976: p_parent_region_code=>'POS_ASN_SEARCH_R',

972:
973: BEGIN
974:
975: ak_query_pkg.exec_query(p_parent_region_appl_id=>178,
976: p_parent_region_code=>'POS_ASN_SEARCH_R',
977: p_responsibility_id=>icx_sec.getID(icx_sec.PV_RESPONSIBILITY_ID),
978: p_user_id=>icx_sec.getID(icx_sec.PV_WEB_USER_ID),
979: p_return_parents=>'F',
980: p_return_children=>'F');

Line 1124: p_parent_region_code=>'POS_ASN_ADV_SEARCH_R',

1120:
1121: BEGIN
1122:
1123: ak_query_pkg.exec_query(p_parent_region_appl_id=>178,
1124: p_parent_region_code=>'POS_ASN_ADV_SEARCH_R',
1125: p_responsibility_id=>icx_sec.getID(icx_sec.PV_RESPONSIBILITY_ID),
1126: p_user_id=>icx_sec.getID(icx_sec.PV_WEB_USER_ID),
1127: p_return_parents=>'F',
1128: p_return_children=>'F');

Line 1281: htp.p('');

1277:
1278: if p_start_row = 0 then
1279:
1280: htp.p('');
1281: htp.p('');
1282:
1283: htp.p('');
1284: htp.p('');
1285: htp.p('');

Line 1302: from POS_ASN_SHOP_CART_DETAILS

1298: end if;
1299:
1300: select decode(count(1), 0, 'Y', 'N')
1301: into l_empty_cart
1302: from POS_ASN_SHOP_CART_DETAILS
1303: where session_id = l_session_id;
1304:
1305: ak_query_pkg.exec_query(p_parent_region_appl_id=>178,
1306: p_parent_region_code=>'POS_ASN_RESULT_R',

Line 1306: p_parent_region_code=>'POS_ASN_RESULT_R',

1302: from POS_ASN_SHOP_CART_DETAILS
1303: where session_id = l_session_id;
1304:
1305: ak_query_pkg.exec_query(p_parent_region_appl_id=>178,
1306: p_parent_region_code=>'POS_ASN_RESULT_R',
1307: p_where_clause=>l_where_clause,
1308: p_responsibility_id=>icx_sec.getID(icx_sec.PV_RESPONSIBILITY_ID),
1309: p_user_id=>icx_sec.getID(icx_sec.PV_WEB_USER_ID),
1310: p_return_parents=>'T',

Line 1325: htp.p('
');

1321: end if;
1322:
1323: htp.p('');
1324:
1325: htp.p('');
1326:
1327: htp.p('');
1328: htp.p('');
1329:

Line 1360: from pos_asn_shop_cart_details

1356: l_shipment_id := to_number(get_result_value(l_result_index, 1));
1357:
1358: select count(1)
1359: into l_in_cart
1360: from pos_asn_shop_cart_details
1361: where session_id = l_session_id
1362: and po_line_location_id = l_shipment_id;
1363:
1364: if l_in_cart = 0 then

Line 1722: where REGION_CODE = 'POS_ASN_SEARCH_R'

1718:
1719: select REQUIRED_FLAG
1720: into l_required_flag
1721: from ak_region_items
1722: where REGION_CODE = 'POS_ASN_SEARCH_R'
1723: and ATTRIBUTE_CODE = p_attribute_code;
1724:
1725: return(l_required_flag);
1726:

Line 1734: END pos_asn_search_pkg;

1730: return('N');
1731:
1732: end;
1733:
1734: END pos_asn_search_pkg;