354: l_debug_info := 'Getting period name for the lines based on the gl_date for '||
355: 'the credit/debit memo';
356: ----------------------------------------------------------------------------
357:
358: l_period_name := AP_INVOICES_PKG.Get_Period_Name(
359: l_invoice_date => P_Dm_Gl_Date,
360: l_receipt_date => null,
361: l_org_id => P_Dm_Org_Id);
362:
524: ELSE
525: ----------------------------------------------------------------------------
526: l_debug_info := 'The line is NOT PO or RCV matched - Create line';
527: ----------------------------------------------------------------------------
528: l_line_number := AP_INVOICES_PKG.get_max_line_number(P_invoice_id)+1;
529:
530: BEGIN
531: INSERT INTO ap_invoice_lines_all(
532: invoice_id,