PL/SQL Developer Test script 3.0
112
declare
  gnIdUtil      number(5) := 8;
  gnAn          number(4) := 2019;
  gnLuna        number(2) := 2;
  gcS           varchar2(100) := 'MARIUSM_AUTO';
  gnIdSucursala number(20) := 167;
  gnIdFirma     number(20) := 173;
begin
  pack_sesiune.set_Id_Util(gnIdUtil);
  pack_sesiune.setluna(gnLuna);
  pack_sesiune.setan(gnAn);
  pack_sesiune.setlunabal(gnLuna);
  pack_sesiune.setanbal(gnAn);
  pack_contafin.SET_DATA_RON(gcS);
  pack_sesiune.set_data_ron(gcS);
  pack_contafin.set_id_sucursala(gnIdSucursala);
  pack_contafin.set_id_firma(gnIdFirma);

  pack_facturare.initializeaza_date_factura(to_date('20190205', 'YYYYMMDD'),
                                            42,
                                            to_date('20190205', 'YYYYMMDD'),
                                            to_date('20190205', 'YYYYMMDD'),
                                            'SSS',
                                            126,
                                            252,
                                            0,
                                            0,
                                            NULL,
                                            NULL,
                                            NULL,
                                            NULL,
                                            '',
                                            '',
                                            1,
                                            25010,
                                            to_date('20190205', 'YYYYMMDD'),
                                            0,
                                            0,
                                            1,
                                            167,
                                            8);

  pack_facturare.adauga_articol_factura(1,
                                        315554536,
                                        '',
                                        '',
                                        2,
                                        19,
                                        100.0000,
                                        0.0000,
                                        0,
                                        150.00,
                                        3,
                                        1,
                                        1,
                                        1.0000,
                                        0.00,
                                        '371',
                                        0.000000,
                                        1,
                                        31,
                                        NULL,
                                        NULL,
                                        150.00,
                                        0,
                                        NULL,
                                        8);

  pack_facturare.adauga_articol_factura(2,
                                        3598545102,
                                        '',
                                        '',
                                        36,
                                        22,
                                        100.0000,
                                        0.0000,
                                        3,
                                        20.10,
                                        3,
                                        0,
                                        1,
                                        1.0000,
                                        0.00,
                                        '371',
                                        0.000000,
                                        1,
                                        31,
                                        NULL,
                                        NULL,
                                        168.07,
                                        0,
                                        NULL,
                                        8);

  pack_facturare.scrie_factura2(v_totftva             => :v_totftva,
                                v_tottva              => :v_tottva,
                                v_discount_factura    => :v_discount_factura,
                                v_serie_act_incasare  => :v_serie_act_incasare,
                                v_numar_act_incasare  => :v_numar_act_incasare,
                                v_lista_incasare      => :v_lista_incasare,
                                v_id_delegat          => :v_id_delegat,
                                v_id_masina           => :v_id_masina,
                                v_id_facturare        => :v_id_facturare,
                                v_listare_detaliata   => :v_listare_detaliata,
                                v_dataora_exp         => :v_dataora_exp,
                                v_id_agent            => :v_id_agent,
                                v_text_aditional      => :v_text_aditional,
                                v_discount_evidentiat => :v_discount_evidentiat,
                                v_parametru_aditional => :v_parametru_aditional,
                                v_id_vanzare          => :v_id_vanzare,
                                v_cursor_verificare   => :v_cursor_verificare);
end;
23
v_totftva
1
146.15
4
v_tottva
1
27.77
4
v_discount_factura
1
0
4
v_serie_act_incasare
0
5
v_numar_act_incasare
1
0
4
v_lista_incasare
0
5
v_id_delegat
1
240
4
v_id_masina
0
4
v_id_facturare
0
4
v_listare_detaliata
1
0
4
v_dataora_exp
1
2/5/2019
12
v_id_agent
0
4
v_text_aditional
0
5
v_discount_evidentiat
1
1
4
v_parametru_aditional
1
0
4
v_id_vanzare
1
694
4
v_cursor_verificare
1
<Cursor>
116
gnIdUtil
1
8
-4
gnAn
1
2019
-4
gnLuna
1
2
-4
gcS
1
MARIUSM_AUTO
-5
gnIdSucursala
1
167
-4
gnIdFirma
1
173
-4
3
lnTotalFaraTVA
lnTotalTVA
lnTotalCuTVA
