5263: -- CONSIGNED FPI
5264:
5265: l_progress := '640';
5266: -- API to copy attachments from requisition line to release shipment
5267: fnd_attached_documents2_pkg.
5268: copy_attachments('REQ_LINES',
5269: interface.requisition_line_id,
5270: '',
5271: '',
5293: WHERE requisition_line_id = interface.requisition_line_id;
5294:
5295: l_progress:='660';
5296:
5297: fnd_attached_documents2_pkg.
5298: copy_attachments('REQ_HEADERS',
5299: x_requisition_header_id,
5300: '',
5301: '',
5338: */
5339:
5340: if g_interface_source_code not in ('SOURCING','CONSUMPTION_ADVICE') then -- CONSIGNED FPI
5341: l_progress := '670';
5342: fnd_attached_documents2_pkg.
5343: copy_attachments('REQ_LINES',
5344: interface.requisition_line_id,
5345: '',
5346: '',
5368: WHERE requisition_line_id = interface.requisition_line_id;
5369:
5370: l_progress:='690';
5371:
5372: fnd_attached_documents2_pkg.
5373: copy_attachments('REQ_HEADERS',
5374: x_requisition_header_id,
5375: '',
5376: '',
5507: -- only then need to copy the one time attachments.
5508: -- copy one-time location from first actual shipment to
5509: -- each payitem.
5510: IF (l_one_time_att_doc_id IS NOT NULL) THEN
5511: fnd_attached_documents2_pkg.copy_attachments(
5512: X_from_entity_name => 'PO_SHIPMENTS'
5513: , X_from_pk1_value => x_line_location_id
5514: , X_from_pk2_value => 'ONE_TIME_LOCATION'
5515: , X_to_entity_name => 'PO_SHIPMENTS'