43: and close_bidding_date > p_new_close_date;
44:
45: -- send notifications
46: if (p_close_now_flag = 'Y') then
47: pon_auction_pkg.CLOSEEARLY_AUCTION(p_auction_header_id,
48: p_new_close_date,
49: p_reason);
50: else
51: pon_auction_pkg.CLOSECHANGED_AUCTION(p_auction_header_id,
47: pon_auction_pkg.CLOSEEARLY_AUCTION(p_auction_header_id,
48: p_new_close_date,
49: p_reason);
50: else
51: pon_auction_pkg.CLOSECHANGED_AUCTION(p_auction_header_id,
52: 2, -- type code
53: p_new_close_date,
54: p_reason);
55: end if;
110:
111: -- if an autocreated document is cancelled, return the
112: -- backing requisitions to the req. pool
113: if (x_auction_origination_code = 'REQUISITION') then
114: PON_AUCTION_PKG.CANCEL_NEGOTIATION_REF(p_auction_header_id, x_error_code);
115: end if;
116:
117: -- if good so far, kick off workflow notification process.
118: if (p_send_note_flag = 'Y' and x_error_code = 'SUCCESS') then
115: end if;
116:
117: -- if good so far, kick off workflow notification process.
118: if (p_send_note_flag = 'Y' and x_error_code = 'SUCCESS') then
119: PON_AUCTION_PKG.CANCEL_AUCTION(p_auction_header_id);
120: end if;
121:
122: END CANCEL_NEGOTIATION;
123:
286: -- Call WorkFlow
287: -- dont call the work flow if the negotiation is paused (Resume Negotaition case).
288: if (v_ispaused <> 'Y') then
289: if ( p_close_date < x_new_close_date) then
290: pon_auction_pkg.CLOSECHANGED_AUCTION(p_auction_header_id,
291: 1, -- type code
292: x_new_close_date,
293: NULL);
294: end if;
418: -- copy negotiation references locally
419:
420: if (p_auction_origination_code = 'REQUISITION') then
421:
422: PON_AUCTION_PKG.COPY_BACKING_REQ(p_auction_header_id_prev_doc, p_auction_header_id_curr_doc, x_error_code);
423:
424: end if;
425:
426:
438: if (p_is_publish = 'Y' and x_error_code = 'SUCCESS') then
439:
440: if (p_auction_origination_code = 'REQUISITION') then
441:
442: PON_AUCTION_PKG.UPDATE_NEGOTIATION_REF(p_auction_header_id_prev_doc, v_doc_number_prev_doc, p_auction_header_id_curr_doc, p_doc_number_curr_doc, x_error_code, x_error_msg);
443:
444: end if;
445:
446: -- previous active bids are no longer valid
1304: module => g_module_prefix || l_module_name,
1305: message => 'Updated header sending notification.');
1306: END IF;
1307:
1308: pon_auction_pkg.CLOSEEARLY_AUCTION(p_auction_header_id,
1309: p_new_close_date,
1310: null);
1311: end if;
1312: