20240923@074633.6952 4osavbfm1mhu18h295dopjpt1u INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240923@074633.6951 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074633.6955 4osavbfm1mhu18h295dopjpt1u Query : select szadrsstamp valor from szadrs where szadrsdesc='macorlux - electrodomÉsticos, s.a.'
20240923@074633.7013 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074633.7016 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from td where ndoc = 39
20240923@074633.7029 4osavbfm1mhu18h295dopjpt1u Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074633.7066 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.7083 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074633.7102 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.7117 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074633.7145 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.7158 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074633.7171 4osavbfm1mhu18h295dopjpt1u Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074633.7238 4osavbfm1mhu18h295dopjpt1u Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074633.7251 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.7266 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074633.7281 4osavbfm1mhu18h295dopjpt1u Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074633.7455 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.7472 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074633.7507 4osavbfm1mhu18h295dopjpt1u Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074633.7519 4osavbfm1mhu18h295dopjpt1u Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074633.7531 4osavbfm1mhu18h295dopjpt1u Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074633.7543 4osavbfm1mhu18h295dopjpt1u Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074633.7555 4osavbfm1mhu18h295dopjpt1u Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074633.7566 4osavbfm1mhu18h295dopjpt1u Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074633.7577 4osavbfm1mhu18h295dopjpt1u Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f107634566f10ec9af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074633.7822 4osavbfm1mhu18h295dopjpt1u Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074633.7842 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.7859 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074633.7881 4osavbfm1mhu18h295dopjpt1u Query : select 'normal' from dummy
20240923@074633.7896 4osavbfm1mhu18h295dopjpt1u Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f107634566f10ec9af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',846,101645,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074633.8177 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074633.8180 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074633.8202 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074633.8340 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8355 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.8400 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8414 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.8423 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074633.8435 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074633.8457 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8471 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.8483 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108782866f10ec9ce','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074633.8487 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8502 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.8533 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f108782866f10ec9ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074633.8789 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074633.8792 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074633.8811 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074633.8825 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8840 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.8867 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8881 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.8890 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074633.8903 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074633.8915 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8930 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.8942 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103753966f10ec9d9','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074633.8946 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.8960 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.8987 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f103753966f10ec9d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240923@074633.9231 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074633.9234 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074633.9254 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074633.9268 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9285 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.9310 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9326 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.9335 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074633.9347 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074633.9359 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9374 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.9385 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103143566f10ec9e4','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074633.9389 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9404 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.9434 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f103143566f10ec9e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240923@074633.9670 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074633.9673 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074633.9691 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074633.9705 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9719 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.9746 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9760 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.9769 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074633.9780 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074633.9793 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9808 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074633.9820 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109104066f10ec9ef','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074633.9824 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074633.9839 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074633.9869 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109104066f10ec9ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074634.1190 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074634.1220 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074634.1420 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074634.1550 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1700 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.1960 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2110 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.2190 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.2310 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074634.2430 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2570 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.2680 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f107542766f10eca05','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.2720 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2870 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.3140 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f107542766f10eca05',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240923@074634.5800 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074634.5830 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074634.6030 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074634.6160 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.6310 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.6580 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.6750 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.6830 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.6960 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074634.7090 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.7220 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.7340 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109840166f10eca11','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.7380 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.7520 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.7900 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109840166f10eca11',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240923@074634.1038 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074634.1041 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240923@074634.1060 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20240923@074634.1073 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1089 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.1113 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1127 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.1135 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.1147 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240923@074634.1159 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1174 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.1185 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106897566f10eca1c','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.1189 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1203 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.1235 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106897566f10eca1c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240923@074634.1491 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074634.1495 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240923@074634.1515 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20240923@074634.1707 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1723 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.1750 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1764 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.1772 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.1784 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240923@074634.1818 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1833 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.1844 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f107229166f10eca2c','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.1848 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.1863 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.1892 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f107229166f10eca2c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',25.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240923@074634.2139 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074634.2141 4osavbfm1mhu18h295dopjpt1u Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240923@074634.2161 4osavbfm1mhu18h295dopjpt1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20240923@074634.2174 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2189 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.2214 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2229 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.2237 4osavbfm1mhu18h295dopjpt1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.2249 4osavbfm1mhu18h295dopjpt1u Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240923@074634.2261 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2275 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.2286 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103194566f10eca37','aut66f107634566f10ec9af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.2290 4osavbfm1mhu18h295dopjpt1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.2304 4osavbfm1mhu18h295dopjpt1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.2332 4osavbfm1mhu18h295dopjpt1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f103194566f10eca37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',25.000 ,'aut66f107634566f10ec9af' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240923@074634.2587 4osavbfm1mhu18h295dopjpt1u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f107634566f10ec9af','2406067','wait',39,'adm09112754980.682000002')
20240923@074634.3806 4osavbfm1mhu18h295dopjpt1u Query : use flama_phc
20240923@074634.3809 4osavbfm1mhu18h295dopjpt1u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074634.3845 4osavbfm1mhu18h295dopjpt1u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2113';
20240923@074634.3877 4osavbfm1mhu18h295dopjpt1u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2113';
20240923@074634.3918 4osavbfm1mhu18h295dopjpt1u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2113';
20240923@074634.3944 4osavbfm1mhu18h295dopjpt1u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2113';
20240923@074634.5090 1j0u959nph60lcrp1i95sfhbji Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074634.5102 1j0u959nph60lcrp1i95sfhbji Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074634.5156 1j0u959nph60lcrp1i95sfhbji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2114';
20240923@074634.5230 1j0u959nph60lcrp1i95sfhbji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2114';
20240923@074634.5285 1j0u959nph60lcrp1i95sfhbji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2114';
20240923@074634.5310 1j0u959nph60lcrp1i95sfhbji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2114';
20240923@074634.5364 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.5367 1j0u959nph60lcrp1i95sfhbji Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074634.5436 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.5439 1j0u959nph60lcrp1i95sfhbji Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240923@074634.5558 1j0u959nph60lcrp1i95sfhbji Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20240923@074634.5942 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406073 and bi.ref ='324.1685.00.1' and bi.lordem =1
20240923@074634.6519 1j0u959nph60lcrp1i95sfhbji Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240923@074634.6678 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406073 and bi.ref ='324.1684.00.1' and bi.lordem =2
20240923@074634.7024 1j0u959nph60lcrp1i95sfhbji Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1578.00.1'
20240923@074634.7248 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406073 and bi.ref ='324.1578.00.1' and bi.lordem =3
20240923@074634.7554 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7557 1j0u959nph60lcrp1i95sfhbji Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074634.7592 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7594 1j0u959nph60lcrp1i95sfhbji Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074634.7624 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7627 1j0u959nph60lcrp1i95sfhbji Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074634.7654 1j0u959nph60lcrp1i95sfhbji Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074634.7687 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7690 1j0u959nph60lcrp1i95sfhbji Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074634.7807 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7810 1j0u959nph60lcrp1i95sfhbji Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074634.7838 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7841 1j0u959nph60lcrp1i95sfhbji Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074634.7884 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7888 1j0u959nph60lcrp1i95sfhbji Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240923@074634.7939 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.7942 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from td where ndoc = 39
20240923@074634.7954 1j0u959nph60lcrp1i95sfhbji Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074634.7967 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.7982 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074634.8000 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.8014 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074634.8041 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.8055 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074634.8067 1j0u959nph60lcrp1i95sfhbji Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074634.8132 1j0u959nph60lcrp1i95sfhbji Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074634.8145 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.8159 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074634.8174 1j0u959nph60lcrp1i95sfhbji Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f104537066f10ecac4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074634.8348 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.8364 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074634.8395 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074634.8407 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074634.8418 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074634.8430 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074634.8441 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074634.8452 1j0u959nph60lcrp1i95sfhbji Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074634.8463 1j0u959nph60lcrp1i95sfhbji Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f104537066f10ecac4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074634.8691 1j0u959nph60lcrp1i95sfhbji Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074634.8712 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.8727 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074634.8748 1j0u959nph60lcrp1i95sfhbji Query : select 'normal' from dummy
20240923@074634.8762 1j0u959nph60lcrp1i95sfhbji Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f104537066f10ecac4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',847,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074634.9040 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.9044 1j0u959nph60lcrp1i95sfhbji Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240923@074634.9065 1j0u959nph60lcrp1i95sfhbji Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240923@074634.9211 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9226 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.9252 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9266 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.9275 1j0u959nph60lcrp1i95sfhbji Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.9286 1j0u959nph60lcrp1i95sfhbji Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240923@074634.9312 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9326 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.9338 1j0u959nph60lcrp1i95sfhbji Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f102947466f10ecae3','aut66f104537066f10ecac4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.9342 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9356 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.9383 1j0u959nph60lcrp1i95sfhbji Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f102947466f10ecae3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104537066f10ecac4' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074634.9624 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074634.9627 1j0u959nph60lcrp1i95sfhbji Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240923@074634.9646 1j0u959nph60lcrp1i95sfhbji Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1684.00.1'
20240923@074634.9789 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9805 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.9829 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9844 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.9852 1j0u959nph60lcrp1i95sfhbji Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074634.9864 1j0u959nph60lcrp1i95sfhbji Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240923@074634.9884 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9899 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074634.9910 1j0u959nph60lcrp1i95sfhbji Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104959266f10ecaf1','aut66f104537066f10ecac4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074634.9914 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074634.9928 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074634.9954 1j0u959nph60lcrp1i95sfhbji Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104959266f10ecaf1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104537066f10ecac4' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240923@074635.2370 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074635.2400 1j0u959nph60lcrp1i95sfhbji Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240923@074635.2600 1j0u959nph60lcrp1i95sfhbji Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1578.00.1'
20240923@074635.7200 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.7360 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074635.7610 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.7750 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074635.7840 1j0u959nph60lcrp1i95sfhbji Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074635.7950 1j0u959nph60lcrp1i95sfhbji Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240923@074635.8210 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.8350 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074635.8470 1j0u959nph60lcrp1i95sfhbji Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f102349966f10ecb14','aut66f104537066f10ecac4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074635.8510 1j0u959nph60lcrp1i95sfhbji Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.8650 1j0u959nph60lcrp1i95sfhbji Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074635.8920 1j0u959nph60lcrp1i95sfhbji Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f102349966f10ecb14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104537066f10ecac4' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240923@074635.1130 1j0u959nph60lcrp1i95sfhbji Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f104537066f10ecac4','2406073','wait',39,'adm09112754980.682000002')
20240923@074635.1206 1j0u959nph60lcrp1i95sfhbji Query : use flama_phc
20240923@074635.1209 1j0u959nph60lcrp1i95sfhbji Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074635.1242 1j0u959nph60lcrp1i95sfhbji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2114';
20240923@074635.1269 1j0u959nph60lcrp1i95sfhbji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2114';
20240923@074635.1314 1j0u959nph60lcrp1i95sfhbji Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2114';
20240923@074635.1339 1j0u959nph60lcrp1i95sfhbji Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2114';
20240923@074635.2106 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074635.2118 hjrm0giidio47u1gvk7b9oo2q7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074635.2175 hjrm0giidio47u1gvk7b9oo2q7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2115';
20240923@074635.2226 hjrm0giidio47u1gvk7b9oo2q7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2115';
20240923@074635.2282 hjrm0giidio47u1gvk7b9oo2q7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2115';
20240923@074635.2307 hjrm0giidio47u1gvk7b9oo2q7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2115';
20240923@074635.2463 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.2505 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074635.2593 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.2597 hjrm0giidio47u1gvk7b9oo2q7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240923@074635.2639 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240923@074635.2796 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406074 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240923@074635.3116 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.3119 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074635.3179 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.3182 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074635.3251 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.4339 hjrm0giidio47u1gvk7b9oo2q7 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074635.4382 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074635.4418 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.4421 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074635.4454 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.4460 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074635.4492 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.4496 hjrm0giidio47u1gvk7b9oo2q7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074635.4536 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.4540 hjrm0giidio47u1gvk7b9oo2q7 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240923@074635.4589 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.4592 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from td where ndoc = 39
20240923@074635.4604 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074635.4619 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.4635 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074635.4652 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.4665 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074635.4692 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.4706 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074635.4721 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074635.4788 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074635.4803 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.4817 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074635.4831 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f104958166f10ecb73' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074635.5009 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.5028 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074635.5062 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074635.5073 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074635.5086 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074635.5097 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074635.5108 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074635.5119 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074635.5130 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f104958166f10ecb73',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074635.5359 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074635.5381 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.5396 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074635.5417 hjrm0giidio47u1gvk7b9oo2q7 Query : select 'normal' from dummy
20240923@074635.5431 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f104958166f10ecb73',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',848,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074635.5712 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.5715 hjrm0giidio47u1gvk7b9oo2q7 Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240923@074635.5739 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240923@074635.5876 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.5891 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074635.5914 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.5928 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074635.5936 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074635.5948 hjrm0giidio47u1gvk7b9oo2q7 Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240923@074635.6125 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.6145 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074635.6157 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109881466f10ecb95','aut66f104958166f10ecb73' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074635.6162 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.6176 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074635.6206 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109881466f10ecb95',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104958166f10ecb73' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074635.6471 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.6487 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074635.6538 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.6552 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074635.6560 hjrm0giidio47u1gvk7b9oo2q7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074635.6573 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.6589 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074635.6600 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f105420566f10ecba0','aut66f104958166f10ecb73' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074635.6604 hjrm0giidio47u1gvk7b9oo2q7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074635.6619 hjrm0giidio47u1gvk7b9oo2q7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074635.6647 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f105420566f10ecba0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f104958166f10ecb73' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074635.6909 hjrm0giidio47u1gvk7b9oo2q7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f104958166f10ecb73','2406074','wait',39,'adm09112754980.682000002')
20240923@074635.7001 hjrm0giidio47u1gvk7b9oo2q7 Query : use flama_phc
20240923@074635.7004 hjrm0giidio47u1gvk7b9oo2q7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074635.7057 hjrm0giidio47u1gvk7b9oo2q7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2115';
20240923@074635.7089 hjrm0giidio47u1gvk7b9oo2q7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2115';
20240923@074635.7140 hjrm0giidio47u1gvk7b9oo2q7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2115';
20240923@074635.7169 hjrm0giidio47u1gvk7b9oo2q7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2115';
20240923@074635.7637 gv9297d9j3rirc88fmpjqpf6mq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074635.7650 gv9297d9j3rirc88fmpjqpf6mq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074635.7702 gv9297d9j3rirc88fmpjqpf6mq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2116';
20240923@074635.7764 gv9297d9j3rirc88fmpjqpf6mq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2116';
20240923@074635.7823 gv9297d9j3rirc88fmpjqpf6mq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2116';
20240923@074635.7848 gv9297d9j3rirc88fmpjqpf6mq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2116';
20240923@074635.7895 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.7898 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074635.7968 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.7971 gv9297d9j3rirc88fmpjqpf6mq Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240923@074635.8051 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20240923@074635.8212 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406075 and bi.ref ='328.9326.00.1' and bi.lordem =1
20240923@074635.8519 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20240923@074635.8667 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406075 and bi.ref ='328.9345.00.1' and bi.lordem =2
20240923@074635.9277 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9282 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074635.9444 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9451 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074635.9749 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9752 gv9297d9j3rirc88fmpjqpf6mq Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074635.9779 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074635.9850 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9867 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074635.9900 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9904 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074635.9936 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9939 gv9297d9j3rirc88fmpjqpf6mq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074635.9984 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074635.9986 gv9297d9j3rirc88fmpjqpf6mq Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240923@074636.4400 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074636.4700 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from td where ndoc = 39
20240923@074636.5800 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074636.7100 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8700 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074636.1070 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1220 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074636.1560 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1710 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074636.1830 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074636.2510 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074636.2630 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.2780 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074636.2930 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f104718266f10ecc04' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074636.4720 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.4920 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074636.5470 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074636.5590 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074636.5700 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074636.5810 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074636.5920 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074636.6030 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074636.6140 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f104718266f10ecc04',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074636.8610 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074636.8800 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8960 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074636.9160 gv9297d9j3rirc88fmpjqpf6mq Query : select 'normal' from dummy
20240923@074636.9310 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f104718266f10ecc04',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',849,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074636.1213 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074636.1216 gv9297d9j3rirc88fmpjqpf6mq Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240923@074636.1238 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20240923@074636.1376 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1392 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.1417 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1431 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.1439 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074636.1451 gv9297d9j3rirc88fmpjqpf6mq Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240923@074636.1485 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1500 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.1517 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106314066f10ecc24','aut66f104718266f10ecc04' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074636.1521 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1536 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.1565 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106314066f10ecc24',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f104718266f10ecc04' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074636.1823 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1838 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.1862 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1877 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.1885 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074636.1897 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1911 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.1921 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106783866f10ecc2e','aut66f104718266f10ecc04' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074636.1925 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.1939 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.1968 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f106783866f10ecc2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f104718266f10ecc04' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074636.2198 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074636.2202 gv9297d9j3rirc88fmpjqpf6mq Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20240923@074636.2221 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20240923@074636.2362 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.2376 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.2402 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.2416 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.2424 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074636.2436 gv9297d9j3rirc88fmpjqpf6mq Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20240923@074636.2457 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.2482 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.2626 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104154066f10ecc3b','aut66f104718266f10ecc04' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074636.2773 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.2850 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.3000 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104154066f10ecc3b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104718266f10ecc04' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074636.3672 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.3725 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.3776 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.3791 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.3799 gv9297d9j3rirc88fmpjqpf6mq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074636.3811 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.3825 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.3836 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108630766f10ecc5d','aut66f104718266f10ecc04' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074636.3840 gv9297d9j3rirc88fmpjqpf6mq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.3855 gv9297d9j3rirc88fmpjqpf6mq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.3883 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f108630766f10ecc5d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f104718266f10ecc04' ,0,0 ,2,23.00,50000,?,?,?)
20240923@074636.4133 gv9297d9j3rirc88fmpjqpf6mq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f104718266f10ecc04','2406075','wait',39,'adm09112754980.682000002')
20240923@074636.4213 gv9297d9j3rirc88fmpjqpf6mq Query : use flama_phc
20240923@074636.4216 gv9297d9j3rirc88fmpjqpf6mq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074636.4249 gv9297d9j3rirc88fmpjqpf6mq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2116';
20240923@074636.4286 gv9297d9j3rirc88fmpjqpf6mq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2116';
20240923@074636.5434 gv9297d9j3rirc88fmpjqpf6mq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2116';
20240923@074636.5466 gv9297d9j3rirc88fmpjqpf6mq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2116';
20240923@074636.5976 2fm40aek8qib9rb52e00mn3bqg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074636.5989 2fm40aek8qib9rb52e00mn3bqg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074636.6045 2fm40aek8qib9rb52e00mn3bqg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2117';
20240923@074636.6100 2fm40aek8qib9rb52e00mn3bqg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2117';
20240923@074636.6169 2fm40aek8qib9rb52e00mn3bqg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2117';
20240923@074636.6194 2fm40aek8qib9rb52e00mn3bqg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2117';
20240923@074636.6246 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.6249 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074636.6320 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.6323 2fm40aek8qib9rb52e00mn3bqg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240923@074636.6364 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240923@074636.6521 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406076 and bi.ref ='324.698.00.01' and bi.lordem =1
20240923@074636.6828 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.6831 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074636.6864 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.6867 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074636.6897 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.6900 2fm40aek8qib9rb52e00mn3bqg Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074636.6928 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074636.6965 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.6968 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074636.7002 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.7005 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074636.7036 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.7039 2fm40aek8qib9rb52e00mn3bqg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074636.7155 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.7158 2fm40aek8qib9rb52e00mn3bqg Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240923@074636.7255 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.7258 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from td where ndoc = 39
20240923@074636.7271 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074636.7285 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.7409 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074636.7482 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.7498 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074636.7526 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.7540 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074636.7552 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074636.7620 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074636.7632 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.7647 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074636.7662 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f104239466f10eccb8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074636.7835 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.7853 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074636.7890 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074636.7902 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074636.7913 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074636.7925 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074636.7937 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074636.7948 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074636.7960 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f104239466f10eccb8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074636.8196 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074636.8219 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8235 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074636.8259 2fm40aek8qib9rb52e00mn3bqg Query : select 'normal' from dummy
20240923@074636.8274 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f104239466f10eccb8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',850,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074636.8557 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.8560 2fm40aek8qib9rb52e00mn3bqg Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20240923@074636.8581 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.698.00.01'
20240923@074636.8725 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8740 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.8768 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8782 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.8791 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074636.8803 2fm40aek8qib9rb52e00mn3bqg Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2301182200a'
20240923@074636.8837 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8856 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.8867 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106247466f10eccd7','aut66f104239466f10eccb8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074636.8871 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.8885 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.8915 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106247466f10eccd7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104239466f10eccb8' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074636.9182 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.9198 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.9226 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.9241 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.9250 2fm40aek8qib9rb52e00mn3bqg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074636.9262 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.9276 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074636.9288 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f105322766f10ecce2','aut66f104239466f10eccb8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074636.9292 2fm40aek8qib9rb52e00mn3bqg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074636.9307 2fm40aek8qib9rb52e00mn3bqg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074636.9335 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f105322766f10ecce2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f104239466f10eccb8' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074636.9580 2fm40aek8qib9rb52e00mn3bqg Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f104239466f10eccb8','2406076','wait',39,'adm09112754980.682000002')
20240923@074636.9662 2fm40aek8qib9rb52e00mn3bqg Query : use flama_phc
20240923@074636.9665 2fm40aek8qib9rb52e00mn3bqg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074636.9699 2fm40aek8qib9rb52e00mn3bqg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2117';
20240923@074636.9858 2fm40aek8qib9rb52e00mn3bqg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2117';
20240923@074637.4700 2fm40aek8qib9rb52e00mn3bqg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2117';
20240923@074637.8300 2fm40aek8qib9rb52e00mn3bqg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2117';
20240923@074637.6070 ivdv50c6t8lq56unrfgmt87kbf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074637.6200 ivdv50c6t8lq56unrfgmt87kbf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074637.6950 ivdv50c6t8lq56unrfgmt87kbf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2118';
20240923@074637.7520 ivdv50c6t8lq56unrfgmt87kbf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2118';
20240923@074637.8190 ivdv50c6t8lq56unrfgmt87kbf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2118';
20240923@074637.8440 ivdv50c6t8lq56unrfgmt87kbf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2118';
20240923@074637.8990 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.9020 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074637.9700 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.9730 ivdv50c6t8lq56unrfgmt87kbf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240923@074637.1015 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1175 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1493 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1516 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1541 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1560 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1578 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1601 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1635 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1657 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1676 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1694 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1712 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1731 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1751 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@074637.1774 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406077 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@074637.1792 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.1795 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074637.1827 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.1830 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074637.1863 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.1865 ivdv50c6t8lq56unrfgmt87kbf Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074637.1918 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074637.1953 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.1956 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074637.1988 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.1991 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074637.2022 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.2024 ivdv50c6t8lq56unrfgmt87kbf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074637.2068 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.2071 ivdv50c6t8lq56unrfgmt87kbf Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240923@074637.2117 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.2124 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from td where ndoc = 39
20240923@074637.2136 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074637.2150 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.2166 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074637.2184 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.2199 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074637.2232 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.2248 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074637.2261 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074637.2328 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074637.2341 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.2355 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074637.2370 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074637.2551 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.2567 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074637.2605 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074637.2617 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074637.2629 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074637.2640 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074637.2652 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074637.2663 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074637.2674 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f106908166f10ecd37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074637.2916 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074637.2936 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.2951 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074637.4089 ivdv50c6t8lq56unrfgmt87kbf Query : select 'normal' from dummy
20240923@074637.4104 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f106908166f10ecd37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',851,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074637.4408 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.4412 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.4433 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.4589 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.4613 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.4656 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.4670 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.4678 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.4690 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.4709 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.4723 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.4739 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104129166f10ecd72','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.4743 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.4757 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.4785 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104129166f10ecd72',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074637.5050 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5070 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.5098 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5113 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.5122 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.5135 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5149 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.5160 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100544766f10ecd7d','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.5164 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5179 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.5206 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f100544766f10ecd7d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074637.5461 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.5464 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.5482 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.5496 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5515 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.5540 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5555 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.5563 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.5575 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.5588 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5607 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.5619 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f102997866f10ecd88','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.5622 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5637 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.5666 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f102997866f10ecd88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074637.5910 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5938 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.5979 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.5997 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.6006 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.6026 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6042 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.6054 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104486166f10ecd93','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.6065 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6079 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.6106 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f104486166f10ecd93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,50000,?,?,?)
20240923@074637.6400 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.6404 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.6422 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.6436 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6451 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.6482 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6497 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.6506 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.6517 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.6533 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6547 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.6559 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109423566f10ecd9f','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.6563 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6577 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.6605 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109423566f10ecd9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240923@074637.6865 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6881 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.6906 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6920 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.6929 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.6940 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6955 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.6966 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103929766f10ecda9','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.6970 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.6984 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.7016 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f103929766f10ecda9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,80000,?,?,?)
20240923@074637.7266 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.7270 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.7289 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.7303 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7317 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.7343 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7357 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.7365 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.7377 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.7389 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7403 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.7415 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101834966f10ecdb4','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.7419 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7433 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.7463 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f101834966f10ecdb4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240923@074637.7716 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7730 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.7755 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7769 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.7777 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.7789 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7807 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.7819 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100842166f10ecdbe','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.7823 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.7838 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.7867 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f100842166f10ecdbe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,110000,?,?,?)
20240923@074637.8112 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.8115 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.8134 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.8147 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8161 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.8185 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8199 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.8211 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.8224 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.8237 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8251 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.8266 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108768966f10ecdc9','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.8270 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8284 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.8311 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f108768966f10ecdc9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240923@074637.8563 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8577 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.8602 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8619 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.8627 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.8639 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8653 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.8663 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109083266f10ecdd2','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.8667 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.8681 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.8715 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f109083266f10ecdd2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,140000,?,?,?)
20240923@074637.8953 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.8956 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.8978 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.8991 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9007 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.9033 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9046 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.9056 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.9071 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.9084 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9098 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.9109 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101625066f10ecddd','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.9113 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9127 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.9155 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f101625066f10ecddd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240923@074637.9408 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9423 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.9452 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9467 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.9475 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.9487 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9502 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.9513 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104755566f10ecde7','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.9517 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9531 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.9565 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f104755566f10ecde7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,170000,?,?,?)
20240923@074637.9812 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074637.9815 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074637.9834 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074637.9847 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9863 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074637.9887 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9901 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.9910 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074637.9924 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074637.9937 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9951 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074637.9967 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103570966f10ecdf2','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074637.9971 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074637.9986 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.1400 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f103570966f10ecdf2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240923@074638.2840 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.3000 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.1471 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.1486 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.1495 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074638.1508 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.1522 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.1534 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f107917666f10ece24','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074638.1538 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.1553 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.1580 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f107917666f10ece24',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,200000,?,?,?)
20240923@074638.1849 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074638.1853 ivdv50c6t8lq56unrfgmt87kbf Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@074638.1878 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@074638.1891 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.1909 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.1938 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.1952 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.1960 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074638.1971 ivdv50c6t8lq56unrfgmt87kbf Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@074638.1982 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.1996 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.2007 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f107582966f10ece30','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074638.2013 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.2029 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.2057 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f107582966f10ece30',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240923@074638.2314 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.2328 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.2356 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.2372 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.2380 ivdv50c6t8lq56unrfgmt87kbf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074638.2393 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.2407 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.2419 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104392966f10ece3a','aut66f106908166f10ecd37' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074638.2422 ivdv50c6t8lq56unrfgmt87kbf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.2436 ivdv50c6t8lq56unrfgmt87kbf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.2465 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f104392966f10ece3a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f106908166f10ecd37' ,0,0 ,2,23.00,230000,?,?,?)
20240923@074638.2706 ivdv50c6t8lq56unrfgmt87kbf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f106908166f10ecd37','2406077','wait',39,'adm09112754980.682000002')
20240923@074638.2775 ivdv50c6t8lq56unrfgmt87kbf Query : use flama_phc
20240923@074638.2782 ivdv50c6t8lq56unrfgmt87kbf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074638.2817 ivdv50c6t8lq56unrfgmt87kbf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2118';
20240923@074638.2847 ivdv50c6t8lq56unrfgmt87kbf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2118';
20240923@074638.2890 ivdv50c6t8lq56unrfgmt87kbf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2118';
20240923@074638.2914 ivdv50c6t8lq56unrfgmt87kbf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2118';
20240923@074638.3934 sp4marhv0ack05t0be7tgufidt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074638.3947 sp4marhv0ack05t0be7tgufidt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074638.3998 sp4marhv0ack05t0be7tgufidt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2119';
20240923@074638.4054 sp4marhv0ack05t0be7tgufidt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2119';
20240923@074638.4115 sp4marhv0ack05t0be7tgufidt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2119';
20240923@074638.4139 sp4marhv0ack05t0be7tgufidt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2119';
20240923@074638.4194 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.4198 sp4marhv0ack05t0be7tgufidt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074638.4284 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.4287 sp4marhv0ack05t0be7tgufidt Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240923@074638.4328 sp4marhv0ack05t0be7tgufidt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8152.00.1'
20240923@074638.4487 sp4marhv0ack05t0be7tgufidt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406078 and bi.ref ='327.8152.00.1' and bi.lordem =1
20240923@074638.4799 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.4803 sp4marhv0ack05t0be7tgufidt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074638.4841 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.4847 sp4marhv0ack05t0be7tgufidt Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074638.4879 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.4882 sp4marhv0ack05t0be7tgufidt Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074638.4921 sp4marhv0ack05t0be7tgufidt Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074638.4964 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.4967 sp4marhv0ack05t0be7tgufidt Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074638.4999 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.5002 sp4marhv0ack05t0be7tgufidt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074638.5033 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.5036 sp4marhv0ack05t0be7tgufidt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074638.5078 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.5081 sp4marhv0ack05t0be7tgufidt Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240923@074638.5125 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.5128 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from td where ndoc = 39
20240923@074638.5141 sp4marhv0ack05t0be7tgufidt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074638.5154 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.5174 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074638.5194 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.5208 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074638.5237 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.5251 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074638.5268 sp4marhv0ack05t0be7tgufidt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074638.5358 sp4marhv0ack05t0be7tgufidt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074638.5372 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.5388 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074638.5408 sp4marhv0ack05t0be7tgufidt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f107006066f10ece80' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074638.5583 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.5598 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074638.5638 sp4marhv0ack05t0be7tgufidt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074638.5649 sp4marhv0ack05t0be7tgufidt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074638.5662 sp4marhv0ack05t0be7tgufidt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074638.5677 sp4marhv0ack05t0be7tgufidt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074638.5727 sp4marhv0ack05t0be7tgufidt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074638.5739 sp4marhv0ack05t0be7tgufidt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074638.5749 sp4marhv0ack05t0be7tgufidt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f107006066f10ece80',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074638.5995 sp4marhv0ack05t0be7tgufidt Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074638.6020 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.6037 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074638.6060 sp4marhv0ack05t0be7tgufidt Query : select 'normal' from dummy
20240923@074638.6076 sp4marhv0ack05t0be7tgufidt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f107006066f10ece80',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',852,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074638.6387 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.6390 sp4marhv0ack05t0be7tgufidt Query : select st.usalote valor from st where st.ref = '327.8152.00.1'
20240923@074638.6414 sp4marhv0ack05t0be7tgufidt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8152.00.1'
20240923@074638.6599 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.6615 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.6641 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.6656 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.6664 sp4marhv0ack05t0be7tgufidt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074638.6677 sp4marhv0ack05t0be7tgufidt Query : select sestamp valor from se where ref ='327.8152.00.1' and lote = 'r2200712200a'
20240923@074638.6714 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.6738 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.6749 sp4marhv0ack05t0be7tgufidt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104492066f10ecea3','aut66f107006066f10ece80' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074638.6754 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.6769 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.6798 sp4marhv0ack05t0be7tgufidt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104492066f10ecea3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f107006066f10ece80' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074638.7082 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.7102 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.7128 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.7144 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.7153 sp4marhv0ack05t0be7tgufidt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074638.7165 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.7179 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074638.7192 sp4marhv0ack05t0be7tgufidt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100369166f10eceae','aut66f107006066f10ece80' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074638.7196 sp4marhv0ack05t0be7tgufidt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074638.7211 sp4marhv0ack05t0be7tgufidt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074638.7240 sp4marhv0ack05t0be7tgufidt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f100369166f10eceae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107006066f10ece80' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074638.7666 sp4marhv0ack05t0be7tgufidt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f107006066f10ece80','2406078','wait',39,'adm09112754980.682000002')
20240923@074638.8169 sp4marhv0ack05t0be7tgufidt Query : use flama_phc
20240923@074638.8213 sp4marhv0ack05t0be7tgufidt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074638.8355 sp4marhv0ack05t0be7tgufidt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2119';
20240923@074638.8400 sp4marhv0ack05t0be7tgufidt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2119';
20240923@074638.8444 sp4marhv0ack05t0be7tgufidt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2119';
20240923@074638.8478 sp4marhv0ack05t0be7tgufidt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2119';
20240923@074638.8982 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074638.8994 ajkqt5vhven2hfsc0r4t1q3keb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074638.9078 ajkqt5vhven2hfsc0r4t1q3keb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2120';
20240923@074638.9133 ajkqt5vhven2hfsc0r4t1q3keb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2120';
20240923@074638.9210 ajkqt5vhven2hfsc0r4t1q3keb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2120';
20240923@074638.9236 ajkqt5vhven2hfsc0r4t1q3keb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2120';
20240923@074638.9288 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074638.9291 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074638.9361 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074638.9364 ajkqt5vhven2hfsc0r4t1q3keb Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240923@074638.9474 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20240923@074638.9496 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406079 and bi.ref ='328.9326.00.1' and bi.lordem =1
20240923@074638.9826 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20240923@074638.9853 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406079 and bi.ref ='328.9345.00.1' and bi.lordem =2
20240923@074639.2680 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.2720 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074639.3100 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.3130 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074639.5600 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.5640 ajkqt5vhven2hfsc0r4t1q3keb Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074639.5980 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074639.6370 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.6400 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074639.6740 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.6770 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074639.7100 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.7130 ajkqt5vhven2hfsc0r4t1q3keb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074639.7550 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.7570 ajkqt5vhven2hfsc0r4t1q3keb Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240923@074639.8020 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.8050 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from td where ndoc = 39
20240923@074639.8170 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074639.8300 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.8460 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074639.8650 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.8790 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074639.9130 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.9270 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074639.9390 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074639.1004 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074639.1017 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.1038 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074639.1053 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f104252766f10ecf16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074639.1262 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.1280 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074639.1313 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074639.1325 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074639.1336 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074639.1348 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074639.1359 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074639.1371 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074639.1382 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f104252766f10ecf16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074639.1634 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074639.1655 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.1676 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074639.1699 ajkqt5vhven2hfsc0r4t1q3keb Query : select 'normal' from dummy
20240923@074639.1713 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f104252766f10ecf16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',853,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074639.2005 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.2007 ajkqt5vhven2hfsc0r4t1q3keb Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240923@074639.2028 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20240923@074639.2042 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2057 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.2086 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2100 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.2109 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074639.2120 ajkqt5vhven2hfsc0r4t1q3keb Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240923@074639.2133 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2146 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.2158 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109495166f10ecf34','aut66f104252766f10ecf16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074639.2162 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2176 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.2203 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109495166f10ecf34',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104252766f10ecf16' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074639.2466 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2483 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.2513 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2527 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.2535 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074639.2547 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2561 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.2572 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f105033066f10ecf3e','aut66f104252766f10ecf16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074639.2576 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2596 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.2626 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f105033066f10ecf3e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f104252766f10ecf16' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074639.2878 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.2881 ajkqt5vhven2hfsc0r4t1q3keb Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20240923@074639.2899 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20240923@074639.2917 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.2992 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.3018 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3035 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.3043 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074639.3055 ajkqt5vhven2hfsc0r4t1q3keb Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20240923@074639.3067 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3081 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.3093 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106004866f10ecf4a','aut66f104252766f10ecf16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074639.3097 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3110 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.3137 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106004866f10ecf4a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f104252766f10ecf16' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074639.3402 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3416 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.3446 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3461 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.3470 ajkqt5vhven2hfsc0r4t1q3keb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074639.3481 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3496 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.3507 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f105348466f10ecf55','aut66f104252766f10ecf16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074639.3511 ajkqt5vhven2hfsc0r4t1q3keb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.3525 ajkqt5vhven2hfsc0r4t1q3keb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.3552 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f105348466f10ecf55',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f104252766f10ecf16' ,0,0 ,2,23.00,50000,?,?,?)
20240923@074639.3796 ajkqt5vhven2hfsc0r4t1q3keb Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f104252766f10ecf16','2406079','wait',39,'adm09112754980.682000002')
20240923@074639.3886 ajkqt5vhven2hfsc0r4t1q3keb Query : use flama_phc
20240923@074639.3889 ajkqt5vhven2hfsc0r4t1q3keb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074639.3921 ajkqt5vhven2hfsc0r4t1q3keb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2120';
20240923@074639.3950 ajkqt5vhven2hfsc0r4t1q3keb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2120';
20240923@074639.4014 ajkqt5vhven2hfsc0r4t1q3keb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2120';
20240923@074639.4038 ajkqt5vhven2hfsc0r4t1q3keb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2120';
20240923@074639.5743 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074639.5755 vrqn70rih0ssu7lqvv3gtfmksd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074639.5807 vrqn70rih0ssu7lqvv3gtfmksd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2121';
20240923@074639.5860 vrqn70rih0ssu7lqvv3gtfmksd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2121';
20240923@074639.5912 vrqn70rih0ssu7lqvv3gtfmksd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2121';
20240923@074639.5941 vrqn70rih0ssu7lqvv3gtfmksd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2121';
20240923@074639.5997 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.6000 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074639.6069 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.6072 vrqn70rih0ssu7lqvv3gtfmksd Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240923@074639.6130 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.6291 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.6917 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.6940 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.6959 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.6980 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.6999 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.7020 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.7038 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.7057 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.7073 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.7094 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.7110 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240923@074639.7129 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406080 and bi.ref ='324.646.00.01' and bi.lordem =1
20240923@074639.7146 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7149 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074639.7181 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7184 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074639.7216 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7219 vrqn70rih0ssu7lqvv3gtfmksd Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074639.7251 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074639.7292 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7295 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240923@074639.7325 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7328 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074639.7358 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7361 vrqn70rih0ssu7lqvv3gtfmksd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074639.7403 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7406 vrqn70rih0ssu7lqvv3gtfmksd Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240923@074639.7459 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.7464 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from td where ndoc = 39
20240923@074639.7477 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074639.7491 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.7507 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074639.7526 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.7541 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074639.7569 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.7584 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074639.7596 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074639.7662 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074639.7675 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.7690 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074639.7706 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074639.7886 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.7902 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074639.7934 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074639.7946 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074639.7964 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074639.7976 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074639.8016 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074639.8028 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074639.8040 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f107457466f10ecfb9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074639.8294 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074639.8570 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.8586 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074639.8608 vrqn70rih0ssu7lqvv3gtfmksd Query : select 'normal' from dummy
20240923@074639.8623 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f107457466f10ecfb9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',854,100810,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074639.8950 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074639.8975 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074639.9148 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074639.9425 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.9511 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.9536 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.9566 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.9574 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074639.9586 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074639.9618 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.9632 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074639.9644 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f105730966f10ecfea','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074639.9648 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.9662 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074639.9689 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f105730966f10ecfea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074639.9980 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074639.9999 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.2900 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4400 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5200 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.6400 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.7700 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.9000 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101714366f10ed001','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.9400 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.1080 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.1430 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f101714366f10ed001',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074640.3930 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.3960 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074640.4150 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074640.4290 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4440 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.4710 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4910 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5000 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.5130 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074640.5250 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5390 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5510 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109000766f10ed00c','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.5550 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5730 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.6140 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109000766f10ed00c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074640.1872 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.1889 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.1914 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.1929 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.1938 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.1950 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.1964 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.1975 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109446266f10ed02f','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.1980 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.1994 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.2021 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f109446266f10ed02f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,50000,?,?,?)
20240923@074640.2281 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.2307 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074640.2327 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074640.2342 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2357 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.2387 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2401 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.2410 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.2421 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074640.2445 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2459 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.2477 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108204166f10ed03b','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.2481 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2496 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.2525 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f108204166f10ed03b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240923@074640.2787 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2802 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.2827 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2841 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.2850 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.2867 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2882 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.2894 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101823166f10ed046','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.2897 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.2912 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.2940 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f101823166f10ed046',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,80000,?,?,?)
20240923@074640.3212 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.3215 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074640.3234 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074640.3248 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3262 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.3288 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3303 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.3316 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.3328 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074640.3341 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3356 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.3368 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104937066f10ed051','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.3372 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3386 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.3415 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104937066f10ed051',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240923@074640.3687 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3704 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.3739 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3754 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.3763 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.3775 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3790 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.3801 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100810866f10ed05c','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.3805 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.3820 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.3852 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f100810866f10ed05c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,110000,?,?,?)
20240923@074640.4159 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.4162 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074640.4181 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074640.4195 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4211 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.4240 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4254 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.4262 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.4274 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074640.4286 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4300 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.4312 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f109907266f10ed068','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.4316 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4347 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.4381 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f109907266f10ed068',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240923@074640.4644 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4659 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.4687 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4702 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.4710 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.4721 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4735 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.4746 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106094366f10ed073','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.4750 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.4763 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.4797 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f106094366f10ed073',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,140000,?,?,?)
20240923@074640.5034 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.5037 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074640.5056 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074640.5069 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5083 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.5106 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5121 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5133 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.5145 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074640.5157 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5171 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5183 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101847766f10ed07d','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.5187 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5200 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.5227 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f101847766f10ed07d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240923@074640.5471 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5486 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.5510 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5524 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5532 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.5549 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.5564 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.5582 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108378466f10ed087','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.5586 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.6718 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.6786 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f108378466f10ed087',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,170000,?,?,?)
20240923@074640.7307 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.7310 vrqn70rih0ssu7lqvv3gtfmksd Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240923@074640.7332 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.646.00.01'
20240923@074640.7348 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.7365 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.7392 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.7405 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.7415 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.7579 vrqn70rih0ssu7lqvv3gtfmksd Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240923@074640.7730 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.7788 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.7812 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106278466f10ed0bc','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.7817 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.7832 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.7859 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106278466f10ed0bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240923@074640.8121 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.8136 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.8162 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.8176 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.8185 vrqn70rih0ssu7lqvv3gtfmksd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074640.8204 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.8220 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074640.8232 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101360966f10ed0c8','aut66f107457466f10ecfb9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074640.8236 vrqn70rih0ssu7lqvv3gtfmksd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074640.8252 vrqn70rih0ssu7lqvv3gtfmksd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074640.8282 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f101360966f10ed0c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f107457466f10ecfb9' ,0,0 ,2,23.00,200000,?,?,?)
20240923@074640.8692 vrqn70rih0ssu7lqvv3gtfmksd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f107457466f10ecfb9','2406080','wait',39,'adm09112754980.682000002')
20240923@074640.8931 vrqn70rih0ssu7lqvv3gtfmksd Query : use flama_phc
20240923@074640.8935 vrqn70rih0ssu7lqvv3gtfmksd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074640.8974 vrqn70rih0ssu7lqvv3gtfmksd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2121';
20240923@074640.9006 vrqn70rih0ssu7lqvv3gtfmksd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2121';
20240923@074640.9053 vrqn70rih0ssu7lqvv3gtfmksd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2121';
20240923@074640.9079 vrqn70rih0ssu7lqvv3gtfmksd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2121';
20240923@074640.9622 gtkohnetoglu4i5nudi2kgnmai Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074640.9637 gtkohnetoglu4i5nudi2kgnmai Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074640.9702 gtkohnetoglu4i5nudi2kgnmai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2122';
20240923@074640.9761 gtkohnetoglu4i5nudi2kgnmai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2122';
20240923@074640.9822 gtkohnetoglu4i5nudi2kgnmai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2122';
20240923@074640.9848 gtkohnetoglu4i5nudi2kgnmai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2122';
20240923@074640.9903 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074640.9906 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074640.9977 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074640.9983 gtkohnetoglu4i5nudi2kgnmai Query : select no, estab,szadrsdesc from szadrs where u_coddest=1954
20240923@074641.7100 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240923@074641.2340 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406081 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240923@074641.5620 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.5660 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074641.6050 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.6130 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074641.6440 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.6470 gtkohnetoglu4i5nudi2kgnmai Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074641.6740 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074641.7110 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.7140 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 ~inactivo valor from cl where no = '102218' and estab = 0 order by inactivo desc
20240923@074641.8470 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.8500 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074641.8810 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.8830 gtkohnetoglu4i5nudi2kgnmai Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074641.9210 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.9240 gtkohnetoglu4i5nudi2kgnmai Query : select szadrsstamp valor from szadrs where szadrsdesc='joao do carmo mateus nunes, lda.'
20240923@074641.9760 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.9790 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from td where ndoc = 39
20240923@074641.9910 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074641.1004 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.1020 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074641.1038 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.1057 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074641.1085 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.1103 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074641.1115 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074641.1180 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074641.1193 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.1210 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074641.1228 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f102026366f10ed11b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074641.1400 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.1420 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074641.1453 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074641.1465 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074641.1517 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074641.1532 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074641.1544 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074641.1555 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074641.1570 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f102026366f10ed11b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074641.1809 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074641.1834 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.1851 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074641.1873 gtkohnetoglu4i5nudi2kgnmai Query : select 'normal' from dummy
20240923@074641.1891 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f102026366f10ed11b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',855,102218,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074641.2173 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.2176 gtkohnetoglu4i5nudi2kgnmai Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240923@074641.2199 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240923@074641.2383 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2398 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.2428 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2442 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.2450 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074641.2464 gtkohnetoglu4i5nudi2kgnmai Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301209200a'
20240923@074641.2478 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2492 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.2509 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f107644866f10ed13c','aut66f102026366f10ed11b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074641.2512 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2527 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.2557 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f107644866f10ed13c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f102026366f10ed11b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074641.2816 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2831 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.2862 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2878 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.2887 gtkohnetoglu4i5nudi2kgnmai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074641.2900 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2916 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.2928 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101973566f10ed146','aut66f102026366f10ed11b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074641.2932 gtkohnetoglu4i5nudi2kgnmai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.2946 gtkohnetoglu4i5nudi2kgnmai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.2972 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f101973566f10ed146',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f102026366f10ed11b' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074641.3204 gtkohnetoglu4i5nudi2kgnmai Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f102026366f10ed11b','2406081','wait',39,'adm09112754980.682000002')
20240923@074641.3282 gtkohnetoglu4i5nudi2kgnmai Query : use flama_phc
20240923@074641.3285 gtkohnetoglu4i5nudi2kgnmai Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074641.3320 gtkohnetoglu4i5nudi2kgnmai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2122';
20240923@074641.3351 gtkohnetoglu4i5nudi2kgnmai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2122';
20240923@074641.3394 gtkohnetoglu4i5nudi2kgnmai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2122';
20240923@074641.3418 gtkohnetoglu4i5nudi2kgnmai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2122';
20240923@074641.4235 05t96nu931l42c42cifpf9j59f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074641.4248 05t96nu931l42c42cifpf9j59f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074641.4306 05t96nu931l42c42cifpf9j59f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2123';
20240923@074641.4364 05t96nu931l42c42cifpf9j59f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2123';
20240923@074641.4421 05t96nu931l42c42cifpf9j59f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2123';
20240923@074641.4447 05t96nu931l42c42cifpf9j59f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2123';
20240923@074641.5592 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.5595 05t96nu931l42c42cifpf9j59f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074641.5677 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.5680 05t96nu931l42c42cifpf9j59f Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240923@074641.5773 05t96nu931l42c42cifpf9j59f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240923@074641.5924 05t96nu931l42c42cifpf9j59f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406082 and bi.ref ='324.5396.00.1' and bi.lordem =1
20240923@074641.6241 05t96nu931l42c42cifpf9j59f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240923@074641.6385 05t96nu931l42c42cifpf9j59f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406082 and bi.ref ='324.691.00.01' and bi.lordem =3
20240923@074641.6719 05t96nu931l42c42cifpf9j59f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240923@074641.6740 05t96nu931l42c42cifpf9j59f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406082 and bi.ref ='324.691.00.01' and bi.lordem =4
20240923@074641.7182 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7185 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074641.7222 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7225 05t96nu931l42c42cifpf9j59f Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074641.7256 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7258 05t96nu931l42c42cifpf9j59f Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074641.7287 05t96nu931l42c42cifpf9j59f Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074641.7328 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7331 05t96nu931l42c42cifpf9j59f Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20240923@074641.7457 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7460 05t96nu931l42c42cifpf9j59f Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074641.7496 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7499 05t96nu931l42c42cifpf9j59f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074641.7541 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7545 05t96nu931l42c42cifpf9j59f Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240923@074641.7598 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.7601 05t96nu931l42c42cifpf9j59f Query : select 1 valor from td where ndoc = 39
20240923@074641.7613 05t96nu931l42c42cifpf9j59f Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074641.7627 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.7643 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074641.7667 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.7680 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074641.7711 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.7725 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074641.7737 05t96nu931l42c42cifpf9j59f Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074641.7803 05t96nu931l42c42cifpf9j59f Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074641.7815 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.7829 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074641.7844 05t96nu931l42c42cifpf9j59f Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074641.8022 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.8037 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074641.8068 05t96nu931l42c42cifpf9j59f Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074641.8079 05t96nu931l42c42cifpf9j59f Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074641.8091 05t96nu931l42c42cifpf9j59f Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074641.8108 05t96nu931l42c42cifpf9j59f Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074641.8119 05t96nu931l42c42cifpf9j59f Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074641.8130 05t96nu931l42c42cifpf9j59f Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074641.8141 05t96nu931l42c42cifpf9j59f Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f108574466f10ed1bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074641.8392 05t96nu931l42c42cifpf9j59f Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074641.8414 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.8430 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074641.8453 05t96nu931l42c42cifpf9j59f Query : select 'normal' from dummy
20240923@074641.8467 05t96nu931l42c42cifpf9j59f Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f108574466f10ed1bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',856,102079,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074641.8755 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.8758 05t96nu931l42c42cifpf9j59f Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240923@074641.8779 05t96nu931l42c42cifpf9j59f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240923@074641.8920 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.8935 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.8960 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.8975 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.8983 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074641.8995 05t96nu931l42c42cifpf9j59f Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240923@074641.9020 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9039 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.9051 05t96nu931l42c42cifpf9j59f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104513466f10ed1dc','aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074641.9054 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9070 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.9098 05t96nu931l42c42cifpf9j59f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104513466f10ed1dc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66f108574466f10ed1bc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074641.9359 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9375 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.9402 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9418 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.9426 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074641.9438 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9452 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074641.9463 05t96nu931l42c42cifpf9j59f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100374366f10ed1e6','aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074641.9480 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9502 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.9536 05t96nu931l42c42cifpf9j59f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f100374366f10ed1e6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f108574466f10ed1bc' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074641.9777 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074641.9779 05t96nu931l42c42cifpf9j59f Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240923@074641.9799 05t96nu931l42c42cifpf9j59f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240923@074641.9942 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074641.9957 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074641.9985 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.1000 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.9000 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.2100 05t96nu931l42c42cifpf9j59f Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240923@074642.4100 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.5500 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.6600 05t96nu931l42c42cifpf9j59f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101046666f10ed201','aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.7000 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8700 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.1140 05t96nu931l42c42cifpf9j59f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f101046666f10ed201',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66f108574466f10ed1bc' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074642.3700 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.3850 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.4090 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.4230 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.4320 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.4490 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.4630 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.5330 05t96nu931l42c42cifpf9j59f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103855066f10ed20a','aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.5380 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.5550 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.5840 05t96nu931l42c42cifpf9j59f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f103855066f10ed20a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f108574466f10ed1bc' ,0,0 ,2,23.00,50000,?,?,?)
20240923@074642.1002 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074642.1044 05t96nu931l42c42cifpf9j59f Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240923@074642.1145 05t96nu931l42c42cifpf9j59f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20240923@074642.1223 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.1290 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.1572 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.1590 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.1599 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.1611 05t96nu931l42c42cifpf9j59f Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240923@074642.1623 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.1640 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.1653 05t96nu931l42c42cifpf9j59f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f105718466f10ed227','aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.1657 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.1672 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.1704 05t96nu931l42c42cifpf9j59f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f105718466f10ed227',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f108574466f10ed1bc' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240923@074642.1975 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.1992 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.2018 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.2032 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.2040 05t96nu931l42c42cifpf9j59f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.2052 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.2066 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.2076 05t96nu931l42c42cifpf9j59f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f107207766f10ed232','aut66f108574466f10ed1bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.2080 05t96nu931l42c42cifpf9j59f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.2095 05t96nu931l42c42cifpf9j59f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.2121 05t96nu931l42c42cifpf9j59f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f107207766f10ed232',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f108574466f10ed1bc' ,0,0 ,2,23.00,80000,?,?,?)
20240923@074642.2362 05t96nu931l42c42cifpf9j59f Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f108574466f10ed1bc','2406082','wait',39,'adm09112754980.682000002')
20240923@074642.2442 05t96nu931l42c42cifpf9j59f Query : use flama_phc
20240923@074642.2445 05t96nu931l42c42cifpf9j59f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074642.2485 05t96nu931l42c42cifpf9j59f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2123';
20240923@074642.2515 05t96nu931l42c42cifpf9j59f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2123';
20240923@074642.2557 05t96nu931l42c42cifpf9j59f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2123';
20240923@074642.2583 05t96nu931l42c42cifpf9j59f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2123';
20240923@074642.4617 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074642.4697 9qphn1gagqv8a6pdnl33qsvr4d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074642.4959 9qphn1gagqv8a6pdnl33qsvr4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2124';
20240923@074642.5021 9qphn1gagqv8a6pdnl33qsvr4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2124';
20240923@074642.5073 9qphn1gagqv8a6pdnl33qsvr4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2124';
20240923@074642.5105 9qphn1gagqv8a6pdnl33qsvr4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2124';
20240923@074642.5169 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.5172 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074642.5237 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.5240 9qphn1gagqv8a6pdnl33qsvr4d Query : select no, estab,szadrsdesc from szadrs where u_coddest=424
20240923@074642.5328 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240923@074642.5356 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406083 and bi.ref ='304.421.00.04' and bi.lordem =1
20240923@074642.5677 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1676.00.1'
20240923@074642.5820 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406083 and bi.ref ='324.1676.00.1' and bi.lordem =2
20240923@074642.6124 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240923@074642.6267 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406083 and bi.ref ='324.4970.00.1' and bi.lordem =3
20240923@074642.6575 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6578 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074642.6624 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6627 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074642.6661 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6666 9qphn1gagqv8a6pdnl33qsvr4d Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074642.6700 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074642.6742 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6744 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 ~inactivo valor from cl where no = '100912' and estab = 0 order by inactivo desc
20240923@074642.6878 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6880 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074642.6915 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6918 9qphn1gagqv8a6pdnl33qsvr4d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074642.6961 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.6964 9qphn1gagqv8a6pdnl33qsvr4d Query : select szadrsstamp valor from szadrs where szadrsdesc='gil dos santos martins'
20240923@074642.7014 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.7017 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from td where ndoc = 39
20240923@074642.7028 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074642.7042 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.7057 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074642.7123 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.7137 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074642.7163 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.7178 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074642.7189 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074642.7254 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074642.7266 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.7281 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074642.7296 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f108816666f10ed2af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074642.7474 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.7489 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074642.7526 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074642.7540 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074642.7552 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074642.7566 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074642.7577 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074642.7588 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074642.7599 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f108816666f10ed2af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074642.7834 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074642.7857 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.7874 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074642.7896 9qphn1gagqv8a6pdnl33qsvr4d Query : select 'normal' from dummy
20240923@074642.7914 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f108816666f10ed2af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',857,100912,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074642.8190 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.8193 9qphn1gagqv8a6pdnl33qsvr4d Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240923@074642.8213 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20240923@074642.8226 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8245 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.8269 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8283 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.8292 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.8303 9qphn1gagqv8a6pdnl33qsvr4d Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20240923@074642.8315 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8328 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.8342 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f104265866f10ed2cb','aut66f108816666f10ed2af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.8346 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8361 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.8388 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f104265866f10ed2cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f108816666f10ed2af' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074642.8642 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8656 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.8685 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8699 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.8707 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.8720 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8769 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.8780 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108998266f10ed2d4','aut66f108816666f10ed2af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.8784 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.8798 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.8824 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f108998266f10ed2d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f108816666f10ed2af' ,0,0 ,2,23.00,20000,?,?,?)
20240923@074642.9067 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.9070 9qphn1gagqv8a6pdnl33qsvr4d Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240923@074642.9089 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1676.00.1'
20240923@074642.9229 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9243 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.9268 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9282 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.9290 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.9347 9qphn1gagqv8a6pdnl33qsvr4d Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240923@074642.9359 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9373 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.9385 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108637266f10ed2e4','aut66f108816666f10ed2af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.9389 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9402 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.9428 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f108637266f10ed2e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f108816666f10ed2af' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@074642.9681 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074642.9684 9qphn1gagqv8a6pdnl33qsvr4d Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240923@074642.9702 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240923@074642.9844 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9859 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074642.9885 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9901 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.9909 9qphn1gagqv8a6pdnl33qsvr4d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074642.9921 9qphn1gagqv8a6pdnl33qsvr4d Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240923@074642.9934 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9947 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074642.9959 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f102638666f10ed2f2','aut66f108816666f10ed2af' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074642.9965 9qphn1gagqv8a6pdnl33qsvr4d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074642.9979 9qphn1gagqv8a6pdnl33qsvr4d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074643.6000 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f102638666f10ed2f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f108816666f10ed2af' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240923@074643.2530 9qphn1gagqv8a6pdnl33qsvr4d Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f108816666f10ed2af','2406083','wait',39,'adm09112754980.682000002')
20240923@074643.3340 9qphn1gagqv8a6pdnl33qsvr4d Query : use flama_phc
20240923@074643.3380 9qphn1gagqv8a6pdnl33qsvr4d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074643.3710 9qphn1gagqv8a6pdnl33qsvr4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2124';
20240923@074643.4070 9qphn1gagqv8a6pdnl33qsvr4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2124';
20240923@074643.4610 9qphn1gagqv8a6pdnl33qsvr4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2124';
20240923@074643.4850 9qphn1gagqv8a6pdnl33qsvr4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2124';
20240923@074643.2122 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074643.2134 r75dnuig9u3nkuho2ic3ssl2oi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074643.2190 r75dnuig9u3nkuho2ic3ssl2oi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2125';
20240923@074643.2246 r75dnuig9u3nkuho2ic3ssl2oi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2125';
20240923@074643.2308 r75dnuig9u3nkuho2ic3ssl2oi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2125';
20240923@074643.2335 r75dnuig9u3nkuho2ic3ssl2oi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2125';
20240923@074643.2400 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.2403 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074643.2479 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.2483 r75dnuig9u3nkuho2ic3ssl2oi Query : select no, estab,szadrsdesc from szadrs where u_coddest=1223
20240923@074643.2593 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.734.00.02'
20240923@074643.2747 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406086 and bi.ref ='324.734.00.02' and bi.lordem =1
20240923@074643.3064 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3067 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074643.3101 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3104 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074643.3135 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3138 r75dnuig9u3nkuho2ic3ssl2oi Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074643.3168 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074643.3202 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3204 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 ~inactivo valor from cl where no = '101623' and estab = 0 order by inactivo desc
20240923@074643.3320 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3326 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074643.3358 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3361 r75dnuig9u3nkuho2ic3ssl2oi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074643.3403 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3406 r75dnuig9u3nkuho2ic3ssl2oi Query : select szadrsstamp valor from szadrs where szadrsdesc='zacarias vicente alexandre-armaz.za za'
20240923@074643.3459 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.3462 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from td where ndoc = 39
20240923@074643.3474 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074643.3490 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.3506 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074643.3524 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.3539 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074643.3567 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.3583 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074643.3596 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074643.3662 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074643.3675 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.3693 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074643.3708 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f103543666f10ed357' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074643.3882 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.3902 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074643.3935 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074643.3947 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074643.3964 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074643.3976 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074643.3988 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074643.3999 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074643.4010 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f103543666f10ed357',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074643.4245 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074643.4269 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.4285 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074643.4306 r75dnuig9u3nkuho2ic3ssl2oi Query : select 'normal' from dummy
20240923@074643.4320 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f103543666f10ed357',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',858,101623,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074643.4641 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.4644 r75dnuig9u3nkuho2ic3ssl2oi Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20240923@074643.4666 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.734.00.02'
20240923@074643.4808 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.4823 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074643.4848 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.4862 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074643.4870 r75dnuig9u3nkuho2ic3ssl2oi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074643.4882 r75dnuig9u3nkuho2ic3ssl2oi Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20240923@074643.4914 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.4928 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074643.4940 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101281166f10ed377','aut66f103543666f10ed357' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074643.4944 r75dnuig9u3nkuho2ic3ssl2oi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.4958 r75dnuig9u3nkuho2ic3ssl2oi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074643.4991 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f101281166f10ed377',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f103543666f10ed357' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074643.5240 r75dnuig9u3nkuho2ic3ssl2oi Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f103543666f10ed357','2406086','wait',39,'adm09112754980.682000002')
20240923@074643.5311 r75dnuig9u3nkuho2ic3ssl2oi Query : use flama_phc
20240923@074643.5314 r75dnuig9u3nkuho2ic3ssl2oi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074643.5348 r75dnuig9u3nkuho2ic3ssl2oi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2125';
20240923@074643.5376 r75dnuig9u3nkuho2ic3ssl2oi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2125';
20240923@074643.5425 r75dnuig9u3nkuho2ic3ssl2oi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2125';
20240923@074643.5454 r75dnuig9u3nkuho2ic3ssl2oi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2125';
20240923@074643.7689 br6ieom4498t3145vjm3mp5l3r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074643.7701 br6ieom4498t3145vjm3mp5l3r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074643.7764 br6ieom4498t3145vjm3mp5l3r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2126';
20240923@074643.7820 br6ieom4498t3145vjm3mp5l3r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2126';
20240923@074643.7874 br6ieom4498t3145vjm3mp5l3r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2126';
20240923@074643.7900 br6ieom4498t3145vjm3mp5l3r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2126';
20240923@074643.7955 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.7957 br6ieom4498t3145vjm3mp5l3r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074643.8027 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8031 br6ieom4498t3145vjm3mp5l3r Query : select no, estab,szadrsdesc from szadrs where u_coddest=1053
20240923@074643.8118 br6ieom4498t3145vjm3mp5l3r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.734.00.02'
20240923@074643.8140 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406088 and bi.ref ='324.734.00.02' and bi.lordem =1
20240923@074643.8655 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8658 br6ieom4498t3145vjm3mp5l3r Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074643.8693 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8696 br6ieom4498t3145vjm3mp5l3r Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074643.8728 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8730 br6ieom4498t3145vjm3mp5l3r Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074643.8760 br6ieom4498t3145vjm3mp5l3r Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074643.8798 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8801 br6ieom4498t3145vjm3mp5l3r Query : select top 1 ~inactivo valor from cl where no = '101194' and estab = 0 order by inactivo desc
20240923@074643.8926 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8929 br6ieom4498t3145vjm3mp5l3r Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074643.8965 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.8968 br6ieom4498t3145vjm3mp5l3r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074643.9013 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.9017 br6ieom4498t3145vjm3mp5l3r Query : select szadrsstamp valor from szadrs where szadrsdesc='jose da silva antunes'
20240923@074643.9070 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074643.9073 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from td where ndoc = 39
20240923@074643.9085 br6ieom4498t3145vjm3mp5l3r Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074643.9099 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.9114 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074643.9133 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.9147 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074643.9172 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.9186 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074643.9198 br6ieom4498t3145vjm3mp5l3r Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074643.9264 br6ieom4498t3145vjm3mp5l3r Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074643.9276 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.9290 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074643.9305 br6ieom4498t3145vjm3mp5l3r Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f104320766f10ed3e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074643.9479 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.9496 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074643.9527 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074643.9538 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074643.9555 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074643.9567 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074643.9580 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074643.9592 br6ieom4498t3145vjm3mp5l3r Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074643.9603 br6ieom4498t3145vjm3mp5l3r Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f104320766f10ed3e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074643.9839 br6ieom4498t3145vjm3mp5l3r Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074643.9863 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074643.9879 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074643.9979 br6ieom4498t3145vjm3mp5l3r Query : select 'normal' from dummy
20240923@074644.3500 br6ieom4498t3145vjm3mp5l3r Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f104320766f10ed3e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',859,101194,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074644.3290 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074644.3320 br6ieom4498t3145vjm3mp5l3r Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20240923@074644.3530 br6ieom4498t3145vjm3mp5l3r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.734.00.02'
20240923@074644.3670 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.3820 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074644.4080 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.4220 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074644.4310 br6ieom4498t3145vjm3mp5l3r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074644.4430 br6ieom4498t3145vjm3mp5l3r Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20240923@074644.4540 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.4680 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074644.4790 br6ieom4498t3145vjm3mp5l3r Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f101056666f10ed40b','aut66f104320766f10ed3e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074644.4830 br6ieom4498t3145vjm3mp5l3r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.4970 br6ieom4498t3145vjm3mp5l3r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074644.5250 br6ieom4498t3145vjm3mp5l3r Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f101056666f10ed40b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f104320766f10ed3e0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074644.7750 br6ieom4498t3145vjm3mp5l3r Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f104320766f10ed3e0','2406088','wait',39,'adm09112754980.682000002')
20240923@074644.8600 br6ieom4498t3145vjm3mp5l3r Query : use flama_phc
20240923@074644.8630 br6ieom4498t3145vjm3mp5l3r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074644.9040 br6ieom4498t3145vjm3mp5l3r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2126';
20240923@074644.9340 br6ieom4498t3145vjm3mp5l3r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2126';
20240923@074644.9760 br6ieom4498t3145vjm3mp5l3r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2126';
20240923@074644.1026 br6ieom4498t3145vjm3mp5l3r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2126';
20240923@074644.2798 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074644.2810 39eseo1bkgfvvqm7gvhf9kbgqo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074644.2866 39eseo1bkgfvvqm7gvhf9kbgqo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2127';
20240923@074644.2925 39eseo1bkgfvvqm7gvhf9kbgqo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2127';
20240923@074644.2979 39eseo1bkgfvvqm7gvhf9kbgqo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2127';
20240923@074644.3004 39eseo1bkgfvvqm7gvhf9kbgqo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2127';
20240923@074644.3058 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3062 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074644.3129 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3131 39eseo1bkgfvvqm7gvhf9kbgqo Query : select no, estab,szadrsdesc from szadrs where u_coddest=424
20240923@074644.3170 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.734.00.02'
20240923@074644.3189 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406090 and bi.ref ='324.734.00.02' and bi.lordem =1
20240923@074644.3515 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3519 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074644.3554 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3557 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074644.3594 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3597 39eseo1bkgfvvqm7gvhf9kbgqo Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074644.3625 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074644.3661 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3663 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 ~inactivo valor from cl where no = '100912' and estab = 0 order by inactivo desc
20240923@074644.3694 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3697 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074644.3738 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3741 39eseo1bkgfvvqm7gvhf9kbgqo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074644.3783 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3787 39eseo1bkgfvvqm7gvhf9kbgqo Query : select szadrsstamp valor from szadrs where szadrsdesc='gil dos santos martins'
20240923@074644.3861 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.3864 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from td where ndoc = 39
20240923@074644.3876 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074644.3891 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.3907 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074644.3926 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.3942 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074644.3969 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.3982 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074644.3994 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074644.4060 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074644.4073 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.4087 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074644.4102 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f102617066f10ed461' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074644.4282 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.4297 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074644.4328 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074644.4340 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074644.4351 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074644.4362 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074644.4379 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074644.4391 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074644.4445 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f102617066f10ed461',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074644.4696 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074644.4722 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.4737 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074644.4759 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 'normal' from dummy
20240923@074644.4773 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f102617066f10ed461',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',860,100912,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074644.5055 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.5058 39eseo1bkgfvvqm7gvhf9kbgqo Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20240923@074644.5079 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.734.00.02'
20240923@074644.5092 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.5109 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074644.5134 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.5148 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074644.5156 39eseo1bkgfvvqm7gvhf9kbgqo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074644.5167 39eseo1bkgfvvqm7gvhf9kbgqo Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20240923@074644.5180 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.5194 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074644.5205 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f108404966f10ed47e','aut66f102617066f10ed461' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074644.5209 39eseo1bkgfvvqm7gvhf9kbgqo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.5225 39eseo1bkgfvvqm7gvhf9kbgqo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074644.5278 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f108404966f10ed47e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f102617066f10ed461' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074644.5542 39eseo1bkgfvvqm7gvhf9kbgqo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f102617066f10ed461','2406090','wait',39,'adm09112754980.682000002')
20240923@074644.5625 39eseo1bkgfvvqm7gvhf9kbgqo Query : use flama_phc
20240923@074644.5628 39eseo1bkgfvvqm7gvhf9kbgqo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074644.5662 39eseo1bkgfvvqm7gvhf9kbgqo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2127';
20240923@074644.5694 39eseo1bkgfvvqm7gvhf9kbgqo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2127';
20240923@074644.5748 39eseo1bkgfvvqm7gvhf9kbgqo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2127';
20240923@074644.5771 39eseo1bkgfvvqm7gvhf9kbgqo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2127';
20240923@074644.6320 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074644.6333 j4j3tk7p89n6gge9ipsdd2ts77 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074644.6388 j4j3tk7p89n6gge9ipsdd2ts77 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2128';
20240923@074644.6444 j4j3tk7p89n6gge9ipsdd2ts77 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2128';
20240923@074644.6495 j4j3tk7p89n6gge9ipsdd2ts77 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2128';
20240923@074644.6524 j4j3tk7p89n6gge9ipsdd2ts77 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2128';
20240923@074644.6604 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.6607 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074644.6667 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.6670 j4j3tk7p89n6gge9ipsdd2ts77 Query : select no, estab,szadrsdesc from szadrs where u_coddest=170
20240923@074644.6764 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.734.00.02'
20240923@074644.6784 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406091 and bi.ref ='324.734.00.02' and bi.lordem =1
20240923@074644.7110 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7113 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074644.7156 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7159 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074644.7190 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7193 j4j3tk7p89n6gge9ipsdd2ts77 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074644.7224 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074644.7260 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7264 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 ~inactivo valor from cl where no = '102068' and estab = 0 order by inactivo desc
20240923@074644.7385 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7388 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074644.7419 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7422 j4j3tk7p89n6gge9ipsdd2ts77 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074644.7466 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7469 j4j3tk7p89n6gge9ipsdd2ts77 Query : select szadrsstamp valor from szadrs where szadrsdesc='magalhÃes & vinha, lda.'
20240923@074644.7563 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.7566 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from td where ndoc = 39
20240923@074644.7579 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074644.7593 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.7608 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074644.7628 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.7643 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074644.7672 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.7689 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074644.7707 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074644.7777 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074644.7791 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.7813 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074644.7831 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f109677466f10ed4bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074644.8011 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.8027 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074644.8065 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074644.8078 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074644.8090 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074644.8103 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074644.8115 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074644.8127 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074644.8138 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f109677466f10ed4bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074644.8468 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074644.8678 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.8697 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074644.8730 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 'normal' from dummy
20240923@074644.8746 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f109677466f10ed4bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',861,102068,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074644.9041 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074644.9044 j4j3tk7p89n6gge9ipsdd2ts77 Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20240923@074644.9081 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.734.00.02'
20240923@074644.9100 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.9117 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074644.9142 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.9157 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074644.9166 j4j3tk7p89n6gge9ipsdd2ts77 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074644.9179 j4j3tk7p89n6gge9ipsdd2ts77 Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20240923@074644.9192 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.9211 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074644.9224 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103014866f10ed4e0','aut66f109677466f10ed4bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074644.9228 j4j3tk7p89n6gge9ipsdd2ts77 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074644.9243 j4j3tk7p89n6gge9ipsdd2ts77 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074644.9273 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f103014866f10ed4e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f109677466f10ed4bc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074645.1250 j4j3tk7p89n6gge9ipsdd2ts77 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f109677466f10ed4bc','2406091','wait',39,'adm09112754980.682000002')
20240923@074645.6040 j4j3tk7p89n6gge9ipsdd2ts77 Query : use flama_phc
20240923@074645.6110 j4j3tk7p89n6gge9ipsdd2ts77 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074645.6430 j4j3tk7p89n6gge9ipsdd2ts77 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2128';
20240923@074645.6720 j4j3tk7p89n6gge9ipsdd2ts77 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2128';
20240923@074645.7170 j4j3tk7p89n6gge9ipsdd2ts77 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2128';
20240923@074645.7430 j4j3tk7p89n6gge9ipsdd2ts77 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2128';
20240923@074645.1231 6hmn0a4u731g36q7h4kul5n7hh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074645.1243 6hmn0a4u731g36q7h4kul5n7hh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074645.1300 6hmn0a4u731g36q7h4kul5n7hh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2129';
20240923@074645.1353 6hmn0a4u731g36q7h4kul5n7hh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2129';
20240923@074645.1409 6hmn0a4u731g36q7h4kul5n7hh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2129';
20240923@074645.1555 6hmn0a4u731g36q7h4kul5n7hh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2129';
20240923@074645.1607 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.1610 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074645.1671 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.1673 6hmn0a4u731g36q7h4kul5n7hh Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20240923@074645.1757 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240923@074645.1776 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406098 and bi.ref ='324.958.00.01' and bi.lordem =1
20240923@074645.2100 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2103 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074645.2137 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2140 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074645.2170 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2173 6hmn0a4u731g36q7h4kul5n7hh Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074645.2200 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074645.2235 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2239 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20240923@074645.2357 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2360 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074645.2390 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2393 6hmn0a4u731g36q7h4kul5n7hh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074645.2476 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2479 6hmn0a4u731g36q7h4kul5n7hh Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20240923@074645.2529 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.2532 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from td where ndoc = 39
20240923@074645.2544 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074645.2557 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.2573 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074645.2593 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.2607 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074645.2640 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.2654 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074645.2666 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074645.2733 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074645.2746 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.2767 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074645.2782 6hmn0a4u731g36q7h4kul5n7hh Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f107850166f10ed541' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074645.3014 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.3030 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074645.3063 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074645.3075 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074645.3087 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074645.3098 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074645.3110 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074645.3122 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074645.3133 6hmn0a4u731g36q7h4kul5n7hh Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f107850166f10ed541',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074645.3369 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074645.3389 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.3404 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074645.3426 6hmn0a4u731g36q7h4kul5n7hh Query : select 'normal' from dummy
20240923@074645.3440 6hmn0a4u731g36q7h4kul5n7hh Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f107850166f10ed541',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',862,199510,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074645.3751 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.3754 6hmn0a4u731g36q7h4kul5n7hh Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240923@074645.3776 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20240923@074645.3792 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.3807 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074645.3832 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.3846 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074645.3854 6hmn0a4u731g36q7h4kul5n7hh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074645.3866 6hmn0a4u731g36q7h4kul5n7hh Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240923@074645.3878 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.3893 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074645.3905 6hmn0a4u731g36q7h4kul5n7hh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106839266f10ed55e','aut66f107850166f10ed541' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074645.3909 6hmn0a4u731g36q7h4kul5n7hh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.3967 6hmn0a4u731g36q7h4kul5n7hh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074645.3994 6hmn0a4u731g36q7h4kul5n7hh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106839266f10ed55e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut66f107850166f10ed541' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074645.4248 6hmn0a4u731g36q7h4kul5n7hh Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f107850166f10ed541','2406098','wait',39,'adm09112754980.682000002')
20240923@074645.4318 6hmn0a4u731g36q7h4kul5n7hh Query : use flama_phc
20240923@074645.4321 6hmn0a4u731g36q7h4kul5n7hh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074645.4367 6hmn0a4u731g36q7h4kul5n7hh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2129';
20240923@074645.4396 6hmn0a4u731g36q7h4kul5n7hh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2129';
20240923@074645.4438 6hmn0a4u731g36q7h4kul5n7hh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2129';
20240923@074645.4464 6hmn0a4u731g36q7h4kul5n7hh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2129';
20240923@074645.4985 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@074645.4996 g2pq6tk4ber3u8stjrklj2p1i7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@074645.5051 g2pq6tk4ber3u8stjrklj2p1i7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2130';
20240923@074645.5103 g2pq6tk4ber3u8stjrklj2p1i7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2130';
20240923@074645.5152 g2pq6tk4ber3u8stjrklj2p1i7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2130';
20240923@074645.5176 g2pq6tk4ber3u8stjrklj2p1i7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2130';
20240923@074645.5236 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.5239 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@074645.5329 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.5333 g2pq6tk4ber3u8stjrklj2p1i7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20240923@074645.5373 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20240923@074645.5531 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406099 and bi.ref ='324.1608.00.1' and bi.lordem =1
20240923@074645.5848 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20240923@074645.5868 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406099 and bi.ref ='324.1608.00.1' and bi.lordem =1
20240923@074645.5886 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.5889 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@074645.5924 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.5927 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 1 valor from td where td.ndoc = 39
20240923@074645.5957 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.5960 g2pq6tk4ber3u8stjrklj2p1i7 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@074645.5987 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@074645.6019 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.6022 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20240923@074645.6052 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.6055 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@074645.6086 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.6089 g2pq6tk4ber3u8stjrklj2p1i7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@074645.6128 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.6131 g2pq6tk4ber3u8stjrklj2p1i7 Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20240923@074645.6178 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.6181 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from td where ndoc = 39
20240923@074645.6193 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@074645.6206 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.6224 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074645.6242 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.6300 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074645.6328 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.6342 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074645.6354 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074645.6423 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@074645.6435 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.6449 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@074645.6464 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f103996166f10ed59b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@074645.6640 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.6655 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@074645.6690 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@074645.6702 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@074645.6714 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@074645.6727 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@074645.6738 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@074645.6751 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@074645.6763 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f103996166f10ed59b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@074645.7019 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 fno valor from wsftdata order by fno desc
20240923@074645.7040 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.7056 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@074645.7077 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 'normal' from dummy
20240923@074645.7091 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f103996166f10ed59b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',863,199510,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@074645.7376 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.7379 g2pq6tk4ber3u8stjrklj2p1i7 Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240923@074645.7402 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20240923@074645.8156 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8172 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074645.8198 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8212 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074645.8221 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074645.8232 g2pq6tk4ber3u8stjrklj2p1i7 Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20240923@074645.8246 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8260 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074645.8271 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103085366f10ed5c9','aut66f103996166f10ed59b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074645.8288 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8302 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074645.8329 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f103085366f10ed5c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48.000 ,'aut66f103996166f10ed59b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@074645.8601 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.8605 g2pq6tk4ber3u8stjrklj2p1i7 Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240923@074645.8626 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20240923@074645.8640 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8656 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074645.8684 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8701 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074645.8710 g2pq6tk4ber3u8stjrklj2p1i7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@074645.8729 g2pq6tk4ber3u8stjrklj2p1i7 Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20240923@074645.8743 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8760 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@074645.8774 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f106913266f10ed5d5','aut66f103996166f10ed59b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@074645.8779 g2pq6tk4ber3u8stjrklj2p1i7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@074645.8797 g2pq6tk4ber3u8stjrklj2p1i7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@074645.8829 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f106913266f10ed5d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',54.000 ,'aut66f103996166f10ed59b' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240923@074645.9096 g2pq6tk4ber3u8stjrklj2p1i7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f103996166f10ed59b','2406099','wait',39,'adm09112754980.682000002')
20240923@074645.9170 g2pq6tk4ber3u8stjrklj2p1i7 Query : use flama_phc
20240923@074645.9174 g2pq6tk4ber3u8stjrklj2p1i7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@074645.9209 g2pq6tk4ber3u8stjrklj2p1i7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2130';
20240923@074645.9245 g2pq6tk4ber3u8stjrklj2p1i7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2130';
20240923@074645.9290 g2pq6tk4ber3u8stjrklj2p1i7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2130';
20240923@074645.9317 g2pq6tk4ber3u8stjrklj2p1i7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2130';
20240923@075018.9372 mglivmqmkaesrdvfj2kr433mlr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@075018.9430 mglivmqmkaesrdvfj2kr433mlr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@075018.9711 mglivmqmkaesrdvfj2kr433mlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2131';
20240923@075019.1400 mglivmqmkaesrdvfj2kr433mlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2131';
20240923@075019.3780 mglivmqmkaesrdvfj2kr433mlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2131';
20240923@075019.7000 mglivmqmkaesrdvfj2kr433mlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2131';
20240923@075019.1015 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075019.1019 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@075019.1378 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20240923@075019.1792 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =002 and bo.boano =2024 and bo.obrano = 2400464 and bi.ref ='324.1847.00.1' and bi.lordem =20000
20240923@075019.2784 mglivmqmkaesrdvfj2kr433mlr Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'cps24042441565,181000002 ' 
20240923@075019.3335 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075019.3338 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 1 valor from ts where ts.ndos = 61
20240923@075019.3730 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075019.3734 mglivmqmkaesrdvfj2kr433mlr Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@075019.4068 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =61
20240923@075019.5603 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075019.5607 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20240923@075019.6382 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075019.6388 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from ts where ndos = 61
20240923@075019.6471 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075019.6834 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240923@075019.6847 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075019.6867 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240923@075019.6877 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075019.6931 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240923@075019.6942 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 61
20240923@075019.7340 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240923@075019.7799 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240923@075019.7821 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075019.7828 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20240923@075019.8215 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075019.8233 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240923@075019.8538 mglivmqmkaesrdvfj2kr433mlr Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100269066f10fabbe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240923@075019.8930 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075019.9333 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240923@075019.9351 mglivmqmkaesrdvfj2kr433mlr Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100269066f10fabbe','--','bo',7.8676122931442080378 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240923@075020.1288 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.1307 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240923@075020.1320 mglivmqmkaesrdvfj2kr433mlr Query : insert into bo (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f100269066f10fabbe','guia r. fornecedor','2024-09-23',61,2402725,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240923@075020.2378 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075020.2382 mglivmqmkaesrdvfj2kr433mlr Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240923@075020.2408 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20240923@075020.2558 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.2574 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240923@075020.2588 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.2605 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240923@075020.2617 mglivmqmkaesrdvfj2kr433mlr Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400464200a'
20240923@075020.2633 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.2651 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240923@075020.2662 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.2679 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240923@075020.2694 mglivmqmkaesrdvfj2kr433mlr Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f103190966f10fac41',?,?,'20240923',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240923@075020.5031 mglivmqmkaesrdvfj2kr433mlr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@075020.5050 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.5081 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240923@075020.5096 mglivmqmkaesrdvfj2kr433mlr Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66f109372466f10fac7b','aut66f100269066f10fabbe',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from bo bo where bo.bostamp = 'aut66f100269066f10fabbe'
20240923@075020.5291 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@075020.5309 mglivmqmkaesrdvfj2kr433mlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240923@075020.5327 mglivmqmkaesrdvfj2kr433mlr Query : insert into bi (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut66f109372466f10fac7b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1336, 1336*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,25.38,25.38*200.48,25.38,25.38*200.48 ,0,0,'un ','' ,bo.marcada,1 ,25.38*1336,25.38*1336*200.48 ,27.227000,27.227000*200.48 ,27.227000,27.227000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.38,25.38*200.48,25.38*1336,25.38*1336*200.48,'cps24042441565,181000002 ',199.68,199.68*1336,199.68,199.68*1336,?,?,?,4 from bo bo where bo.bostamp = 'aut66f100269066f10fabbe'
20240923@075040.7498 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075040.7503 mglivmqmkaesrdvfj2kr433mlr Query : declare @bostamp varchar(25) = 'aut66f100269066f10fabbe' ,@bistamp varchar(25) = '' update bi set tecoval = qtt * ecoval ,etecoval = qtt * eecoval ,tecoval2 = qtt * ecoval2 ,etecoval2 = qtt * eecoval2 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end -- se tiver classificação e não for normal, não calcula nada update bi set ttdeb = 0 ,ettdeb = 0 ,ttmoeda = 0 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and bi.classifc <> '' and bi.classifc <> 'normal' -- no caso normal com moeda euro if exists ( select 1 from bo cross apply ( select valor moeda from para1 where descricao = 'ge_pteoueuro' ) par where bo.bostamp = @bostamp and bo.moeda = par.moeda ) begin -- sem ecovalores update bi set ettdeb = round(bi.qtt * ((bi.edebito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttdeb = round(bi.qtt * ((bi.debito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 1 -- com ecovalores update bi set ettdeb = round(bi.qtt * ( ( bi.edebito + ( iif(p.st_econotdesc = 1, - bi.eecoval2, bi.eecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.eecoval + bi.eecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttdeb = round(bi.qtt * ( ( bi.debito + ( iif(p.st_econotdesc = 1, - bi.ecoval2, bi.ecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.ecoval + bi.ecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp left join st on bi.ref = st.ref left join taxasiva tiva on bi.tabiva = tiva.codigo cross apply ( select max(valor) st_econotdesc from ( select case when valor = 's' then 1 else 0 end valor from para1 where descricao = 'st_econotdesc' union all select 0 ) a ) p where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 0 --acrescenta os descontos em valor, caso existam: update bi set ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 2) ,ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ttmoeda = 0 from bi where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end else begin update bi set ttmoeda = round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2) ,ettdeb = case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ,edebito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end ,debito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end * 200.482 from bi inner join bo2 on bi.bostamp = bo2.bo2stamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) update bi set ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 0) ,debito = round(bi.debito - (bi.qtt * bi.valdesc), 2) ,edebito = round(bi.edebito - (bi.qtt * bi.evaldesc), 2) where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end 
20240923@075048.8577 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075048.8580 mglivmqmkaesrdvfj2kr433mlr Query : select 1 valor from bo where bo.bostamp = 'aut66f100269066f10fabbe'
20240923@075048.8674 mglivmqmkaesrdvfj2kr433mlr Query : declare @errno int ,@errmsg varchar(255) ,@prod bit ,@nrdec numeric(10, 0) ,@totaldeb numeric(18, 5) ,@etotaldeb numeric(19, 6) ,@total numeric(18, 5) ,@etotal numeric(19, 6) ,@custo numeric(18, 5) ,@ecusto numeric(19, 6) ,@bo_1iliq numeric(19, 6) ,@bo_2iliq numeric(19, 6) ,@base1 numeric(19, 6) ,@base2 numeric(19, 6) ,@moetotal numeric(13, 3) ,@smoe1 numeric(13, 3) ,@smoe2 numeric(13, 3) ,@smoe3 numeric(13, 3) ,@smoe4 numeric(13, 3) ,@bo11_bins numeric(18, 5) ,@bo21_bins numeric(18, 5) ,@bo31_bins numeric(18, 5) ,@bo41_bins numeric(18, 5) ,@bo51_bins numeric(18, 5) ,@bo61_bins numeric(18, 5) ,@bo71_bins numeric(18, 5) ,@bo81_bins numeric(18, 5) ,@bo91_bins numeric(18, 5) ,@bo12_bins numeric(18, 5) ,@bo22_bins numeric(18, 5) ,@bo32_bins numeric(18, 5) ,@bo42_bins numeric(18, 5) ,@bo52_bins numeric(18, 5) ,@bo62_bins numeric(18, 5) ,@bo72_bins numeric(18, 5) ,@bo82_bins numeric(18, 5) ,@bo92_bins numeric(18, 5) ,@ebo11_bins numeric(19, 6) ,@ebo21_bins numeric(19, 6) ,@ebo31_bins numeric(19, 6) ,@ebo41_bins numeric(19, 6) ,@ebo51_bins numeric(19, 6) ,@ebo61_bins numeric(19, 6) ,@ebo71_bins numeric(18, 5) ,@ebo81_bins numeric(18, 5) ,@ebo91_bins numeric(18, 5) ,@ebo12_bins numeric(19, 6) ,@ebo22_bins numeric(19, 6) ,@ebo32_bins numeric(19, 6) ,@ebo42_bins numeric(19, 6) ,@ebo52_bins numeric(19, 6) ,@ebo62_bins numeric(19, 6) ,@ebo72_bins numeric(18, 5) ,@ebo82_bins numeric(18, 5) ,@ebo92_bins numeric(18, 5) ,@bo11_iva numeric(18, 5) ,@bo21_iva numeric(18, 5) ,@bo31_iva numeric(18, 5) ,@bo41_iva numeric(18, 5) ,@bo51_iva numeric(18, 5) ,@bo61_iva numeric(18, 5) ,@bo71_iva numeric(18, 5) ,@bo81_iva numeric(18, 5) ,@bo91_iva numeric(18, 5) ,@bo12_iva numeric(18, 5) ,@bo22_iva numeric(18, 5) ,@bo32_iva numeric(18, 5) ,@bo42_iva numeric(18, 5) ,@bo52_iva numeric(18, 5) ,@bo62_iva numeric(18, 5) ,@bo72_iva numeric(18, 5) ,@bo82_iva numeric(18, 5) ,@bo92_iva numeric(18, 5) ,@ebo11_iva numeric(19, 6) ,@ebo21_iva numeric(19, 6) ,@ebo31_iva numeric(19, 6) ,@ebo41_iva numeric(19, 6) ,@ebo51_iva numeric(19, 6) ,@ebo61_iva numeric(19, 6) ,@ebo71_iva numeric(18, 5) ,@ebo81_iva numeric(18, 5) ,@ebo91_iva numeric(18, 5) ,@ebo12_iva numeric(19, 6) ,@ebo22_iva numeric(19, 6) ,@ebo32_iva numeric(19, 6) ,@ebo42_iva numeric(19, 6) ,@ebo52_iva numeric(19, 6) ,@ebo62_iva numeric(19, 6) ,@ebo72_iva numeric(18, 5) ,@ebo82_iva numeric(18, 5) ,@ebo92_iva numeric(18, 5) ,@esdeb1 numeric(19, 6) ,@esdeb2 numeric(19, 6) ,@esdeb3 numeric(19, 6) ,@esdeb4 numeric(19, 6) ,@sdeb1 numeric(18, 5) ,@sdeb2 numeric(18, 5) ,@sdeb3 numeric(18, 5) ,@sdeb4 numeric(18, 5) ,@estot1 numeric(19, 6) ,@estot2 numeric(19, 6) ,@estot3 numeric(19, 6) ,@estot4 numeric(19, 6) ,@stot1 numeric(18, 5) ,@stot2 numeric(18, 5) ,@stot3 numeric(18, 5) ,@stot4 numeric(18, 5) ,@ebo_1tvall numeric(19, 6) ,@ebo_2tvall numeric(19, 6) ,@bo_1tvall numeric(18, 5) ,@bo_2tvall numeric(18, 5) ,@ebo_totp1 numeric(19, 6) ,@ebo_totp2 numeric(19, 6) ,@bo_totp1 numeric(18, 5) ,@bo_totp2 numeric(18, 5) ,@sqtt11 numeric(13, 3) ,@sqtt21 numeric(13, 3) ,@sqtt12 numeric(13, 3) ,@sqtt22 numeric(13, 3) ,@sqtt13 numeric(13, 3) ,@sqtt23 numeric(13, 3) ,@sqtt14 numeric(13, 3) ,@sqtt24 numeric(13, 3) ,@userinis varchar (30) ,@mybostamp char(25) = 'aut66f100269066f10fabbe' declare @totaisiva table ( bostamp varchar (25), codigo numeric(1), taxa numeric (5,2), ebaseinc numeric (19,6), baseinc numeric (18,5), evalor numeric (19,6), valor numeric (18,5) ) set @prod = ( select ts.producao from bo(nolock) inner join ts(nolock) on bo.ndos = ts.ndos and bo.bostamp = @mybostamp ) set @nrdec = ( select convert(numeric(10, 0), valor) from para1(nolock) where descricao = 'de_euro' ) --set @prod = 0 --set @nrdec = 2 select @ecusto = sum(bi.epcusto * bi.qtt) ,@custo = sum(bi.pcusto * bi.qtt) ,@bo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo_1iliq = round(sum(bi.qtt * bi.epu), @nrdec) ,@bo_2iliq = round(sum(bi.ettdeb), @nrdec) ,@bo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else bi.ettdeb - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@esdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@sdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@smoe1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@total = @stot1 + @stot2 + @stot3 + @stot4 ,@etotal = @estot1 + @estot2 + @estot3 + @estot4 ,@totaldeb = @sdeb1 + @sdeb2 + @sdeb3 + @sdeb4 ,@etotaldeb = @esdeb1 + @esdeb2 + @esdeb3 + @esdeb4 ,@moetotal = @smoe1 + @smoe2 + @smoe3 + @smoe4 ,@ebo_1tvall = @ebo11_bins + @ebo21_bins + @ebo31_bins + @ebo41_bins + @ebo51_bins + @ebo61_bins + @ebo71_bins + @ebo81_bins + @ebo91_bins ,@ebo_2tvall = @ebo12_bins + @ebo22_bins + @ebo32_bins + @ebo42_bins + @ebo52_bins + @ebo62_bins + @ebo72_bins + @ebo82_bins + @ebo92_bins ,@bo_1tvall = @bo11_bins + @bo21_bins + @bo31_bins + @bo41_bins + @bo51_bins + @bo61_bins + @bo71_bins + @bo81_bins + @bo91_bins ,@bo_2tvall = @bo12_bins + @bo22_bins + @bo32_bins + @bo42_bins + @bo52_bins + @bo62_bins + @bo72_bins + @bo82_bins + @bo92_bins ,@ebo_totp1 = sum(case when bi.ivaincl = 0 then (bi.epu * bi.qtt) else round((bi.epu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@ebo_totp2 = sum(case when bi.ivaincl = 0 then (bi.edebito * bi.qtt) else round((bi.edebito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp1 = sum(case when bi.ivaincl = 0 then (bi.pu * bi.qtt) else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp2 = sum(case when bi.ivaincl = 0 then (bi.debito * bi.qtt) else round((bi.debito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@sqtt11 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt21 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt12 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt22 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt13 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt23 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt14 = sum(case when bi.stipo = 4 then bi.qtt else 0 end) ,@sqtt24 = sum(case when bi.stipo = 5 then bi.qtt else 0 end) from bi(nolock) where bi.bostamp = @mybostamp and bi.producao = case when @prod = 1 then 1 else bi.producao end and bi.composto = 0 and bi.qtt <> 0 update bo set bo.totaldeb = isnull(@totaldeb, 0) ,bo.total = isnull(@total, 0) ,bo.etotaldeb = isnull(@etotaldeb, 0) ,bo.moetotal = isnull(@moetotal, 0) ,bo.etotal = isnull(@etotal, 0) ,bo.ecusto = isnull(@ecusto, 0) ,bo.custo = isnull(@custo, 0) ,bo.bo11_bins = isnull(@bo11_bins, 0) ,bo.bo12_bins = isnull(@bo12_bins, 0) ,bo.bo21_bins = isnull(@bo21_bins, 0) ,bo.bo22_bins = isnull(@bo22_bins, 0) ,bo.bo31_bins = isnull(@bo31_bins, 0) ,bo.bo32_bins = isnull(@bo32_bins, 0) ,bo.bo41_bins = isnull(@bo41_bins, 0) ,bo.bo42_bins = isnull(@bo42_bins, 0) ,bo.bo51_bins = isnull(@bo51_bins, 0) ,bo.bo52_bins = isnull(@bo52_bins, 0) ,bo.bo61_bins = isnull(@bo61_bins, 0) ,bo.bo62_bins = isnull(@bo62_bins, 0) ,bo.ebo11_bins = isnull(@ebo11_bins, 0) ,bo.ebo12_bins = isnull(@ebo12_bins, 0) ,bo.ebo21_bins = isnull(@ebo21_bins, 0) ,bo.ebo22_bins = isnull(@ebo22_bins, 0) ,bo.ebo31_bins = isnull(@ebo31_bins, 0) ,bo.ebo32_bins = isnull(@ebo32_bins, 0) ,bo.ebo41_bins = isnull(@ebo41_bins, 0) ,bo.ebo42_bins = isnull(@ebo42_bins, 0) ,bo.ebo51_bins = isnull(@ebo51_bins, 0) ,bo.ebo52_bins = isnull(@ebo52_bins, 0) ,bo.ebo61_bins = isnull(@ebo61_bins, 0) ,bo.ebo62_bins = isnull(@ebo62_bins, 0) ,bo.bo11_iva = isnull(@bo11_iva, 0) ,bo.bo12_iva = isnull(@bo12_iva, 0) ,bo.bo21_iva = isnull(@bo21_iva, 0) ,bo.bo22_iva = isnull(@bo22_iva, 0) ,bo.bo31_iva = isnull(@bo31_iva, 0) ,bo.bo32_iva = isnull(@bo32_iva, 0) ,bo.bo41_iva = isnull(@bo41_iva, 0) ,bo.bo42_iva = isnull(@bo42_iva, 0) ,bo.bo51_iva = isnull(@bo51_iva, 0) ,bo.bo52_iva = isnull(@bo52_iva, 0) ,bo.bo61_iva = isnull(@bo61_iva, 0) ,bo.bo62_iva = isnull(@bo62_iva, 0) ,bo.ebo11_iva = isnull(@ebo11_iva, 0) ,bo.ebo12_iva = isnull(@ebo12_iva, 0) ,bo.ebo21_iva = isnull(@ebo21_iva, 0) ,bo.ebo22_iva = isnull(@ebo22_iva, 0) ,bo.ebo31_iva = isnull(@ebo31_iva, 0) ,bo.ebo32_iva = isnull(@ebo32_iva, 0) ,bo.ebo41_iva = isnull(@ebo41_iva, 0) ,bo.ebo42_iva = isnull(@ebo42_iva, 0) ,bo.ebo51_iva = isnull(@ebo51_iva, 0) ,bo.ebo52_iva = isnull(@ebo52_iva, 0) ,bo.ebo61_iva = isnull(@ebo61_iva, 0) ,bo.ebo62_iva = isnull(@ebo62_iva, 0) ,bo.esdeb1 = isnull(@esdeb1, 0) ,bo.esdeb2 = isnull(@esdeb2, 0) ,bo.esdeb3 = isnull(@esdeb3, 0) ,bo.esdeb4 = isnull(@esdeb4, 0) ,bo.sdeb1 = isnull(@sdeb1, 0) ,bo.sdeb2 = isnull(@sdeb2, 0) ,bo.sdeb3 = isnull(@sdeb3, 0) ,bo.sdeb4 = isnull(@sdeb4, 0) ,bo.smoe1 = isnull(@smoe1, 0) ,bo.smoe2 = isnull(@smoe2, 0) ,bo.smoe3 = isnull(@smoe3, 0) ,bo.smoe4 = isnull(@smoe4, 0) ,bo.estot1 = isnull(@estot1, 0) ,bo.estot2 = isnull(@estot2, 0) ,bo.estot3 = isnull(@estot3, 0) ,bo.estot4 = isnull(@estot4, 0) ,bo.stot1 = isnull(@stot1, 0) ,bo.stot2 = isnull(@stot2, 0) ,bo.stot3 = isnull(@stot3, 0) ,bo.stot4 = isnull(@stot4, 0) ,bo.ebo_1tvall = isnull(@ebo_1tvall, 0) ,bo.ebo_2tvall = isnull(@ebo_2tvall, 0) ,bo.bo_1tvall = isnull(@bo_1tvall, 0) ,bo.bo_2tvall = isnull(@bo_2tvall, 0) ,bo.ebo_totp1 = isnull(@ebo_totp1, 0) ,bo.ebo_totp2 = isnull(@ebo_totp2, 0) ,bo.bo_totp1 = isnull(@bo_totp1, 0) ,bo.bo_totp2 = isnull(@bo_totp2, 0) ,bo.sqtt11 = isnull(@sqtt11, 0) ,bo.sqtt21 = isnull(@sqtt21, 0) ,bo.sqtt12 = isnull(@sqtt12, 0) ,bo.sqtt22 = isnull(@sqtt22, 0) ,bo.sqtt13 = isnull(@sqtt13, 0) ,bo.sqtt23 = isnull(@sqtt23, 0) ,bo.sqtt14 = isnull(@sqtt14, 0) ,bo.sqtt24 = isnull(@sqtt24, 0) where bostamp = @mybostamp update bo2 set bo2.bo71_bins = isnull(@bo71_bins, 0) ,bo2.bo72_bins = isnull(@bo72_bins, 0) ,bo2.bo81_bins = isnull(@bo81_bins, 0) ,bo2.bo82_bins = isnull(@bo82_bins, 0) ,bo2.bo91_bins = isnull(@bo91_bins, 0) ,bo2.bo92_bins = isnull(@bo92_bins, 0) ,bo2.ebo71_bins = isnull(@ebo71_bins, 0) ,bo2.ebo72_bins = isnull(@ebo72_bins, 0) ,bo2.ebo81_bins = isnull(@ebo81_bins, 0) ,bo2.ebo82_bins = isnull(@ebo82_bins, 0) ,bo2.ebo91_bins = isnull(@ebo91_bins, 0) ,bo2.ebo92_bins = isnull(@ebo92_bins, 0) ,bo2.bo71_iva = isnull(@bo71_iva, 0) ,bo2.bo72_iva = isnull(@bo72_iva, 0) ,bo2.bo81_iva = isnull(@bo81_iva, 0) ,bo2.bo82_iva = isnull(@bo82_iva, 0) ,bo2.bo91_iva = isnull(@bo91_iva, 0) ,bo2.bo92_iva = isnull(@bo92_iva, 0) ,bo2.ebo71_iva = isnull(@ebo71_iva, 0) ,bo2.ebo72_iva = isnull(@ebo72_iva, 0) ,bo2.ebo81_iva = isnull(@ebo81_iva, 0) ,bo2.ebo82_iva = isnull(@ebo82_iva, 0) ,bo2.ebo91_iva = isnull(@ebo91_iva, 0) ,bo2.ebo92_iva = isnull(@ebo92_iva, 0) ,bo2.etotalciva = isnull(@etotaldeb, 0) + isnull(@ebo12_iva, 0) +isnull(@ebo22_iva, 0) +isnull(@ebo32_iva, 0) +isnull(@ebo42_iva, 0) +isnull(@ebo52_iva, 0) +isnull(@ebo62_iva, 0) +isnull(@ebo72_iva, 0) +isnull(@ebo82_iva, 0) +isnull(@ebo92_iva, 0) --,bo2.mtotalciva =isnull(@moetotal, 0) where bo2stamp = @mybostamp -- trata os bot select @userinis = usrinis from bo where bo.bostamp=@mybostamp insert into @totaisiva ( bostamp, codigo, taxa, ebaseinc, baseinc, evalor, valor ) select @mybostamp,codigo,taxa ,case when (@ebo11_bins <>0) then @ebo11_bins else @ebo12_bins end ,case when (@ebo11_bins <>0) then @bo11_bins else @bo12_bins end ,case when (@ebo11_bins <>0) then @ebo11_iva else @ebo12_iva end ,case when (@ebo11_bins <>0) then @bo11_iva else @bo12_iva end from taxasiva where codigo = 1 union all select @mybostamp,codigo,taxa ,case when (@ebo21_bins <>0) then @ebo21_bins else @ebo22_bins end ,case when (@ebo21_bins <>0) then @bo21_bins else @bo22_bins end ,case when (@ebo21_bins <>0) then @ebo21_iva else @ebo22_iva end ,case when (@ebo21_bins <>0) then @bo21_iva else @bo22_iva end from taxasiva where codigo = 2 union all select @mybostamp,codigo,taxa ,case when (@ebo31_bins <>0) then @ebo31_bins else @ebo32_bins end ,case when (@ebo31_bins <>0) then @bo31_bins else @bo32_bins end ,case when (@ebo31_bins <>0) then @ebo31_iva else @ebo32_iva end ,case when (@ebo31_bins <>0) then @bo31_iva else @bo32_iva end from taxasiva where codigo = 3 union all select @mybostamp,codigo,taxa ,case when (@ebo41_bins <>0) then @ebo41_bins else @ebo42_bins end ,case when (@ebo41_bins <>0) then @bo41_bins else @bo42_bins end ,case when (@ebo41_bins <>0) then @ebo41_iva else @ebo42_iva end ,case when (@ebo41_bins <>0) then @bo41_iva else @bo42_iva end from taxasiva where codigo = 4 union all select @mybostamp,codigo,taxa ,case when (@ebo51_bins <>0) then @ebo51_bins else @ebo52_bins end ,case when (@ebo51_bins <>0) then @bo51_bins else @bo52_bins end ,case when (@ebo51_bins <>0) then @ebo51_iva else @ebo52_iva end ,case when (@ebo51_bins <>0) then @bo51_iva else @bo52_iva end from taxasiva where codigo = 5 union all select @mybostamp,codigo,taxa ,case when (@ebo61_bins <>0) then @ebo61_bins else @ebo62_bins end ,case when (@ebo61_bins <>0) then @bo61_bins else @bo62_bins end ,case when (@ebo61_bins <>0) then @ebo61_iva else @ebo62_iva end ,case when (@ebo61_bins <>0) then @bo61_iva else @bo62_iva end from taxasiva where codigo = 6 union all select @mybostamp,codigo,taxa ,case when (@ebo71_bins <>0) then @ebo71_bins else @ebo72_bins end ,case when (@ebo71_bins <>0) then @bo71_bins else @bo72_bins end ,case when (@ebo71_bins <>0) then @ebo71_iva else @ebo72_iva end ,case when (@ebo71_bins <>0) then @bo71_iva else @bo72_iva end from taxasiva where codigo = 7 union all select @mybostamp,codigo,taxa ,case when (@ebo81_bins <>0) then @ebo81_bins else @ebo82_bins end ,case when (@ebo81_bins <>0) then @bo81_bins else @bo82_bins end ,case when (@ebo81_bins <>0) then @ebo81_iva else @ebo82_iva end ,case when (@ebo81_bins <>0) then @bo81_iva else @bo82_iva end from taxasiva where codigo = 8 union all select @mybostamp,codigo,taxa ,case when (@ebo91_bins <>0) then @ebo91_bins else @ebo92_bins end ,case when (@ebo91_bins <>0) then @bo91_bins else @bo92_bins end ,case when (@ebo91_bins <>0) then @ebo91_iva else @ebo92_iva end ,case when (@ebo91_bins <>0) then @bo91_iva else @bo92_iva end from taxasiva where codigo = 9 update bot set ebaseinc = totiva.ebaseinc, baseinc = totiva.baseinc, evalor = totiva.evalor, valor = totiva.valor, usrinis = @userinis, usrdata = convert (date,getdate()), usrhora = convert (time,getdate()) from @totaisiva totiva inner join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo insert into bot ( botstamp ,bostamp ,codigo ,taxa ,ebaseinc ,baseinc ,evalor ,valor ,ousrinis ,ousrdata ,ousrhora ,usrinis ,usrdata ,usrhora ) select ( left(@userinis,3) + 'tt' + left(newid(),5) + right(newid(),5) + left(newid(),5) + right(newid(),5)) stamp ,@mybostamp stampbo ,totiva.codigo ,totiva.taxa ,totiva.ebaseinc ,totiva.baseinc ,totiva.evalor ,totiva.valor ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) from @totaisiva totiva left join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo where bot.botstamp is null -- atualiza os campo bi.series e bi.series2, caso tenha equipamentos update bi set series = s1, series2=s2 from bi inner join ( select distinct bistamp,ser.s1, ser.s2 from boma cross apply (select stuff ( ( select ',' + rtrim(serie) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s1 , stuff ( ( select ',' + rtrim(serie2) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s2 ) ser where boma.bostamp = @mybostamp ) myboma on bi.bistamp = myboma.bistamp where bi.bostamp = @mybostamp 
20240923@075049.2086 mglivmqmkaesrdvfj2kr433mlr Query : use flama_phc
20240923@075049.2089 mglivmqmkaesrdvfj2kr433mlr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@075049.2140 mglivmqmkaesrdvfj2kr433mlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2131';
20240923@075049.2170 mglivmqmkaesrdvfj2kr433mlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2131';
20240923@081918.3050 tn2jbvu7db13nhujd2m361nlif Query : use flama_phc
20240923@081918.3054 tn2jbvu7db13nhujd2m361nlif Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@081918.3208 tn2jbvu7db13nhujd2m361nlif Query : use flama_phc
20240923@081918.3212 tn2jbvu7db13nhujd2m361nlif Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@083617.8009 68665ha1sgr631lhn1991o6qat Query : use flama_phc
20240923@083617.8014 68665ha1sgr631lhn1991o6qat Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@083617.8102 68665ha1sgr631lhn1991o6qat Query : use flama_phc
20240923@083617.8105 68665ha1sgr631lhn1991o6qat Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@091932.6628 7rodifh2sacs70t7h16c9fqkbp Query : use flama_phc
20240923@091932.6671 7rodifh2sacs70t7h16c9fqkbp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@091932.7458 7rodifh2sacs70t7h16c9fqkbp Query : use flama_phc
20240923@091932.7540 7rodifh2sacs70t7h16c9fqkbp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@093632.5889 pq3dq0ito9qh7a641j2q2mlgtp Query : use flama_phc
20240923@093632.5894 pq3dq0ito9qh7a641j2q2mlgtp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@093632.5981 pq3dq0ito9qh7a641j2q2mlgtp Query : use flama_phc
20240923@093632.5985 pq3dq0ito9qh7a641j2q2mlgtp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@101919.5999 05nvj2orkt3av0366ssrv4po34 Query : use flama_phc
20240923@101919.6003 05nvj2orkt3av0366ssrv4po34 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@101919.6091 05nvj2orkt3av0366ssrv4po34 Query : use flama_phc
20240923@101919.6094 05nvj2orkt3av0366ssrv4po34 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@103619.4382 634j4q71jatuchad8ni1c9fpkq Query : use flama_phc
20240923@103619.4387 634j4q71jatuchad8ni1c9fpkq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@103619.4474 634j4q71jatuchad8ni1c9fpkq Query : use flama_phc
20240923@103619.4478 634j4q71jatuchad8ni1c9fpkq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@111919.7272 elmdt04j2cmj2bc5v9cei8gm3p Query : use flama_phc
20240923@111919.7276 elmdt04j2cmj2bc5v9cei8gm3p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@111919.7368 elmdt04j2cmj2bc5v9cei8gm3p Query : use flama_phc
20240923@111919.7371 elmdt04j2cmj2bc5v9cei8gm3p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@113619.1827 knhsr5536av14v8cptlc9r1kip Query : use flama_phc
20240923@113619.1831 knhsr5536av14v8cptlc9r1kip Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@113619.1921 knhsr5536av14v8cptlc9r1kip Query : use flama_phc
20240923@113619.1925 knhsr5536av14v8cptlc9r1kip Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@121923.3468 7nrq5tu7sfd7l62j4f2psc9m66 Query : use flama_phc
20240923@121923.3474 7nrq5tu7sfd7l62j4f2psc9m66 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@121923.3566 7nrq5tu7sfd7l62j4f2psc9m66 Query : use flama_phc
20240923@121923.3569 7nrq5tu7sfd7l62j4f2psc9m66 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@123623.4335 7rclr4sm6jhfo0b1nqhd4t338l Query : use flama_phc
20240923@123623.4376 7rclr4sm6jhfo0b1nqhd4t338l Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@123623.4823 7rclr4sm6jhfo0b1nqhd4t338l Query : use flama_phc
20240923@123623.4827 7rclr4sm6jhfo0b1nqhd4t338l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@131917.7141 jg1h45f24d3689f7dmi1bpcgfp Query : use flama_phc
20240923@131917.7146 jg1h45f24d3689f7dmi1bpcgfp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@131917.7451 jg1h45f24d3689f7dmi1bpcgfp Query : use flama_phc
20240923@131917.7455 jg1h45f24d3689f7dmi1bpcgfp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@133617.9800 qcb9ad9i4b7b4kiu37gstlgr0m Query : use flama_phc
20240923@133617.9805 qcb9ad9i4b7b4kiu37gstlgr0m Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@133617.9904 qcb9ad9i4b7b4kiu37gstlgr0m Query : use flama_phc
20240923@133617.9908 qcb9ad9i4b7b4kiu37gstlgr0m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@141916.7363 lekvj110mi31to914fjmdplrah Query : use flama_phc
20240923@141916.7368 lekvj110mi31to914fjmdplrah Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@141916.7465 lekvj110mi31to914fjmdplrah Query : use flama_phc
20240923@141916.7470 lekvj110mi31to914fjmdplrah Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@143616.6484 5c2u3gbqr67m27sjascqdr024q Query : use flama_phc
20240923@143616.6489 5c2u3gbqr67m27sjascqdr024q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@143616.6579 5c2u3gbqr67m27sjascqdr024q Query : use flama_phc
20240923@143616.6582 5c2u3gbqr67m27sjascqdr024q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@151932.3655 4qo3tufhve9762b85mll9skboa Query : use flama_phc
20240923@151932.3659 4qo3tufhve9762b85mll9skboa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@151932.3795 4qo3tufhve9762b85mll9skboa Query : use flama_phc
20240923@151932.3798 4qo3tufhve9762b85mll9skboa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@153632.8770 9vv029fs8r3th7njkmane6h9jc Query : use flama_phc
20240923@153632.8830 9vv029fs8r3th7njkmane6h9jc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@153632.9760 9vv029fs8r3th7njkmane6h9jc Query : use flama_phc
20240923@153632.9810 9vv029fs8r3th7njkmane6h9jc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@161918.4682 mtj0c5043q46rijqimtfmgavmc Query : use flama_phc
20240923@161918.4687 mtj0c5043q46rijqimtfmgavmc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@161918.4795 mtj0c5043q46rijqimtfmgavmc Query : use flama_phc
20240923@161918.4799 mtj0c5043q46rijqimtfmgavmc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@163618.4876 q4l14pa5795tfru0110op64i8q Query : use flama_phc
20240923@163618.4885 q4l14pa5795tfru0110op64i8q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@163618.5014 q4l14pa5795tfru0110op64i8q Query : use flama_phc
20240923@163618.5019 q4l14pa5795tfru0110op64i8q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@171953.7798 tvnkefdfjirgns5bc7p08tjcqc Query : use flama_phc
20240923@171953.7802 tvnkefdfjirgns5bc7p08tjcqc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@171953.7958 tvnkefdfjirgns5bc7p08tjcqc Query : use flama_phc
20240923@171953.7961 tvnkefdfjirgns5bc7p08tjcqc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@173654.6572 ts13ledsoi1buhk6f96agit8pj Query : use flama_phc
20240923@173654.6616 ts13ledsoi1buhk6f96agit8pj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240923@173654.7437 ts13ledsoi1buhk6f96agit8pj Query : use flama_phc
20240923@173654.7481 ts13ledsoi1buhk6f96agit8pj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240923@181032.1637 m2br12u42l2ks20kmcg9q457eu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240923@181032.1672 m2br12u42l2ks20kmcg9q457eu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240923@181032.1888 m2br12u42l2ks20kmcg9q457eu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2132';
20240923@181032.1956 m2br12u42l2ks20kmcg9q457eu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2132';
20240923@181032.2023 m2br12u42l2ks20kmcg9q457eu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2132';
20240923@181032.2049 m2br12u42l2ks20kmcg9q457eu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2132';
20240923@181032.2111 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.2114 m2br12u42l2ks20kmcg9q457eu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240923@181032.2224 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.2227 m2br12u42l2ks20kmcg9q457eu Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240923@181032.2311 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.2477 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.2803 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.2824 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.2843 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.2864 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.2882 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.2910 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.2932 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.2952 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.2969 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.2989 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3006 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3030 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3049 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3072 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3088 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3117 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3134 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3156 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3173 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3192 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3209 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3230 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3248 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3268 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3285 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3306 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3322 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3343 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3362 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3384 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =1
20240923@181032.3401 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3429 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =2
20240923@181032.3760 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3784 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =2
20240923@181032.3802 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3822 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =2
20240923@181032.3840 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3865 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =2
20240923@181032.3882 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3903 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =2
20240923@181032.3928 m2br12u42l2ks20kmcg9q457eu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240923@181032.3949 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2060 and bo.obrano = 2406070 and bi.ref ='324.645.00.01' and bi.lordem =2
20240923@181032.3967 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.3970 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240923@181032.4183 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4186 m2br12u42l2ks20kmcg9q457eu Query : select top 1 1 valor from td where td.ndoc = 39
20240923@181032.4283 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4286 m2br12u42l2ks20kmcg9q457eu Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240923@181032.4378 m2br12u42l2ks20kmcg9q457eu Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240923@181032.4506 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4509 m2br12u42l2ks20kmcg9q457eu Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240923@181032.4627 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4629 m2br12u42l2ks20kmcg9q457eu Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240923@181032.4710 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4713 m2br12u42l2ks20kmcg9q457eu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240923@181032.4787 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4790 m2br12u42l2ks20kmcg9q457eu Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240923@181032.4847 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.4850 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from td where ndoc = 39
20240923@181032.4919 m2br12u42l2ks20kmcg9q457eu Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240923@181032.4980 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.5362 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@181032.5435 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.5450 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@181032.5478 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.5495 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@181032.5508 m2br12u42l2ks20kmcg9q457eu Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@181032.5710 m2br12u42l2ks20kmcg9q457eu Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240923@181032.5815 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.5837 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240923@181032.5884 m2br12u42l2ks20kmcg9q457eu Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240923@181032.6125 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.6148 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240923@181032.6194 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240923@181032.6300 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240923@181032.6382 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240923@181032.6457 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240923@181032.6526 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240923@181032.6595 m2br12u42l2ks20kmcg9q457eu Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240923@181032.6662 m2br12u42l2ks20kmcg9q457eu Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f1a4265166f1a10886',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240923@181032.8203 m2br12u42l2ks20kmcg9q457eu Query : select top 1 fno valor from wsftdata order by fno desc
20240923@181032.8432 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.8450 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240923@181032.8475 m2br12u42l2ks20kmcg9q457eu Query : select 'normal' from dummy
20240923@181032.8527 m2br12u42l2ks20kmcg9q457eu Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f1a4265166f1a10886',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',864,101597,0,'2024-09-23',39,'euro',0,0,2024 ,?,?)
20240923@181032.8969 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181032.8973 m2br12u42l2ks20kmcg9q457eu Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@181032.9112 m2br12u42l2ks20kmcg9q457eu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@181032.9253 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.9269 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181032.9297 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.9311 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181032.9321 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@181032.9365 m2br12u42l2ks20kmcg9q457eu Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@181032.9427 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.9442 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181032.9455 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f1a4679366f1a108e6','aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@181032.9507 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.9522 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181032.9556 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f1a4679366f1a108e6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66f1a4265166f1a10886' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240923@181032.9959 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181032.9981 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.5000 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.2200 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.3000 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@181033.4200 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.5600 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.6700 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f1a6107466f1a10901','aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@181033.7100 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.8500 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.1150 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f1a6107466f1a10901',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f1a4265166f1a10886' ,0,0 ,2,23.00,20000,?,?,?)
20240923@181033.3880 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181033.3910 m2br12u42l2ks20kmcg9q457eu Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@181033.4090 m2br12u42l2ks20kmcg9q457eu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@181033.4250 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.4400 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.4660 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.4800 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.4880 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@181033.5000 m2br12u42l2ks20kmcg9q457eu Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@181033.5120 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.5260 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.5370 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f1a1775666f1a1090c','aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@181033.5410 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.5550 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.5820 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f1a1775666f1a1090c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f1a4265166f1a10886' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240923@181033.8370 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.8520 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.8800 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.8940 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.9040 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@181033.9160 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.9300 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.9420 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f1a1448966f1a10916','aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@181033.9460 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.9600 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.9880 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f1a1448966f1a10916',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f1a4265166f1a10886' ,0,0 ,2,23.00,50000,?,?,?)
20240923@181033.1248 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181033.1251 m2br12u42l2ks20kmcg9q457eu Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240923@181033.1270 m2br12u42l2ks20kmcg9q457eu Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20240923@181033.1285 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1302 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.1341 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1358 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.1367 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@181033.1378 m2br12u42l2ks20kmcg9q457eu Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240923@181033.1391 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1405 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.1416 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f1a5031166f1a10921','aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@181033.1421 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1435 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.1468 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f1a5031166f1a10921',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f1a4265166f1a10886' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240923@181033.1738 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1754 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.1778 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1792 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.1801 m2br12u42l2ks20kmcg9q457eu Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240923@181033.1813 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1827 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240923@181033.1838 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f1a7077166f1a1092c','aut66f1a4265166f1a10886' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240923@181033.1842 m2br12u42l2ks20kmcg9q457eu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240923@181033.1859 m2br12u42l2ks20kmcg9q457eu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240923@181033.1888 m2br12u42l2ks20kmcg9q457eu Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f1a7077166f1a1092c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f1a4265166f1a10886' ,0,0 ,2,23.00,80000,?,?,?)
20240923@181033.2147 m2br12u42l2ks20kmcg9q457eu Query : use flama_phc
20240923@181033.2150 m2br12u42l2ks20kmcg9q457eu Query : select st.usalote valor from st where st.ref = '324.645.00.01'
