606:
607: end if;
608:
609: if jai_pa_billing_pkg.gv_debug then
610: jai_cmn_utils_pkg.print_log ( jai_pa_billing_pkg.file, '4 rocess_Vat. BefCall to jai_cmn_rgm_vat_accnt_pkg.process_order_invoice. DraftInvoceId:'||r_draft_invoice_dtls.draft_invoice_id);
611: end if;
612:
613: if lv_credit_memo_flag = jai_constants.yes then
614: lv_called_from := 'DRAFT_INVOICE_CM';
623: end if;
624:
625: /* Repository Hitting + VAT interim accounting should happen here.
626: VAT Interim to Liability will happend in AR invoice is imported */
627: jai_cmn_rgm_vat_accnt_pkg.process_order_invoice (
628: p_regime_id => ln_regime_id,
629: p_source => jai_pa_billing_pkg.gv_source_projects,
630: p_organization_id => r_draft_invoice_dtls.organization_id,
631: p_location_id => r_draft_invoice_dtls.location_id,
641: p_process_message => pv_process_message
642: );
643:
644: if jai_pa_billing_pkg.gv_debug then
645: jai_cmn_utils_pkg.print_log ( jai_pa_billing_pkg.file, '6 process_Vat. AftCall to jai_cmn_rgm_vat_accnt_pkg.process_order_invoice. pv_process_message:'||pv_process_message);
646: end if;
647:
648: if pv_process_flag in (jai_constants.unexpected_error, jai_constants.expected_error, 'E') then
649: goto end_of_procedure;