20241216@180622.7336 s722ql0gfnsp3rmv7oqd38vtf9 INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20241216@180622.7336 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180622.7374 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180622.7391 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180622.7406 s722ql0gfnsp3rmv7oqd38vtf9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676060581967606c1eb1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180622.7553 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180622.7573 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180622.7652 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180622.7707 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180622.7944 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180622.8042 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180622.8057 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180622.8074 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180622.8166 s722ql0gfnsp3rmv7oqd38vtf9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676060581967606c1eb1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180622.9265 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180622.9394 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180622.9710 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180622.9873 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 'normal' from dummy
20241216@180622.9947 s722ql0gfnsp3rmv7oqd38vtf9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676060581967606c1eb1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2483,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180623.2090 s722ql0gfnsp3rmv7oqd38vtf9 Query : use flama_phc
20241216@180623.2120 s722ql0gfnsp3rmv7oqd38vtf9 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180623.2350 s722ql0gfnsp3rmv7oqd38vtf9 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.1642.00.2'
20241216@180623.2490 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.2650 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180623.2900 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.3040 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180623.3130 s722ql0gfnsp3rmv7oqd38vtf9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180623.3250 s722ql0gfnsp3rmv7oqd38vtf9 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180623.3390 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.3530 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180623.3640 s722ql0gfnsp3rmv7oqd38vtf9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676066438367606c1f08','aut676060581967606c1eb1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180623.3680 s722ql0gfnsp3rmv7oqd38vtf9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.4050 s722ql0gfnsp3rmv7oqd38vtf9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180623.4320 s722ql0gfnsp3rmv7oqd38vtf9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676066438367606c1f08',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676060581967606c1eb1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180623.6490 s722ql0gfnsp3rmv7oqd38vtf9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676060581967606c1eb1','2408659','wait',39,'adm09112754980.682000002')
20241216@180623.7230 s722ql0gfnsp3rmv7oqd38vtf9 Query : use flama_phc
20241216@180623.7270 s722ql0gfnsp3rmv7oqd38vtf9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180623.7570 s722ql0gfnsp3rmv7oqd38vtf9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4013';
20241216@180623.8170 s722ql0gfnsp3rmv7oqd38vtf9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4013';
20241216@180623.8700 s722ql0gfnsp3rmv7oqd38vtf9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4013';
20241216@180623.9060 s722ql0gfnsp3rmv7oqd38vtf9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4013';
20241216@180623.1431 ov5mkonkgdvr5qu1dni0ccm77o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180623.1444 ov5mkonkgdvr5qu1dni0ccm77o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180623.1516 ov5mkonkgdvr5qu1dni0ccm77o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4014';
20241216@180623.1615 ov5mkonkgdvr5qu1dni0ccm77o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4014';
20241216@180623.1683 ov5mkonkgdvr5qu1dni0ccm77o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4014';
20241216@180623.1721 ov5mkonkgdvr5qu1dni0ccm77o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4014';
20241216@180623.1797 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.1801 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180623.1870 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.1875 ov5mkonkgdvr5qu1dni0ccm77o Query : select no, estab,szadrsdesc from szadrs where u_coddest=716
20241216@180623.1968 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241216@180623.1991 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408660 and bi.ref ='324.691.00.01' and bi.lordem =1
20241216@180623.2319 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241216@180623.2343 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408660 and bi.ref ='324.691.00.01' and bi.lordem =1
20241216@180623.2377 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20241216@180623.2398 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408660 and bi.ref ='324.691.00.01' and bi.lordem =2
20241216@180623.2692 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.2696 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180623.2733 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.2736 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180623.2787 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.2790 ov5mkonkgdvr5qu1dni0ccm77o 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')
20241216@180623.2821 ov5mkonkgdvr5qu1dni0ccm77o 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
20241216@180623.2860 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.2864 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 ~inactivo valor from cl where no = '102291' and estab = 0 order by inactivo desc
20241216@180623.2984 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.2988 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180623.3021 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.3024 ov5mkonkgdvr5qu1dni0ccm77o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180623.3072 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.3075 ov5mkonkgdvr5qu1dni0ccm77o Query : select szadrsstamp valor from szadrs where szadrsdesc='vaga d`imagens unipessoal, lda.'
20241216@180623.3181 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.3223 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from td where ndoc = 39
20241216@180623.3298 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180623.3313 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.3334 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180623.3355 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.3372 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180623.3421 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.3438 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180623.3450 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180623.3508 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180623.3521 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.3539 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180623.3559 ov5mkonkgdvr5qu1dni0ccm77o Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676065704167606c1f54' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180623.3794 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.4180 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180623.4817 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180623.4830 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180623.4843 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180623.4858 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180623.4873 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180623.4886 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180623.4898 ov5mkonkgdvr5qu1dni0ccm77o Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676065704167606c1f54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180623.5144 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180623.5180 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.5197 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180623.5221 ov5mkonkgdvr5qu1dni0ccm77o Query : select 'normal' from dummy
20241216@180623.5236 ov5mkonkgdvr5qu1dni0ccm77o Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676065704167606c1f54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2484,102291,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180623.6319 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.6322 ov5mkonkgdvr5qu1dni0ccm77o Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20241216@180623.6344 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20241216@180623.6359 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.6378 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180623.6407 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.6422 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180623.6504 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180623.6516 ov5mkonkgdvr5qu1dni0ccm77o Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400837300a'
20241216@180623.6605 ov5mkonkgdvr5qu1dni0ccm77o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.6910 ov5mkonkgdvr5qu1dni0ccm77o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180623.6973 ov5mkonkgdvr5qu1dni0ccm77o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676060031267606c1fa1','aut676065704167606c1f54' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180623.7068 ov5mkonkgdvr5qu1dni0ccm77o Query : use flama_phc
20241216@180623.7085 ov5mkonkgdvr5qu1dni0ccm77o Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241216@180623.7289 ov5mkonkgdvr5qu1dni0ccm77o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4014';
20241216@180623.7333 ov5mkonkgdvr5qu1dni0ccm77o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4014';
20241216@180623.7861 9db7d570c8cvbs5dup04ohkr3k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180623.7872 9db7d570c8cvbs5dup04ohkr3k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180623.7944 9db7d570c8cvbs5dup04ohkr3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4015';
20241216@180623.8031 9db7d570c8cvbs5dup04ohkr3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4015';
20241216@180623.8098 9db7d570c8cvbs5dup04ohkr3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4015';
20241216@180623.8132 9db7d570c8cvbs5dup04ohkr3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4015';
20241216@180623.8191 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.8195 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180623.8279 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.8282 9db7d570c8cvbs5dup04ohkr3k Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20241216@180623.8366 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180623.8393 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408661 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180623.8711 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180623.8734 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408661 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180623.8752 9db7d570c8cvbs5dup04ohkr3k 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'
20241216@180623.8774 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408661 and bi.ref ='324.2330.00.1' and bi.lordem =2
20241216@180623.9122 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9126 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180623.9161 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9164 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180623.9195 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9198 9db7d570c8cvbs5dup04ohkr3k 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')
20241216@180623.9230 9db7d570c8cvbs5dup04ohkr3k 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
20241216@180623.9269 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9272 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180623.9303 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9306 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180623.9339 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9342 9db7d570c8cvbs5dup04ohkr3k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180623.9385 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9388 9db7d570c8cvbs5dup04ohkr3k Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda-aveiro'
20241216@180623.9686 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180623.9690 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from td where ndoc = 39
20241216@180623.9705 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180623.9720 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.9738 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180623.9761 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.9779 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180623.9813 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.9828 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180623.9862 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180623.9925 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180623.9939 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180623.9977 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180623.9993 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676060238867606c1ff0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180624.1610 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1880 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180624.2240 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180624.2370 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180624.2500 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180624.2630 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180624.2740 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180624.2860 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180624.2980 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676060238867606c1ff0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180624.5160 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180624.5670 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.5860 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180624.6130 9db7d570c8cvbs5dup04ohkr3k Query : select 'normal' from dummy
20241216@180624.6320 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676060238867606c1ff0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2484,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180624.8910 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180624.8940 9db7d570c8cvbs5dup04ohkr3k Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180624.9170 9db7d570c8cvbs5dup04ohkr3k 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.1642.00.2'
20241216@180624.9330 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.9490 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.9770 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.9910 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.1000 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180624.1013 9db7d570c8cvbs5dup04ohkr3k Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180624.1026 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1041 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.1053 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676066289167606c2019','aut676060238867606c1ff0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180624.1057 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1071 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.1098 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676066289167606c2019',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676060238867606c1ff0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180624.1310 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180624.1314 9db7d570c8cvbs5dup04ohkr3k Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180624.1334 9db7d570c8cvbs5dup04ohkr3k 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.1642.00.2'
20241216@180624.1347 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1363 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.1411 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1425 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.1435 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180624.1446 9db7d570c8cvbs5dup04ohkr3k Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180624.1459 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1473 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.1484 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676069198267606c2023','aut676060238867606c1ff0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180624.1489 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1504 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.1535 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676069198267606c2023',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut676060238867606c1ff0' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241216@180624.1759 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180624.1762 9db7d570c8cvbs5dup04ohkr3k Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180624.1782 9db7d570c8cvbs5dup04ohkr3k 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'
20241216@180624.1795 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1812 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.1838 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1853 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.1862 9db7d570c8cvbs5dup04ohkr3k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180624.1894 9db7d570c8cvbs5dup04ohkr3k Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2200210200a'
20241216@180624.1906 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1922 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.1934 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676060656267606c202e','aut676060238867606c1ff0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180624.1939 9db7d570c8cvbs5dup04ohkr3k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.1956 9db7d570c8cvbs5dup04ohkr3k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.1984 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676060656267606c202e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676060238867606c1ff0' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241216@180624.2209 9db7d570c8cvbs5dup04ohkr3k Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676060238867606c1ff0','2408661','wait',39,'adm09112754980.682000002')
20241216@180624.2283 9db7d570c8cvbs5dup04ohkr3k Query : use flama_phc
20241216@180624.2286 9db7d570c8cvbs5dup04ohkr3k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180624.2316 9db7d570c8cvbs5dup04ohkr3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4015';
20241216@180624.2363 9db7d570c8cvbs5dup04ohkr3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4015';
20241216@180624.2415 9db7d570c8cvbs5dup04ohkr3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4015';
20241216@180624.2447 9db7d570c8cvbs5dup04ohkr3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4015';
20241216@180624.4275 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180624.4287 pl8jmbaveatq46tq8sqiv0q0t6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180624.4761 pl8jmbaveatq46tq8sqiv0q0t6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4016';
20241216@180624.5060 pl8jmbaveatq46tq8sqiv0q0t6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4016';
20241216@180624.5295 pl8jmbaveatq46tq8sqiv0q0t6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4016';
20241216@180624.5337 pl8jmbaveatq46tq8sqiv0q0t6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4016';
20241216@180624.5402 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.5406 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180624.5493 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.5496 pl8jmbaveatq46tq8sqiv0q0t6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=634
20241216@180624.5607 pl8jmbaveatq46tq8sqiv0q0t6 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'
20241216@180624.5628 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408662 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241216@180624.5938 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.5941 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180624.6178 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6238 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180624.6459 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6484 pl8jmbaveatq46tq8sqiv0q0t6 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')
20241216@180624.6512 pl8jmbaveatq46tq8sqiv0q0t6 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
20241216@180624.6549 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6552 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180624.6583 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6585 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180624.6615 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6618 pl8jmbaveatq46tq8sqiv0q0t6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180624.6658 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6661 pl8jmbaveatq46tq8sqiv0q0t6 Query : select szadrsstamp valor from szadrs where szadrsdesc='joaquim oliveira mendes,lda jom - covilhã'
20241216@180624.6709 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.6712 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from td where ndoc = 39
20241216@180624.6725 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180624.6739 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.6756 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180624.6777 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.6793 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180624.6825 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.6841 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180624.6854 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180624.6930 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180624.6944 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.6961 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180624.6978 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676065656667606c20a7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180624.7134 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.7154 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180624.7194 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180624.7208 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180624.7221 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180624.7234 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180624.7247 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180624.7262 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180624.7274 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676065656667606c20a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180624.7511 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180624.7574 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.7593 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180624.7621 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 'normal' from dummy
20241216@180624.7638 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676065656667606c20a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2485,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180624.7915 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.7918 pl8jmbaveatq46tq8sqiv0q0t6 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180624.7942 pl8jmbaveatq46tq8sqiv0q0t6 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'
20241216@180624.7958 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.7975 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.8001 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.8016 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.8025 pl8jmbaveatq46tq8sqiv0q0t6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180624.8036 pl8jmbaveatq46tq8sqiv0q0t6 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2200210200a'
20241216@180624.8049 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.8065 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180624.8076 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676064641367606c20c4','aut676065656667606c20a7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180624.8081 pl8jmbaveatq46tq8sqiv0q0t6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180624.8096 pl8jmbaveatq46tq8sqiv0q0t6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180624.8126 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676064641367606c20c4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676065656667606c20a7' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180624.8355 pl8jmbaveatq46tq8sqiv0q0t6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676065656667606c20a7','2408662','wait',39,'adm09112754980.682000002')
20241216@180624.8428 pl8jmbaveatq46tq8sqiv0q0t6 Query : use flama_phc
20241216@180624.8432 pl8jmbaveatq46tq8sqiv0q0t6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180624.8465 pl8jmbaveatq46tq8sqiv0q0t6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4016';
20241216@180624.8506 pl8jmbaveatq46tq8sqiv0q0t6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4016';
20241216@180624.8560 pl8jmbaveatq46tq8sqiv0q0t6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4016';
20241216@180624.8592 pl8jmbaveatq46tq8sqiv0q0t6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4016';
20241216@180624.9074 bv667uf9vaijqmb1ngh0mki300 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180624.9086 bv667uf9vaijqmb1ngh0mki300 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180624.9159 bv667uf9vaijqmb1ngh0mki300 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4017';
20241216@180624.9238 bv667uf9vaijqmb1ngh0mki300 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4017';
20241216@180624.9303 bv667uf9vaijqmb1ngh0mki300 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4017';
20241216@180624.9336 bv667uf9vaijqmb1ngh0mki300 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4017';
20241216@180624.9393 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180624.9397 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180624.9659 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180624.9662 bv667uf9vaijqmb1ngh0mki300 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3145
20241216@180624.9769 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180624.9793 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408663 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180625.1090 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.1130 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180625.1510 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.1540 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180625.2110 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.2140 bv667uf9vaijqmb1ngh0mki300 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')
20241216@180625.2470 bv667uf9vaijqmb1ngh0mki300 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
20241216@180625.2960 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.2990 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180625.3420 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.3500 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180625.3840 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.3880 bv667uf9vaijqmb1ngh0mki300 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180625.4330 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.4360 bv667uf9vaijqmb1ngh0mki300 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - caldas da rainha'
20241216@180625.4900 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.4940 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from td where ndoc = 39
20241216@180625.2509 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180625.2526 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.2543 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180625.2562 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.2577 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180625.2611 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.2626 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180625.2639 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180625.2714 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180625.2727 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.2741 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180625.2756 bv667uf9vaijqmb1ngh0mki300 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676065527067606c2140' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180625.2910 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.2930 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180625.2965 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180625.2977 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180625.3007 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180625.3020 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180625.3031 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180625.3042 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180625.3053 bv667uf9vaijqmb1ngh0mki300 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676065527067606c2140',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180625.3269 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180625.3299 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.3316 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180625.3339 bv667uf9vaijqmb1ngh0mki300 Query : select 'normal' from dummy
20241216@180625.3354 bv667uf9vaijqmb1ngh0mki300 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676065527067606c2140',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2486,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180625.3634 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.3637 bv667uf9vaijqmb1ngh0mki300 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180625.3659 bv667uf9vaijqmb1ngh0mki300 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.1642.00.2'
20241216@180625.3673 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.3689 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180625.3834 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.3870 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180625.3879 bv667uf9vaijqmb1ngh0mki300 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180625.3890 bv667uf9vaijqmb1ngh0mki300 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180625.3902 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.3918 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180625.3933 bv667uf9vaijqmb1ngh0mki300 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676069403267606c215f','aut676065527067606c2140' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180625.3947 bv667uf9vaijqmb1ngh0mki300 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.3962 bv667uf9vaijqmb1ngh0mki300 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180625.4027 bv667uf9vaijqmb1ngh0mki300 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676069403267606c215f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut676065527067606c2140' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180625.4340 bv667uf9vaijqmb1ngh0mki300 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676065527067606c2140','2408663','wait',39,'adm09112754980.682000002')
20241216@180625.4418 bv667uf9vaijqmb1ngh0mki300 Query : use flama_phc
20241216@180625.4422 bv667uf9vaijqmb1ngh0mki300 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180625.4463 bv667uf9vaijqmb1ngh0mki300 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4017';
20241216@180625.4506 bv667uf9vaijqmb1ngh0mki300 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4017';
20241216@180625.4574 bv667uf9vaijqmb1ngh0mki300 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4017';
20241216@180625.4619 bv667uf9vaijqmb1ngh0mki300 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4017';
20241216@180625.5132 db0mu9c23pt5vmfgogql6lnih2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180625.5144 db0mu9c23pt5vmfgogql6lnih2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180625.5240 db0mu9c23pt5vmfgogql6lnih2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4018';
20241216@180625.5313 db0mu9c23pt5vmfgogql6lnih2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4018';
20241216@180625.5388 db0mu9c23pt5vmfgogql6lnih2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4018';
20241216@180625.5431 db0mu9c23pt5vmfgogql6lnih2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4018';
20241216@180625.5507 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.5511 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180625.5581 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.5585 db0mu9c23pt5vmfgogql6lnih2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20241216@180625.5718 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180625.5742 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408664 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180625.6054 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6058 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180625.6094 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6098 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180625.6152 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6155 db0mu9c23pt5vmfgogql6lnih2 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')
20241216@180625.6183 db0mu9c23pt5vmfgogql6lnih2 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
20241216@180625.6221 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6224 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180625.6256 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6259 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180625.6317 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6321 db0mu9c23pt5vmfgogql6lnih2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180625.6365 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6368 db0mu9c23pt5vmfgogql6lnih2 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom- gondomar'
20241216@180625.6420 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.6423 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from td where ndoc = 39
20241216@180625.6453 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180625.6469 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.6485 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180625.6504 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.6519 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180625.6552 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.6567 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180625.6579 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180625.6658 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180625.6672 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.6686 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180625.6702 db0mu9c23pt5vmfgogql6lnih2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676064221267606c21a0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180625.6860 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.6879 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180625.6914 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180625.6926 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180625.6938 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180625.6951 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180625.6963 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180625.6976 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180625.6989 db0mu9c23pt5vmfgogql6lnih2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676064221267606c21a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180625.7205 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180625.7255 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.7272 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180625.7296 db0mu9c23pt5vmfgogql6lnih2 Query : select 'normal' from dummy
20241216@180625.7311 db0mu9c23pt5vmfgogql6lnih2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676064221267606c21a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2487,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180625.7574 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.7578 db0mu9c23pt5vmfgogql6lnih2 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180625.7603 db0mu9c23pt5vmfgogql6lnih2 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.1642.00.2'
20241216@180625.7618 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.7636 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180625.7665 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.7682 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180625.7692 db0mu9c23pt5vmfgogql6lnih2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180625.7705 db0mu9c23pt5vmfgogql6lnih2 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180625.7718 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.7734 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180625.7768 db0mu9c23pt5vmfgogql6lnih2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676068190467606c21bc','aut676064221267606c21a0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180625.7773 db0mu9c23pt5vmfgogql6lnih2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180625.7788 db0mu9c23pt5vmfgogql6lnih2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180625.7816 db0mu9c23pt5vmfgogql6lnih2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676068190467606c21bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676064221267606c21a0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180625.8035 db0mu9c23pt5vmfgogql6lnih2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676064221267606c21a0','2408664','wait',39,'adm09112754980.682000002')
20241216@180625.8117 db0mu9c23pt5vmfgogql6lnih2 Query : use flama_phc
20241216@180625.8120 db0mu9c23pt5vmfgogql6lnih2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180625.8193 db0mu9c23pt5vmfgogql6lnih2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4018';
20241216@180625.8236 db0mu9c23pt5vmfgogql6lnih2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4018';
20241216@180625.8319 db0mu9c23pt5vmfgogql6lnih2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4018';
20241216@180625.8357 db0mu9c23pt5vmfgogql6lnih2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4018';
20241216@180625.8969 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180625.8989 2gb0nl6v7g62s125nvvajvdfb5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180625.9065 2gb0nl6v7g62s125nvvajvdfb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4019';
20241216@180625.9161 2gb0nl6v7g62s125nvvajvdfb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4019';
20241216@180625.9239 2gb0nl6v7g62s125nvvajvdfb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4019';
20241216@180625.9273 2gb0nl6v7g62s125nvvajvdfb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4019';
20241216@180625.9333 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180625.9337 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180625.9633 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180625.9637 2gb0nl6v7g62s125nvvajvdfb5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1549
20241216@180625.9743 2gb0nl6v7g62s125nvvajvdfb5 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'
20241216@180625.9774 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408665 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241216@180626.1010 2gb0nl6v7g62s125nvvajvdfb5 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'
20241216@180626.1260 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408665 and bi.ref ='324.2340.00.1' and bi.lordem =2
20241216@180626.4360 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1862.00.1'
20241216@180626.5780 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408665 and bi.ref ='324.1862.00.1' and bi.lordem =3
20241216@180626.8710 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20241216@180626.9880 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408665 and bi.ref ='324.1837.00.1' and bi.lordem =4
20241216@180626.1310 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241216@180626.1333 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408665 and bi.ref ='304.4320.00.1' and bi.lordem =5
20241216@180626.1641 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.1644 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180626.1684 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.1687 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180626.1720 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.1743 2gb0nl6v7g62s125nvvajvdfb5 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')
20241216@180626.1774 2gb0nl6v7g62s125nvvajvdfb5 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
20241216@180626.1813 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.1816 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 ~inactivo valor from cl where no = '101557' and estab = 0 order by inactivo desc
20241216@180626.1915 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.1918 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180626.1953 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.1956 2gb0nl6v7g62s125nvvajvdfb5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180626.2001 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.2004 2gb0nl6v7g62s125nvvajvdfb5 Query : select szadrsstamp valor from szadrs where szadrsdesc='jomafal'
20241216@180626.2074 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.2077 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from td where ndoc = 39
20241216@180626.2088 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180626.2102 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.2119 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180626.2137 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.2151 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180626.2182 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.2196 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180626.2210 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180626.2264 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180626.2295 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.2310 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180626.2326 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676066433967606c2235' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180626.2480 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.2499 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180626.2534 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180626.2545 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180626.2577 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180626.2588 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180626.2600 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180626.2612 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180626.2623 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676066433967606c2235',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180626.2829 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180626.2859 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.2876 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180626.2898 2gb0nl6v7g62s125nvvajvdfb5 Query : select 'normal' from dummy
20241216@180626.2930 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676066433967606c2235',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2488,101557,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180626.3178 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.3181 2gb0nl6v7g62s125nvvajvdfb5 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241216@180626.3203 2gb0nl6v7g62s125nvvajvdfb5 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'
20241216@180626.3217 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3251 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.3277 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3293 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.3303 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180626.3316 2gb0nl6v7g62s125nvvajvdfb5 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400467150a'
20241216@180626.3329 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3347 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.3360 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676069731367606c2251','aut676066433967606c2235' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180626.3365 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3378 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.3405 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676069731367606c2251',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676066433967606c2235' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180626.3653 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.3657 2gb0nl6v7g62s125nvvajvdfb5 Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20241216@180626.3676 2gb0nl6v7g62s125nvvajvdfb5 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'
20241216@180626.3690 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3706 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.3737 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3752 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.3762 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180626.3773 2gb0nl6v7g62s125nvvajvdfb5 Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20241216@180626.3787 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3824 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.3838 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676069002667606c225c','aut676066433967606c2235' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180626.3842 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.3976 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.4027 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676069002667606c225c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut676066433967606c2235' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241216@180626.4276 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.4279 2gb0nl6v7g62s125nvvajvdfb5 Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20241216@180626.4299 2gb0nl6v7g62s125nvvajvdfb5 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.1862.00.1'
20241216@180626.4421 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.4437 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.5663 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.5680 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.5689 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180626.5700 2gb0nl6v7g62s125nvvajvdfb5 Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20241216@180626.5724 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.5739 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.5750 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676060852667606c228b','aut676066433967606c2235' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180626.5756 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.5770 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.5870 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676060852667606c228b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut676066433967606c2235' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241216@180626.6123 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.6126 2gb0nl6v7g62s125nvvajvdfb5 Query : select st.usalote valor from st where st.ref = '324.1837.00.1'
20241216@180626.6149 2gb0nl6v7g62s125nvvajvdfb5 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.1837.00.1'
20241216@180626.6312 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6328 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.6354 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6369 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.6377 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180626.6390 2gb0nl6v7g62s125nvvajvdfb5 Query : select sestamp valor from se where ref ='324.1837.00.1' and lote = 'r2301207300a'
20241216@180626.6426 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6443 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.6454 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676064721067606c229c','aut676066433967606c2235' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180626.6459 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6493 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.6521 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676064721067606c229c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676066433967606c2235' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241216@180626.6739 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.6742 2gb0nl6v7g62s125nvvajvdfb5 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241216@180626.6763 2gb0nl6v7g62s125nvvajvdfb5 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.4320.00.1'
20241216@180626.6777 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6794 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.6820 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6835 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.6864 2gb0nl6v7g62s125nvvajvdfb5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180626.6876 2gb0nl6v7g62s125nvvajvdfb5 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240180'
20241216@180626.6889 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6903 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180626.6915 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676062196767606c22a8','aut676066433967606c2235' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180626.6919 2gb0nl6v7g62s125nvvajvdfb5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.6935 2gb0nl6v7g62s125nvvajvdfb5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180626.6963 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676062196767606c22a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676066433967606c2235' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241216@180626.7220 2gb0nl6v7g62s125nvvajvdfb5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676066433967606c2235','2408665','wait',39,'adm09112754980.682000002')
20241216@180626.7299 2gb0nl6v7g62s125nvvajvdfb5 Query : use flama_phc
20241216@180626.7303 2gb0nl6v7g62s125nvvajvdfb5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180626.7340 2gb0nl6v7g62s125nvvajvdfb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4019';
20241216@180626.7384 2gb0nl6v7g62s125nvvajvdfb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4019';
20241216@180626.7444 2gb0nl6v7g62s125nvvajvdfb5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4019';
20241216@180626.7500 2gb0nl6v7g62s125nvvajvdfb5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4019';
20241216@180626.8081 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180626.8094 sg4u0ij1ughj3i50ctutaaqq7r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180626.8174 sg4u0ij1ughj3i50ctutaaqq7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4020';
20241216@180626.8236 sg4u0ij1ughj3i50ctutaaqq7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4020';
20241216@180626.8302 sg4u0ij1ughj3i50ctutaaqq7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4020';
20241216@180626.8336 sg4u0ij1ughj3i50ctutaaqq7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4020';
20241216@180626.8394 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.8397 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180626.8473 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.8477 sg4u0ij1ughj3i50ctutaaqq7r Query : select no, estab,szadrsdesc from szadrs where u_coddest=9388
20241216@180626.8562 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180626.8596 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408666 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180626.8906 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.8909 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180626.8952 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.8956 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180626.8997 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.9000 sg4u0ij1ughj3i50ctutaaqq7r 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')
20241216@180626.9031 sg4u0ij1ughj3i50ctutaaqq7r 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
20241216@180626.9067 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.9070 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180626.9102 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.9105 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180626.9136 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.9139 sg4u0ij1ughj3i50ctutaaqq7r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180626.9180 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.9183 sg4u0ij1ughj3i50ctutaaqq7r Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- penafiel'
20241216@180626.9232 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180626.9235 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from td where ndoc = 39
20241216@180626.9250 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180626.9264 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.9280 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180626.9299 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.9314 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180626.9342 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.9377 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180626.9389 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180626.9646 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180626.9661 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.9680 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180626.9697 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676063667467606c22e5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180626.9849 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180626.9866 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180626.9899 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180626.9924 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180626.9936 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180626.9947 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180626.9959 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180626.9972 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180626.9983 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676063667467606c22e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180627.2190 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180627.2530 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.2690 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180627.5100 sg4u0ij1ughj3i50ctutaaqq7r Query : select 'normal' from dummy
20241216@180627.6760 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676063667467606c22e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2489,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180627.9970 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180627.1000 sg4u0ij1ughj3i50ctutaaqq7r Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180627.1023 sg4u0ij1ughj3i50ctutaaqq7r 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.1642.00.2'
20241216@180627.1036 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.1052 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180627.1077 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.1091 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180627.1099 sg4u0ij1ughj3i50ctutaaqq7r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180627.1111 sg4u0ij1ughj3i50ctutaaqq7r Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180627.1124 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.1138 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180627.1149 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676060947467606c231b','aut676063667467606c22e5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180627.1153 sg4u0ij1ughj3i50ctutaaqq7r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.1174 sg4u0ij1ughj3i50ctutaaqq7r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180627.1202 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676060947467606c231b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut676063667467606c22e5' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180627.1447 sg4u0ij1ughj3i50ctutaaqq7r Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676063667467606c22e5','2408666','wait',39,'adm09112754980.682000002')
20241216@180627.1541 sg4u0ij1ughj3i50ctutaaqq7r Query : use flama_phc
20241216@180627.1544 sg4u0ij1ughj3i50ctutaaqq7r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180627.1576 sg4u0ij1ughj3i50ctutaaqq7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4020';
20241216@180627.1620 sg4u0ij1ughj3i50ctutaaqq7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4020';
20241216@180627.1676 sg4u0ij1ughj3i50ctutaaqq7r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4020';
20241216@180627.1733 sg4u0ij1ughj3i50ctutaaqq7r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4020';
20241216@180627.2256 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180627.2268 5432vrt8q4pk6ru5ujcsvnn8le Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180627.2342 5432vrt8q4pk6ru5ujcsvnn8le Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4021';
20241216@180627.2415 5432vrt8q4pk6ru5ujcsvnn8le Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4021';
20241216@180627.2500 5432vrt8q4pk6ru5ujcsvnn8le Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4021';
20241216@180627.2534 5432vrt8q4pk6ru5ujcsvnn8le Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4021';
20241216@180627.2610 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.2613 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180627.2694 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.2697 5432vrt8q4pk6ru5ujcsvnn8le Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20241216@180627.2797 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180627.2823 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408667 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180627.3141 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3144 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180627.3183 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3205 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180627.3238 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3241 5432vrt8q4pk6ru5ujcsvnn8le 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')
20241216@180627.3269 5432vrt8q4pk6ru5ujcsvnn8le 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
20241216@180627.3308 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3311 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180627.3344 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3347 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180627.3399 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3402 5432vrt8q4pk6ru5ujcsvnn8le Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180627.3446 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3449 5432vrt8q4pk6ru5ujcsvnn8le Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - ovar'
20241216@180627.3499 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.3501 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from td where ndoc = 39
20241216@180627.3514 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180627.3542 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.3558 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180627.3577 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.3590 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180627.3632 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.3647 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180627.3661 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180627.3731 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180627.3744 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.3760 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180627.3775 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676067027367606c2359' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180627.3930 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.3950 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180627.3986 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180627.3999 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180627.4151 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180627.4164 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180627.4177 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180627.4188 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180627.4200 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676067027367606c2359',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180627.4405 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180627.4432 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.4448 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180627.4471 5432vrt8q4pk6ru5ujcsvnn8le Query : select 'normal' from dummy
20241216@180627.4485 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676067027367606c2359',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2490,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180627.4727 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.4730 5432vrt8q4pk6ru5ujcsvnn8le Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180627.4751 5432vrt8q4pk6ru5ujcsvnn8le 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.1642.00.2'
20241216@180627.4765 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.4783 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180627.4809 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.4823 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180627.4831 5432vrt8q4pk6ru5ujcsvnn8le Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180627.4843 5432vrt8q4pk6ru5ujcsvnn8le Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180627.4855 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.4870 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180627.4882 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676061491867606c2376','aut676067027367606c2359' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180627.4886 5432vrt8q4pk6ru5ujcsvnn8le Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.4900 5432vrt8q4pk6ru5ujcsvnn8le Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180627.4932 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676061491867606c2376',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut676067027367606c2359' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180627.5183 5432vrt8q4pk6ru5ujcsvnn8le Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676067027367606c2359','2408667','wait',39,'adm09112754980.682000002')
20241216@180627.5256 5432vrt8q4pk6ru5ujcsvnn8le Query : use flama_phc
20241216@180627.5259 5432vrt8q4pk6ru5ujcsvnn8le Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180627.5291 5432vrt8q4pk6ru5ujcsvnn8le Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4021';
20241216@180627.5342 5432vrt8q4pk6ru5ujcsvnn8le Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4021';
20241216@180627.5398 5432vrt8q4pk6ru5ujcsvnn8le Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4021';
20241216@180627.5432 5432vrt8q4pk6ru5ujcsvnn8le Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4021';
20241216@180627.5954 hf628bvbivfaibc9hgrh8quim9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180627.5966 hf628bvbivfaibc9hgrh8quim9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180627.6032 hf628bvbivfaibc9hgrh8quim9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4022';
20241216@180627.6093 hf628bvbivfaibc9hgrh8quim9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4022';
20241216@180627.6157 hf628bvbivfaibc9hgrh8quim9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4022';
20241216@180627.6187 hf628bvbivfaibc9hgrh8quim9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4022';
20241216@180627.6255 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6260 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180627.6325 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6328 hf628bvbivfaibc9hgrh8quim9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20241216@180627.6412 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180627.6432 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408668 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180627.6738 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6742 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180627.6776 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6779 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180627.6808 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6811 hf628bvbivfaibc9hgrh8quim9 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')
20241216@180627.6839 hf628bvbivfaibc9hgrh8quim9 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
20241216@180627.6908 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6929 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180627.6959 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.6962 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180627.7014 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.7017 hf628bvbivfaibc9hgrh8quim9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180627.7061 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.7064 hf628bvbivfaibc9hgrh8quim9 Query : select szadrsstamp valor from szadrs where szadrsdesc='jom - batalha'
20241216@180627.7113 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.7117 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from td where ndoc = 39
20241216@180627.7129 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180627.7144 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.7162 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180627.7181 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.7197 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180627.7227 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.7242 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180627.7255 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180627.8023 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180627.8604 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.8624 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180627.8640 hf628bvbivfaibc9hgrh8quim9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676063092267606c23b1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180627.8820 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.8836 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180627.8870 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180627.8882 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180627.8893 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180627.8907 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180627.8919 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180627.8934 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180627.8973 hf628bvbivfaibc9hgrh8quim9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676063092267606c23b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180627.9187 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180627.9242 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.9259 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180627.9281 hf628bvbivfaibc9hgrh8quim9 Query : select 'normal' from dummy
20241216@180627.9295 hf628bvbivfaibc9hgrh8quim9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676063092267606c23b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2491,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180627.9618 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180627.9621 hf628bvbivfaibc9hgrh8quim9 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180627.9643 hf628bvbivfaibc9hgrh8quim9 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.1642.00.2'
20241216@180627.9658 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.9728 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180627.9759 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.9777 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180627.9788 hf628bvbivfaibc9hgrh8quim9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180627.9802 hf628bvbivfaibc9hgrh8quim9 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180627.9829 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.9847 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180627.9860 hf628bvbivfaibc9hgrh8quim9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676065734567606c23ef','aut676063092267606c23b1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180627.9865 hf628bvbivfaibc9hgrh8quim9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180627.9900 hf628bvbivfaibc9hgrh8quim9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180627.9930 hf628bvbivfaibc9hgrh8quim9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676065734567606c23ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676063092267606c23b1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180628.1560 hf628bvbivfaibc9hgrh8quim9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676063092267606c23b1','2408668','wait',39,'adm09112754980.682000002')
20241216@180628.2590 hf628bvbivfaibc9hgrh8quim9 Query : use flama_phc
20241216@180628.2620 hf628bvbivfaibc9hgrh8quim9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180628.3020 hf628bvbivfaibc9hgrh8quim9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4022';
20241216@180628.3440 hf628bvbivfaibc9hgrh8quim9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4022';
20241216@180628.4000 hf628bvbivfaibc9hgrh8quim9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4022';
20241216@180628.4500 hf628bvbivfaibc9hgrh8quim9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4022';
20241216@180628.9660 l9i6j2j2ivokejhj75rudb86h9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180628.9780 l9i6j2j2ivokejhj75rudb86h9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180628.1061 l9i6j2j2ivokejhj75rudb86h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4023';
20241216@180628.1127 l9i6j2j2ivokejhj75rudb86h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4023';
20241216@180628.1200 l9i6j2j2ivokejhj75rudb86h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4023';
20241216@180628.1233 l9i6j2j2ivokejhj75rudb86h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4023';
20241216@180628.1299 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1303 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180628.1365 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1368 l9i6j2j2ivokejhj75rudb86h9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=812
20241216@180628.1457 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1642.00.2'
20241216@180628.1479 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408669 and bi.ref ='324.1642.00.2' and bi.lordem =1
20241216@180628.1780 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1784 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180628.1819 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1822 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180628.1852 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1855 l9i6j2j2ivokejhj75rudb86h9 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')
20241216@180628.1885 l9i6j2j2ivokejhj75rudb86h9 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
20241216@180628.1939 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1942 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180628.1983 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.1986 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180628.2016 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.2019 l9i6j2j2ivokejhj75rudb86h9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180628.2062 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.2065 l9i6j2j2ivokejhj75rudb86h9 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - santarem'
20241216@180628.2183 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.2186 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from td where ndoc = 39
20241216@180628.2198 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180628.2214 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.2231 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180628.2250 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.2265 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180628.2292 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.2308 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180628.2321 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180628.2376 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180628.2388 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.2402 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180628.2418 l9i6j2j2ivokejhj75rudb86h9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676068168167606c2438' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180628.2596 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.2614 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180628.2647 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180628.2681 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180628.2693 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180628.2705 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180628.2717 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180628.2748 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180628.2760 l9i6j2j2ivokejhj75rudb86h9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676068168167606c2438',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180628.2963 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180628.2991 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.3010 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180628.3032 l9i6j2j2ivokejhj75rudb86h9 Query : select 'normal' from dummy
20241216@180628.3049 l9i6j2j2ivokejhj75rudb86h9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676068168167606c2438',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2492,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180628.3290 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.3294 l9i6j2j2ivokejhj75rudb86h9 Query : select st.usalote valor from st where st.ref = '324.1642.00.2'
20241216@180628.3317 l9i6j2j2ivokejhj75rudb86h9 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.1642.00.2'
20241216@180628.3330 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.3346 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180628.3392 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.3408 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180628.3417 l9i6j2j2ivokejhj75rudb86h9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180628.3429 l9i6j2j2ivokejhj75rudb86h9 Query : select sestamp valor from se where ref ='324.1642.00.2' and lote = 'r2400725200a'
20241216@180628.3441 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.3463 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180628.3474 l9i6j2j2ivokejhj75rudb86h9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676064544267606c2454','aut676068168167606c2438' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180628.3480 l9i6j2j2ivokejhj75rudb86h9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.3496 l9i6j2j2ivokejhj75rudb86h9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180628.3528 l9i6j2j2ivokejhj75rudb86h9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676064544267606c2454',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut676068168167606c2438' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180628.3746 l9i6j2j2ivokejhj75rudb86h9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676068168167606c2438','2408669','wait',39,'adm09112754980.682000002')
20241216@180628.3843 l9i6j2j2ivokejhj75rudb86h9 Query : use flama_phc
20241216@180628.3846 l9i6j2j2ivokejhj75rudb86h9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180628.3877 l9i6j2j2ivokejhj75rudb86h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4023';
20241216@180628.3921 l9i6j2j2ivokejhj75rudb86h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4023';
20241216@180628.3978 l9i6j2j2ivokejhj75rudb86h9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4023';
20241216@180628.4017 l9i6j2j2ivokejhj75rudb86h9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4023';
20241216@180628.5713 ueoaukihhf99746tqu1fi94pva Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180628.5728 ueoaukihhf99746tqu1fi94pva Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180628.5816 ueoaukihhf99746tqu1fi94pva Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4024';
20241216@180628.5879 ueoaukihhf99746tqu1fi94pva Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4024';
20241216@180628.5947 ueoaukihhf99746tqu1fi94pva Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4024';
20241216@180628.5978 ueoaukihhf99746tqu1fi94pva Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4024';
20241216@180628.6049 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6053 ueoaukihhf99746tqu1fi94pva Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180628.6127 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6130 ueoaukihhf99746tqu1fi94pva Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20241216@180628.6213 ueoaukihhf99746tqu1fi94pva 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'
20241216@180628.6233 ueoaukihhf99746tqu1fi94pva Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408671 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241216@180628.6555 ueoaukihhf99746tqu1fi94pva 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'
20241216@180628.6577 ueoaukihhf99746tqu1fi94pva Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408671 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241216@180628.6594 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6598 ueoaukihhf99746tqu1fi94pva Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180628.6655 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6658 ueoaukihhf99746tqu1fi94pva Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180628.6688 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6691 ueoaukihhf99746tqu1fi94pva 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')
20241216@180628.6741 ueoaukihhf99746tqu1fi94pva 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
20241216@180628.6780 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6783 ueoaukihhf99746tqu1fi94pva Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180628.6831 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6834 ueoaukihhf99746tqu1fi94pva Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180628.6882 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6885 ueoaukihhf99746tqu1fi94pva Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180628.6925 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6928 ueoaukihhf99746tqu1fi94pva Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20241216@180628.6991 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.6994 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from td where ndoc = 39
20241216@180628.7007 ueoaukihhf99746tqu1fi94pva Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180628.7021 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.7038 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180628.7073 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.7088 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180628.7117 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.7132 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180628.7145 ueoaukihhf99746tqu1fi94pva Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180628.7204 ueoaukihhf99746tqu1fi94pva Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180628.7217 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.7234 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180628.7249 ueoaukihhf99746tqu1fi94pva Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676063644767606c24ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180628.7414 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.7430 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180628.7464 ueoaukihhf99746tqu1fi94pva Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180628.7476 ueoaukihhf99746tqu1fi94pva Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180628.7488 ueoaukihhf99746tqu1fi94pva Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180628.7502 ueoaukihhf99746tqu1fi94pva Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180628.7515 ueoaukihhf99746tqu1fi94pva Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180628.7528 ueoaukihhf99746tqu1fi94pva Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180628.7540 ueoaukihhf99746tqu1fi94pva Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676063644767606c24ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180628.7753 ueoaukihhf99746tqu1fi94pva Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180628.7801 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.7817 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180628.7839 ueoaukihhf99746tqu1fi94pva Query : select 'normal' from dummy
20241216@180628.7854 ueoaukihhf99746tqu1fi94pva Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676063644767606c24ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2493,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180628.8097 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.8100 ueoaukihhf99746tqu1fi94pva Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180628.8123 ueoaukihhf99746tqu1fi94pva 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'
20241216@180628.8137 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8152 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180628.8197 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8213 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180628.8222 ueoaukihhf99746tqu1fi94pva Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180628.8234 ueoaukihhf99746tqu1fi94pva Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2200210200a'
20241216@180628.8246 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8262 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180628.8274 ueoaukihhf99746tqu1fi94pva Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676065693567606c24c9','aut676063644767606c24ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180628.8278 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8293 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180628.8325 ueoaukihhf99746tqu1fi94pva Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676065693567606c24c9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676063644767606c24ae' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180628.8583 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.8588 ueoaukihhf99746tqu1fi94pva Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180628.8610 ueoaukihhf99746tqu1fi94pva 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'
20241216@180628.8625 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8643 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180628.8670 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8688 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180628.8697 ueoaukihhf99746tqu1fi94pva Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180628.8710 ueoaukihhf99746tqu1fi94pva Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241216@180628.8725 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8740 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180628.8752 ueoaukihhf99746tqu1fi94pva Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676065361267606c24d5','aut676063644767606c24ae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180628.8756 ueoaukihhf99746tqu1fi94pva Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180628.8771 ueoaukihhf99746tqu1fi94pva Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180628.8801 ueoaukihhf99746tqu1fi94pva Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676065361267606c24d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676063644767606c24ae' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241216@180628.9053 ueoaukihhf99746tqu1fi94pva Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676063644767606c24ae','2408671','wait',39,'adm09112754980.682000002')
20241216@180628.9128 ueoaukihhf99746tqu1fi94pva Query : use flama_phc
20241216@180628.9132 ueoaukihhf99746tqu1fi94pva Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180628.9166 ueoaukihhf99746tqu1fi94pva Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4024';
20241216@180628.9207 ueoaukihhf99746tqu1fi94pva Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4024';
20241216@180628.9260 ueoaukihhf99746tqu1fi94pva Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4024';
20241216@180628.9290 ueoaukihhf99746tqu1fi94pva Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4024';
20241216@180628.9858 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180628.9870 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180628.9944 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4025';
20241216@180629.9000 mcu9dnnggbfgbjr1sjm3rgl4sr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4025';
20241216@180629.9100 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4025';
20241216@180629.1430 mcu9dnnggbfgbjr1sjm3rgl4sr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4025';
20241216@180629.2110 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.2150 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180629.2970 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.3000 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select no, estab,szadrsdesc from szadrs where u_coddest=3304
20241216@180629.4200 mcu9dnnggbfgbjr1sjm3rgl4sr 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'
20241216@180629.4410 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408673 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241216@180629.7720 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.7750 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180629.8080 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.8110 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180629.8430 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.8460 mcu9dnnggbfgbjr1sjm3rgl4sr 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')
20241216@180629.8740 mcu9dnnggbfgbjr1sjm3rgl4sr 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
20241216@180629.9100 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.9130 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180629.9550 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.9580 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180629.9900 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.9930 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180629.1033 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.1036 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. - chaves'
20241216@180629.1084 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.1086 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from td where ndoc = 39
20241216@180629.1098 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180629.1113 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.1148 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180629.1167 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.1182 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180629.1211 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.1226 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180629.1241 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180629.1302 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180629.1315 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.1330 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180629.1346 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676064707767606c251e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180629.1501 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.1518 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180629.1551 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180629.1563 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180629.1575 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180629.1587 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180629.1599 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180629.1612 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180629.1624 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676064707767606c251e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180629.1851 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180629.1882 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.1899 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180629.1923 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 'normal' from dummy
20241216@180629.1939 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676064707767606c251e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2494,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180629.2183 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.2186 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180629.2208 mcu9dnnggbfgbjr1sjm3rgl4sr 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'
20241216@180629.2221 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.2238 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180629.2325 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.2340 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180629.2370 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180629.2382 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241216@180629.2395 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.2410 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180629.2422 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676063815167606c253a','aut676064707767606c251e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180629.2426 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.2441 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180629.2472 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676063815167606c253a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676064707767606c251e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180629.2692 mcu9dnnggbfgbjr1sjm3rgl4sr Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676064707767606c251e','2408673','wait',39,'adm09112754980.682000002')
20241216@180629.3069 mcu9dnnggbfgbjr1sjm3rgl4sr Query : use flama_phc
20241216@180629.3111 mcu9dnnggbfgbjr1sjm3rgl4sr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180629.3967 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4025';
20241216@180629.4010 mcu9dnnggbfgbjr1sjm3rgl4sr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4025';
20241216@180629.4091 mcu9dnnggbfgbjr1sjm3rgl4sr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4025';
20241216@180629.4123 mcu9dnnggbfgbjr1sjm3rgl4sr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4025';
20241216@180629.4651 9f9caslplrq76ph2d26fp4kv8b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180629.4672 9f9caslplrq76ph2d26fp4kv8b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180629.4757 9f9caslplrq76ph2d26fp4kv8b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4026';
20241216@180629.4821 9f9caslplrq76ph2d26fp4kv8b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4026';
20241216@180629.4888 9f9caslplrq76ph2d26fp4kv8b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4026';
20241216@180629.4923 9f9caslplrq76ph2d26fp4kv8b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4026';
20241216@180629.4984 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.4988 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180629.5073 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5076 9f9caslplrq76ph2d26fp4kv8b Query : select no, estab,szadrsdesc from szadrs where u_coddest=8301
20241216@180629.5166 9f9caslplrq76ph2d26fp4kv8b 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'
20241216@180629.5191 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408674 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241216@180629.5570 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5573 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180629.5608 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5612 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180629.5643 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5646 9f9caslplrq76ph2d26fp4kv8b 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')
20241216@180629.5681 9f9caslplrq76ph2d26fp4kv8b 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
20241216@180629.5717 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5720 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20241216@180629.5751 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5755 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180629.5786 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5789 9f9caslplrq76ph2d26fp4kv8b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180629.5847 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5850 9f9caslplrq76ph2d26fp4kv8b Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - alverca'
20241216@180629.5897 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.5900 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from td where ndoc = 39
20241216@180629.5913 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180629.5927 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.5943 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180629.5967 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.5983 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180629.6012 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.6028 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180629.6041 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180629.6099 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180629.6112 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.6128 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180629.6144 9f9caslplrq76ph2d26fp4kv8b Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676060195967606c2593' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180629.6296 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.6332 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180629.6368 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180629.6380 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180629.6392 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180629.6404 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180629.6418 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180629.6432 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180629.6443 9f9caslplrq76ph2d26fp4kv8b Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676060195967606c2593',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180629.6650 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180629.6679 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.6695 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180629.6717 9f9caslplrq76ph2d26fp4kv8b Query : select 'normal' from dummy
20241216@180629.6733 9f9caslplrq76ph2d26fp4kv8b Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676060195967606c2593',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2495,101621,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180629.6999 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.7003 9f9caslplrq76ph2d26fp4kv8b Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180629.7026 9f9caslplrq76ph2d26fp4kv8b 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'
20241216@180629.7040 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.7058 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180629.7085 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.7099 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180629.7108 9f9caslplrq76ph2d26fp4kv8b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180629.7120 9f9caslplrq76ph2d26fp4kv8b Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241216@180629.7134 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.7169 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180629.7181 9f9caslplrq76ph2d26fp4kv8b Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676066968567606c25ae','aut676060195967606c2593' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180629.7185 9f9caslplrq76ph2d26fp4kv8b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180629.7201 9f9caslplrq76ph2d26fp4kv8b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180629.7230 9f9caslplrq76ph2d26fp4kv8b Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676066968567606c25ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676060195967606c2593' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180629.7443 9f9caslplrq76ph2d26fp4kv8b Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676060195967606c2593','2408674','wait',39,'adm09112754980.682000002')
20241216@180629.7586 9f9caslplrq76ph2d26fp4kv8b Query : use flama_phc
20241216@180629.7590 9f9caslplrq76ph2d26fp4kv8b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180629.7636 9f9caslplrq76ph2d26fp4kv8b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4026';
20241216@180629.7685 9f9caslplrq76ph2d26fp4kv8b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4026';
20241216@180629.7740 9f9caslplrq76ph2d26fp4kv8b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4026';
20241216@180629.7773 9f9caslplrq76ph2d26fp4kv8b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4026';
20241216@180629.8294 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180629.8313 etc9bh2ui30n0r97c70gr6fcn4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180629.8401 etc9bh2ui30n0r97c70gr6fcn4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4027';
20241216@180629.8480 etc9bh2ui30n0r97c70gr6fcn4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4027';
20241216@180629.8559 etc9bh2ui30n0r97c70gr6fcn4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4027';
20241216@180629.8610 etc9bh2ui30n0r97c70gr6fcn4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4027';
20241216@180629.8670 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180629.8673 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180629.8738 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180629.8741 etc9bh2ui30n0r97c70gr6fcn4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2136
20241216@180629.8844 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180629.8865 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408675 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241216@180629.9178 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180629.9199 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408675 and bi.ref ='324.2335.00.1' and bi.lordem =2
20241216@180629.9634 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180629.9656 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408675 and bi.ref ='324.2340.00.1' and bi.lordem =3
20241216@180629.9973 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180630.3000 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408675 and bi.ref ='324.2340.00.1' and bi.lordem =3
20241216@180630.4400 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.4700 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180630.8200 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.8500 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180630.1160 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.1190 etc9bh2ui30n0r97c70gr6fcn4 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')
20241216@180630.1490 etc9bh2ui30n0r97c70gr6fcn4 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
20241216@180630.1940 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.1970 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 ~inactivo valor from cl where no = '102415' and estab = 0 order by inactivo desc
20241216@180630.3060 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.3110 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180630.3430 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.3680 etc9bh2ui30n0r97c70gr6fcn4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180630.4110 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.4140 etc9bh2ui30n0r97c70gr6fcn4 Query : select szadrsstamp valor from szadrs where szadrsdesc='filipe ventura electrodomÉsticos unipessoal lda'
20241216@180630.4650 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.4690 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from td where ndoc = 39
20241216@180630.4820 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180630.4960 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.5140 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180630.5330 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.5480 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180630.5760 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.5910 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180630.6040 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180630.6760 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180630.6890 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.7050 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180630.7200 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676060959667606c260e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180630.8700 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.8880 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180630.9220 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180630.9340 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180630.9470 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180630.1019 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180630.1031 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180630.1066 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180630.1079 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676060959667606c260e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180630.1289 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180630.1321 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.1339 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180630.1362 etc9bh2ui30n0r97c70gr6fcn4 Query : select 'normal' from dummy
20241216@180630.1395 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676060959667606c260e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2496,102415,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180630.1642 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.1645 etc9bh2ui30n0r97c70gr6fcn4 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241216@180630.1668 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180630.1682 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.1728 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.1755 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.1772 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.1783 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180630.2229 etc9bh2ui30n0r97c70gr6fcn4 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241216@180630.2605 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3009 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.3023 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676066889267606c263f','aut676060959667606c260e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180630.3028 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3043 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.3072 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676066889267606c263f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut676060959667606c260e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180630.3339 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.3343 etc9bh2ui30n0r97c70gr6fcn4 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241216@180630.3363 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180630.3377 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3393 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.3423 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3437 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.3445 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180630.3460 etc9bh2ui30n0r97c70gr6fcn4 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400467150a'
20241216@180630.3488 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3503 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.3515 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676064786667606c2655','aut676060959667606c260e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180630.3520 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3534 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.3562 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676064786667606c2655',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676060959667606c260e' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241216@180630.3777 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.3780 etc9bh2ui30n0r97c70gr6fcn4 Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20241216@180630.3799 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180630.3813 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3829 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.3870 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3884 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.3909 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180630.3921 etc9bh2ui30n0r97c70gr6fcn4 Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20241216@180630.3937 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3957 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.3970 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676069002067606c2660','aut676060959667606c260e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180630.3975 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.3990 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.4035 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676069002067606c2660',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut676060959667606c260e' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241216@180630.4251 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.4255 etc9bh2ui30n0r97c70gr6fcn4 Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20241216@180630.4278 etc9bh2ui30n0r97c70gr6fcn4 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'
20241216@180630.4292 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.4308 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.4334 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.4366 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.4375 etc9bh2ui30n0r97c70gr6fcn4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180630.4387 etc9bh2ui30n0r97c70gr6fcn4 Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20241216@180630.4400 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.4415 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.4465 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676061801567606c266b','aut676060959667606c260e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180630.4510 etc9bh2ui30n0r97c70gr6fcn4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.4584 etc9bh2ui30n0r97c70gr6fcn4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.4617 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676061801567606c266b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut676060959667606c260e' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241216@180630.4885 etc9bh2ui30n0r97c70gr6fcn4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676060959667606c260e','2408675','wait',39,'adm09112754980.682000002')
20241216@180630.4980 etc9bh2ui30n0r97c70gr6fcn4 Query : use flama_phc
20241216@180630.4984 etc9bh2ui30n0r97c70gr6fcn4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180630.5017 etc9bh2ui30n0r97c70gr6fcn4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4027';
20241216@180630.5059 etc9bh2ui30n0r97c70gr6fcn4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4027';
20241216@180630.5137 etc9bh2ui30n0r97c70gr6fcn4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4027';
20241216@180630.5169 etc9bh2ui30n0r97c70gr6fcn4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4027';
20241216@180630.5709 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@180630.5722 l78ci8ahu6mfi3hrvvjisgrso0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@180630.5789 l78ci8ahu6mfi3hrvvjisgrso0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4028';
20241216@180630.5873 l78ci8ahu6mfi3hrvvjisgrso0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4028';
20241216@180630.5943 l78ci8ahu6mfi3hrvvjisgrso0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4028';
20241216@180630.6003 l78ci8ahu6mfi3hrvvjisgrso0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4028';
20241216@180630.6070 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6074 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241216@180630.6143 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6147 l78ci8ahu6mfi3hrvvjisgrso0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20241216@180630.6196 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20241216@180630.6340 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408676 and bi.ref ='324.1646.00.1' and bi.lordem =1
20241216@180630.6691 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6695 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241216@180630.6737 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6740 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 1 valor from td where td.ndoc = 39
20241216@180630.6777 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6780 l78ci8ahu6mfi3hrvvjisgrso0 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')
20241216@180630.6811 l78ci8ahu6mfi3hrvvjisgrso0 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
20241216@180630.6851 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6855 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 ~inactivo valor from cl where no = '102943' and estab = 0 order by inactivo desc
20241216@180630.6886 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6889 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241216@180630.6925 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6928 l78ci8ahu6mfi3hrvvjisgrso0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241216@180630.6978 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.6981 l78ci8ahu6mfi3hrvvjisgrso0 Query : select szadrsstamp valor from szadrs where szadrsdesc='pll-plataformalogistica lisboa norte'
20241216@180630.7034 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.7037 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from td where ndoc = 39
20241216@180630.7051 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241216@180630.7068 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.7086 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180630.7110 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.7146 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180630.7236 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.7273 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180630.7288 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180630.7344 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241216@180630.7360 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.7379 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241216@180630.7397 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676064176867606c26b1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241216@180630.7547 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.7639 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241216@180630.7685 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241216@180630.7700 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241216@180630.7714 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241216@180630.7728 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241216@180630.7742 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241216@180630.7757 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241216@180630.7790 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676064176867606c26b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241216@180630.8023 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 fno valor from wsftdata order by fno desc
20241216@180630.8055 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.8079 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241216@180630.8108 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 'normal' from dummy
20241216@180630.8127 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676064176867606c26b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2497,102943,0,'2024-12-16',39,'euro',0,0,2024 ,?,?)
20241216@180630.8455 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.8458 l78ci8ahu6mfi3hrvvjisgrso0 Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20241216@180630.8481 l78ci8ahu6mfi3hrvvjisgrso0 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.1646.00.1'
20241216@180630.8608 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.8624 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.8650 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.8665 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.8674 l78ci8ahu6mfi3hrvvjisgrso0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241216@180630.8687 l78ci8ahu6mfi3hrvvjisgrso0 Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20241216@180630.8700 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.8715 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241216@180630.8726 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676061536667606c26d4','aut676064176867606c26b1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241216@180630.8730 l78ci8ahu6mfi3hrvvjisgrso0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241216@180630.8745 l78ci8ahu6mfi3hrvvjisgrso0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241216@180630.8773 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut676061536667606c26d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut676064176867606c26b1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241216@180630.9013 l78ci8ahu6mfi3hrvvjisgrso0 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676064176867606c26b1','2408676','wait',39,'adm09112754980.682000002')
20241216@180630.9097 l78ci8ahu6mfi3hrvvjisgrso0 Query : use flama_phc
20241216@180630.9101 l78ci8ahu6mfi3hrvvjisgrso0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241216@180630.9138 l78ci8ahu6mfi3hrvvjisgrso0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4028';
20241216@180630.9206 l78ci8ahu6mfi3hrvvjisgrso0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4028';
20241216@180630.9260 l78ci8ahu6mfi3hrvvjisgrso0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4028';
20241216@180630.9294 l78ci8ahu6mfi3hrvvjisgrso0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4028';

