
** spracujdat
IF m.edipor=0
    INSERT INTO edihlav (id_edi, subor, c_data, c_faktury, dat_vyst, edi_kod) VALUES (m.hladajidedi,           "vypadok"                    , m.cdata, SUBSTR(m.txt,4,10),CTOD(SUBSTR(m.txt,36,10)), m.kodedistred)
ELSE
    INSERT INTO edihlav (id_edi, subor, c_data, c_faktury, dat_vyst, edi_kod) VALUES (m.hladajidedi, SUBSTR(m.orimeno, RAT("\",m.orimeno)+1), m.cdata, SUBSTR(m.txt,4,10),CTOD(SUBSTR(m.txt,36,10)), m.kodedistred)
ENDIF 

** spracuj_xmlhelios
IF m.edipor=0
    INSERT INTO edihlav (id_edi, subor, c_data, edi_kod, edi_stred) VALUES (m.hladajidedi,        "vypadok"                       , m.cdata, m.kod_edi, m.provozovna)
ELSE
    INSERT INTO edihlav (id_edi, subor, c_data, edi_kod, edi_stred) VALUES (m.hladajidedi, SUBSTR(m.orimeno, RAT("\",m.orimeno)+1), m.cdata, m.kod_edi, m.provozovna)
ENDIF 


** spracuj_xmllabas
** spracuj_xmlmoney
** spracuj_xmloberon
** spracuj_xmlpasbardejov
** spracuj_xmlpohodu
** spracuj_xmlwac_object
** spracuj_xlmellal
** spracujeancom

IF m.edipor=0
    INSERT INTO edihlav (id_edi, subor, c_data, edi_kod) VALUES (m.hladajidedi,              "vypadok"                 , m.cdata, m.kodedistred)
ELSE
    INSERT INTO edihlav (id_edi, subor, c_data, edi_kod) VALUES (m.hladajidedi, SUBSTR(m.orimeno, RAT("\",m.orimeno)+1), m.cdata, m.kodedistred)
ENDIF 
