20240926@080330.7226 g8jd72qdjn09j8np32rupqu3ma INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240926@080330.7222 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080330.7265 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080330.7367 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080330.7460 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080330.7554 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080330.7663 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080330.7770 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080330.7853 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f502215366f507429b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080330.8313 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080330.8411 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080330.8580 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080330.8637 g8jd72qdjn09j8np32rupqu3ma Query : select 'normal' from dummy
20240926@080330.8690 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f502215366f507429b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',930,100810,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080330.9414 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080330.9419 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080330.9587 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080330.9769 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080330.9812 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080330.9858 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080330.9873 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080330.9905 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.1240 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080331.2970 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.3190 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.3380 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500874966f5074307','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.5730 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.6190 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.6530 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500874966f5074307',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080331.1212 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.1230 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.1267 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.1287 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.1300 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.1318 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.1364 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.1437 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504172466f5074320','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.1446 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.1479 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.1514 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f504172466f5074320',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,20000,?,?,?)
20240926@080331.1806 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080331.1809 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080331.1837 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080331.1865 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.1889 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.1969 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2010 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.2020 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.2034 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080331.2063 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2079 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.2104 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502351166f5074332','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.2109 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2124 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.2227 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502351166f5074332',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080331.2517 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2537 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.2583 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2614 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.2630 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.2676 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2696 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.2708 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508247066f5074341','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.2715 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.2751 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.2812 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f508247066f5074341',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,50000,?,?,?)
20240926@080331.3114 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080331.3118 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080331.3142 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080331.3157 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.3234 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.3293 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.3359 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.3410 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.3471 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080331.3488 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.3517 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.3534 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507361466f5074355','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.3539 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.3575 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.3641 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507361466f5074355',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240926@080331.3964 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.3982 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.4054 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.4092 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.4108 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.4123 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.4145 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.4200 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500205466f5074364','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.4205 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.4263 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.4426 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f500205466f5074364',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,80000,?,?,?)
20240926@080331.4774 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080331.4783 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080331.4920 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080331.4978 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.5046 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.5089 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.5107 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.5122 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.5154 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080331.5198 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.5241 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.5262 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502339766f507437e','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.5274 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.5334 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.5522 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502339766f507437e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240926@080331.6030 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.6071 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.6115 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.6134 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.6142 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.6169 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.6185 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.6277 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505682266f5074396','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.6320 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.6361 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.6393 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f505682266f5074396',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,110000,?,?,?)
20240926@080331.6765 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080331.6769 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080331.6857 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080331.6893 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.6958 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.7085 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7106 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.7132 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.7230 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080331.7245 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7272 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.7288 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501158266f50743b0','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.7293 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7320 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.7359 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501158266f50743b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240926@080331.7646 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7663 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.7691 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7716 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.7725 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.7749 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7804 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.7836 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501741766f50743bd','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.7862 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.7883 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.7952 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f501741766f50743bd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,140000,?,?,?)
20240926@080331.8405 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080331.8450 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080331.8594 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080331.8719 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.8740 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.8774 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.8856 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.9025 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080331.9121 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080331.9228 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.9300 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080331.9434 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501654566f50743e1','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080331.9489 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.9556 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.9583 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501654566f50743e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240926@080331.9905 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080331.9957 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080331.9989 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.1900 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.4200 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.1050 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.1240 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.1430 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505453966f5074402','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.1960 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.3170 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.3550 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f505453966f5074402',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,170000,?,?,?)
20240926@080332.6740 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080332.6830 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080332.8330 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080332.9010 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.9950 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.1166 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.1319 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.2576 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.3625 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080332.3783 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.4088 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.4138 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509997366f507445c','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.4178 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.4242 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.4454 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509997366f507445c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240926@080332.4863 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.4972 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.5030 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.5134 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.5151 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.5189 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.5296 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.5379 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506441366f507447e','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.5410 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.5521 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.5649 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f506441366f507447e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,200000,?,?,?)
20240926@080332.6029 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080332.6045 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080332.6164 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080332.6242 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.6397 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.6607 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.6681 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.6718 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.6814 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080332.6906 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.6966 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.7043 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509846366f50744a8','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.7050 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.7167 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.7294 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509846366f50744a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240926@080332.7673 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.7772 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.7984 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8013 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.8042 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.8078 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8105 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.8118 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505301166f50744c5','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.8123 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8157 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.8190 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f505301166f50744c5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,230000,?,?,?)
20240926@080332.8494 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080332.8515 g8jd72qdjn09j8np32rupqu3ma Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240926@080332.8550 g8jd72qdjn09j8np32rupqu3ma 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'
20240926@080332.8568 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8587 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.8629 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8650 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.8697 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.8757 g8jd72qdjn09j8np32rupqu3ma Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400224200a'
20240926@080332.8777 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8793 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.8804 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507624166f50744d6','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.8808 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.8824 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.8898 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507624166f50744d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240926@080332.9270 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.9286 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.9312 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.9328 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.9656 g8jd72qdjn09j8np32rupqu3ma Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080332.9679 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.9699 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080332.9711 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502197866f50744ec','aut66f502215366f507429b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080332.9716 g8jd72qdjn09j8np32rupqu3ma Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080332.9730 g8jd72qdjn09j8np32rupqu3ma Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080332.9758 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f502197866f50744ec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f502215366f507429b' ,0,0 ,2,23.00,260000,?,?,?)
20240926@080333.9800 g8jd72qdjn09j8np32rupqu3ma Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f502215366f507429b','2406182','wait',39,'adm09112754980.682000002')
20240926@080333.2130 g8jd72qdjn09j8np32rupqu3ma Query : use flama_phc
20240926@080333.2160 g8jd72qdjn09j8np32rupqu3ma Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080333.3450 g8jd72qdjn09j8np32rupqu3ma Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2214';
20240926@080333.3910 g8jd72qdjn09j8np32rupqu3ma Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2214';
20240926@080333.4430 g8jd72qdjn09j8np32rupqu3ma Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2214';
20240926@080333.4780 g8jd72qdjn09j8np32rupqu3ma Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2214';
20240926@080333.1051 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080333.1063 lqiceth4lp4gm2l4fbom8hc4o3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080333.1186 lqiceth4lp4gm2l4fbom8hc4o3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2215';
20240926@080333.1267 lqiceth4lp4gm2l4fbom8hc4o3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2215';
20240926@080333.1343 lqiceth4lp4gm2l4fbom8hc4o3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2215';
20240926@080333.1397 lqiceth4lp4gm2l4fbom8hc4o3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2215';
20240926@080333.1487 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.1492 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080333.1572 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.1576 lqiceth4lp4gm2l4fbom8hc4o3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240926@080333.1618 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.1791 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2148 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.2187 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2208 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.2250 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2267 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.2298 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2323 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.2379 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2400 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.2430 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2484 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.2548 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406183 and bi.ref ='324.646.00.01' and bi.lordem =1
20240926@080333.2568 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2571 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080333.2605 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2608 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080333.2644 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2647 lqiceth4lp4gm2l4fbom8hc4o3 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')
20240926@080333.2679 lqiceth4lp4gm2l4fbom8hc4o3 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
20240926@080333.2723 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2726 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240926@080333.2764 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2809 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080333.2912 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2915 lqiceth4lp4gm2l4fbom8hc4o3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080333.2962 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.2965 lqiceth4lp4gm2l4fbom8hc4o3 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240926@080333.3105 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.3110 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from td where ndoc = 39
20240926@080333.3123 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080333.3139 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.3158 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080333.3193 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.3247 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080333.3295 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.3319 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080333.3391 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080333.3513 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080333.3531 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.3577 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080333.3598 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080333.3832 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.3862 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080333.4123 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080333.4338 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080333.4636 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080333.4850 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080333.5123 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080333.5200 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080333.5213 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f508435866f5074552',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080333.5476 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080333.5516 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.5551 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080333.5579 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 'normal' from dummy
20240926@080333.5640 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f508435866f5074552',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',931,100810,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080333.5960 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.5963 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080333.5989 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.6153 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6170 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.6218 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6244 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.6253 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.6268 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240926@080333.6288 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6302 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.6323 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507721766f5074599','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080333.6327 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6343 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.6394 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507721766f5074599',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080333.6680 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6711 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.6748 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6773 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.6783 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.6796 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6812 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.6875 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501832266f50745a5','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080333.6880 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.6897 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.6925 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f501832266f50745a5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,20000,?,?,?)
20240926@080333.7223 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.7226 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080333.7244 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.7264 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7290 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.7348 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7371 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.7379 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.7442 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20240926@080333.7456 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7471 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.7482 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507608066f50745b6','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080333.7496 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7512 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.7543 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507608066f50745b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080333.7811 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7828 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.7854 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7871 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.7880 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.7893 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7909 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.7923 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501441066f50745c0','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080333.7928 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.7943 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.7971 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f501441066f50745c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,50000,?,?,?)
20240926@080333.8357 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.8400 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080333.8452 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.8467 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.8486 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.8539 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.8554 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.8564 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.8576 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20240926@080333.8667 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.8683 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.8694 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505566366f50745d3','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080333.8698 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.8719 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.8758 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f505566366f50745d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240926@080333.9059 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9082 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.9123 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9144 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.9153 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.9166 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9183 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.9200 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509463166f50745df','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080333.9205 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9222 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.9256 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f509463166f50745df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,80000,?,?,?)
20240926@080333.9674 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080333.9707 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080333.9764 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080333.9785 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9802 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080333.9828 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9907 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080333.9916 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080333.9932 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20240926@080333.9951 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080333.9968 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.1400 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502831466f50745f2','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.1900 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3500 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.6500 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502831466f50745f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240926@080334.3400 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3570 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.4270 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.6590 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.6770 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.6900 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.7560 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.9100 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509109866f5074610','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.9140 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.9330 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.9770 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f509109866f5074610',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,110000,?,?,?)
20240926@080334.1269 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080334.1272 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080334.1313 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080334.1346 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1365 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.1404 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1421 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.1432 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.1455 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20240926@080334.1466 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1505 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.1544 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504016666f5074623','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.1549 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1574 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.1604 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504016666f5074623',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240926@080334.1882 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1904 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.1930 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1949 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.1959 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.1971 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.1986 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.1998 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507813166f5074630','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.2002 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.2017 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.2067 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f507813166f5074630',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,140000,?,?,?)
20240926@080334.2368 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080334.2371 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080334.2443 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080334.2483 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.2499 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.2539 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.2558 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.2567 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.2595 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240926@080334.2635 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.2657 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.2682 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507642666f5074640','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.2687 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.2741 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.2771 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507642666f5074640',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240926@080334.3084 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3104 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.3139 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3154 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.3163 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.3187 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3243 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.3256 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507353366f507464d','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.3261 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3285 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.3315 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f507353366f507464d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,170000,?,?,?)
20240926@080334.3625 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080334.3629 lqiceth4lp4gm2l4fbom8hc4o3 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240926@080334.3705 lqiceth4lp4gm2l4fbom8hc4o3 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'
20240926@080334.3731 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3756 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.3790 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3808 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.3819 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.3833 lqiceth4lp4gm2l4fbom8hc4o3 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240926@080334.3847 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3916 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.3930 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507608566f507465d','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.3942 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.3963 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.4058 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507608566f507465d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240926@080334.4340 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.4359 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.4440 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.4469 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.4501 lqiceth4lp4gm2l4fbom8hc4o3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080334.4526 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.4543 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080334.4557 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507646466f507466e','aut66f508435866f5074552' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080334.4561 lqiceth4lp4gm2l4fbom8hc4o3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080334.4580 lqiceth4lp4gm2l4fbom8hc4o3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080334.4662 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f507646466f507466e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508435866f5074552' ,0,0 ,2,23.00,200000,?,?,?)
20240926@080334.5072 lqiceth4lp4gm2l4fbom8hc4o3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f508435866f5074552','2406183','wait',39,'adm09112754980.682000002')
20240926@080334.5184 lqiceth4lp4gm2l4fbom8hc4o3 Query : use flama_phc
20240926@080334.5202 lqiceth4lp4gm2l4fbom8hc4o3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080334.5244 lqiceth4lp4gm2l4fbom8hc4o3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2215';
20240926@080334.5311 lqiceth4lp4gm2l4fbom8hc4o3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2215';
20240926@080334.5354 lqiceth4lp4gm2l4fbom8hc4o3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2215';
20240926@080334.5383 lqiceth4lp4gm2l4fbom8hc4o3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2215';
20240926@080334.5963 k71ec0f9c40alg9203m09r9rbq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080334.5975 k71ec0f9c40alg9203m09r9rbq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080334.6034 k71ec0f9c40alg9203m09r9rbq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2216';
20240926@080334.6115 k71ec0f9c40alg9203m09r9rbq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2216';
20240926@080334.6182 k71ec0f9c40alg9203m09r9rbq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2216';
20240926@080334.6275 k71ec0f9c40alg9203m09r9rbq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2216';
20240926@080334.6364 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080334.6368 k71ec0f9c40alg9203m09r9rbq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080334.6431 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080334.6435 k71ec0f9c40alg9203m09r9rbq Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20240926@080334.6555 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20240926@080334.6752 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2330.00.1' and bi.lordem =1
20240926@080334.7092 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20240926@080334.7123 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2330.00.1' and bi.lordem =1
20240926@080334.7142 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20240926@080334.7169 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2330.00.1' and bi.lordem =2
20240926@080334.8009 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20240926@080334.8301 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2335.00.1' and bi.lordem =3
20240926@080334.8711 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20240926@080334.8733 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2335.00.1' and bi.lordem =4
20240926@080334.9093 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20240926@080334.9118 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2335.00.1' and bi.lordem =4
20240926@080334.9134 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20240926@080334.9183 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2335.00.1' and bi.lordem =5
20240926@080334.9591 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2340.00.1'
20240926@080334.9781 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2340.00.1' and bi.lordem =6
20240926@080335.1640 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2340.00.1'
20240926@080335.1940 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2340.00.1' and bi.lordem =6
20240926@080335.2440 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2340.00.1'
20240926@080335.3010 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2340.00.1' and bi.lordem =6
20240926@080335.3200 k71ec0f9c40alg9203m09r9rbq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2340.00.1'
20240926@080335.3430 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406191 and bi.ref ='324.2340.00.1' and bi.lordem =7
20240926@080335.7170 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.7240 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080335.7610 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.7640 k71ec0f9c40alg9203m09r9rbq Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080335.7920 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.7960 k71ec0f9c40alg9203m09r9rbq 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')
20240926@080335.8270 k71ec0f9c40alg9203m09r9rbq 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
20240926@080335.9120 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.9150 k71ec0f9c40alg9203m09r9rbq Query : select top 1 ~inactivo valor from cl where no = '100327' and estab = 0 order by inactivo desc
20240926@080335.1058 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.1061 k71ec0f9c40alg9203m09r9rbq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080335.1092 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.1095 k71ec0f9c40alg9203m09r9rbq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080335.1144 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.1147 k71ec0f9c40alg9203m09r9rbq Query : select szadrsstamp valor from szadrs where szadrsdesc='discoteca juvenil, lda.'
20240926@080335.1217 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.1220 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from td where ndoc = 39
20240926@080335.1232 k71ec0f9c40alg9203m09r9rbq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080335.1273 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.1315 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080335.1372 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.1438 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080335.1652 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.1776 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080335.1817 k71ec0f9c40alg9203m09r9rbq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080335.1917 k71ec0f9c40alg9203m09r9rbq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080335.1978 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.2047 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080335.2121 k71ec0f9c40alg9203m09r9rbq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080335.2323 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.2405 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080335.2537 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080335.2625 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080335.2668 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080335.2711 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080335.2729 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080335.2748 k71ec0f9c40alg9203m09r9rbq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080335.2820 k71ec0f9c40alg9203m09r9rbq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f505103666f507472c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080335.3117 k71ec0f9c40alg9203m09r9rbq Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080335.3196 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.3242 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080335.3287 k71ec0f9c40alg9203m09r9rbq Query : select 'normal' from dummy
20240926@080335.3304 k71ec0f9c40alg9203m09r9rbq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f505103666f507472c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',932,100327,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080335.3694 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.3697 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20240926@080335.3759 k71ec0f9c40alg9203m09r9rbq 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.2330.00.1'
20240926@080335.3931 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.3951 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.3988 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.4029 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.4038 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080335.4050 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2300509200a'
20240926@080335.4112 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.4129 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.4157 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506292666f5074764','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080335.4162 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.4237 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.4282 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506292666f5074764',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080335.4914 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.5729 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20240926@080335.6027 k71ec0f9c40alg9203m09r9rbq 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.2330.00.1'
20240926@080335.6045 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.6061 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.6090 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.6106 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.6139 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080335.6154 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20240926@080335.6198 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.6235 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.6328 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509801966f5074797','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080335.6347 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.6651 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.6889 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509801966f5074797',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080335.7347 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.7369 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20240926@080335.7424 k71ec0f9c40alg9203m09r9rbq 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.2330.00.1'
20240926@080335.7443 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.7507 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.7568 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.7657 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.7668 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080335.7689 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2300509200a'
20240926@080335.7715 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.7732 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.7747 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504533166f50747bc','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080335.7778 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.7795 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.7856 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504533166f50747bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240926@080335.8145 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080335.8167 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20240926@080335.8200 k71ec0f9c40alg9203m09r9rbq 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.2335.00.1'
20240926@080335.8438 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.8458 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.8519 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.8556 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.8568 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080335.8583 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20240926@080335.8599 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.8631 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080335.8645 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507947266f50747d1','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080335.8650 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080335.8670 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080335.9210 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507947266f50747d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080336.1960 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.2370 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20240926@080336.1154 k71ec0f9c40alg9203m09r9rbq 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.2335.00.1'
20240926@080336.1261 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.1285 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.1312 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.1328 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.1351 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.1363 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20240926@080336.1442 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.1561 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.1583 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502250866f5074823','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.1588 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.1656 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.1745 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502250866f5074823',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240926@080336.2221 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.2263 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20240926@080336.2334 k71ec0f9c40alg9203m09r9rbq 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.2335.00.1'
20240926@080336.2359 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.2417 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.2708 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.2739 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.2749 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.2786 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20240926@080336.2803 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.2829 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.2845 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f503316366f5074844','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.2851 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.2885 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.2926 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f503316366f5074844',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240926@080336.3236 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.3240 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20240926@080336.3262 k71ec0f9c40alg9203m09r9rbq 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.2335.00.1'
20240926@080336.3285 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.3328 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.3372 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.3401 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.3413 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.3463 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20240926@080336.3561 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.3673 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.3698 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509558166f5074856','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.3703 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.3732 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.3766 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509558166f5074856',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240926@080336.4117 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.4121 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20240926@080336.4142 k71ec0f9c40alg9203m09r9rbq 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.2340.00.1'
20240926@080336.4298 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.4563 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.4670 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.4698 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.4706 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.4723 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20240926@080336.4737 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.4805 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.4820 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508615866f5074873','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.4824 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.4844 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.4888 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508615866f5074873',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240926@080336.5165 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.5168 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20240926@080336.5240 k71ec0f9c40alg9203m09r9rbq 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.2340.00.1'
20240926@080336.5285 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.5301 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.5350 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.5366 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.5437 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.5449 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20240926@080336.5463 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.5485 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.5497 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509580266f5074885','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.5501 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.5522 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.5583 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509580266f5074885',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240926@080336.5960 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.5964 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20240926@080336.6014 k71ec0f9c40alg9203m09r9rbq 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.2340.00.1'
20240926@080336.6047 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6065 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.6088 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6103 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.6112 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.6123 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20240926@080336.6134 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6151 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.6163 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507677366f5074895','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.6167 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6184 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.6225 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507677366f5074895',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240926@080336.6508 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.6511 k71ec0f9c40alg9203m09r9rbq Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20240926@080336.6560 k71ec0f9c40alg9203m09r9rbq 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.2340.00.1'
20240926@080336.6585 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6618 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.6652 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6673 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.6681 k71ec0f9c40alg9203m09r9rbq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080336.6701 k71ec0f9c40alg9203m09r9rbq Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20240926@080336.6726 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6741 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080336.6752 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506408366f50748a4','aut66f505103666f507472c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080336.6757 k71ec0f9c40alg9203m09r9rbq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080336.6782 k71ec0f9c40alg9203m09r9rbq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080336.6867 k71ec0f9c40alg9203m09r9rbq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506408366f50748a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f505103666f507472c' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240926@080336.7150 k71ec0f9c40alg9203m09r9rbq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f505103666f507472c','2406191','wait',39,'adm09112754980.682000002')
20240926@080336.7251 k71ec0f9c40alg9203m09r9rbq Query : use flama_phc
20240926@080336.7267 k71ec0f9c40alg9203m09r9rbq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080336.7297 k71ec0f9c40alg9203m09r9rbq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2216';
20240926@080336.7331 k71ec0f9c40alg9203m09r9rbq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2216';
20240926@080336.7376 k71ec0f9c40alg9203m09r9rbq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2216';
20240926@080336.7427 k71ec0f9c40alg9203m09r9rbq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2216';
20240926@080336.8079 d2vn5sjsok06fv0nqs81v6olaa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080336.8195 d2vn5sjsok06fv0nqs81v6olaa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080336.8870 d2vn5sjsok06fv0nqs81v6olaa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2217';
20240926@080336.9374 d2vn5sjsok06fv0nqs81v6olaa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2217';
20240926@080336.9830 d2vn5sjsok06fv0nqs81v6olaa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2217';
20240926@080337.2080 d2vn5sjsok06fv0nqs81v6olaa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2217';
20240926@080337.6130 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080337.6790 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080337.1472 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080337.1541 d2vn5sjsok06fv0nqs81v6olaa Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240926@080337.2038 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240926@080337.3791 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406192 and bi.ref ='324.1834.00.1' and bi.lordem =1
20240926@080337.4733 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240926@080337.5094 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406192 and bi.ref ='324.1834.00.1' and bi.lordem =1
20240926@080337.5442 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080337.5480 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080337.5923 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080337.5990 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080337.6459 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080337.6528 d2vn5sjsok06fv0nqs81v6olaa 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')
20240926@080337.7146 d2vn5sjsok06fv0nqs81v6olaa 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
20240926@080337.8789 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080337.8897 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20240926@080338.3770 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080338.4460 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080338.7520 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080338.7570 d2vn5sjsok06fv0nqs81v6olaa Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080338.1044 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080338.1112 d2vn5sjsok06fv0nqs81v6olaa Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20240926@080338.1520 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080338.1570 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from td where ndoc = 39
20240926@080338.1621 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080338.1923 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080338.2083 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080338.2185 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080338.2378 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080338.2750 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080338.3047 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080338.3248 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080338.3647 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080338.3902 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080338.4292 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080338.4661 d2vn5sjsok06fv0nqs81v6olaa Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f508658266f5074a4f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080338.5112 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080338.5454 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080338.6339 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080338.6668 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080338.6909 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080338.7286 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080338.7765 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080338.7939 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080338.8127 d2vn5sjsok06fv0nqs81v6olaa Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f508658266f5074a4f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080338.8880 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080338.9239 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080338.9383 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080339.4400 d2vn5sjsok06fv0nqs81v6olaa Query : select 'normal' from dummy
20240926@080339.3870 d2vn5sjsok06fv0nqs81v6olaa Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f508658266f5074a4f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',933,102253,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080339.1544 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080339.1582 d2vn5sjsok06fv0nqs81v6olaa Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20240926@080339.1772 d2vn5sjsok06fv0nqs81v6olaa 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.1834.00.1'
20240926@080339.2467 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080339.3973 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080339.4865 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080339.4999 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080339.5033 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080339.5102 d2vn5sjsok06fv0nqs81v6olaa Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400213100a'
20240926@080339.5133 d2vn5sjsok06fv0nqs81v6olaa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080339.5387 d2vn5sjsok06fv0nqs81v6olaa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080339.5519 d2vn5sjsok06fv0nqs81v6olaa Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506053466f5074b7d','aut66f508658266f5074a4f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080339.6512 d2vn5sjsok06fv0nqs81v6olaa Query : use flama_phc
20240926@080339.6517 d2vn5sjsok06fv0nqs81v6olaa Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240926@080339.7308 d2vn5sjsok06fv0nqs81v6olaa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2217';
20240926@080339.7369 d2vn5sjsok06fv0nqs81v6olaa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2217';
20240926@080339.7958 it04u99dpeamluno8nvunfoau1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080339.7977 it04u99dpeamluno8nvunfoau1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080339.8077 it04u99dpeamluno8nvunfoau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2218';
20240926@080339.8131 it04u99dpeamluno8nvunfoau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2218';
20240926@080339.8189 it04u99dpeamluno8nvunfoau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2218';
20240926@080339.8248 it04u99dpeamluno8nvunfoau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2218';
20240926@080339.8314 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080339.8339 it04u99dpeamluno8nvunfoau1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080339.8425 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080339.8428 it04u99dpeamluno8nvunfoau1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240926@080339.8471 it04u99dpeamluno8nvunfoau1 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'
20240926@080339.8655 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240926@080339.8995 it04u99dpeamluno8nvunfoau1 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'
20240926@080339.9020 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240926@080339.9040 it04u99dpeamluno8nvunfoau1 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'
20240926@080339.9062 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240926@080339.9083 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240926@080339.9337 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.736.00.01' and bi.lordem =2
20240926@080339.9790 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240926@080339.9816 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.736.00.01' and bi.lordem =2
20240926@080339.9842 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240926@080339.9866 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.736.00.01' and bi.lordem =2
20240926@080339.9893 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240926@080339.9915 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.736.00.01' and bi.lordem =2
20240926@080339.9953 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240926@080339.9973 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.736.00.01' and bi.lordem =2
20240926@080339.9989 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240926@080340.1300 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.736.00.01' and bi.lordem =2
20240926@080340.4400 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20240926@080340.2020 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.1416.00.1' and bi.lordem =3
20240926@080340.5300 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20240926@080340.5630 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.1416.00.1' and bi.lordem =3
20240926@080340.6470 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1406.00.1'
20240926@080340.8630 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.1406.00.1' and bi.lordem =4
20240926@080340.1189 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20240926@080340.1341 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4421.00.1' and bi.lordem =5
20240926@080340.1807 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240926@080340.2087 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4988.00.1' and bi.lordem =6
20240926@080340.2494 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240926@080340.2548 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4988.00.1' and bi.lordem =6
20240926@080340.2596 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2041.00.1'
20240926@080340.2759 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.2041.00.1' and bi.lordem =7
20240926@080340.3199 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4585.00.1'
20240926@080340.3366 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.4585.00.1' and bi.lordem =8
20240926@080340.3784 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2160.00.1'
20240926@080340.3979 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.2160.00.1' and bi.lordem =9
20240926@080340.4690 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2160.00.1'
20240926@080340.4727 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.2160.00.1' and bi.lordem =9
20240926@080340.4749 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240926@080340.4921 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.945.00.01' and bi.lordem =10
20240926@080340.5324 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20240926@080340.5637 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.2231.00.2' and bi.lordem =11
20240926@080340.6046 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240926@080340.6333 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.946.00.01' and bi.lordem =12
20240926@080340.6683 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240926@080340.6885 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.946.00.01' and bi.lordem =12
20240926@080340.6906 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240926@080340.6927 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.946.00.01' and bi.lordem =12
20240926@080340.6969 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.728.00.01'
20240926@080340.7134 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.728.00.01' and bi.lordem =13
20240926@080340.7564 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240926@080340.7741 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.729.00.01' and bi.lordem =14
20240926@080340.8093 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240926@080340.8113 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.729.00.01' and bi.lordem =14
20240926@080340.8131 it04u99dpeamluno8nvunfoau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240926@080340.8151 it04u99dpeamluno8nvunfoau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406193 and bi.ref ='324.729.00.01' and bi.lordem =14
20240926@080340.8171 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8175 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080340.8209 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8212 it04u99dpeamluno8nvunfoau1 Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080340.8250 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8253 it04u99dpeamluno8nvunfoau1 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')
20240926@080340.8284 it04u99dpeamluno8nvunfoau1 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
20240926@080340.8331 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8357 it04u99dpeamluno8nvunfoau1 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240926@080340.8387 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8390 it04u99dpeamluno8nvunfoau1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080340.8419 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8422 it04u99dpeamluno8nvunfoau1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080340.8474 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8516 it04u99dpeamluno8nvunfoau1 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240926@080340.8576 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080340.8616 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from td where ndoc = 39
20240926@080340.8663 it04u99dpeamluno8nvunfoau1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080340.8685 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080340.8710 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080340.8733 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080340.8933 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080340.8986 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080340.9002 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080340.9015 it04u99dpeamluno8nvunfoau1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080340.9086 it04u99dpeamluno8nvunfoau1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080340.9131 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080340.9147 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080340.9162 it04u99dpeamluno8nvunfoau1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080340.9345 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080340.9366 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080340.9402 it04u99dpeamluno8nvunfoau1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080340.9440 it04u99dpeamluno8nvunfoau1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080340.9451 it04u99dpeamluno8nvunfoau1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080340.9462 it04u99dpeamluno8nvunfoau1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080340.9482 it04u99dpeamluno8nvunfoau1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080340.9516 it04u99dpeamluno8nvunfoau1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080340.9527 it04u99dpeamluno8nvunfoau1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f506943066f5074cdc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080340.9775 it04u99dpeamluno8nvunfoau1 Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080340.9809 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080340.9900 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080340.9935 it04u99dpeamluno8nvunfoau1 Query : select 'normal' from dummy
20240926@080340.9973 it04u99dpeamluno8nvunfoau1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f506943066f5074cdc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',933,100810,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080341.4250 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.4280 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240926@080341.4810 it04u99dpeamluno8nvunfoau1 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'
20240926@080341.6450 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.6610 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.6850 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.6990 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.7070 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.7950 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240926@080341.8830 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8970 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.9090 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501781866f5074d15','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.9170 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.9310 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.9660 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501781866f5074d15',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',56.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080341.1232 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.1236 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240926@080341.1287 it04u99dpeamluno8nvunfoau1 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'
20240926@080341.1304 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.1322 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.1362 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.1378 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.1387 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.1400 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240926@080341.1416 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.1442 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.1486 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508754566f5074d22','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.1490 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.1522 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.1552 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508754566f5074d22',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080341.1837 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.1840 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240926@080341.1860 it04u99dpeamluno8nvunfoau1 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'
20240926@080341.1912 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.1928 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.1954 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.1969 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.1979 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.1992 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240926@080341.2004 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.2042 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.2057 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509087166f5074d30','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.2062 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.2078 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.2124 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509087166f5074d30',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240926@080341.2418 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.2422 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240926@080341.2444 it04u99dpeamluno8nvunfoau1 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.736.00.01'
20240926@080341.2603 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.2644 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.2670 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.2697 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.2705 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.2719 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240926@080341.2732 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.2746 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.2758 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508980666f5074d42','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.2762 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.2784 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.2812 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508980666f5074d42',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080341.3063 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.3066 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240926@080341.3086 it04u99dpeamluno8nvunfoau1 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.736.00.01'
20240926@080341.3116 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3133 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.3167 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3202 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.3238 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.3250 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240926@080341.3263 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3279 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.3292 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500468466f5074d4f','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.3297 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3312 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.3345 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500468466f5074d4f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',100.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240926@080341.3614 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.3618 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240926@080341.3656 it04u99dpeamluno8nvunfoau1 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.736.00.01'
20240926@080341.3684 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3722 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.3748 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3764 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.3772 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.3784 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240926@080341.3802 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3817 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.3828 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504487166f5074d5c','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.3832 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.3846 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.3891 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504487166f5074d5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240926@080341.4321 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.4325 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240926@080341.4353 it04u99dpeamluno8nvunfoau1 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.736.00.01'
20240926@080341.4385 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.4403 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.4434 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.4453 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.4479 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.4506 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240926@080341.4518 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.4534 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.4547 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505046766f5074d6e','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.4553 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.4567 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.4595 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f505046766f5074d6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',100.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240926@080341.4893 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.4896 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240926@080341.4915 it04u99dpeamluno8nvunfoau1 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.736.00.01'
20240926@080341.4934 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.4986 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.5012 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5027 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.5036 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.5049 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240926@080341.5062 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5235 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.5275 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506476666f5074d7b','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.5279 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5298 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.5359 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506476666f5074d7b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',100.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240926@080341.5637 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.5641 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240926@080341.5661 it04u99dpeamluno8nvunfoau1 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.736.00.01'
20240926@080341.5677 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5694 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.5735 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5749 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.5757 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.5770 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240926@080341.5785 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5839 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.5853 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501004366f5074d8d','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.5857 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.5872 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.5925 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501004366f5074d8d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',100.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240926@080341.6178 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.6181 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240926@080341.6201 it04u99dpeamluno8nvunfoau1 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.1416.00.1'
20240926@080341.6362 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.6378 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.6431 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.6447 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.6456 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.6472 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240926@080341.6494 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.6556 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.6568 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505919766f5074d9e','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.6579 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.6640 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.6805 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f505919766f5074d9e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240926@080341.7083 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.7102 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.7135 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.7150 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.7160 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.7358 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.7375 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.7390 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500995566f5074db3','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.7394 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.7409 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.7439 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f500995566f5074db3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,110000,?,?,?)
20240926@080341.7764 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.7807 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240926@080341.7829 it04u99dpeamluno8nvunfoau1 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.1416.00.1'
20240926@080341.7843 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.7882 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.7915 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.7930 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.7939 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.7953 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240926@080341.7973 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8042 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.8077 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500068766f5074dc2','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.8083 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8112 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.8166 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500068766f5074dc2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240926@080341.8576 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8595 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.8623 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8660 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.8685 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080341.8698 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8721 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080341.8743 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502774666f5074dd4','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080341.8747 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.8762 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.8933 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f502774666f5074dd4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,140000,?,?,?)
20240926@080341.9677 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080341.9680 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20240926@080341.9702 it04u99dpeamluno8nvunfoau1 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.1406.00.1'
20240926@080341.9896 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080341.9912 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080341.9938 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1980 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.2450 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.2780 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.1406.00.1' and lote = '10/20'
20240926@080342.3100 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.3250 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.3380 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501672266f5074e07','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.3880 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.5360 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.5790 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501672266f5074e07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',84.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240926@080342.8420 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.8460 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240926@080342.8670 it04u99dpeamluno8nvunfoau1 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.4421.00.1'
20240926@080342.1010 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1042 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.1119 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1139 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.1149 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.1162 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240926@080342.1191 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1206 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.1218 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504646566f5074e1d','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.1222 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1242 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.1286 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504646566f5074e1d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240926@080342.1541 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.1544 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240926@080342.1565 it04u99dpeamluno8nvunfoau1 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.4988.00.1'
20240926@080342.1728 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1743 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.1768 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1782 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.1789 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.1801 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240926@080342.1819 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1834 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.1851 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501044966f5074e2c','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.1855 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.1870 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.1996 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501044966f5074e2c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240926@080342.2715 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.2840 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240926@080342.4502 it04u99dpeamluno8nvunfoau1 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.4988.00.1'
20240926@080342.4520 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.4554 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.4596 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.4614 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.4625 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.4640 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240926@080342.4656 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.4673 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.4690 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507632566f5074e71','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.4694 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.4709 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.4759 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507632566f5074e71',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',44.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240926@080342.5018 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.5036 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.2041.00.1'
20240926@080342.5062 it04u99dpeamluno8nvunfoau1 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.2041.00.1'
20240926@080342.5250 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.5270 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.5299 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.5314 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.5467 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.5491 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.2041.00.1' and lote = 'r2100232100a'
20240926@080342.5510 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.5527 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.5539 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504759166f5074e86','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.5543 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.5686 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.5726 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504759166f5074e86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20240926@080342.5999 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.6016 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.6050 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.6269 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.6283 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.6320 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.6336 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.6348 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f503479166f5074e9a','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.6352 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.6370 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.6399 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f503479166f5074e9a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,210000,?,?,?)
20240926@080342.6692 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.6696 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.4585.00.1'
20240926@080342.6716 it04u99dpeamluno8nvunfoau1 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.4585.00.1'
20240926@080342.6880 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.6895 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.6937 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.6951 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.6959 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.6978 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.4585.00.1' and lote = 'r2300381200a'
20240926@080342.6999 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.7018 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.7032 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506979066f5074eaa','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.7036 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.7051 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.7094 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506979066f5074eaa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20240926@080342.7357 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.7376 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.2160.00.1'
20240926@080342.7397 it04u99dpeamluno8nvunfoau1 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.2160.00.1'
20240926@080342.7544 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.7614 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.7651 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.7665 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.7674 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.7695 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.2160.00.1' and lote = 'r2300936200a'
20240926@080342.7715 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.7729 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.7741 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504933466f5074ebc','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.7750 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.7765 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.7794 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504933466f5074ebc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,240000,?,?,?,?,?)
20240926@080342.8083 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.8163 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.2160.00.1'
20240926@080342.8334 it04u99dpeamluno8nvunfoau1 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.2160.00.1'
20240926@080342.8373 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.8399 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.8426 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.8646 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.8656 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.8686 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.2160.00.1' and lote = 'r2300936200a'
20240926@080342.8700 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.8728 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.8745 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508597266f5074ed4','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.8750 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.8777 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.8818 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508597266f5074ed4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240926@080342.9120 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080342.9123 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240926@080342.9144 it04u99dpeamluno8nvunfoau1 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.945.00.01'
20240926@080342.9300 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.9329 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.9364 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.9413 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.9444 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080342.9463 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240926@080342.9514 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.9562 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080342.9596 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508953866f5074ee8','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080342.9605 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080342.9627 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080342.9743 it04u99dpeamluno8nvunfoau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508953866f5074ee8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66f506943066f5074cdc' ,0,0 ,2,23.00,260000,?,?,?,?,?)
20240926@080343.3600 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080343.3900 it04u99dpeamluno8nvunfoau1 Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20240926@080343.7100 it04u99dpeamluno8nvunfoau1 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.2231.00.2'
20240926@080343.2930 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.3220 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080343.3790 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.3990 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080343.4110 it04u99dpeamluno8nvunfoau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080343.4390 it04u99dpeamluno8nvunfoau1 Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2300389200a'
20240926@080343.5340 it04u99dpeamluno8nvunfoau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.5700 it04u99dpeamluno8nvunfoau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080343.5820 it04u99dpeamluno8nvunfoau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502013166f5074f0d','aut66f506943066f5074cdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080343.1597 it04u99dpeamluno8nvunfoau1 Query : use flama_phc
20240926@080343.1601 it04u99dpeamluno8nvunfoau1 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240926@080343.1633 it04u99dpeamluno8nvunfoau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2218';
20240926@080343.1665 it04u99dpeamluno8nvunfoau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2218';
20240926@080343.2733 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080343.2760 g7j3oelkdq1bqi8r4fle7hmo90 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080343.2832 g7j3oelkdq1bqi8r4fle7hmo90 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2219';
20240926@080343.2887 g7j3oelkdq1bqi8r4fle7hmo90 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2219';
20240926@080343.2952 g7j3oelkdq1bqi8r4fle7hmo90 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2219';
20240926@080343.2984 g7j3oelkdq1bqi8r4fle7hmo90 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2219';
20240926@080343.3053 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3076 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080343.3135 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3138 g7j3oelkdq1bqi8r4fle7hmo90 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240926@080343.3226 g7j3oelkdq1bqi8r4fle7hmo90 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'
20240926@080343.3377 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2061 and bo.obrano = 2406197 and bi.ref ='328.9326.00.1' and bi.lordem =1
20240926@080343.3691 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3695 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080343.3725 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3755 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080343.3824 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3836 g7j3oelkdq1bqi8r4fle7hmo90 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')
20240926@080343.3867 g7j3oelkdq1bqi8r4fle7hmo90 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
20240926@080343.3908 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3916 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240926@080343.3953 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3955 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080343.3991 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.3994 g7j3oelkdq1bqi8r4fle7hmo90 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080343.4034 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.4037 g7j3oelkdq1bqi8r4fle7hmo90 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240926@080343.4098 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.4101 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from td where ndoc = 39
20240926@080343.4115 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080343.4130 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.4151 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080343.4171 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.4187 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080343.4251 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.4517 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080343.4545 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080343.4628 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080343.4672 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.4688 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080343.4709 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f508958266f5074f6e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080343.5025 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.5056 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080343.5093 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080343.5111 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080343.5127 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080343.5138 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080343.5153 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080343.5165 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080343.5187 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f508958266f5074f6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080343.5464 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080343.5486 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.5507 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080343.5528 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 'normal' from dummy
20240926@080343.5544 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f508958266f5074f6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',933,100810,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080343.5841 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.5845 g7j3oelkdq1bqi8r4fle7hmo90 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240926@080343.5873 g7j3oelkdq1bqi8r4fle7hmo90 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'
20240926@080343.6040 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.6062 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080343.6093 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.6108 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080343.6153 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080343.6178 g7j3oelkdq1bqi8r4fle7hmo90 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240926@080343.6244 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.6285 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080343.6304 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502013266f5074f98','aut66f508958266f5074f6e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080343.6311 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.7135 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080343.7663 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502013266f5074f98',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66f508958266f5074f6e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080343.7932 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.7984 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080343.8043 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.8059 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080343.8068 g7j3oelkdq1bqi8r4fle7hmo90 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080343.8104 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.8120 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080343.8133 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505709266f5074fc5','aut66f508958266f5074f6e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080343.8137 g7j3oelkdq1bqi8r4fle7hmo90 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080343.8157 g7j3oelkdq1bqi8r4fle7hmo90 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080343.8208 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f505709266f5074fc5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f508958266f5074f6e' ,0,0 ,2,23.00,20000,?,?,?)
20240926@080343.8621 g7j3oelkdq1bqi8r4fle7hmo90 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f508958266f5074f6e','2406197','wait',39,'adm09112754980.682000002')
20240926@080343.8905 g7j3oelkdq1bqi8r4fle7hmo90 Query : use flama_phc
20240926@080343.8933 g7j3oelkdq1bqi8r4fle7hmo90 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080343.8971 g7j3oelkdq1bqi8r4fle7hmo90 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2219';
20240926@080343.9000 g7j3oelkdq1bqi8r4fle7hmo90 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2219';
20240926@080343.9043 g7j3oelkdq1bqi8r4fle7hmo90 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2219';
20240926@080343.9074 g7j3oelkdq1bqi8r4fle7hmo90 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2219';
20240926@080343.9626 thfpmdpnmfepb6k5li0b14sk1c Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080343.9636 thfpmdpnmfepb6k5li0b14sk1c Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080343.9693 thfpmdpnmfepb6k5li0b14sk1c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2220';
20240926@080343.9745 thfpmdpnmfepb6k5li0b14sk1c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2220';
20240926@080343.9798 thfpmdpnmfepb6k5li0b14sk1c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2220';
20240926@080343.9830 thfpmdpnmfepb6k5li0b14sk1c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2220';
20240926@080343.9887 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080343.9890 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080343.9956 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080343.9960 thfpmdpnmfepb6k5li0b14sk1c Query : select no, estab,szadrsdesc from szadrs where u_coddest=2133
20240926@080344.4400 thfpmdpnmfepb6k5li0b14sk1c 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'
20240926@080344.2010 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406201 and bi.ref ='324.1676.00.1' and bi.lordem =1
20240926@080344.5180 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20240926@080344.6670 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406201 and bi.ref ='324.2232.00.1' and bi.lordem =2
20240926@080344.9850 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240926@080344.1139 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406201 and bi.ref ='324.5501.00.1' and bi.lordem =3
20240926@080344.1527 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.318.09.00'
20240926@080344.1757 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406201 and bi.ref ='323.318.09.00' and bi.lordem =4
20240926@080344.2293 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2298 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080344.2376 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2454 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080344.2541 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2544 thfpmdpnmfepb6k5li0b14sk1c 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')
20240926@080344.2574 thfpmdpnmfepb6k5li0b14sk1c 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
20240926@080344.2612 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2615 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 ~inactivo valor from cl where no = '100927' and estab = 0 order by inactivo desc
20240926@080344.2754 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2757 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080344.2791 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2794 thfpmdpnmfepb6k5li0b14sk1c Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080344.2840 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2843 thfpmdpnmfepb6k5li0b14sk1c Query : select szadrsstamp valor from szadrs where szadrsdesc='fernando fatelo gaspar'
20240926@080344.2893 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.2896 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from td where ndoc = 39
20240926@080344.2908 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080344.2922 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.2938 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080344.2957 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.2971 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080344.3000 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.3015 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080344.3028 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080344.3095 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080344.3108 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.3125 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080344.3141 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f503921766f5075049' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080344.3326 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.3343 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080344.3380 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080344.3523 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080344.3536 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080344.3550 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080344.3563 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080344.3576 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080344.3588 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f503921766f5075049',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080344.4207 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080344.4280 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.4572 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080344.4609 thfpmdpnmfepb6k5li0b14sk1c Query : select 'normal' from dummy
20240926@080344.4626 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f503921766f5075049',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',934,100927,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080344.5234 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.5238 thfpmdpnmfepb6k5li0b14sk1c Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240926@080344.5262 thfpmdpnmfepb6k5li0b14sk1c 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'
20240926@080344.5418 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.5435 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.5460 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.5475 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.5484 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080344.5496 thfpmdpnmfepb6k5li0b14sk1c Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240926@080344.5510 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.5526 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.5538 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501474366f5075086','aut66f503921766f5075049' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080344.5542 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.5556 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.5583 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501474366f5075086',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f503921766f5075049' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080344.5854 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.5857 thfpmdpnmfepb6k5li0b14sk1c Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240926@080344.5877 thfpmdpnmfepb6k5li0b14sk1c 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.2232.00.1'
20240926@080344.6022 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6038 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.6063 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6078 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.6086 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080344.6097 thfpmdpnmfepb6k5li0b14sk1c Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240926@080344.6112 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6126 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.6139 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502247966f5075095','aut66f503921766f5075049' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080344.6143 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6157 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.6185 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502247966f5075095',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f503921766f5075049' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080344.6434 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.6438 thfpmdpnmfepb6k5li0b14sk1c Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240926@080344.6459 thfpmdpnmfepb6k5li0b14sk1c 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.5501.00.1'
20240926@080344.6619 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6634 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.6659 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6675 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.6684 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080344.6698 thfpmdpnmfepb6k5li0b14sk1c Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240926@080344.6719 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6735 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.6748 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505144466f50750a4','aut66f503921766f5075049' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080344.6752 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.6767 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.6800 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f505144466f50750a4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f503921766f5075049' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240926@080344.7059 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.7062 thfpmdpnmfepb6k5li0b14sk1c Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240926@080344.7082 thfpmdpnmfepb6k5li0b14sk1c 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 = '323.318.09.00'
20240926@080344.7227 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.7244 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.7270 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.7285 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.7294 thfpmdpnmfepb6k5li0b14sk1c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080344.7306 thfpmdpnmfepb6k5li0b14sk1c Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240926@080344.7318 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.7332 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080344.7345 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506715366f50750b2','aut66f503921766f5075049' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080344.7349 thfpmdpnmfepb6k5li0b14sk1c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080344.7362 thfpmdpnmfepb6k5li0b14sk1c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080344.7389 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506715366f50750b2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f503921766f5075049' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080344.7657 thfpmdpnmfepb6k5li0b14sk1c Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f503921766f5075049','2406201','wait',39,'adm09112754980.682000002')
20240926@080344.7733 thfpmdpnmfepb6k5li0b14sk1c Query : use flama_phc
20240926@080344.7736 thfpmdpnmfepb6k5li0b14sk1c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080344.7770 thfpmdpnmfepb6k5li0b14sk1c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2220';
20240926@080344.7801 thfpmdpnmfepb6k5li0b14sk1c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2220';
20240926@080344.7840 thfpmdpnmfepb6k5li0b14sk1c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2220';
20240926@080344.7867 thfpmdpnmfepb6k5li0b14sk1c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2220';
20240926@080344.8529 vd5a23kmg6eumj4hfhu4b54naf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080344.8540 vd5a23kmg6eumj4hfhu4b54naf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080344.8669 vd5a23kmg6eumj4hfhu4b54naf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2221';
20240926@080344.8735 vd5a23kmg6eumj4hfhu4b54naf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2221';
20240926@080344.8786 vd5a23kmg6eumj4hfhu4b54naf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2221';
20240926@080344.8816 vd5a23kmg6eumj4hfhu4b54naf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2221';
20240926@080344.8875 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080344.8902 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080344.8991 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080344.8995 vd5a23kmg6eumj4hfhu4b54naf Query : select no, estab,szadrsdesc from szadrs where u_coddest=3948
20240926@080344.9082 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240926@080344.9241 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406202 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240926@080344.9562 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20240926@080344.9715 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406202 and bi.ref ='324.1805.00.1' and bi.lordem =2
20240926@080345.5100 vd5a23kmg6eumj4hfhu4b54naf 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'
20240926@080345.2100 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406202 and bi.ref ='304.421.00.04' and bi.lordem =3
20240926@080345.5690 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.5730 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080345.6090 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.6120 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080345.6530 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.6560 vd5a23kmg6eumj4hfhu4b54naf 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')
20240926@080345.6880 vd5a23kmg6eumj4hfhu4b54naf 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
20240926@080345.7780 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.7810 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 ~inactivo valor from cl where no = '102489' and estab = 0 order by inactivo desc
20240926@080345.9050 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.9090 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080345.9410 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.9440 vd5a23kmg6eumj4hfhu4b54naf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080345.1005 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.1009 vd5a23kmg6eumj4hfhu4b54naf Query : select szadrsstamp valor from szadrs where szadrsdesc='m, e & f ramos, lda (sat)'
20240926@080345.1054 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.1057 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from td where ndoc = 39
20240926@080345.1069 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080345.1084 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.1110 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080345.1130 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.1159 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080345.1188 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.1202 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080345.1215 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080345.1281 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080345.1294 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.1335 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080345.1351 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f505839866f507511d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080345.1522 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.1542 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080345.1582 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080345.1593 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080345.1607 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080345.1619 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080345.1630 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080345.1641 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080345.1653 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f505839866f507511d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080345.1929 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080345.1953 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.1970 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080345.2019 vd5a23kmg6eumj4hfhu4b54naf Query : select 'normal' from dummy
20240926@080345.2033 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f505839866f507511d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',935,102489,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080345.2356 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.2360 vd5a23kmg6eumj4hfhu4b54naf Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20240926@080345.2464 vd5a23kmg6eumj4hfhu4b54naf 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.1816.00.1'
20240926@080345.2609 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.2626 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.2653 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.2676 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.2710 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080345.2722 vd5a23kmg6eumj4hfhu4b54naf Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400199200a'
20240926@080345.2766 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.2781 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.2805 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508636166f5075143','aut66f505839866f507511d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080345.2810 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.2827 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.3060 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508636166f5075143',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f505839866f507511d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080345.3323 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.3340 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.3389 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.3404 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.3412 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080345.3424 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.3456 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.3469 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502513066f5075153','aut66f505839866f507511d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080345.3473 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.3511 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.3551 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f502513066f5075153',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f505839866f507511d' ,0,0 ,2,23.00,20000,?,?,?)
20240926@080345.3807 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.3810 vd5a23kmg6eumj4hfhu4b54naf Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20240926@080345.3830 vd5a23kmg6eumj4hfhu4b54naf 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.1805.00.1'
20240926@080345.3976 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.3992 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.4015 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4028 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.4036 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080345.4047 vd5a23kmg6eumj4hfhu4b54naf Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20240926@080345.4092 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4162 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.4173 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506583066f5075163','aut66f505839866f507511d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080345.4201 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4220 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.4254 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506583066f5075163',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f505839866f507511d' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080345.4505 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.4508 vd5a23kmg6eumj4hfhu4b54naf Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240926@080345.4537 vd5a23kmg6eumj4hfhu4b54naf 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'
20240926@080345.4703 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4720 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.4756 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4787 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.4795 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080345.4806 vd5a23kmg6eumj4hfhu4b54naf Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20240926@080345.4825 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4854 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.4875 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507584966f5075175','aut66f505839866f507511d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080345.4880 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.4899 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.4935 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507584966f5075175',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f505839866f507511d' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240926@080345.5189 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.5204 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.5227 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.5257 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.5266 vd5a23kmg6eumj4hfhu4b54naf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080345.5277 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.5290 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080345.5301 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507889566f5075180','aut66f505839866f507511d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080345.5305 vd5a23kmg6eumj4hfhu4b54naf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080345.5319 vd5a23kmg6eumj4hfhu4b54naf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080345.5346 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f507889566f5075180',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f505839866f507511d' ,0,0 ,2,23.00,60000,?,?,?)
20240926@080345.5605 vd5a23kmg6eumj4hfhu4b54naf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f505839866f507511d','2406202','wait',39,'adm09112754980.682000002')
20240926@080345.5680 vd5a23kmg6eumj4hfhu4b54naf Query : use flama_phc
20240926@080345.5684 vd5a23kmg6eumj4hfhu4b54naf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080345.5722 vd5a23kmg6eumj4hfhu4b54naf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2221';
20240926@080345.5785 vd5a23kmg6eumj4hfhu4b54naf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2221';
20240926@080345.5839 vd5a23kmg6eumj4hfhu4b54naf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2221';
20240926@080345.5869 vd5a23kmg6eumj4hfhu4b54naf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2221';
20240926@080345.7852 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080345.7880 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080345.7974 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2222';
20240926@080345.8036 6rbmbdhl4pf2oehi0jjnsnhm0d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2222';
20240926@080345.8099 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2222';
20240926@080345.8130 6rbmbdhl4pf2oehi0jjnsnhm0d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2222';
20240926@080345.8217 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080345.8220 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080345.8363 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080345.8367 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select no, estab,szadrsdesc from szadrs where u_coddest=2926
20240926@080345.8467 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2318.00.1'
20240926@080345.8619 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2318.00.1' and bi.lordem =1
20240926@080345.8933 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20240926@080345.9088 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.1321.00.1' and bi.lordem =2
20240926@080345.9431 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1329.00.1'
20240926@080345.9654 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.1329.00.1' and bi.lordem =3
20240926@080345.9968 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20240926@080346.1170 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.1317.00.1' and bi.lordem =4
20240926@080346.4300 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20240926@080346.4490 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2330.00.1' and bi.lordem =5
20240926@080346.7690 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20240926@080346.7900 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2335.00.1' and bi.lordem =6
20240926@080346.1286 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2340.00.1'
20240926@080346.1311 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2340.00.1' and bi.lordem =7
20240926@080346.1690 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2357.00.1'
20240926@080346.1856 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2357.00.1' and bi.lordem =8
20240926@080346.2243 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2357.00.1'
20240926@080346.2263 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2357.00.1' and bi.lordem =8
20240926@080346.2278 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20240926@080346.2436 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2362.00.1' and bi.lordem =9
20240926@080346.2749 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20240926@080346.3049 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2366.00.1' and bi.lordem =10
20240926@080346.3444 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2300.00.1'
20240926@080346.3616 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2300.00.1' and bi.lordem =11
20240926@080346.3969 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2317.00.1'
20240926@080346.4128 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2317.00.1' and bi.lordem =12
20240926@080346.4568 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2326.00.1'
20240926@080346.4957 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406203 and bi.ref ='324.2326.00.1' and bi.lordem =13
20240926@080346.5375 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5379 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080346.5414 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5418 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080346.5461 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5464 6rbmbdhl4pf2oehi0jjnsnhm0d 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')
20240926@080346.5502 6rbmbdhl4pf2oehi0jjnsnhm0d 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
20240926@080346.5542 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5551 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 ~inactivo valor from cl where no = '102454' and estab = 0 order by inactivo desc
20240926@080346.5766 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5769 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080346.5811 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5815 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080346.5853 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5856 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select szadrsstamp valor from szadrs where szadrsdesc='carlos oliveira & cristina oliveira - electr. lda'
20240926@080346.5932 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.5935 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from td where ndoc = 39
20240926@080346.5947 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080346.5961 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.5977 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080346.5995 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.6013 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080346.6043 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.6059 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080346.6072 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080346.6152 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080346.6165 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.6183 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080346.6199 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080346.6391 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.6408 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080346.6466 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080346.6491 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080346.6502 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080346.6515 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080346.6539 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080346.6552 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080346.6564 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f501082366f5075294',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080346.6820 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080346.6843 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.6866 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080346.6888 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 'normal' from dummy
20240926@080346.6937 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f501082366f5075294',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',936,102454,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080346.7533 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.7536 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2318.00.1'
20240926@080346.7558 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2318.00.1'
20240926@080346.7721 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.7764 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080346.7788 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.7845 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080346.7882 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080346.7925 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2318.00.1' and lote = 'r2100669100a'
20240926@080346.7947 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.7962 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080346.7974 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501548266f50752c2','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080346.8005 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.8020 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080346.8057 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f501548266f50752c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080346.8533 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.8563 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080346.8597 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.8617 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080346.8639 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080346.8655 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.8690 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080346.8704 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509739766f50752d3','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080346.8709 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.8726 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080346.8758 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f509739766f50752d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,20000,?,?,?)
20240926@080346.9230 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.9271 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20240926@080346.9319 6rbmbdhl4pf2oehi0jjnsnhm0d 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.1321.00.1'
20240926@080346.9478 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.9494 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080346.9521 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.9536 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080346.9544 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080346.9557 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20240926@080346.9571 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.9588 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080346.9633 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500817266f50752e9','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080346.9637 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080346.9651 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080346.9687 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500817266f50752e9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240926@080346.9945 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080346.9949 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20240926@080346.9993 6rbmbdhl4pf2oehi0jjnsnhm0d 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.1329.00.1'
20240926@080347.1580 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.1770 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.2080 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.2250 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.2350 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.2480 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400496300a'
20240926@080347.2640 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.2870 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.3550 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500580666f5075306','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.3590 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.3740 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.4730 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500580666f5075306',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240926@080347.2120 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.2172 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20240926@080347.3191 6rbmbdhl4pf2oehi0jjnsnhm0d 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.1317.00.1'
20240926@080347.3640 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.3672 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.3720 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.3736 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.3744 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.3757 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20240926@080347.3780 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.3805 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.3816 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f503006166f507535c','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.3820 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.3835 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.3867 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f503006166f507535c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240926@080347.4125 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.4136 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20240926@080347.4155 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2330.00.1'
20240926@080347.4168 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.4228 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.4254 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.4270 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.4278 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.4291 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2300509200a'
20240926@080347.4305 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.4321 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.4332 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f505828366f5075369','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.4337 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.4373 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.4596 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f505828366f5075369',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240926@080347.4876 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.4879 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20240926@080347.4903 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2335.00.1'
20240926@080347.4944 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.4976 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.5004 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.5021 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.5029 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.5041 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20240926@080347.5053 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.5093 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.5104 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f509523966f507537b','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.5123 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.5153 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.5205 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f509523966f507537b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240926@080347.5575 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.5670 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20240926@080347.5753 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2340.00.1'
20240926@080347.5779 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.5797 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.5836 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.5868 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.5881 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.5894 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20240926@080347.5958 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.5994 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.6009 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500253666f5075391','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.6013 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.6030 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.6059 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500253666f5075391',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240926@080347.6500 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.6504 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2357.00.1'
20240926@080347.6524 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2357.00.1'
20240926@080347.6672 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.6688 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.6716 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.6733 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.6744 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.6758 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2357.00.1' and lote = 'r2300547200a'
20240926@080347.6789 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.6840 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.6866 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504402266f50753a5','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.6871 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.6914 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.6983 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504402266f50753a5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240926@080347.8331 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.8336 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2357.00.1'
20240926@080347.8359 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2357.00.1'
20240926@080347.8373 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.8390 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.8416 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.8447 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.8457 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.8473 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2357.00.1' and lote = 'r2200239100a'
20240926@080347.8494 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.8508 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.8519 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f508096566f50753cf','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.8523 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.8537 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.8562 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f508096566f50753cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f501082366f5075294' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240926@080347.8866 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.8869 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20240926@080347.8892 6rbmbdhl4pf2oehi0jjnsnhm0d 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.2362.00.1'
20240926@080347.9048 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.9066 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080347.9092 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.9119 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.9128 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080347.9141 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r230054820'
20240926@080347.9151 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080347.9171 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080347.9187 6rbmbdhl4pf2oehi0jjnsnhm0d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502034966f50753df','aut66f501082366f5075294' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080347.9535 6rbmbdhl4pf2oehi0jjnsnhm0d Query : use flama_phc
20240926@080347.9539 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240926@080347.9574 6rbmbdhl4pf2oehi0jjnsnhm0d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2222';
20240926@080347.9613 6rbmbdhl4pf2oehi0jjnsnhm0d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2222';
20240926@080348.1110 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080348.1210 pfbi3sdqlgs8grksvm8b38nsfc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080348.2060 pfbi3sdqlgs8grksvm8b38nsfc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2223';
20240926@080348.3090 pfbi3sdqlgs8grksvm8b38nsfc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2223';
20240926@080348.3870 pfbi3sdqlgs8grksvm8b38nsfc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2223';
20240926@080348.4130 pfbi3sdqlgs8grksvm8b38nsfc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2223';
20240926@080348.4760 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.4790 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080348.5420 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.5450 pfbi3sdqlgs8grksvm8b38nsfc Query : select no, estab,szadrsdesc from szadrs where u_coddest=2926
20240926@080348.6250 pfbi3sdqlgs8grksvm8b38nsfc 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'
20240926@080348.6440 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406204 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240926@080348.9800 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240926@080348.1155 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406204 and bi.ref ='324.642.00.01' and bi.lordem =2
20240926@080348.1474 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.1'
20240926@080348.1656 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406204 and bi.ref ='324.1871.00.1' and bi.lordem =3
20240926@080348.2093 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2097 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080348.2139 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2142 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080348.2200 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2203 pfbi3sdqlgs8grksvm8b38nsfc 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')
20240926@080348.2230 pfbi3sdqlgs8grksvm8b38nsfc 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
20240926@080348.2284 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2288 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 ~inactivo valor from cl where no = '102454' and estab = 0 order by inactivo desc
20240926@080348.2324 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2327 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080348.2360 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2363 pfbi3sdqlgs8grksvm8b38nsfc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080348.2400 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2402 pfbi3sdqlgs8grksvm8b38nsfc Query : select szadrsstamp valor from szadrs where szadrsdesc='carlos oliveira & cristina oliveira - electr. lda'
20240926@080348.2446 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.2448 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from td where ndoc = 39
20240926@080348.2493 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080348.2604 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.2771 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080348.2796 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.2815 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080348.2873 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.2888 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080348.2902 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080348.2969 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080348.3201 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.3257 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080348.3277 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f509683166f5075446' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080348.3452 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.3472 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080348.3507 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080348.3520 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080348.3533 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080348.3546 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080348.3608 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080348.3741 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080348.3752 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f509683166f5075446',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080348.4001 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080348.4022 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.4037 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080348.4059 pfbi3sdqlgs8grksvm8b38nsfc Query : select 'normal' from dummy
20240926@080348.4074 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f509683166f5075446',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',936,102454,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080348.4425 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.4428 pfbi3sdqlgs8grksvm8b38nsfc Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240926@080348.4448 pfbi3sdqlgs8grksvm8b38nsfc 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'
20240926@080348.4478 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.4493 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080348.4516 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.4530 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080348.4538 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080348.4558 pfbi3sdqlgs8grksvm8b38nsfc Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240926@080348.4570 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.4597 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080348.4630 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500339466f507546f','aut66f509683166f5075446' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080348.4634 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.4648 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080348.4709 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500339466f507546f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66f509683166f5075446' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080348.4975 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.4978 pfbi3sdqlgs8grksvm8b38nsfc Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240926@080348.4997 pfbi3sdqlgs8grksvm8b38nsfc 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.642.00.01'
20240926@080348.5179 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.5195 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080348.5219 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.5233 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080348.5241 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080348.5252 pfbi3sdqlgs8grksvm8b38nsfc Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240926@080348.5277 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.5303 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080348.5314 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500159466f5075480','aut66f509683166f5075446' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080348.5318 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.5332 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080348.5358 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500159466f5075480',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f509683166f5075446' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080348.5623 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.5626 pfbi3sdqlgs8grksvm8b38nsfc Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20240926@080348.5714 pfbi3sdqlgs8grksvm8b38nsfc 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.1871.00.1'
20240926@080348.5897 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.5940 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080348.5964 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.5979 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080348.5987 pfbi3sdqlgs8grksvm8b38nsfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080348.5998 pfbi3sdqlgs8grksvm8b38nsfc Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400437200a'
20240926@080348.6011 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.6024 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080348.6035 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506314366f5075492','aut66f509683166f5075446' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080348.6039 pfbi3sdqlgs8grksvm8b38nsfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.6066 pfbi3sdqlgs8grksvm8b38nsfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080348.6093 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506314366f5075492',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66f509683166f5075446' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240926@080348.6365 pfbi3sdqlgs8grksvm8b38nsfc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f509683166f5075446','2406204','wait',39,'adm09112754980.682000002')
20240926@080348.6463 pfbi3sdqlgs8grksvm8b38nsfc Query : use flama_phc
20240926@080348.6472 pfbi3sdqlgs8grksvm8b38nsfc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080348.6503 pfbi3sdqlgs8grksvm8b38nsfc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2223';
20240926@080348.6562 pfbi3sdqlgs8grksvm8b38nsfc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2223';
20240926@080348.6661 pfbi3sdqlgs8grksvm8b38nsfc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2223';
20240926@080348.6709 pfbi3sdqlgs8grksvm8b38nsfc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2223';
20240926@080348.7225 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080348.7235 ldl0d0hn33kvr514vbo8ogftm8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080348.7310 ldl0d0hn33kvr514vbo8ogftm8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2224';
20240926@080348.7367 ldl0d0hn33kvr514vbo8ogftm8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2224';
20240926@080348.7482 ldl0d0hn33kvr514vbo8ogftm8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2224';
20240926@080348.7510 ldl0d0hn33kvr514vbo8ogftm8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2224';
20240926@080348.7558 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.7561 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080348.7640 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.7662 ldl0d0hn33kvr514vbo8ogftm8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1760
20240926@080348.7753 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240926@080348.7777 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406205 and bi.ref ='324.5501.00.1' and bi.lordem =1
20240926@080348.8094 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8116 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080348.8182 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8185 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080348.8247 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8249 ldl0d0hn33kvr514vbo8ogftm8 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')
20240926@080348.8275 ldl0d0hn33kvr514vbo8ogftm8 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
20240926@080348.8343 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8346 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 ~inactivo valor from cl where no = '102395' and estab = 0 order by inactivo desc
20240926@080348.8467 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8470 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080348.8502 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8505 ldl0d0hn33kvr514vbo8ogftm8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080348.8546 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8549 ldl0d0hn33kvr514vbo8ogftm8 Query : select szadrsstamp valor from szadrs where szadrsdesc='evoracor - sociedade distribuidora, lda'
20240926@080348.8592 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080348.8595 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from td where ndoc = 39
20240926@080348.8607 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080348.8642 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.8670 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080348.8687 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.8701 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080348.8889 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.8957 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080348.8971 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080348.9042 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080348.9056 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.9258 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080348.9272 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f505310466f50754db' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080348.9567 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080348.9586 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080348.9640 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080348.9654 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080348.9685 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080348.9697 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080348.9710 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080348.9722 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080348.9753 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f505310466f50754db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080349.1300 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080349.3500 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.4900 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080349.7100 ldl0d0hn33kvr514vbo8ogftm8 Query : select 'normal' from dummy
20240926@080349.8500 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f505310466f50754db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',937,102395,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080349.4060 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080349.4170 ldl0d0hn33kvr514vbo8ogftm8 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240926@080349.4560 ldl0d0hn33kvr514vbo8ogftm8 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.5501.00.1'
20240926@080349.4700 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.4850 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080349.5210 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.5410 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080349.5490 ldl0d0hn33kvr514vbo8ogftm8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080349.5780 ldl0d0hn33kvr514vbo8ogftm8 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240926@080349.5990 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.6140 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080349.6490 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506818966f507550e','aut66f505310466f50754db' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080349.6540 ldl0d0hn33kvr514vbo8ogftm8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.6740 ldl0d0hn33kvr514vbo8ogftm8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080349.6990 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506818966f507550e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66f505310466f50754db' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080349.9680 ldl0d0hn33kvr514vbo8ogftm8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f505310466f50754db','2406205','wait',39,'adm09112754980.682000002')
20240926@080349.1045 ldl0d0hn33kvr514vbo8ogftm8 Query : use flama_phc
20240926@080349.1048 ldl0d0hn33kvr514vbo8ogftm8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080349.1081 ldl0d0hn33kvr514vbo8ogftm8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2224';
20240926@080349.1110 ldl0d0hn33kvr514vbo8ogftm8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2224';
20240926@080349.1150 ldl0d0hn33kvr514vbo8ogftm8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2224';
20240926@080349.1180 ldl0d0hn33kvr514vbo8ogftm8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2224';
20240926@080349.1709 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080349.1720 5iqmrl79ep0l2c26s5sn852vs1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080349.1882 5iqmrl79ep0l2c26s5sn852vs1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2225';
20240926@080349.1964 5iqmrl79ep0l2c26s5sn852vs1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2225';
20240926@080349.2019 5iqmrl79ep0l2c26s5sn852vs1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2225';
20240926@080349.2164 5iqmrl79ep0l2c26s5sn852vs1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2225';
20240926@080349.2246 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.2289 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080349.2406 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.2411 5iqmrl79ep0l2c26s5sn852vs1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240926@080349.2540 5iqmrl79ep0l2c26s5sn852vs1 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'
20240926@080349.2733 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406206 and bi.ref ='324.1684.00.1' and bi.lordem =1
20240926@080349.3066 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20240926@080349.3086 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406206 and bi.ref ='324.1317.00.1' and bi.lordem =2
20240926@080349.3411 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3436 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080349.3468 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3494 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080349.3545 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3548 5iqmrl79ep0l2c26s5sn852vs1 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')
20240926@080349.3596 5iqmrl79ep0l2c26s5sn852vs1 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
20240926@080349.3638 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3641 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240926@080349.3678 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3680 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080349.3712 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3715 5iqmrl79ep0l2c26s5sn852vs1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080349.3779 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3791 5iqmrl79ep0l2c26s5sn852vs1 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240926@080349.3862 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.3865 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from td where ndoc = 39
20240926@080349.3901 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080349.3923 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.3942 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080349.3970 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.3985 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080349.4014 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.4029 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080349.4043 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080349.4111 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080349.4124 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.4162 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080349.4187 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f500739766f5075562' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080349.4374 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.4428 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080349.4463 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080349.4522 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080349.4536 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080349.4547 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080349.4558 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080349.4569 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080349.4583 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f500739766f5075562',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080349.4852 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080349.4883 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.4913 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080349.4951 5iqmrl79ep0l2c26s5sn852vs1 Query : select 'normal' from dummy
20240926@080349.4968 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f500739766f5075562',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',938,100810,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080349.5284 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.5287 5iqmrl79ep0l2c26s5sn852vs1 Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240926@080349.5356 5iqmrl79ep0l2c26s5sn852vs1 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'
20240926@080349.5539 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.5583 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080349.5647 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.5666 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080349.5675 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080349.5690 5iqmrl79ep0l2c26s5sn852vs1 Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240926@080349.5714 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.5741 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080349.5763 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f502884266f507558b','aut66f500739766f5075562' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080349.5767 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.5814 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080349.5858 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f502884266f507558b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f500739766f5075562' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080349.6115 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.6119 5iqmrl79ep0l2c26s5sn852vs1 Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20240926@080349.6157 5iqmrl79ep0l2c26s5sn852vs1 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.1317.00.1'
20240926@080349.6227 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.7339 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080349.7368 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.7415 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080349.7426 5iqmrl79ep0l2c26s5sn852vs1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080349.7478 5iqmrl79ep0l2c26s5sn852vs1 Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20240926@080349.7491 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.7519 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080349.7533 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507737966f50755b6','aut66f500739766f5075562' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080349.7537 5iqmrl79ep0l2c26s5sn852vs1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080349.7565 5iqmrl79ep0l2c26s5sn852vs1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080349.7683 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507737966f50755b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f500739766f5075562' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080349.7952 5iqmrl79ep0l2c26s5sn852vs1 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f500739766f5075562','2406206','wait',39,'adm09112754980.682000002')
20240926@080349.8048 5iqmrl79ep0l2c26s5sn852vs1 Query : use flama_phc
20240926@080349.8076 5iqmrl79ep0l2c26s5sn852vs1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080349.8104 5iqmrl79ep0l2c26s5sn852vs1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2225';
20240926@080349.8134 5iqmrl79ep0l2c26s5sn852vs1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2225';
20240926@080349.8177 5iqmrl79ep0l2c26s5sn852vs1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2225';
20240926@080349.8328 5iqmrl79ep0l2c26s5sn852vs1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2225';
20240926@080349.8910 o292trh9090n50257ia7jmp06p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080349.8922 o292trh9090n50257ia7jmp06p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080349.8992 o292trh9090n50257ia7jmp06p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2226';
20240926@080349.9046 o292trh9090n50257ia7jmp06p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2226';
20240926@080349.9159 o292trh9090n50257ia7jmp06p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2226';
20240926@080349.9192 o292trh9090n50257ia7jmp06p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2226';
20240926@080349.9257 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080349.9260 o292trh9090n50257ia7jmp06p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080349.9354 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080349.9359 o292trh9090n50257ia7jmp06p Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240926@080349.9480 o292trh9090n50257ia7jmp06p 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'
20240926@080349.9514 o292trh9090n50257ia7jmp06p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406210 and bi.ref ='324.1676.00.1' and bi.lordem =1
20240926@080349.9865 o292trh9090n50257ia7jmp06p 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'
20240926@080349.9886 o292trh9090n50257ia7jmp06p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406210 and bi.ref ='324.1676.00.1' and bi.lordem =2
20240926@080350.2460 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.2500 o292trh9090n50257ia7jmp06p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080350.2830 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.2860 o292trh9090n50257ia7jmp06p Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080350.3160 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.3200 o292trh9090n50257ia7jmp06p 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')
20240926@080350.3480 o292trh9090n50257ia7jmp06p 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
20240926@080350.3820 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.3850 o292trh9090n50257ia7jmp06p Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20240926@080350.5980 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.6030 o292trh9090n50257ia7jmp06p Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080350.6350 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.6370 o292trh9090n50257ia7jmp06p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080350.6750 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.6780 o292trh9090n50257ia7jmp06p Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240926@080350.7320 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.7350 o292trh9090n50257ia7jmp06p Query : select 1 valor from td where ndoc = 39
20240926@080350.7890 o292trh9090n50257ia7jmp06p Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080350.8040 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.8260 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080350.8450 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.9520 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080350.1052 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.1071 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080350.1085 o292trh9090n50257ia7jmp06p Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080350.1152 o292trh9090n50257ia7jmp06p Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080350.1166 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.1184 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080350.1200 o292trh9090n50257ia7jmp06p Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f505052966f507561a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080350.1390 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.1411 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080350.1448 o292trh9090n50257ia7jmp06p Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080350.1464 o292trh9090n50257ia7jmp06p Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080350.1478 o292trh9090n50257ia7jmp06p Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080350.1658 o292trh9090n50257ia7jmp06p Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080350.1673 o292trh9090n50257ia7jmp06p Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080350.1687 o292trh9090n50257ia7jmp06p Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080350.1701 o292trh9090n50257ia7jmp06p Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f505052966f507561a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080350.1967 o292trh9090n50257ia7jmp06p Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080350.1991 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2009 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080350.2032 o292trh9090n50257ia7jmp06p Query : select 'normal' from dummy
20240926@080350.2047 o292trh9090n50257ia7jmp06p Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f505052966f507561a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',939,102079,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080350.2377 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.2381 o292trh9090n50257ia7jmp06p Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240926@080350.2401 o292trh9090n50257ia7jmp06p 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'
20240926@080350.2428 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2444 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080350.2470 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2484 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080350.2493 o292trh9090n50257ia7jmp06p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080350.2506 o292trh9090n50257ia7jmp06p Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240926@080350.2519 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2534 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080350.2545 o292trh9090n50257ia7jmp06p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f507679566f507563d','aut66f505052966f507561a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080350.2549 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2564 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080350.2592 o292trh9090n50257ia7jmp06p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f507679566f507563d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66f505052966f507561a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080350.2874 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.2878 o292trh9090n50257ia7jmp06p Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240926@080350.2897 o292trh9090n50257ia7jmp06p 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'
20240926@080350.2911 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2926 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080350.2952 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.2967 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080350.2975 o292trh9090n50257ia7jmp06p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080350.2987 o292trh9090n50257ia7jmp06p Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240926@080350.3000 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.3015 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080350.3027 o292trh9090n50257ia7jmp06p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f506766666f5075649','aut66f505052966f507561a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080350.3031 o292trh9090n50257ia7jmp06p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.3046 o292trh9090n50257ia7jmp06p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080350.3074 o292trh9090n50257ia7jmp06p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f506766666f5075649',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f505052966f507561a' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080350.3355 o292trh9090n50257ia7jmp06p Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f505052966f507561a','2406210','wait',39,'adm09112754980.682000002')
20240926@080350.3426 o292trh9090n50257ia7jmp06p Query : use flama_phc
20240926@080350.3429 o292trh9090n50257ia7jmp06p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080350.3458 o292trh9090n50257ia7jmp06p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2226';
20240926@080350.3488 o292trh9090n50257ia7jmp06p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2226';
20240926@080350.3526 o292trh9090n50257ia7jmp06p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2226';
20240926@080350.3552 o292trh9090n50257ia7jmp06p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2226';
20240926@080350.5931 5ik8hdt6t9coimmf8du1o2hohi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@080350.5947 5ik8hdt6t9coimmf8du1o2hohi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@080350.6005 5ik8hdt6t9coimmf8du1o2hohi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2227';
20240926@080350.6158 5ik8hdt6t9coimmf8du1o2hohi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2227';
20240926@080350.6211 5ik8hdt6t9coimmf8du1o2hohi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2227';
20240926@080350.6242 5ik8hdt6t9coimmf8du1o2hohi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2227';
20240926@080350.6289 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.6292 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@080350.6360 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.6363 5ik8hdt6t9coimmf8du1o2hohi Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240926@080350.6412 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1670.00.1'
20240926@080350.6568 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406214 and bi.ref ='324.1670.00.1' and bi.lordem =1
20240926@080350.6982 5ik8hdt6t9coimmf8du1o2hohi 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'
20240926@080350.7142 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2062 and bo.obrano = 2406214 and bi.ref ='324.698.00.01' and bi.lordem =2
20240926@080350.7458 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7461 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240926@080350.7491 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7494 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 1 valor from td where td.ndoc = 39
20240926@080350.7524 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7527 5ik8hdt6t9coimmf8du1o2hohi 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')
20240926@080350.7553 5ik8hdt6t9coimmf8du1o2hohi 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
20240926@080350.7586 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7588 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240926@080350.7617 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7619 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240926@080350.7647 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7650 5ik8hdt6t9coimmf8du1o2hohi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240926@080350.7688 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7691 5ik8hdt6t9coimmf8du1o2hohi Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240926@080350.7732 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.7735 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from td where ndoc = 39
20240926@080350.7746 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240926@080350.7760 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.7779 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080350.7796 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.7811 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080350.7864 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.7880 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080350.7892 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080350.7957 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240926@080350.7969 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.7983 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240926@080350.8053 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66f506683466f50756c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240926@080350.8245 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.8304 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240926@080350.8335 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240926@080350.8482 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240926@080350.8528 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240926@080350.8540 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240926@080350.8553 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240926@080350.8565 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240926@080350.8578 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66f506683466f50756c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240926@080350.8835 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 fno valor from wsftdata order by fno desc
20240926@080350.8859 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.8876 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240926@080350.8901 5ik8hdt6t9coimmf8du1o2hohi Query : select 'normal' from dummy
20240926@080350.8916 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66f506683466f50756c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',940,100810,0,'2024-09-26',39,'euro',0,0,2024 ,?,?)
20240926@080350.9230 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.9233 5ik8hdt6t9coimmf8du1o2hohi Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240926@080350.9255 5ik8hdt6t9coimmf8du1o2hohi 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'
20240926@080350.9406 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.9423 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080350.9448 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.9463 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080350.9471 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080350.9484 5ik8hdt6t9coimmf8du1o2hohi Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240926@080350.9497 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.9514 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080350.9528 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f500177066f50756e7','aut66f506683466f50756c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080350.9533 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080350.9551 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080350.9582 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f500177066f50756e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f506683466f50756c0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240926@080350.9874 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080350.9878 5ik8hdt6t9coimmf8du1o2hohi Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20240926@080350.9904 5ik8hdt6t9coimmf8du1o2hohi 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'
20240926@080351.2190 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.2370 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080351.2660 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.2830 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080351.2920 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080351.3060 5ik8hdt6t9coimmf8du1o2hohi Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2400061200a'
20240926@080351.3210 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.3370 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080351.3490 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f504836566f5075707','aut66f506683466f50756c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080351.3530 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.3690 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080351.4000 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66f504836566f5075707',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66f506683466f50756c0' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240926@080351.6680 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.6840 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080351.7090 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.7230 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080351.7320 5ik8hdt6t9coimmf8du1o2hohi Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@080351.7470 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.7640 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240926@080351.7770 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f501958466f5075712','aut66f506683466f50756c0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240926@080351.7820 5ik8hdt6t9coimmf8du1o2hohi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@080351.7990 5ik8hdt6t9coimmf8du1o2hohi Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240926@080351.8400 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66f501958466f5075712',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66f506683466f50756c0' ,0,0 ,2,23.00,30000,?,?,?)
20240926@080351.1287 5ik8hdt6t9coimmf8du1o2hohi Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66f506683466f50756c0','2406214','wait',39,'adm09112754980.682000002')
20240926@080351.3178 5ik8hdt6t9coimmf8du1o2hohi Query : use flama_phc
20240926@080351.3182 5ik8hdt6t9coimmf8du1o2hohi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@080351.3216 5ik8hdt6t9coimmf8du1o2hohi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2227';
20240926@080351.3247 5ik8hdt6t9coimmf8du1o2hohi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2227';
20240926@080351.3294 5ik8hdt6t9coimmf8du1o2hohi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2227';
20240926@080351.3327 5ik8hdt6t9coimmf8du1o2hohi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2227';
20240926@081912.2976 94hvcv55d5rlg6chelm8s44vle Query : use flama_phc
20240926@081912.2981 94hvcv55d5rlg6chelm8s44vle Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@081912.3102 94hvcv55d5rlg6chelm8s44vle Query : use flama_phc
20240926@081912.3105 94hvcv55d5rlg6chelm8s44vle Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@083612.2004 l2v0iia5ce5b5bthshsdlv2esi Query : use flama_phc
20240926@083612.2009 l2v0iia5ce5b5bthshsdlv2esi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@083612.2147 l2v0iia5ce5b5bthshsdlv2esi Query : use flama_phc
20240926@083612.2151 l2v0iia5ce5b5bthshsdlv2esi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@091922.1222 04amclh0bg6mjg52b4m28jpfbk Query : use flama_phc
20240926@091922.1226 04amclh0bg6mjg52b4m28jpfbk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@091922.1355 04amclh0bg6mjg52b4m28jpfbk Query : use flama_phc
20240926@091922.1358 04amclh0bg6mjg52b4m28jpfbk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@093622.4528 7alc8rfs4g7okpr53t6o59tdun Query : use flama_phc
20240926@093622.4533 7alc8rfs4g7okpr53t6o59tdun Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@093622.4656 7alc8rfs4g7okpr53t6o59tdun Query : use flama_phc
20240926@093622.4659 7alc8rfs4g7okpr53t6o59tdun Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@101915.6771 hdmpu0j1cbcaf4fcotnh6etsd5 Query : use flama_phc
20240926@101915.6775 hdmpu0j1cbcaf4fcotnh6etsd5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@101915.6895 hdmpu0j1cbcaf4fcotnh6etsd5 Query : use flama_phc
20240926@101915.6898 hdmpu0j1cbcaf4fcotnh6etsd5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@103615.9570 5c4s5842l5nreeiednmbrjlgvo Query : use flama_phc
20240926@103615.9613 5c4s5842l5nreeiednmbrjlgvo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@103616.5470 5c4s5842l5nreeiednmbrjlgvo Query : use flama_phc
20240926@103616.5900 5c4s5842l5nreeiednmbrjlgvo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@111913.6270 fqsrnag9un1oe77h6lhtccb56f Query : use flama_phc
20240926@111913.6310 fqsrnag9un1oe77h6lhtccb56f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@111913.7140 fqsrnag9un1oe77h6lhtccb56f Query : use flama_phc
20240926@111913.7180 fqsrnag9un1oe77h6lhtccb56f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@113613.5260 foe3nj12th54lo2rb12ef0k5b1 Query : use flama_phc
20240926@113613.5310 foe3nj12th54lo2rb12ef0k5b1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@113613.6540 foe3nj12th54lo2rb12ef0k5b1 Query : use flama_phc
20240926@113613.6580 foe3nj12th54lo2rb12ef0k5b1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@121924.2969 1m0l9i56mmoibsn065835u6ck0 Query : use flama_phc
20240926@121924.3011 1m0l9i56mmoibsn065835u6ck0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@121924.3797 1m0l9i56mmoibsn065835u6ck0 Query : use flama_phc
20240926@121924.3839 1m0l9i56mmoibsn065835u6ck0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@123624.7888 cck2u4jnll9aqmfdvef3fop2q2 Query : use flama_phc
20240926@123624.7914 cck2u4jnll9aqmfdvef3fop2q2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@123624.8048 cck2u4jnll9aqmfdvef3fop2q2 Query : use flama_phc
20240926@123624.8052 cck2u4jnll9aqmfdvef3fop2q2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@131918.3332 rkh4knp444tog0bjm7ne31mnht Query : use flama_phc
20240926@131918.3336 rkh4knp444tog0bjm7ne31mnht Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@131918.3422 rkh4knp444tog0bjm7ne31mnht Query : use flama_phc
20240926@131918.3425 rkh4knp444tog0bjm7ne31mnht Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@133618.4311 flgh8l7d338mfh7om9qer5bp7s Query : use flama_phc
20240926@133618.4328 flgh8l7d338mfh7om9qer5bp7s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@133618.4445 flgh8l7d338mfh7om9qer5bp7s Query : use flama_phc
20240926@133618.4448 flgh8l7d338mfh7om9qer5bp7s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@141914.5032 9hn1haqni980i9e0p7irb2755q Query : use flama_phc
20240926@141914.5037 9hn1haqni980i9e0p7irb2755q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@141914.5129 9hn1haqni980i9e0p7irb2755q Query : use flama_phc
20240926@141914.5133 9hn1haqni980i9e0p7irb2755q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@143614.7840 a3leq80s4q9kntsfno00ait0ud Query : use flama_phc
20240926@143614.7844 a3leq80s4q9kntsfno00ait0ud Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@143614.7940 a3leq80s4q9kntsfno00ait0ud Query : use flama_phc
20240926@143614.7943 a3leq80s4q9kntsfno00ait0ud Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@151918.2991 ciua0cnt60ona3afkvv3h0sjq1 Query : use flama_phc
20240926@151918.2995 ciua0cnt60ona3afkvv3h0sjq1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@151918.3088 ciua0cnt60ona3afkvv3h0sjq1 Query : use flama_phc
20240926@151918.3092 ciua0cnt60ona3afkvv3h0sjq1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@153617.8884 j93h93754ufqd3fjlfidqin97i Query : use flama_phc
20240926@153617.8889 j93h93754ufqd3fjlfidqin97i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240926@153617.8981 j93h93754ufqd3fjlfidqin97i Query : use flama_phc
20240926@153617.8984 j93h93754ufqd3fjlfidqin97i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240926@160534.3090 5q7vf8lkcrjf7op9sat8efgelk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240926@160534.3300 5q7vf8lkcrjf7op9sat8efgelk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240926@160534.5340 5q7vf8lkcrjf7op9sat8efgelk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2228';
20240926@160534.5960 5q7vf8lkcrjf7op9sat8efgelk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2228';
20240926@160534.6590 5q7vf8lkcrjf7op9sat8efgelk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2228';
20240926@160534.6850 5q7vf8lkcrjf7op9sat8efgelk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2228';
20240926@160534.7270 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160534.7300 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240926@160534.8390 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1834.00.1'
20240926@160534.9980 5q7vf8lkcrjf7op9sat8efgelk 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 = 2400214 and bi.ref ='324.1834.00.1' and bi.lordem =20000
20240926@160534.1340 5q7vf8lkcrjf7op9sat8efgelk 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 = 'cps24022742961,337000002 ' 
20240926@160534.1678 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160534.1682 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 1 valor from ts where ts.ndos = 61
20240926@160534.1788 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160534.1792 5q7vf8lkcrjf7op9sat8efgelk 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')
20240926@160534.1870 5q7vf8lkcrjf7op9sat8efgelk 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
20240926@160534.2085 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160534.2088 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20240926@160534.2222 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160534.2225 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from ts where ndos = 61
20240926@160534.2301 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160534.2597 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240926@160534.2661 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160534.2677 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240926@160534.2687 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160534.2707 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240926@160534.2718 5q7vf8lkcrjf7op9sat8efgelk 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
20240926@160534.2944 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240926@160534.3057 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240926@160534.3078 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160534.3085 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20240926@160534.3299 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160534.3560 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240926@160534.3606 5q7vf8lkcrjf7op9sat8efgelk Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f571814866f5783e4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240926@160534.3714 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160534.3733 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240926@160534.3747 5q7vf8lkcrjf7op9sat8efgelk Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f571814866f5783e4b','--','bo',7.8200743494423791821 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240926@160534.3976 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160534.3994 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240926@160534.4007 5q7vf8lkcrjf7op9sat8efgelk 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 ('aut66f571814866f5783e4b','guia r. fornecedor','2024-09-26',61,2402801,?,?,?,?,?,?,?,?,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')
20240926@160538.1195 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160538.1199 5q7vf8lkcrjf7op9sat8efgelk Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20240926@160538.1324 5q7vf8lkcrjf7op9sat8efgelk 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.1834.00.1'
20240926@160538.1477 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160538.1497 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240926@160538.1512 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160538.1528 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240926@160538.1538 5q7vf8lkcrjf7op9sat8efgelk Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20240926@160538.1594 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160538.1609 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240926@160538.1619 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160538.1634 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240926@160538.1647 5q7vf8lkcrjf7op9sat8efgelk Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66f572081966f5784227',?,?,'20240926',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240926@160538.2418 5q7vf8lkcrjf7op9sat8efgelk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240926@160538.2557 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160538.2574 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240926@160538.2589 5q7vf8lkcrjf7op9sat8efgelk Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66f570040366f578423e','aut66f571814866f5783e4b',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 = 'aut66f571814866f5783e4b'
20240926@160538.2986 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240926@160538.3007 5q7vf8lkcrjf7op9sat8efgelk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240926@160538.3027 5q7vf8lkcrjf7op9sat8efgelk 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 'aut66f570040366f578423e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1470, 1470*.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 ,26.9,26.9*200.48,26.9,26.9*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,26.9*1470,26.9*1470*200.48 ,28.471000,28.471000*200.48 ,28.471000,28.471000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,26.9,26.9*200.48,26.9*1470,26.9*1470*200.48,'cps24022742961,337000002 ',210.36,210.36*1470,210.36,210.36*1470,?,?,?,4 from bo bo where bo.bostamp = 'aut66f571814866f5783e4b'
20240926@160554.4368 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160554.4388 5q7vf8lkcrjf7op9sat8efgelk Query : declare @bostamp varchar(25) = 'aut66f571814866f5783e4b' ,@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 
20240926@160607.7625 5q7vf8lkcrjf7op9sat8efgelk Query : use flama_phc
20240926@160607.7628 5q7vf8lkcrjf7op9sat8efgelk Query : select 1 valor from bo where bo.bostamp = 'aut66f571814866f5783e4b'
20240926@160607.7726 5q7vf8lkcrjf7op9sat8efgelk 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) = 'aut66f571814866f5783e4b' 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 