20241216@204053.7054 rgr2j0gt731jnl3vike2ja8juq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4029';
20241216@204053.7173 rgr2j0gt731jnl3vike2ja8juq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4029';
20241216@204053.7228 rgr2j0gt731jnl3vike2ja8juq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4029';
20241216@204053.8287 i964olgnl4sr8npv3uvs1hdm8a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@204053.8308 i964olgnl4sr8npv3uvs1hdm8a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@204053.8413 i964olgnl4sr8npv3uvs1hdm8a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4030';
20241216@204053.8533 i964olgnl4sr8npv3uvs1hdm8a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4030';
20241216@204053.8658 i964olgnl4sr8npv3uvs1hdm8a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4030';
20241216@204053.8715 i964olgnl4sr8npv3uvs1hdm8a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4030';
20241216@204133.6840 r7ruvcik5vkfj5tn5kjbmoc44a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241216@204133.7430 r7ruvcik5vkfj5tn5kjbmoc44a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241216@204133.9080 r7ruvcik5vkfj5tn5kjbmoc44a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4031';
20241216@204133.9920 r7ruvcik5vkfj5tn5kjbmoc44a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4031';
20241216@204133.1190 r7ruvcik5vkfj5tn5kjbmoc44a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4031';
20241216@204133.1255 r7ruvcik5vkfj5tn5kjbmoc44a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4031';

