568: end if;
569:
570: if lv_vat_invoice_no is null then
571: if jai_pa_billing_pkg.gv_debug then
572: jai_cmn_utils_pkg.print_log ( jai_pa_billing_pkg.file, '2 rocess_Vat. BefCall to jai_cmn_rgm_setup_pkg.gen_invoice_number. Regime:'||ln_regime_id);
573: end if;
574:
575: /* generation of vat invoice number uses the Default VAT Doc sequence setup */
576: jai_cmn_rgm_setup_pkg.gen_invoice_number(
572: jai_cmn_utils_pkg.print_log ( jai_pa_billing_pkg.file, '2 rocess_Vat. BefCall to jai_cmn_rgm_setup_pkg.gen_invoice_number. Regime:'||ln_regime_id);
573: end if;
574:
575: /* generation of vat invoice number uses the Default VAT Doc sequence setup */
576: jai_cmn_rgm_setup_pkg.gen_invoice_number(
577: p_regime_id => ln_regime_id ,
578: p_organization_id => r_draft_invoice_dtls.organization_id ,
579: p_location_id => r_draft_invoice_dtls.location_id ,
580: p_date => sysdate ,
585: p_process_msg => pv_process_message
586: );
587:
588: if jai_pa_billing_pkg.gv_debug then
589: jai_cmn_utils_pkg.print_log ( jai_pa_billing_pkg.file, '3 rocess_Vat. AftCall to jai_cmn_rgm_setup_pkg.gen_invoice_number. lv_vat_invoice_no:'||lv_vat_invoice_no);
590: end if;
591:
592: end if;
593: