384: ELSIF (p_event = C_EVENT_REQUEST_INFO) THEN
385: -- Bug 12746833: Abort shortpay process (if exists), when the auditor requests more info
386: AbortShortPayProcess(p_report_header_id);
387: ELSIF (p_event = C_EVENT_RELEASE_HOLD) THEN
388: AP_WEB_HOLDS_WF.ReadyForPayment(p_report_header_id);
389:
390: IF header_rec.source = 'Both Pay' THEN
391: /* For both pay reports the status is reset on the header only if the original report contains only
392: * credit card transaction lines */
390: IF header_rec.source = 'Both Pay' THEN
391: /* For both pay reports the status is reset on the header only if the original report contains only
392: * credit card transaction lines */
393: FOR orig_cc_rec IN orig_cc_cur(header_rec.BOTHPAY_PARENT_ID) LOOP
394: AP_WEB_HOLDS_WF.ReadyForPayment(orig_cc_rec.report_header_id);
395: AP_WEB_HOLDS_WF.RaiseReleasedEvent(orig_cc_rec.report_header_id);
396: END LOOP;
397: ELSE
398: AP_WEB_HOLDS_WF.RaiseReleasedEvent(p_report_header_id);
391: /* For both pay reports the status is reset on the header only if the original report contains only
392: * credit card transaction lines */
393: FOR orig_cc_rec IN orig_cc_cur(header_rec.BOTHPAY_PARENT_ID) LOOP
394: AP_WEB_HOLDS_WF.ReadyForPayment(orig_cc_rec.report_header_id);
395: AP_WEB_HOLDS_WF.RaiseReleasedEvent(orig_cc_rec.report_header_id);
396: END LOOP;
397: ELSE
398: AP_WEB_HOLDS_WF.RaiseReleasedEvent(p_report_header_id);
399:
394: AP_WEB_HOLDS_WF.ReadyForPayment(orig_cc_rec.report_header_id);
395: AP_WEB_HOLDS_WF.RaiseReleasedEvent(orig_cc_rec.report_header_id);
396: END LOOP;
397: ELSE
398: AP_WEB_HOLDS_WF.RaiseReleasedEvent(p_report_header_id);
399:
400: /* For reports from which cc transactions were split into separate .1 report, release hold also releases
401: * the hold on the split report */
402: FOR split_cc_rec IN split_cc_cur LOOP
399:
400: /* For reports from which cc transactions were split into separate .1 report, release hold also releases
401: * the hold on the split report */
402: FOR split_cc_rec IN split_cc_cur LOOP
403: AP_WEB_HOLDS_WF.ReadyForPayment(split_cc_rec.report_header_id);
404: END LOOP;
405: END IF;
406: ELSIF (p_event = C_EVENT_SHORTPAY) THEN
407: IF l_new_status = C_STATUS_NOT_REQUIRED THEN