20241217@122424.8420 okio0l78eu7f7j5nbmm09rh3r3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4032';
20241217@122424.9680 okio0l78eu7f7j5nbmm09rh3r3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4032';
20241217@122424.1024 okio0l78eu7f7j5nbmm09rh3r3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4032';
20241217@122424.1164 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.1168 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@122424.1519 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.1526 okio0l78eu7f7j5nbmm09rh3r3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241217@122424.1717 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2412 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2441 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2465 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2492 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2517 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2540 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2561 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2583 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241217@122424.2606 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.2611 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@122424.2816 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.2820 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 1 valor from td where td.ndoc = 39
20241217@122424.2903 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.2907 okio0l78eu7f7j5nbmm09rh3r3 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')
20241217@122424.2987 okio0l78eu7f7j5nbmm09rh3r3 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
20241217@122424.3124 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.3128 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@122424.3237 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.3241 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@122424.3320 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.3323 okio0l78eu7f7j5nbmm09rh3r3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@122424.3393 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.3396 okio0l78eu7f7j5nbmm09rh3r3 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241217@122424.3449 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.3452 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from td where ndoc = 39
20241217@122424.3521 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@122424.3614 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.3971 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@122424.4053 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.4070 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@122424.4103 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.4119 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@122424.4134 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@122424.4294 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@122424.4380 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.4400 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@122424.4449 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@122424.4773 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.4793 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@122424.4831 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@122424.5247 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@122424.5358 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@122424.5436 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@122424.5512 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@122424.5591 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@122424.5677 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut676169079067616d7864',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@122424.6317 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 fno valor from wsftdata order by fno desc
20241217@122424.6414 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.6433 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@122424.6460 okio0l78eu7f7j5nbmm09rh3r3 Query : select 'normal' from dummy
20241217@122424.6514 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut676169079067616d7864',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2498,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@122424.6991 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122424.6995 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122424.7128 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122424.7344 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.7370 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122424.7418 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.8380 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122424.8656 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122424.8700 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122424.8755 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.8773 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122424.8787 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676169597867616d78d5','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122424.8855 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122424.8873 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122424.8908 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676169597867616d78d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,10000,?,?,?,?)
20241217@122425.2500 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4300 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.8200 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1000 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1100 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.1250 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1420 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1570 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676162004367616d7903','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.1620 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1790 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.2170 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676162004367616d7903',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,20000,?,?,?)
20241217@122425.4720 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.4750 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.4960 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.5120 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.5290 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.5560 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.5720 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.5810 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.5950 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.6090 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.6270 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.6390 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676161122167616d790e','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.6440 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.6600 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.6930 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676161122167616d790e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,40000,?,?,?,?)
20241217@122425.9770 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.9970 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.1032 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1049 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1061 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.1075 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1090 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1106 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676168003267616d791a','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.1110 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1126 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.1154 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676168003267616d791a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,50000,?,?,?)
20241217@122425.1399 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.1402 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.1424 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.1438 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1456 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.1482 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1499 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1507 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.1521 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.1538 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1557 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1568 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676160932467616d7925','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.1573 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1588 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.1616 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676160932467616d7925',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,70000,?,?,?,?)
20241217@122425.1900 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1917 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.1942 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.1967 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.1976 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.1994 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2011 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.2024 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676168516867616d7930','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.2029 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2045 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.2076 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676168516867616d7930',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,80000,?,?,?)
20241217@122425.2332 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.2336 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.2356 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.2372 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2391 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.2447 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2463 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.2472 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.2484 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.2498 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2611 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.2630 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676163507267616d793c','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.2636 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2654 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.2693 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676163507267616d793c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,100000,?,?,?,?)
20241217@122425.2980 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.2999 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.3028 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3045 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.3054 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.3068 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3085 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.3097 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676168676967616d794a','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.3101 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3116 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.3150 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676168676967616d794a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,110000,?,?,?)
20241217@122425.3384 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.3387 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.3408 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.3423 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3442 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.3473 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3491 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.3505 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.3521 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.3537 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3553 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.3566 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676168455767616d7956','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.3570 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3588 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.3623 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676168455767616d7956',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,130000,?,?,?,?)
20241217@122425.3864 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3886 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.3917 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3933 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.3942 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.3956 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.3972 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.3985 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676160911367616d7960','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.3990 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4007 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.4041 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676160911367616d7960',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,140000,?,?,?)
20241217@122425.4303 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.4306 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.4328 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.4343 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4360 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.4391 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4408 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.4419 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.4432 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.4446 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4463 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.4477 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676160316967616d796c','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.4483 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4499 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.4532 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676160316967616d796c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,160000,?,?,?,?)
20241217@122425.4780 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4801 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.4835 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4853 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.4865 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.4882 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4900 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.4915 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676160618467616d7977','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.4920 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.4936 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.4965 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676160618467616d7977',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,170000,?,?,?)
20241217@122425.5199 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.5203 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.5225 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.5239 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.5256 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.5293 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.5309 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.5318 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.5330 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.5355 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.5373 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.5387 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676169342067616d7982','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.5392 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.5409 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.5442 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676169342067616d7982',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,190000,?,?,?,?)
20241217@122425.6922 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7006 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.7037 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7056 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.7068 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.7082 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7100 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.7113 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676163423867616d79ac','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.7118 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7132 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.7168 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676163423867616d79ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,200000,?,?,?)
20241217@122425.7417 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.7421 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.7449 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.7468 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7486 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.7518 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7534 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.7544 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.7558 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.7575 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7592 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.7606 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676167732967616d79b8','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.7611 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.7630 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.7666 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676167732967616d79b8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,220000,?,?,?,?)
20241217@122425.8141 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8159 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.8186 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8200 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.8209 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.8222 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8238 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.8250 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676165592767616d79c8','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.8254 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8270 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.8306 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676165592767616d79c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,230000,?,?,?)
20241217@122425.8578 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.8583 okio0l78eu7f7j5nbmm09rh3r3 Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241217@122425.8609 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241217@122425.8630 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8648 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.8681 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8699 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.8711 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.8727 okio0l78eu7f7j5nbmm09rh3r3 Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400922300a'
20241217@122425.8746 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8766 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.8780 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676163219067616d79d5','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.8786 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.8805 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.8841 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut676163219067616d79d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut676169079067616d7864' ,0,0 ,2,23.00,250000,?,?,?,?)
20241217@122425.9104 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.9123 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.9151 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.9169 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.9179 okio0l78eu7f7j5nbmm09rh3r3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@122425.9194 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.9214 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@122425.9227 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut676163648867616d79e0','aut676169079067616d7864' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@122425.9233 okio0l78eu7f7j5nbmm09rh3r3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@122425.9253 okio0l78eu7f7j5nbmm09rh3r3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@122425.9289 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut676163648867616d79e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut676169079067616d7864' ,0,0 ,2,23.00,260000,?,?,?)
20241217@122425.9536 okio0l78eu7f7j5nbmm09rh3r3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut676169079067616d7864','24014140','wait',39,'adm09112754980.682000002')
20241217@122425.9626 okio0l78eu7f7j5nbmm09rh3r3 Query : use flama_phc
20241217@122425.9629 okio0l78eu7f7j5nbmm09rh3r3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@122425.9657 okio0l78eu7f7j5nbmm09rh3r3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4032';
20241217@122425.9703 okio0l78eu7f7j5nbmm09rh3r3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4032';
20241217@122425.9753 okio0l78eu7f7j5nbmm09rh3r3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4032';
20241217@122425.9789 okio0l78eu7f7j5nbmm09rh3r3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4032';

20241217@145418.4390 pcl4pdgihb9vkpr6jed5k6422c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4033';
20241217@145418.5340 pcl4pdgihb9vkpr6jed5k6422c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4033';
20241217@145418.5810 pcl4pdgihb9vkpr6jed5k6422c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4033';
20241217@145418.6400 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145418.6440 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145418.7150 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20241217@145418.8230 pcl4pdgihb9vkpr6jed5k6422c 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 = 2401098 and bi.ref ='327.8261.00.1' and bi.lordem =20000
20241217@145418.1853 pcl4pdgihb9vkpr6jed5k6422c 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 = 'cps24091753710,181000002 ' 
20241217@145418.2695 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145418.2698 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 1 valor from ts where ts.ndos = 61
20241217@145418.2780 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145418.2784 pcl4pdgihb9vkpr6jed5k6422c 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')
20241217@145418.2829 pcl4pdgihb9vkpr6jed5k6422c 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
20241217@145418.2962 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145418.2967 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 ~inactivo valor from fl where no = '202231' and estab = 00 order by inactivo desc
20241217@145418.3055 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 cambioinvertido valor from cb where moeda = 'eur ' order by data desc
20241217@145418.3137 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145418.3140 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from ts where ndos = 61
20241217@145418.3203 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145418.3232 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241217@145418.3272 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145418.3289 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241217@145418.3304 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145418.3320 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241217@145418.3330 pcl4pdgihb9vkpr6jed5k6422c 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
20241217@145418.3426 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241217@145418.3507 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241217@145418.3529 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145418.3535 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202231' and estab=00
20241217@145418.3611 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145418.3628 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241217@145418.3649 pcl4pdgihb9vkpr6jed5k6422c Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67619076516761909a56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241217@145418.3715 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145418.3741 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241217@145418.3754 pcl4pdgihb9vkpr6jed5k6422c Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67619076516761909a56','--','bo',0 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241217@145418.3928 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145418.3950 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241217@145418.3964 pcl4pdgihb9vkpr6jed5k6422c 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 ('aut67619076516761909a56','guia r. fornecedor','2024-12-17',61,2403921,?,?,?,?,?,?,?,?,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')
20241217@145419.2154 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145419.2157 pcl4pdgihb9vkpr6jed5k6422c Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20241217@145419.2211 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8261.00.1'
20241217@145419.2360 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145419.2419 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241217@145419.2435 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145419.2493 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241217@145419.2504 pcl4pdgihb9vkpr6jed5k6422c Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2401098200a'
20241217@145419.2529 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145419.2546 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241217@145419.2558 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145419.2578 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241217@145419.2591 pcl4pdgihb9vkpr6jed5k6422c Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67619606566761909b3e',?,?,'20241217',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241217@145419.3528 pcl4pdgihb9vkpr6jed5k6422c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145419.3551 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145419.3591 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241217@145419.3605 pcl4pdgihb9vkpr6jed5k6422c Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67619318596761909b56','aut67619076516761909a56',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 = 'aut67619076516761909a56'
20241217@145419.3770 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145419.3796 pcl4pdgihb9vkpr6jed5k6422c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241217@145419.3835 pcl4pdgihb9vkpr6jed5k6422c 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 'aut67619318596761909b56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 162, 162*.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 ,136.62,136.62*200.48,136.62,136.62*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,136.62*162,136.62*162*200.48 ,148.906000,148.906000*200.48 ,148.906000,148.906000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,136.62,136.62*200.48,136.62*162,136.62*162*200.48,'cps24091753710,181000002 ',136.62,136.62*162,136.62,136.62*162,?,?,?,4 from bo bo where bo.bostamp = 'aut67619076516761909a56'
20241217@145431.2900 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145431.2905 pcl4pdgihb9vkpr6jed5k6422c Query : declare @bostamp varchar(25) = 'aut67619076516761909a56' ,@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 
20241217@145442.9040 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145442.9043 pcl4pdgihb9vkpr6jed5k6422c Query : select 1 valor from bo where bo.bostamp = 'aut67619076516761909a56'
20241217@145442.9122 pcl4pdgihb9vkpr6jed5k6422c 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) = 'aut67619076516761909a56' 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 
20241217@145444.7856 pcl4pdgihb9vkpr6jed5k6422c Query : use flama_phc
20241217@145444.7860 pcl4pdgihb9vkpr6jed5k6422c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145444.7986 pcl4pdgihb9vkpr6jed5k6422c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4033';
20241217@145444.8160 pcl4pdgihb9vkpr6jed5k6422c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4033';
20241217@145444.8832 mto0mu3ockbju32eokgmdpbehj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145444.8844 mto0mu3ockbju32eokgmdpbehj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145444.8917 mto0mu3ockbju32eokgmdpbehj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4034';
20241217@145444.8987 mto0mu3ockbju32eokgmdpbehj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4034';
20241217@145444.9059 mto0mu3ockbju32eokgmdpbehj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4034';
20241217@145444.9092 mto0mu3ockbju32eokgmdpbehj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4034';
20241217@145444.9153 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145444.9157 mto0mu3ockbju32eokgmdpbehj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145444.9233 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145444.9237 mto0mu3ockbju32eokgmdpbehj Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241217@145444.9301 mto0mu3ockbju32eokgmdpbehj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.595.00.01'
20241217@145444.9464 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408639 and bi.ref ='326.595.00.01' and bi.lordem =1
20241217@145444.9822 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145444.9826 mto0mu3ockbju32eokgmdpbehj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145444.9866 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145444.9869 mto0mu3ockbju32eokgmdpbehj Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145444.9919 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145444.9922 mto0mu3ockbju32eokgmdpbehj 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')
20241217@145444.9957 mto0mu3ockbju32eokgmdpbehj 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
20241217@145445.6000 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.1000 mto0mu3ockbju32eokgmdpbehj Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145445.5100 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.5500 mto0mu3ockbju32eokgmdpbehj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145445.1020 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.1060 mto0mu3ockbju32eokgmdpbehj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145445.1560 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.1600 mto0mu3ockbju32eokgmdpbehj Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241217@145445.2130 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.2160 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from td where ndoc = 39
20241217@145445.2350 mto0mu3ockbju32eokgmdpbehj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145445.2550 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.2730 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145445.2930 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.3070 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145445.3380 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.3520 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145445.3660 mto0mu3ockbju32eokgmdpbehj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145445.4370 mto0mu3ockbju32eokgmdpbehj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145445.4730 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.4930 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145445.5120 mto0mu3ockbju32eokgmdpbehj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761971257676190b508' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145445.8180 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.8400 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145445.8790 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145445.8910 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145445.9050 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145445.9200 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145445.9350 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145445.9500 mto0mu3ockbju32eokgmdpbehj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145445.9630 mto0mu3ockbju32eokgmdpbehj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761971257676190b508',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145445.2135 mto0mu3ockbju32eokgmdpbehj Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145445.2228 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.2260 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145445.2285 mto0mu3ockbju32eokgmdpbehj Query : select 'normal' from dummy
20241217@145445.2319 mto0mu3ockbju32eokgmdpbehj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761971257676190b508',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2499,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145445.3121 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.3124 mto0mu3ockbju32eokgmdpbehj Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20241217@145445.3151 mto0mu3ockbju32eokgmdpbehj 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 = '326.595.00.01'
20241217@145445.3289 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.3307 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145445.3337 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.3354 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145445.3371 mto0mu3ockbju32eokgmdpbehj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145445.3385 mto0mu3ockbju32eokgmdpbehj Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2400411200a'
20241217@145445.3406 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.3422 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145445.3435 mto0mu3ockbju32eokgmdpbehj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761962187676190b553','aut6761971257676190b508' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145445.3455 mto0mu3ockbju32eokgmdpbehj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.3475 mto0mu3ockbju32eokgmdpbehj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145445.3507 mto0mu3ockbju32eokgmdpbehj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761962187676190b553',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6761971257676190b508' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145445.3924 mto0mu3ockbju32eokgmdpbehj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761971257676190b508','2408639','wait',39,'adm09112754980.682000002')
20241217@145445.4014 mto0mu3ockbju32eokgmdpbehj Query : use flama_phc
20241217@145445.4018 mto0mu3ockbju32eokgmdpbehj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145445.4049 mto0mu3ockbju32eokgmdpbehj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4034';
20241217@145445.4097 mto0mu3ockbju32eokgmdpbehj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4034';
20241217@145445.4155 mto0mu3ockbju32eokgmdpbehj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4034';
20241217@145445.4190 mto0mu3ockbju32eokgmdpbehj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4034';
20241217@145445.4733 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145445.4743 58lqp68pd7dfb3p2su53j2vdo7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145445.4815 58lqp68pd7dfb3p2su53j2vdo7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4035';
20241217@145445.4898 58lqp68pd7dfb3p2su53j2vdo7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4035';
20241217@145445.4970 58lqp68pd7dfb3p2su53j2vdo7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4035';
20241217@145445.5016 58lqp68pd7dfb3p2su53j2vdo7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4035';
20241217@145445.5077 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.5080 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145445.5143 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.5146 58lqp68pd7dfb3p2su53j2vdo7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20241217@145445.5248 58lqp68pd7dfb3p2su53j2vdo7 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'
20241217@145445.5426 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408644 and bi.ref ='304.421.00.04' and bi.lordem =1
20241217@145445.5777 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20241217@145445.7032 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408644 and bi.ref ='324.4960.00.1' and bi.lordem =2
20241217@145445.7360 58lqp68pd7dfb3p2su53j2vdo7 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'
20241217@145445.7501 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408644 and bi.ref ='324.2232.00.1' and bi.lordem =3
20241217@145445.7852 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.7856 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145445.7896 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.7900 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145445.7938 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.7941 58lqp68pd7dfb3p2su53j2vdo7 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')
20241217@145445.7970 58lqp68pd7dfb3p2su53j2vdo7 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
20241217@145445.8006 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.8010 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241217@145445.8118 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.8121 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145445.8225 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.8268 58lqp68pd7dfb3p2su53j2vdo7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145445.8383 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.8387 58lqp68pd7dfb3p2su53j2vdo7 Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20241217@145445.8436 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.8439 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from td where ndoc = 39
20241217@145445.8453 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145445.8472 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.8495 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145445.8519 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.8539 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145445.8575 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.8591 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145445.8605 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145445.8664 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145445.8679 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.8695 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145445.8712 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761943017676190b5d2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145445.8876 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.8895 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145445.8929 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145445.8942 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145445.8957 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145445.8969 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145445.8981 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145445.8992 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145445.9003 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761943017676190b5d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145445.9223 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145445.9254 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.9272 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145445.9295 58lqp68pd7dfb3p2su53j2vdo7 Query : select 'normal' from dummy
20241217@145445.9311 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761943017676190b5d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2500,101900,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145445.9619 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145445.9622 58lqp68pd7dfb3p2su53j2vdo7 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241217@145445.9649 58lqp68pd7dfb3p2su53j2vdo7 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'
20241217@145445.9780 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.9797 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145445.9826 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.9841 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145445.9851 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145445.9865 58lqp68pd7dfb3p2su53j2vdo7 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241670'
20241217@145445.9902 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.9918 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145445.9931 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761938884676190b5f1','aut6761943017676190b5d2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145445.9936 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145445.9952 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145445.9983 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761938884676190b5f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut6761943017676190b5d2' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145446.2370 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.2550 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.2850 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.3010 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.3110 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145446.3250 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.3540 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.5750 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761942032676190b607','aut6761943017676190b5d2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145446.6080 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7560 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.8350 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6761942032676190b607',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6761943017676190b5d2' ,0,0 ,2,23.00,20000,?,?,?)
20241217@145446.1094 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145446.1098 58lqp68pd7dfb3p2su53j2vdo7 Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20241217@145446.1122 58lqp68pd7dfb3p2su53j2vdo7 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.4960.00.1'
20241217@145446.1241 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.1258 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.1285 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.1300 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.1309 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145446.1321 58lqp68pd7dfb3p2su53j2vdo7 Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20241217@145446.1339 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.1355 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.1371 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761971657676190b620','aut6761943017676190b5d2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145446.1376 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.1656 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.1866 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761971657676190b620',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut6761943017676190b5d2' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241217@145446.2265 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145446.2333 58lqp68pd7dfb3p2su53j2vdo7 Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241217@145446.2384 58lqp68pd7dfb3p2su53j2vdo7 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'
20241217@145446.2536 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.2553 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.2581 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.2596 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.2606 58lqp68pd7dfb3p2su53j2vdo7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145446.2620 58lqp68pd7dfb3p2su53j2vdo7 Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241217@145446.2643 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.2659 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.2671 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761926167676190b640','aut6761943017676190b5d2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145446.2676 58lqp68pd7dfb3p2su53j2vdo7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.2691 58lqp68pd7dfb3p2su53j2vdo7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.2724 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761926167676190b640',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut6761943017676190b5d2' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241217@145446.2956 58lqp68pd7dfb3p2su53j2vdo7 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761943017676190b5d2','2408644','wait',39,'adm09112754980.682000002')
20241217@145446.3027 58lqp68pd7dfb3p2su53j2vdo7 Query : use flama_phc
20241217@145446.3031 58lqp68pd7dfb3p2su53j2vdo7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145446.3060 58lqp68pd7dfb3p2su53j2vdo7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4035';
20241217@145446.3103 58lqp68pd7dfb3p2su53j2vdo7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4035';
20241217@145446.3155 58lqp68pd7dfb3p2su53j2vdo7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4035';
20241217@145446.3193 58lqp68pd7dfb3p2su53j2vdo7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4035';
20241217@145446.3750 pphncec9m03r84q2tevgqvej4t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145446.3761 pphncec9m03r84q2tevgqvej4t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145446.3837 pphncec9m03r84q2tevgqvej4t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4036';
20241217@145446.3918 pphncec9m03r84q2tevgqvej4t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4036';
20241217@145446.3998 pphncec9m03r84q2tevgqvej4t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4036';
20241217@145446.4039 pphncec9m03r84q2tevgqvej4t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4036';
20241217@145446.4103 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4106 pphncec9m03r84q2tevgqvej4t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145446.4181 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4185 pphncec9m03r84q2tevgqvej4t Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241217@145446.4237 pphncec9m03r84q2tevgqvej4t 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'
20241217@145446.4372 pphncec9m03r84q2tevgqvej4t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408645 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241217@145446.4726 pphncec9m03r84q2tevgqvej4t 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'
20241217@145446.4748 pphncec9m03r84q2tevgqvej4t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408645 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241217@145446.4765 pphncec9m03r84q2tevgqvej4t 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'
20241217@145446.4787 pphncec9m03r84q2tevgqvej4t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408645 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241217@145446.4805 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4809 pphncec9m03r84q2tevgqvej4t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145446.4843 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4847 pphncec9m03r84q2tevgqvej4t Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145446.4881 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4884 pphncec9m03r84q2tevgqvej4t 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')
20241217@145446.4913 pphncec9m03r84q2tevgqvej4t 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
20241217@145446.4950 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4953 pphncec9m03r84q2tevgqvej4t Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145446.4990 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.4993 pphncec9m03r84q2tevgqvej4t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145446.5026 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.5030 pphncec9m03r84q2tevgqvej4t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145446.5070 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.5074 pphncec9m03r84q2tevgqvej4t Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241217@145446.5121 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.5124 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from td where ndoc = 39
20241217@145446.5136 pphncec9m03r84q2tevgqvej4t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145446.5151 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.5169 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145446.5190 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.5209 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145446.5238 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.5253 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145446.5266 pphncec9m03r84q2tevgqvej4t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145446.5323 pphncec9m03r84q2tevgqvej4t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145446.5337 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.5352 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145446.5369 pphncec9m03r84q2tevgqvej4t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761904114676190b680' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145446.5533 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.5552 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145446.5586 pphncec9m03r84q2tevgqvej4t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145446.5598 pphncec9m03r84q2tevgqvej4t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145446.5610 pphncec9m03r84q2tevgqvej4t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145446.5622 pphncec9m03r84q2tevgqvej4t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145446.5635 pphncec9m03r84q2tevgqvej4t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145446.5648 pphncec9m03r84q2tevgqvej4t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145446.5663 pphncec9m03r84q2tevgqvej4t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761904114676190b680',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145446.5890 pphncec9m03r84q2tevgqvej4t Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145446.5922 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.5938 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145446.5973 pphncec9m03r84q2tevgqvej4t Query : select 'normal' from dummy
20241217@145446.5989 pphncec9m03r84q2tevgqvej4t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761904114676190b680',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2501,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145446.6290 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.6293 pphncec9m03r84q2tevgqvej4t Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241217@145446.6316 pphncec9m03r84q2tevgqvej4t 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'
20241217@145446.6453 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.6471 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.6496 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.6512 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.6520 pphncec9m03r84q2tevgqvej4t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145446.6533 pphncec9m03r84q2tevgqvej4t Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2400498400a'
20241217@145446.6546 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.6562 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.6573 pphncec9m03r84q2tevgqvej4t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761943435676190b69f','aut6761904114676190b680' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145446.6578 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.6592 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.6621 pphncec9m03r84q2tevgqvej4t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761943435676190b69f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6761904114676190b680' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145446.6853 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.6857 pphncec9m03r84q2tevgqvej4t Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241217@145446.6877 pphncec9m03r84q2tevgqvej4t 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'
20241217@145446.6892 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.6908 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.6933 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.6948 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.6956 pphncec9m03r84q2tevgqvej4t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145446.6973 pphncec9m03r84q2tevgqvej4t Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2400498400a'
20241217@145446.6987 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7003 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.7018 pphncec9m03r84q2tevgqvej4t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761900680676190b6aa','aut6761904114676190b680' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145446.7022 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7038 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.7070 pphncec9m03r84q2tevgqvej4t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761900680676190b6aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut6761904114676190b680' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241217@145446.7336 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.7340 pphncec9m03r84q2tevgqvej4t Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241217@145446.7366 pphncec9m03r84q2tevgqvej4t 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'
20241217@145446.7382 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7401 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.7430 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7445 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.7463 pphncec9m03r84q2tevgqvej4t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145446.7591 pphncec9m03r84q2tevgqvej4t Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2400498400a'
20241217@145446.7628 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7672 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145446.7726 pphncec9m03r84q2tevgqvej4t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761900384676190b6ba','aut6761904114676190b680' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145446.7773 pphncec9m03r84q2tevgqvej4t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145446.7955 pphncec9m03r84q2tevgqvej4t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145446.7986 pphncec9m03r84q2tevgqvej4t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761900384676190b6ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut6761904114676190b680' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241217@145446.8465 pphncec9m03r84q2tevgqvej4t Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761904114676190b680','2408645','wait',39,'adm09112754980.682000002')
20241217@145446.8774 pphncec9m03r84q2tevgqvej4t Query : use flama_phc
20241217@145446.8777 pphncec9m03r84q2tevgqvej4t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145446.8816 pphncec9m03r84q2tevgqvej4t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4036';
20241217@145446.8858 pphncec9m03r84q2tevgqvej4t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4036';
20241217@145446.8909 pphncec9m03r84q2tevgqvej4t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4036';
20241217@145446.8941 pphncec9m03r84q2tevgqvej4t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4036';
20241217@145446.9546 5rarg3rvn32aohrq8f8j57ek7h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145446.9556 5rarg3rvn32aohrq8f8j57ek7h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145446.9632 5rarg3rvn32aohrq8f8j57ek7h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4037';
20241217@145446.9721 5rarg3rvn32aohrq8f8j57ek7h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4037';
20241217@145446.9784 5rarg3rvn32aohrq8f8j57ek7h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4037';
20241217@145446.9821 5rarg3rvn32aohrq8f8j57ek7h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4037';
20241217@145446.9876 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145446.9880 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145446.9972 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145446.9975 5rarg3rvn32aohrq8f8j57ek7h Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241217@145447.2500 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241217@145447.1600 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408647 and bi.ref ='304.2315.00.1' and bi.lordem =1
20241217@145447.5040 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241217@145447.5260 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408647 and bi.ref ='304.2315.00.1' and bi.lordem =1
20241217@145447.5430 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.5460 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145447.5800 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.5830 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145447.6210 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.6240 5rarg3rvn32aohrq8f8j57ek7h 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')
20241217@145447.6550 5rarg3rvn32aohrq8f8j57ek7h 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
20241217@145447.6920 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.6950 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145447.7240 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.7270 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145447.7550 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.7580 5rarg3rvn32aohrq8f8j57ek7h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145447.7970 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.7990 5rarg3rvn32aohrq8f8j57ek7h Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241217@145447.8440 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.8460 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from td where ndoc = 39
20241217@145447.8580 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145447.8730 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.8900 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145447.9090 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.9240 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145447.9530 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.9820 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145447.9950 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145447.1054 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145447.1067 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.1081 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145447.1096 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761979773676190b718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145447.1261 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.1283 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145447.1323 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145447.1335 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145447.1347 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145447.1360 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145447.1372 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145447.1385 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145447.1411 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761979773676190b718',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145447.1660 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145447.1694 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.1713 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145447.1738 5rarg3rvn32aohrq8f8j57ek7h Query : select 'normal' from dummy
20241217@145447.1754 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761979773676190b718',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2502,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145447.2040 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.2043 5rarg3rvn32aohrq8f8j57ek7h Query : select st.usalote valor from st where st.ref = '304.2315.00.1'
20241217@145447.2071 5rarg3rvn32aohrq8f8j57ek7h 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.2315.00.1'
20241217@145447.2448 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3422 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.3453 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3470 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.3480 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145447.3493 5rarg3rvn32aohrq8f8j57ek7h Query : select sestamp valor from se where ref ='304.2315.00.1' and lote = 's2300276100a'
20241217@145447.3506 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3520 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.3533 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761950043676190b755','aut6761979773676190b718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145447.3537 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3551 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.3580 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761950043676190b755',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6761979773676190b718' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145447.3827 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3846 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.3875 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3891 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.3904 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145447.3932 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3952 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.3964 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761923613676190b760','aut6761979773676190b718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145447.3969 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.3983 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.4030 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6761923613676190b760',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6761979773676190b718' ,0,0 ,2,23.00,20000,?,?,?)
20241217@145447.4272 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.4276 5rarg3rvn32aohrq8f8j57ek7h Query : select st.usalote valor from st where st.ref = '304.2315.00.1'
20241217@145447.4299 5rarg3rvn32aohrq8f8j57ek7h 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.2315.00.1'
20241217@145447.4316 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4335 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.4367 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4384 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.4394 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145447.4408 5rarg3rvn32aohrq8f8j57ek7h Query : select sestamp valor from se where ref ='304.2315.00.1' and lote = 's2300276100a'
20241217@145447.4423 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4439 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.4451 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761996318676190b76b','aut6761979773676190b718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145447.4456 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4471 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.4503 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761996318676190b76b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut6761979773676190b718' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241217@145447.4773 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4791 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.4819 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4835 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.4844 5rarg3rvn32aohrq8f8j57ek7h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145447.4860 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4877 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145447.4891 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761901762676190b776','aut6761979773676190b718' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145447.4895 5rarg3rvn32aohrq8f8j57ek7h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.4911 5rarg3rvn32aohrq8f8j57ek7h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145447.4956 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6761901762676190b776',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6761979773676190b718' ,0,0 ,2,23.00,50000,?,?,?)
20241217@145447.5249 5rarg3rvn32aohrq8f8j57ek7h Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761979773676190b718','2408647','wait',39,'adm09112754980.682000002')
20241217@145447.5325 5rarg3rvn32aohrq8f8j57ek7h Query : use flama_phc
20241217@145447.5328 5rarg3rvn32aohrq8f8j57ek7h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145447.5360 5rarg3rvn32aohrq8f8j57ek7h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4037';
20241217@145447.5402 5rarg3rvn32aohrq8f8j57ek7h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4037';
20241217@145447.5455 5rarg3rvn32aohrq8f8j57ek7h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4037';
20241217@145447.5489 5rarg3rvn32aohrq8f8j57ek7h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4037';
20241217@145447.6152 08jjrkovi61rmqnliklqrn56rs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145447.6163 08jjrkovi61rmqnliklqrn56rs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145447.6234 08jjrkovi61rmqnliklqrn56rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4038';
20241217@145447.6316 08jjrkovi61rmqnliklqrn56rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4038';
20241217@145447.6376 08jjrkovi61rmqnliklqrn56rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4038';
20241217@145447.6410 08jjrkovi61rmqnliklqrn56rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4038';
20241217@145447.6469 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.6472 08jjrkovi61rmqnliklqrn56rs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145447.6534 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.6537 08jjrkovi61rmqnliklqrn56rs Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241217@145447.6625 08jjrkovi61rmqnliklqrn56rs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9005.00.1'
20241217@145447.6783 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408652 and bi.ref ='328.9005.00.1' and bi.lordem =1
20241217@145447.7146 08jjrkovi61rmqnliklqrn56rs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20241217@145447.7274 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408652 and bi.ref ='328.9345.00.1' and bi.lordem =2
20241217@145447.7924 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.7955 08jjrkovi61rmqnliklqrn56rs Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145447.8102 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8106 08jjrkovi61rmqnliklqrn56rs Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145447.8138 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8141 08jjrkovi61rmqnliklqrn56rs 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')
20241217@145447.8195 08jjrkovi61rmqnliklqrn56rs 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
20241217@145447.8231 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8234 08jjrkovi61rmqnliklqrn56rs Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145447.8281 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8284 08jjrkovi61rmqnliklqrn56rs Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145447.8315 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8318 08jjrkovi61rmqnliklqrn56rs Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145447.8358 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8360 08jjrkovi61rmqnliklqrn56rs Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241217@145447.8408 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.8410 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from td where ndoc = 39
20241217@145447.8422 08jjrkovi61rmqnliklqrn56rs Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145447.8437 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.8455 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145447.8488 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.8503 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145447.8531 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.8546 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145447.8560 08jjrkovi61rmqnliklqrn56rs Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145447.8618 08jjrkovi61rmqnliklqrn56rs Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145447.8631 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.8648 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145447.8665 08jjrkovi61rmqnliklqrn56rs Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761933647676190b7d1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145447.8928 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.9056 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145447.9095 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145447.9107 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145447.9122 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145447.9134 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145447.9147 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145447.9159 08jjrkovi61rmqnliklqrn56rs Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145447.9181 08jjrkovi61rmqnliklqrn56rs Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761933647676190b7d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145447.9419 08jjrkovi61rmqnliklqrn56rs Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145447.9452 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145447.9470 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145447.9497 08jjrkovi61rmqnliklqrn56rs Query : select 'normal' from dummy
20241217@145447.9513 08jjrkovi61rmqnliklqrn56rs Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761933647676190b7d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2503,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145447.9830 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145447.9834 08jjrkovi61rmqnliklqrn56rs Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241217@145447.9859 08jjrkovi61rmqnliklqrn56rs 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.9005.00.1'
20241217@145448.2000 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.2000 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.4700 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6300 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.7200 08jjrkovi61rmqnliklqrn56rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.8500 08jjrkovi61rmqnliklqrn56rs Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2100770200a'
20241217@145448.1010 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1170 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.1300 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761951239676190b802','aut6761933647676190b7d1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.1350 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1520 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.1820 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761951239676190b802',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6761933647676190b7d1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145448.4600 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.4790 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.5090 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5270 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.5380 08jjrkovi61rmqnliklqrn56rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.5520 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5700 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.5830 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761936067676190b80d','aut6761933647676190b7d1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.5880 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6050 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.6510 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6761936067676190b80d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6761933647676190b7d1' ,0,0 ,2,23.00,20000,?,?,?)
20241217@145448.1001 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145448.1005 08jjrkovi61rmqnliklqrn56rs Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20241217@145448.1029 08jjrkovi61rmqnliklqrn56rs Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20241217@145448.1187 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1205 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.1237 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1252 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.1262 08jjrkovi61rmqnliklqrn56rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.1278 08jjrkovi61rmqnliklqrn56rs Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20241217@145448.1298 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1314 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.1326 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761979738676190b81f','aut6761933647676190b7d1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.1330 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1346 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.1377 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761979738676190b81f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6761933647676190b7d1' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241217@145448.1641 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1659 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.1686 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1701 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.1710 08jjrkovi61rmqnliklqrn56rs Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.1722 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1737 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.1749 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761933939676190b82a','aut6761933647676190b7d1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.1753 08jjrkovi61rmqnliklqrn56rs Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.1770 08jjrkovi61rmqnliklqrn56rs Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.1801 08jjrkovi61rmqnliklqrn56rs Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6761933939676190b82a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6761933647676190b7d1' ,0,0 ,2,23.00,50000,?,?,?)
20241217@145448.2082 08jjrkovi61rmqnliklqrn56rs Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761933647676190b7d1','2408652','wait',39,'adm09112754980.682000002')
20241217@145448.2166 08jjrkovi61rmqnliklqrn56rs Query : use flama_phc
20241217@145448.2170 08jjrkovi61rmqnliklqrn56rs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145448.2203 08jjrkovi61rmqnliklqrn56rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4038';
20241217@145448.2413 08jjrkovi61rmqnliklqrn56rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4038';
20241217@145448.2647 08jjrkovi61rmqnliklqrn56rs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4038';
20241217@145448.2770 08jjrkovi61rmqnliklqrn56rs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4038';
20241217@145448.3295 umf52d6dgs1530mabhdjcqbmk8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145448.3305 umf52d6dgs1530mabhdjcqbmk8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145448.3374 umf52d6dgs1530mabhdjcqbmk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4039';
20241217@145448.3444 umf52d6dgs1530mabhdjcqbmk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4039';
20241217@145448.3659 umf52d6dgs1530mabhdjcqbmk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4039';
20241217@145448.3849 umf52d6dgs1530mabhdjcqbmk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4039';
20241217@145448.3980 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.3984 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145448.4098 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.4122 umf52d6dgs1530mabhdjcqbmk8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241217@145448.4280 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241217@145448.4501 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408654 and bi.ref ='324.2388.00.1' and bi.lordem =1
20241217@145448.4824 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241217@145448.4846 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408654 and bi.ref ='324.2388.00.1' and bi.lordem =1
20241217@145448.4863 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241217@145448.4885 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408654 and bi.ref ='324.2388.00.1' and bi.lordem =1
20241217@145448.4902 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241217@145448.4924 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408654 and bi.ref ='324.2388.00.1' and bi.lordem =1
20241217@145448.4942 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.4946 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145448.4998 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5002 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145448.5033 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5037 umf52d6dgs1530mabhdjcqbmk8 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')
20241217@145448.5067 umf52d6dgs1530mabhdjcqbmk8 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
20241217@145448.5106 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5110 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145448.5144 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5156 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145448.5190 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5193 umf52d6dgs1530mabhdjcqbmk8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145448.5237 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5240 umf52d6dgs1530mabhdjcqbmk8 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241217@145448.5289 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.5292 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from td where ndoc = 39
20241217@145448.5307 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145448.5322 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5341 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145448.5361 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5376 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145448.5405 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5421 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145448.5435 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145448.5491 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145448.5505 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5521 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145448.5552 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761979230676190b884' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145448.5723 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.5740 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145448.5778 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145448.5791 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145448.5802 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145448.5814 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145448.5827 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145448.5839 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145448.5850 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761979230676190b884',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145448.6077 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145448.6121 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6137 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145448.6160 umf52d6dgs1530mabhdjcqbmk8 Query : select 'normal' from dummy
20241217@145448.6176 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761979230676190b884',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2504,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145448.6446 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.6452 umf52d6dgs1530mabhdjcqbmk8 Query : select st.usalote valor from st where st.ref = '324.2388.00.1'
20241217@145448.6478 umf52d6dgs1530mabhdjcqbmk8 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.2388.00.1'
20241217@145448.6605 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6624 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.6651 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6666 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.6675 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.6688 umf52d6dgs1530mabhdjcqbmk8 Query : select sestamp valor from se where ref ='324.2388.00.1' and lote = 'r2400490100a'
20241217@145448.6702 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6717 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.6730 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761969897676190b8a3','aut6761979230676190b884' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.6735 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.6752 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.6785 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761969897676190b8a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut6761979230676190b884' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145448.7796 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.8078 umf52d6dgs1530mabhdjcqbmk8 Query : select st.usalote valor from st where st.ref = '324.2388.00.1'
20241217@145448.8105 umf52d6dgs1530mabhdjcqbmk8 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.2388.00.1'
20241217@145448.8121 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8138 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.8166 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8181 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.8192 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.8204 umf52d6dgs1530mabhdjcqbmk8 Query : select sestamp valor from se where ref ='324.2388.00.1' and lote = 'r2400490100a'
20241217@145448.8217 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8231 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.8243 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761999100676190b8c8','aut6761979230676190b884' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.8247 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8263 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.8290 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761999100676190b8c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut6761979230676190b884' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241217@145448.8530 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.8533 umf52d6dgs1530mabhdjcqbmk8 Query : select st.usalote valor from st where st.ref = '324.2388.00.1'
20241217@145448.8595 umf52d6dgs1530mabhdjcqbmk8 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.2388.00.1'
20241217@145448.8610 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8639 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.8664 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8679 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.8688 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.8700 umf52d6dgs1530mabhdjcqbmk8 Query : select sestamp valor from se where ref ='324.2388.00.1' and lote = 'r2400490100a'
20241217@145448.8713 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8727 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.8739 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761904861676190b8d4','aut6761979230676190b884' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.8744 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.8759 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.8790 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761904861676190b8d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut6761979230676190b884' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241217@145448.9090 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.9132 umf52d6dgs1530mabhdjcqbmk8 Query : select st.usalote valor from st where st.ref = '324.2388.00.1'
20241217@145448.9259 umf52d6dgs1530mabhdjcqbmk8 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.2388.00.1'
20241217@145448.9274 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.9293 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.9319 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.9334 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.9355 umf52d6dgs1530mabhdjcqbmk8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145448.9367 umf52d6dgs1530mabhdjcqbmk8 Query : select sestamp valor from se where ref ='324.2388.00.1' and lote = 'r2400490100a'
20241217@145448.9381 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.9396 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145448.9407 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761988167676190b8e5','aut6761979230676190b884' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145448.9412 umf52d6dgs1530mabhdjcqbmk8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145448.9427 umf52d6dgs1530mabhdjcqbmk8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145448.9454 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761988167676190b8e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut6761979230676190b884' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241217@145448.9723 umf52d6dgs1530mabhdjcqbmk8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761979230676190b884','2408654','wait',39,'adm09112754980.682000002')
20241217@145448.9796 umf52d6dgs1530mabhdjcqbmk8 Query : use flama_phc
20241217@145448.9799 umf52d6dgs1530mabhdjcqbmk8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145448.9834 umf52d6dgs1530mabhdjcqbmk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4039';
20241217@145448.9894 umf52d6dgs1530mabhdjcqbmk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4039';
20241217@145448.9945 umf52d6dgs1530mabhdjcqbmk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4039';
20241217@145448.9977 umf52d6dgs1530mabhdjcqbmk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4039';
20241217@145449.4890 0h1e6p7l0eviop63gnff74c5mt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145449.5010 0h1e6p7l0eviop63gnff74c5mt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145449.5710 0h1e6p7l0eviop63gnff74c5mt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4040';
20241217@145449.6510 0h1e6p7l0eviop63gnff74c5mt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4040';
20241217@145449.7150 0h1e6p7l0eviop63gnff74c5mt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4040';
20241217@145449.7510 0h1e6p7l0eviop63gnff74c5mt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4040';
20241217@145449.8070 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.8100 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145449.8720 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.8750 0h1e6p7l0eviop63gnff74c5mt Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20241217@145449.9260 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20241217@145449.1062 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408655 and bi.ref ='327.8253.00.1' and bi.lordem =1
20241217@145449.1405 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1409 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145449.1443 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1446 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145449.1487 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1490 0h1e6p7l0eviop63gnff74c5mt 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')
20241217@145449.1521 0h1e6p7l0eviop63gnff74c5mt 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
20241217@145449.1555 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1558 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145449.1587 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1590 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145449.1620 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1623 0h1e6p7l0eviop63gnff74c5mt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145449.1661 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1664 0h1e6p7l0eviop63gnff74c5mt Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20241217@145449.1709 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.1712 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from td where ndoc = 39
20241217@145449.1724 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145449.1738 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.1756 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145449.1775 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.1806 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145449.2245 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.2265 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145449.2277 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145449.2336 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241217@145449.2351 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.2369 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241217@145449.2385 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6761945361676190b937' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241217@145449.2548 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.2602 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241217@145449.2641 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241217@145449.2655 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241217@145449.2669 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241217@145449.2680 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241217@145449.2693 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241217@145449.2721 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241217@145449.2733 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6761945361676190b937',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241217@145449.2979 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 fno valor from wsftdata order by fno desc
20241217@145449.3015 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.3034 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241217@145449.3058 0h1e6p7l0eviop63gnff74c5mt Query : select 'normal' from dummy
20241217@145449.3089 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6761945361676190b937',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2505,100810,0,'2024-12-17',39,'euro',0,0,2024 ,?,?)
20241217@145449.3371 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.3374 0h1e6p7l0eviop63gnff74c5mt Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20241217@145449.3398 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8253.00.1'
20241217@145449.3545 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.3564 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145449.3592 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.3625 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145449.3637 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145449.3651 0h1e6p7l0eviop63gnff74c5mt Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400073100b'
20241217@145449.3859 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.4094 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145449.4110 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761922910676190b95e','aut6761945361676190b937' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145449.4114 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.4131 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145449.4160 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6761922910676190b95e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6761945361676190b937' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241217@145449.4454 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.4475 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145449.4504 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.4524 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145449.4533 0h1e6p7l0eviop63gnff74c5mt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241217@145449.4547 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.4563 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241217@145449.4574 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6761984536676190b96f','aut6761945361676190b937' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241217@145449.4579 0h1e6p7l0eviop63gnff74c5mt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.4596 0h1e6p7l0eviop63gnff74c5mt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241217@145449.4625 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6761984536676190b96f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6761945361676190b937' ,0,0 ,2,23.00,20000,?,?,?)
20241217@145449.4887 0h1e6p7l0eviop63gnff74c5mt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6761945361676190b937','2408655','wait',39,'adm09112754980.682000002')
20241217@145449.4957 0h1e6p7l0eviop63gnff74c5mt Query : use flama_phc
20241217@145449.4963 0h1e6p7l0eviop63gnff74c5mt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241217@145449.4997 0h1e6p7l0eviop63gnff74c5mt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4040';
20241217@145449.5046 0h1e6p7l0eviop63gnff74c5mt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4040';
20241217@145449.5096 0h1e6p7l0eviop63gnff74c5mt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4040';
20241217@145449.5143 0h1e6p7l0eviop63gnff74c5mt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4040';
20241217@145449.5687 eqv8l4db92dvafl3tc25o90pef Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241217@145449.5698 eqv8l4db92dvafl3tc25o90pef Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241217@145449.5768 eqv8l4db92dvafl3tc25o90pef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4041';
20241217@145449.5841 eqv8l4db92dvafl3tc25o90pef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4041';
20241217@145449.5920 eqv8l4db92dvafl3tc25o90pef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4041';
20241217@145449.5959 eqv8l4db92dvafl3tc25o90pef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4041';
20241217@145449.6027 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6030 eqv8l4db92dvafl3tc25o90pef Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241217@145449.6094 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6097 eqv8l4db92dvafl3tc25o90pef Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241217@145449.6148 eqv8l4db92dvafl3tc25o90pef 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'
20241217@145449.6284 eqv8l4db92dvafl3tc25o90pef Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2086 and bo.obrano = 2408656 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241217@145449.6595 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6598 eqv8l4db92dvafl3tc25o90pef Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241217@145449.6633 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6636 eqv8l4db92dvafl3tc25o90pef Query : select top 1 1 valor from td where td.ndoc = 39
20241217@145449.6680 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6683 eqv8l4db92dvafl3tc25o90pef 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')
20241217@145449.6713 eqv8l4db92dvafl3tc25o90pef 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
20241217@145449.6749 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6752 eqv8l4db92dvafl3tc25o90pef Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241217@145449.6783 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6787 eqv8l4db92dvafl3tc25o90pef Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241217@145449.6818 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6822 eqv8l4db92dvafl3tc25o90pef Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241217@145449.6862 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6865 eqv8l4db92dvafl3tc25o90pef Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241217@145449.6910 eqv8l4db92dvafl3tc25o90pef Query : use flama_phc
20241217@145449.6913 eqv8l4db92dvafl3tc25o90pef Query : select 1 valor from td where ndoc = 39
20241217@145449.6925 eqv8l4db92dvafl3tc25o90pef Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241217@145449.6940 eqv8l4db92dvafl3tc25o90pef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241217@145449.6957 eqv8l4db92dvafl3tc25o90pef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
