20240807@172222.3056 1m2kt4qf8asr743m11er4mmqgk Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20240807@172222.3071 1m2kt4qf8asr743m11er4mmqgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.3125 1m2kt4qf8asr743m11er4mmqgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.3148 1m2kt4qf8asr743m11er4mmqgk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b393088366b39f3e4a','aut66b393203466b39f3cb5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172222.3155 1m2kt4qf8asr743m11er4mmqgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.3175 1m2kt4qf8asr743m11er4mmqgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.3238 1m2kt4qf8asr743m11er4mmqgk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b393088366b39f3e4a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66b393203466b39f3cb5' ,0,0 ,2,23.00,280000,?,?,?,?)
20240807@172222.3517 1m2kt4qf8asr743m11er4mmqgk Query : use flama_phc
20240807@172222.3521 1m2kt4qf8asr743m11er4mmqgk Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20240807@172222.3544 1m2kt4qf8asr743m11er4mmqgk 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.939.00.01'
20240807@172222.3559 1m2kt4qf8asr743m11er4mmqgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.3576 1m2kt4qf8asr743m11er4mmqgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.3605 1m2kt4qf8asr743m11er4mmqgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.3623 1m2kt4qf8asr743m11er4mmqgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.3634 1m2kt4qf8asr743m11er4mmqgk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172222.3648 1m2kt4qf8asr743m11er4mmqgk Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20240807@172222.3662 1m2kt4qf8asr743m11er4mmqgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.3680 1m2kt4qf8asr743m11er4mmqgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.3693 1m2kt4qf8asr743m11er4mmqgk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391222466b39f3e59','aut66b393203466b39f3cb5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172222.3698 1m2kt4qf8asr743m11er4mmqgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.3714 1m2kt4qf8asr743m11er4mmqgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.3745 1m2kt4qf8asr743m11er4mmqgk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391222466b39f3e59',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66b393203466b39f3cb5' ,0,0 ,2,23.00,290000,?,?,?,?)
20240807@172222.4062 1m2kt4qf8asr743m11er4mmqgk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b393203466b39f3cb5','2405227','wait',39,'adm09112754980.682000002')
20240807@172222.4142 1m2kt4qf8asr743m11er4mmqgk Query : use flama_phc
20240807@172222.4145 1m2kt4qf8asr743m11er4mmqgk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172222.4177 1m2kt4qf8asr743m11er4mmqgk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1419';
20240807@172222.4205 1m2kt4qf8asr743m11er4mmqgk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1419';
20240807@172222.4244 1m2kt4qf8asr743m11er4mmqgk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1419';
20240807@172222.4271 1m2kt4qf8asr743m11er4mmqgk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1419';
20240807@172222.4790 7pv6jsee2thkdjv4c7jv31gehf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172222.4806 7pv6jsee2thkdjv4c7jv31gehf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172222.4865 7pv6jsee2thkdjv4c7jv31gehf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1420';
20240807@172222.4919 7pv6jsee2thkdjv4c7jv31gehf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1420';
20240807@172222.4974 7pv6jsee2thkdjv4c7jv31gehf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1420';
20240807@172222.4998 7pv6jsee2thkdjv4c7jv31gehf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1420';
20240807@172222.5045 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5049 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172222.5116 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5119 7pv6jsee2thkdjv4c7jv31gehf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172222.5161 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2041.00.1'
20240807@172222.5342 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5349 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172222.5385 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5389 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172222.5423 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5426 7pv6jsee2thkdjv4c7jv31gehf 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')
20240807@172222.5459 7pv6jsee2thkdjv4c7jv31gehf 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
20240807@172222.5499 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5503 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172222.5536 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5539 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172222.5569 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5572 7pv6jsee2thkdjv4c7jv31gehf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172222.5612 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5615 7pv6jsee2thkdjv4c7jv31gehf Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172222.5667 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.5671 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from td where ndoc = 39
20240807@172222.5686 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172222.5703 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.5722 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172222.5747 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.5766 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172222.5803 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.5822 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172222.5838 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172222.5913 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172222.5928 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.5944 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172222.5961 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b396128766b39f3e8e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172222.6152 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.6172 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172222.6209 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172222.6223 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172222.6244 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172222.6256 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172222.6269 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172222.6281 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172222.6294 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b396128766b39f3e8e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172222.6563 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172222.6581 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.6603 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172222.7352 7pv6jsee2thkdjv4c7jv31gehf Query : select 'normal' from dummy
20240807@172222.7488 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b396128766b39f3e8e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',243,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172222.7880 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.7884 7pv6jsee2thkdjv4c7jv31gehf Query : select st.usalote valor from st where st.ref = '324.2041.00.1'
20240807@172222.7913 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2041.00.1'
20240807@172222.8076 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8096 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.8128 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8146 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.8156 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172222.8171 7pv6jsee2thkdjv4c7jv31gehf Query : select sestamp valor from se where ref ='324.2041.00.1' and lote = 'r2100232100a'
20240807@172222.8193 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8208 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.8221 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390847966b39f3ec8','aut66b396128766b39f3e8e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172222.8231 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8247 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.8279 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b390847966b39f3ec8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66b396128766b39f3e8e' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172222.8570 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8588 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.8615 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8630 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.8639 7pv6jsee2thkdjv4c7jv31gehf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172222.8651 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8665 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172222.8677 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b397155366b39f3ed3','aut66b396128766b39f3e8e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172222.8682 7pv6jsee2thkdjv4c7jv31gehf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172222.8697 7pv6jsee2thkdjv4c7jv31gehf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172222.8727 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b397155366b39f3ed3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b396128766b39f3e8e' ,0,0 ,2,23.00,20000,?,?,?)
20240807@172222.9100 7pv6jsee2thkdjv4c7jv31gehf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b396128766b39f3e8e','2405228','wait',39,'adm09112754980.682000002')
20240807@172222.9378 7pv6jsee2thkdjv4c7jv31gehf Query : use flama_phc
20240807@172222.9382 7pv6jsee2thkdjv4c7jv31gehf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172222.9439 7pv6jsee2thkdjv4c7jv31gehf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1420';
20240807@172222.9490 7pv6jsee2thkdjv4c7jv31gehf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1420';
20240807@172222.9648 7pv6jsee2thkdjv4c7jv31gehf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1420';
20240807@172222.9679 7pv6jsee2thkdjv4c7jv31gehf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1420';
20240807@172223.1950 tshfgorvl406u8o2orqc6it5vc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172223.2050 tshfgorvl406u8o2orqc6it5vc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172223.2560 tshfgorvl406u8o2orqc6it5vc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1421';
20240807@172223.3070 tshfgorvl406u8o2orqc6it5vc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1421';
20240807@172223.3520 tshfgorvl406u8o2orqc6it5vc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1421';
20240807@172223.3730 tshfgorvl406u8o2orqc6it5vc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1421';
20240807@172223.4200 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.4240 tshfgorvl406u8o2orqc6it5vc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172223.4960 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.4990 tshfgorvl406u8o2orqc6it5vc Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172223.5430 tshfgorvl406u8o2orqc6it5vc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240807@172223.7130 tshfgorvl406u8o2orqc6it5vc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240807@172223.7320 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.7460 tshfgorvl406u8o2orqc6it5vc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172223.7780 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.7820 tshfgorvl406u8o2orqc6it5vc Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172223.8190 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.8220 tshfgorvl406u8o2orqc6it5vc 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')
20240807@172223.8510 tshfgorvl406u8o2orqc6it5vc 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
20240807@172223.8850 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.8880 tshfgorvl406u8o2orqc6it5vc Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172223.9160 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.9190 tshfgorvl406u8o2orqc6it5vc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172223.9480 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.9510 tshfgorvl406u8o2orqc6it5vc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172223.9940 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.9970 tshfgorvl406u8o2orqc6it5vc Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172223.1041 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.1044 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from td where ndoc = 39
20240807@172223.1056 tshfgorvl406u8o2orqc6it5vc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172223.1069 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.1085 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172223.1107 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.1122 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172223.1151 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.1176 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172223.1190 tshfgorvl406u8o2orqc6it5vc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172223.1349 tshfgorvl406u8o2orqc6it5vc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172223.1363 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.1379 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172223.1404 tshfgorvl406u8o2orqc6it5vc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b394872466b39f3f1d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172223.1596 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.1622 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172223.3004 tshfgorvl406u8o2orqc6it5vc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172223.3089 tshfgorvl406u8o2orqc6it5vc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172223.3102 tshfgorvl406u8o2orqc6it5vc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172223.3114 tshfgorvl406u8o2orqc6it5vc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172223.3128 tshfgorvl406u8o2orqc6it5vc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172223.3140 tshfgorvl406u8o2orqc6it5vc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172223.3151 tshfgorvl406u8o2orqc6it5vc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b394872466b39f3f1d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172223.3446 tshfgorvl406u8o2orqc6it5vc Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172223.3474 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.3492 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172223.3516 tshfgorvl406u8o2orqc6it5vc Query : select 'normal' from dummy
20240807@172223.3532 tshfgorvl406u8o2orqc6it5vc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b394872466b39f3f1d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',244,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172223.3863 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.3867 tshfgorvl406u8o2orqc6it5vc Query : select st.usalote valor from st where st.ref = '324.4751.00.1'
20240807@172223.3891 tshfgorvl406u8o2orqc6it5vc 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.4751.00.1'
20240807@172223.4047 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4064 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.4091 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4106 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.4115 tshfgorvl406u8o2orqc6it5vc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172223.4127 tshfgorvl406u8o2orqc6it5vc Query : select sestamp valor from se where ref ='324.4751.00.1' and lote = 'r2400049200a'
20240807@172223.4142 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4158 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.4170 tshfgorvl406u8o2orqc6it5vc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391025966b39f3f65','aut66b394872466b39f3f1d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172223.4174 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4189 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.4219 tshfgorvl406u8o2orqc6it5vc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391025966b39f3f65',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66b394872466b39f3f1d' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172223.4510 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.4514 tshfgorvl406u8o2orqc6it5vc Query : select st.usalote valor from st where st.ref = '324.4751.00.1'
20240807@172223.4536 tshfgorvl406u8o2orqc6it5vc 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.4751.00.1'
20240807@172223.4555 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4574 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.4604 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4619 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.4629 tshfgorvl406u8o2orqc6it5vc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172223.4642 tshfgorvl406u8o2orqc6it5vc Query : select sestamp valor from se where ref ='324.4751.00.1' and lote = 'r2400049200a'
20240807@172223.4656 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4670 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.4682 tshfgorvl406u8o2orqc6it5vc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b397644266b39f3f71','aut66b394872466b39f3f1d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172223.4686 tshfgorvl406u8o2orqc6it5vc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.4702 tshfgorvl406u8o2orqc6it5vc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.4730 tshfgorvl406u8o2orqc6it5vc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b397644266b39f3f71',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut66b394872466b39f3f1d' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172223.5008 tshfgorvl406u8o2orqc6it5vc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b394872466b39f3f1d','2405229','wait',39,'adm09112754980.682000002')
20240807@172223.5105 tshfgorvl406u8o2orqc6it5vc Query : use flama_phc
20240807@172223.5108 tshfgorvl406u8o2orqc6it5vc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172223.5139 tshfgorvl406u8o2orqc6it5vc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1421';
20240807@172223.5166 tshfgorvl406u8o2orqc6it5vc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1421';
20240807@172223.5203 tshfgorvl406u8o2orqc6it5vc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1421';
20240807@172223.5226 tshfgorvl406u8o2orqc6it5vc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1421';
20240807@172223.6729 a3so3d56behoracqa9srofr0r2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172223.6761 a3so3d56behoracqa9srofr0r2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172223.6833 a3so3d56behoracqa9srofr0r2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1422';
20240807@172223.6898 a3so3d56behoracqa9srofr0r2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1422';
20240807@172223.6951 a3so3d56behoracqa9srofr0r2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1422';
20240807@172223.6975 a3so3d56behoracqa9srofr0r2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1422';
20240807@172223.7020 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7024 a3so3d56behoracqa9srofr0r2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172223.7096 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7099 a3so3d56behoracqa9srofr0r2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172223.7148 a3so3d56behoracqa9srofr0r2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240807@172223.7320 a3so3d56behoracqa9srofr0r2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240807@172223.7339 a3so3d56behoracqa9srofr0r2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240807@172223.7359 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7363 a3so3d56behoracqa9srofr0r2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172223.7398 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7402 a3so3d56behoracqa9srofr0r2 Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172223.7439 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7442 a3so3d56behoracqa9srofr0r2 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')
20240807@172223.7472 a3so3d56behoracqa9srofr0r2 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
20240807@172223.7506 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7509 a3so3d56behoracqa9srofr0r2 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172223.7549 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7552 a3so3d56behoracqa9srofr0r2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172223.7585 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7588 a3so3d56behoracqa9srofr0r2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172223.7639 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7642 a3so3d56behoracqa9srofr0r2 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172223.7693 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.7696 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from td where ndoc = 39
20240807@172223.7711 a3so3d56behoracqa9srofr0r2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172223.7725 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.7743 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172223.7765 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.7781 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172223.7813 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.7828 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172223.7841 a3so3d56behoracqa9srofr0r2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172223.7911 a3so3d56behoracqa9srofr0r2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172223.7923 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.7946 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172223.7963 a3so3d56behoracqa9srofr0r2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b397585166b39f3fbf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172223.8170 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.8188 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172223.8229 a3so3d56behoracqa9srofr0r2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172223.8244 a3so3d56behoracqa9srofr0r2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172223.8257 a3so3d56behoracqa9srofr0r2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172223.8271 a3so3d56behoracqa9srofr0r2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172223.8283 a3so3d56behoracqa9srofr0r2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172223.8296 a3so3d56behoracqa9srofr0r2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172223.8307 a3so3d56behoracqa9srofr0r2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b397585166b39f3fbf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172223.8633 a3so3d56behoracqa9srofr0r2 Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172223.8696 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.8718 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172223.8747 a3so3d56behoracqa9srofr0r2 Query : select 'normal' from dummy
20240807@172223.8763 a3so3d56behoracqa9srofr0r2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b397585166b39f3fbf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',245,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172223.9086 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.9089 a3so3d56behoracqa9srofr0r2 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240807@172223.9112 a3so3d56behoracqa9srofr0r2 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.4980.00.1'
20240807@172223.9302 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9332 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.9359 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9375 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.9384 a3so3d56behoracqa9srofr0r2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172223.9419 a3so3d56behoracqa9srofr0r2 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240807@172223.9440 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9455 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.9478 a3so3d56behoracqa9srofr0r2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390822366b39f3fe6','aut66b397585166b39f3fbf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172223.9482 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9499 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.9530 a3so3d56behoracqa9srofr0r2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b390822366b39f3fe6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66b397585166b39f3fbf' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172223.9817 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172223.9820 a3so3d56behoracqa9srofr0r2 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240807@172223.9841 a3so3d56behoracqa9srofr0r2 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.4980.00.1'
20240807@172223.9856 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9874 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172223.9901 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9915 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.9924 a3so3d56behoracqa9srofr0r2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172223.9936 a3so3d56behoracqa9srofr0r2 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240807@172223.9949 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172223.9973 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172223.9984 a3so3d56behoracqa9srofr0r2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b398139066b39f3ff2','aut66b397585166b39f3fbf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172223.9988 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.5000 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.3600 a3so3d56behoracqa9srofr0r2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b398139066b39f3ff2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66b397585166b39f3fbf' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172224.3610 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172224.3730 a3so3d56behoracqa9srofr0r2 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240807@172224.4930 a3so3d56behoracqa9srofr0r2 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.4980.00.1'
20240807@172224.5910 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.7080 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.9420 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.1032 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172224.1087 a3so3d56behoracqa9srofr0r2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172224.1141 a3so3d56behoracqa9srofr0r2 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240807@172224.1156 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.1174 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172224.1193 a3so3d56behoracqa9srofr0r2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391746566b39f401c','aut66b397585166b39f3fbf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172224.1249 a3so3d56behoracqa9srofr0r2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.1371 a3so3d56behoracqa9srofr0r2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.1749 a3so3d56behoracqa9srofr0r2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391746566b39f401c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66b397585166b39f3fbf' ,0,0 ,2,23.00,30000,?,?,?,?)
20240807@172224.2198 a3so3d56behoracqa9srofr0r2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b397585166b39f3fbf','2405230','wait',39,'adm09112754980.682000002')
20240807@172224.2622 a3so3d56behoracqa9srofr0r2 Query : use flama_phc
20240807@172224.2646 a3so3d56behoracqa9srofr0r2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172224.2801 a3so3d56behoracqa9srofr0r2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1422';
20240807@172224.2942 a3so3d56behoracqa9srofr0r2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1422';
20240807@172224.2986 a3so3d56behoracqa9srofr0r2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1422';
20240807@172224.3011 a3so3d56behoracqa9srofr0r2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1422';
20240807@172224.3578 rlt4jceu89ofskq7ga4c4vn543 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172224.3590 rlt4jceu89ofskq7ga4c4vn543 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172224.3646 rlt4jceu89ofskq7ga4c4vn543 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1423';
20240807@172224.3702 rlt4jceu89ofskq7ga4c4vn543 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1423';
20240807@172224.3759 rlt4jceu89ofskq7ga4c4vn543 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1423';
20240807@172224.3796 rlt4jceu89ofskq7ga4c4vn543 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1423';
20240807@172224.3848 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.3852 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172224.3923 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.3926 rlt4jceu89ofskq7ga4c4vn543 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172224.3978 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20240807@172224.4167 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20240807@172224.4188 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4191 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172224.4226 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4230 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172224.4272 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4277 rlt4jceu89ofskq7ga4c4vn543 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')
20240807@172224.4306 rlt4jceu89ofskq7ga4c4vn543 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
20240807@172224.4354 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4357 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172224.4387 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4391 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172224.4424 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4427 rlt4jceu89ofskq7ga4c4vn543 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172224.4465 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4468 rlt4jceu89ofskq7ga4c4vn543 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172224.4522 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.4525 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from td where ndoc = 39
20240807@172224.4539 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172224.4556 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.4573 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172224.4594 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.4609 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172224.4638 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.4654 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172224.4666 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172224.4747 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172224.4762 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.4780 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172224.4799 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b397140266b39f4071' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172224.4989 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.5007 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172224.5041 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172224.5053 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172224.5065 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172224.5076 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172224.5088 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172224.5101 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172224.5112 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b397140266b39f4071',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172224.5416 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172224.5438 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.5456 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172224.5481 rlt4jceu89ofskq7ga4c4vn543 Query : select 'normal' from dummy
20240807@172224.5503 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b397140266b39f4071',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',246,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172224.5823 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.5827 rlt4jceu89ofskq7ga4c4vn543 Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20240807@172224.5853 rlt4jceu89ofskq7ga4c4vn543 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.2221.00.1'
20240807@172224.6414 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.6659 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.6847 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.6866 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172224.6877 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172224.6891 rlt4jceu89ofskq7ga4c4vn543 Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301281300a'
20240807@172224.6913 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.6930 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172224.6942 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b399388666b39f40a8','aut66b397140266b39f4071' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172224.6947 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.6964 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.6994 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b399388666b39f40a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b397140266b39f4071' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172224.7267 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.7271 rlt4jceu89ofskq7ga4c4vn543 Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20240807@172224.7293 rlt4jceu89ofskq7ga4c4vn543 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.2221.00.1'
20240807@172224.7320 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.7337 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.7367 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.7383 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172224.7395 rlt4jceu89ofskq7ga4c4vn543 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172224.7410 rlt4jceu89ofskq7ga4c4vn543 Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301281300a'
20240807@172224.7425 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.7441 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172224.7454 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391096166b39f40b5','aut66b397140266b39f4071' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172224.7458 rlt4jceu89ofskq7ga4c4vn543 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172224.7475 rlt4jceu89ofskq7ga4c4vn543 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172224.7515 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391096166b39f40b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',68.000 ,'aut66b397140266b39f4071' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172224.7814 rlt4jceu89ofskq7ga4c4vn543 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b397140266b39f4071','2405231','wait',39,'adm09112754980.682000002')
20240807@172224.7889 rlt4jceu89ofskq7ga4c4vn543 Query : use flama_phc
20240807@172224.7893 rlt4jceu89ofskq7ga4c4vn543 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172224.7924 rlt4jceu89ofskq7ga4c4vn543 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1423';
20240807@172224.7960 rlt4jceu89ofskq7ga4c4vn543 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1423';
20240807@172224.7999 rlt4jceu89ofskq7ga4c4vn543 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1423';
20240807@172224.8040 rlt4jceu89ofskq7ga4c4vn543 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1423';
20240807@172224.8774 9i2fjedosdnk2ecno3u1apago4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172224.8786 9i2fjedosdnk2ecno3u1apago4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172224.8837 9i2fjedosdnk2ecno3u1apago4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1424';
20240807@172224.8913 9i2fjedosdnk2ecno3u1apago4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1424';
20240807@172225.8210 9i2fjedosdnk2ecno3u1apago4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1424';
20240807@172225.8490 9i2fjedosdnk2ecno3u1apago4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1424';
20240807@172225.8970 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.9000 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172225.9640 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.9670 9i2fjedosdnk2ecno3u1apago4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172225.1009 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20240807@172225.1192 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1197 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172225.1232 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1235 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172225.1266 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1269 9i2fjedosdnk2ecno3u1apago4 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')
20240807@172225.1298 9i2fjedosdnk2ecno3u1apago4 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
20240807@172225.1345 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1348 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172225.1380 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1384 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172225.1417 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1420 9i2fjedosdnk2ecno3u1apago4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172225.1462 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1466 9i2fjedosdnk2ecno3u1apago4 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172225.1521 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.1525 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from td where ndoc = 39
20240807@172225.1540 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172225.1557 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.1575 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172225.1600 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.1618 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172225.1653 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.1670 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172225.1684 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172225.1792 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172225.1805 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.1951 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172225.2707 9i2fjedosdnk2ecno3u1apago4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b398455066b39f4129' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172225.2933 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.2956 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172225.2994 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172225.3010 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172225.3024 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172225.3037 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172225.3051 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172225.3075 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172225.3088 9i2fjedosdnk2ecno3u1apago4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b398455066b39f4129',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172225.3369 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172225.3391 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.3410 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172225.3436 9i2fjedosdnk2ecno3u1apago4 Query : select 'normal' from dummy
20240807@172225.3452 9i2fjedosdnk2ecno3u1apago4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b398455066b39f4129',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',247,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172225.3820 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.3824 9i2fjedosdnk2ecno3u1apago4 Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20240807@172225.3849 9i2fjedosdnk2ecno3u1apago4 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.2907.00.1'
20240807@172225.4063 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.4080 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172225.4111 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.4129 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172225.4139 9i2fjedosdnk2ecno3u1apago4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172225.4152 9i2fjedosdnk2ecno3u1apago4 Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20240807@172225.4167 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.4183 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172225.4196 9i2fjedosdnk2ecno3u1apago4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390165866b39f4165','aut66b398455066b39f4129' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172225.4201 9i2fjedosdnk2ecno3u1apago4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.4216 9i2fjedosdnk2ecno3u1apago4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172225.4264 9i2fjedosdnk2ecno3u1apago4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b390165866b39f4165',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',88.000 ,'aut66b398455066b39f4129' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172225.4545 9i2fjedosdnk2ecno3u1apago4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b398455066b39f4129','2405232','wait',39,'adm09112754980.682000002')
20240807@172225.4634 9i2fjedosdnk2ecno3u1apago4 Query : use flama_phc
20240807@172225.4638 9i2fjedosdnk2ecno3u1apago4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172225.4670 9i2fjedosdnk2ecno3u1apago4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1424';
20240807@172225.4723 9i2fjedosdnk2ecno3u1apago4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1424';
20240807@172225.4782 9i2fjedosdnk2ecno3u1apago4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1424';
20240807@172225.4811 9i2fjedosdnk2ecno3u1apago4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1424';
20240807@172225.5373 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172225.5384 hrl3s0pgcbtb71cv7ug9kdd5si Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172225.5438 hrl3s0pgcbtb71cv7ug9kdd5si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1425';
20240807@172225.5490 hrl3s0pgcbtb71cv7ug9kdd5si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1425';
20240807@172225.5543 hrl3s0pgcbtb71cv7ug9kdd5si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1425';
20240807@172225.5567 hrl3s0pgcbtb71cv7ug9kdd5si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1425';
20240807@172225.5616 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.5619 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172225.5686 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.5689 hrl3s0pgcbtb71cv7ug9kdd5si Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172225.5732 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240807@172225.5947 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240807@172225.5968 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.5971 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172225.6006 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.6010 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172225.6043 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.6046 hrl3s0pgcbtb71cv7ug9kdd5si 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')
20240807@172225.6099 hrl3s0pgcbtb71cv7ug9kdd5si 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
20240807@172225.6953 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.6965 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172225.7004 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.7007 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172225.8178 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.8184 hrl3s0pgcbtb71cv7ug9kdd5si Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172225.8229 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.8232 hrl3s0pgcbtb71cv7ug9kdd5si Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172225.8286 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.8289 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from td where ndoc = 39
20240807@172225.8303 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172225.8317 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.8334 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172225.8353 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.8369 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172225.8397 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.8412 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172225.8425 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172225.8501 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172225.8515 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.8532 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172225.8549 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b394060166b39f41cd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172225.8735 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.8757 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172225.8794 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172225.8807 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172225.8819 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172225.8832 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172225.8858 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172225.8871 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172225.8894 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b394060166b39f41cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172225.9176 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172225.9198 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.9221 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172225.9248 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 'normal' from dummy
20240807@172225.9270 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b394060166b39f41cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',248,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172225.9585 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172225.9589 hrl3s0pgcbtb71cv7ug9kdd5si Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240807@172225.9617 hrl3s0pgcbtb71cv7ug9kdd5si 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.4723.00.2'
20240807@172225.9795 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.9813 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172225.9845 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.9861 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172225.9871 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172225.9887 hrl3s0pgcbtb71cv7ug9kdd5si Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240807@172225.9905 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.9925 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172225.9941 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b395091566b39f41f1','aut66b394060166b39f41cd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172225.9947 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172225.9965 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172226.9000 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b395091566b39f41f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66b394060166b39f41cd' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172226.3050 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172226.3090 hrl3s0pgcbtb71cv7ug9kdd5si Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240807@172226.3310 hrl3s0pgcbtb71cv7ug9kdd5si 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.4723.00.2'
20240807@172226.3460 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.3630 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172226.3920 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.4060 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172226.4150 hrl3s0pgcbtb71cv7ug9kdd5si Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172226.4280 hrl3s0pgcbtb71cv7ug9kdd5si Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240807@172226.4640 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.4810 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172226.4930 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390282666b39f420b','aut66b394060166b39f41cd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172226.4980 hrl3s0pgcbtb71cv7ug9kdd5si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.5160 hrl3s0pgcbtb71cv7ug9kdd5si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172226.5480 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b390282666b39f420b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut66b394060166b39f41cd' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172226.8360 hrl3s0pgcbtb71cv7ug9kdd5si Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b394060166b39f41cd','2405233','wait',39,'adm09112754980.682000002')
20240807@172226.9030 hrl3s0pgcbtb71cv7ug9kdd5si Query : use flama_phc
20240807@172226.9070 hrl3s0pgcbtb71cv7ug9kdd5si Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172226.9350 hrl3s0pgcbtb71cv7ug9kdd5si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1425';
20240807@172226.9620 hrl3s0pgcbtb71cv7ug9kdd5si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1425';
20240807@172226.9980 hrl3s0pgcbtb71cv7ug9kdd5si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1425';
20240807@172226.1021 hrl3s0pgcbtb71cv7ug9kdd5si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1425';
20240807@172226.1624 445tq1e840qbokp5t2st1b5e5j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172226.1635 445tq1e840qbokp5t2st1b5e5j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172226.1690 445tq1e840qbokp5t2st1b5e5j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1426';
20240807@172226.1755 445tq1e840qbokp5t2st1b5e5j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1426';
20240807@172226.1811 445tq1e840qbokp5t2st1b5e5j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1426';
20240807@172226.1836 445tq1e840qbokp5t2st1b5e5j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1426';
20240807@172226.1885 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.1888 445tq1e840qbokp5t2st1b5e5j Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172226.1951 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.1954 445tq1e840qbokp5t2st1b5e5j Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172226.1996 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2203 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2231 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2255 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2279 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2304 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2329 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2354 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2381 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2422 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2488 445tq1e840qbokp5t2st1b5e5j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240807@172226.2518 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.2523 445tq1e840qbokp5t2st1b5e5j Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172226.3238 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3242 445tq1e840qbokp5t2st1b5e5j Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172226.3278 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3281 445tq1e840qbokp5t2st1b5e5j 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')
20240807@172226.3312 445tq1e840qbokp5t2st1b5e5j 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
20240807@172226.3348 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3351 445tq1e840qbokp5t2st1b5e5j Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172226.3380 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3383 445tq1e840qbokp5t2st1b5e5j Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172226.3414 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3417 445tq1e840qbokp5t2st1b5e5j Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172226.3474 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3477 445tq1e840qbokp5t2st1b5e5j Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172226.3523 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.3526 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from td where ndoc = 39
20240807@172226.3539 445tq1e840qbokp5t2st1b5e5j Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172226.3553 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.3570 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172226.3594 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.3611 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172226.3653 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.3674 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172226.3689 445tq1e840qbokp5t2st1b5e5j Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172226.3784 445tq1e840qbokp5t2st1b5e5j Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172226.3800 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.3817 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172226.3833 445tq1e840qbokp5t2st1b5e5j Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b394207766b39f425a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172226.4019 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.4043 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172226.4080 445tq1e840qbokp5t2st1b5e5j Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172226.4093 445tq1e840qbokp5t2st1b5e5j Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172226.4105 445tq1e840qbokp5t2st1b5e5j Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172226.4118 445tq1e840qbokp5t2st1b5e5j Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172226.4131 445tq1e840qbokp5t2st1b5e5j Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172226.4142 445tq1e840qbokp5t2st1b5e5j Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172226.4153 445tq1e840qbokp5t2st1b5e5j Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b394207766b39f425a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172226.4397 445tq1e840qbokp5t2st1b5e5j Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172226.4421 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.4439 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172226.4485 445tq1e840qbokp5t2st1b5e5j Query : select 'normal' from dummy
20240807@172226.4500 445tq1e840qbokp5t2st1b5e5j Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b394207766b39f425a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',249,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172226.4822 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.4825 445tq1e840qbokp5t2st1b5e5j Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20240807@172226.4858 445tq1e840qbokp5t2st1b5e5j 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.692.00.01'
20240807@172226.5014 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.5030 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172226.5056 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.5071 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172226.5079 445tq1e840qbokp5t2st1b5e5j Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172226.5092 445tq1e840qbokp5t2st1b5e5j Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400062200a'
20240807@172226.5101 445tq1e840qbokp5t2st1b5e5j Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.5115 445tq1e840qbokp5t2st1b5e5j Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172226.5135 445tq1e840qbokp5t2st1b5e5j Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390751166b39f427c','aut66b394207766b39f425a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172226.5151 445tq1e840qbokp5t2st1b5e5j Query : use flama_phc
20240807@172226.5154 445tq1e840qbokp5t2st1b5e5j Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240807@172226.6343 445tq1e840qbokp5t2st1b5e5j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1426';
20240807@172226.6368 445tq1e840qbokp5t2st1b5e5j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1426';
20240807@172226.6869 tmluba7tdtt1feogns849btt0r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172226.6880 tmluba7tdtt1feogns849btt0r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172226.6933 tmluba7tdtt1feogns849btt0r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1427';
20240807@172226.6987 tmluba7tdtt1feogns849btt0r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1427';
20240807@172226.7033 tmluba7tdtt1feogns849btt0r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1427';
20240807@172226.7057 tmluba7tdtt1feogns849btt0r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1427';
20240807@172226.7107 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7111 tmluba7tdtt1feogns849btt0r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172226.7179 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7182 tmluba7tdtt1feogns849btt0r Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172226.7284 tmluba7tdtt1feogns849btt0r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240807@172226.7478 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7482 tmluba7tdtt1feogns849btt0r Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172226.7519 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7523 tmluba7tdtt1feogns849btt0r Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172226.7554 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7557 tmluba7tdtt1feogns849btt0r 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')
20240807@172226.7586 tmluba7tdtt1feogns849btt0r 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
20240807@172226.7625 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7631 tmluba7tdtt1feogns849btt0r Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172226.7673 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7677 tmluba7tdtt1feogns849btt0r Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172226.7724 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7727 tmluba7tdtt1feogns849btt0r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172226.7770 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7774 tmluba7tdtt1feogns849btt0r Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172226.7825 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.7828 tmluba7tdtt1feogns849btt0r Query : select 1 valor from td where ndoc = 39
20240807@172226.7844 tmluba7tdtt1feogns849btt0r Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172226.7870 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.7889 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172226.7911 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.7926 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172226.7957 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.7972 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172226.7985 tmluba7tdtt1feogns849btt0r Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172226.8059 tmluba7tdtt1feogns849btt0r Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172226.8074 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.8090 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172226.8114 tmluba7tdtt1feogns849btt0r Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b395432666b39f42c2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172226.8327 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.8349 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172226.8388 tmluba7tdtt1feogns849btt0r Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172226.8401 tmluba7tdtt1feogns849btt0r Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172226.8414 tmluba7tdtt1feogns849btt0r Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172226.8426 tmluba7tdtt1feogns849btt0r Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172226.8440 tmluba7tdtt1feogns849btt0r Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172226.8452 tmluba7tdtt1feogns849btt0r Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172226.8464 tmluba7tdtt1feogns849btt0r Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b395432666b39f42c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172226.8716 tmluba7tdtt1feogns849btt0r Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172226.8742 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.8762 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172226.8787 tmluba7tdtt1feogns849btt0r Query : select 'normal' from dummy
20240807@172226.8808 tmluba7tdtt1feogns849btt0r Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b395432666b39f42c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',249,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172226.9116 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.9119 tmluba7tdtt1feogns849btt0r Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20240807@172226.9144 tmluba7tdtt1feogns849btt0r 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.946.00.01'
20240807@172226.9301 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.9317 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172226.9346 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.9361 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172226.9379 tmluba7tdtt1feogns849btt0r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172226.9393 tmluba7tdtt1feogns849btt0r Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20240807@172226.9416 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.9437 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172226.9451 tmluba7tdtt1feogns849btt0r Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b396604066b39f42e5','aut66b395432666b39f42c2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172226.9455 tmluba7tdtt1feogns849btt0r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172226.9473 tmluba7tdtt1feogns849btt0r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172226.9506 tmluba7tdtt1feogns849btt0r Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b396604066b39f42e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',56.000 ,'aut66b395432666b39f42c2' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172226.9776 tmluba7tdtt1feogns849btt0r Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b395432666b39f42c2','2405235','wait',39,'adm09112754980.682000002')
20240807@172226.9878 tmluba7tdtt1feogns849btt0r Query : use flama_phc
20240807@172226.9883 tmluba7tdtt1feogns849btt0r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172227.1156 tmluba7tdtt1feogns849btt0r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1427';
20240807@172227.1190 tmluba7tdtt1feogns849btt0r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1427';
20240807@172227.1228 tmluba7tdtt1feogns849btt0r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1427';
20240807@172227.1251 tmluba7tdtt1feogns849btt0r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1427';
20240807@172227.1866 bu2dfaod3oubio07sfqo2l7oil Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172227.1878 bu2dfaod3oubio07sfqo2l7oil Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172227.1931 bu2dfaod3oubio07sfqo2l7oil Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1428';
20240807@172227.2002 bu2dfaod3oubio07sfqo2l7oil Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1428';
20240807@172227.2054 bu2dfaod3oubio07sfqo2l7oil Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1428';
20240807@172227.2088 bu2dfaod3oubio07sfqo2l7oil Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1428';
20240807@172227.2136 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2139 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172227.2211 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2215 bu2dfaod3oubio07sfqo2l7oil Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172227.2283 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240807@172227.2517 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240807@172227.2544 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240807@172227.2568 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2573 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172227.2613 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2617 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172227.2657 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2663 bu2dfaod3oubio07sfqo2l7oil 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')
20240807@172227.2741 bu2dfaod3oubio07sfqo2l7oil 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
20240807@172227.2790 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2793 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172227.2836 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2841 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172227.2876 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2880 bu2dfaod3oubio07sfqo2l7oil Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172227.2927 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2931 bu2dfaod3oubio07sfqo2l7oil Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172227.2983 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.2988 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from td where ndoc = 39
20240807@172227.3011 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172227.3029 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.3047 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172227.3069 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.3084 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172227.3116 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.3134 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172227.3149 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172227.3226 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172227.3242 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.3288 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172227.3357 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b391535366b39f434c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172227.3630 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.3658 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172227.3696 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172227.3710 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172227.3722 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172227.3736 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172227.3749 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172227.3761 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172227.3773 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b391535366b39f434c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172227.4064 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172227.4119 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.4140 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172227.4164 bu2dfaod3oubio07sfqo2l7oil Query : select 'normal' from dummy
20240807@172227.4185 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b391535366b39f434c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',250,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172227.4521 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.4525 bu2dfaod3oubio07sfqo2l7oil Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240807@172227.4550 bu2dfaod3oubio07sfqo2l7oil 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.948.00.01'
20240807@172227.4715 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.4734 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172227.4763 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.4779 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172227.4789 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172227.4821 bu2dfaod3oubio07sfqo2l7oil Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240807@172227.4837 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.4852 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172227.4865 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b399079266b39f4376','aut66b391535366b39f434c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172227.4870 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.4887 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172227.4916 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b399079266b39f4376',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b391535366b39f434c' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172227.5180 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.5184 bu2dfaod3oubio07sfqo2l7oil Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240807@172227.5206 bu2dfaod3oubio07sfqo2l7oil 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.948.00.01'
20240807@172227.5222 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5242 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172227.5268 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5284 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172227.5293 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172227.5305 bu2dfaod3oubio07sfqo2l7oil Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240807@172227.5317 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5331 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172227.5343 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b399282866b39f4381','aut66b391535366b39f434c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172227.5347 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5362 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172227.5391 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b399282866b39f4381',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66b391535366b39f434c' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172227.5650 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.5653 bu2dfaod3oubio07sfqo2l7oil Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240807@172227.5673 bu2dfaod3oubio07sfqo2l7oil 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.948.00.01'
20240807@172227.5687 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5705 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172227.5734 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5749 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172227.5758 bu2dfaod3oubio07sfqo2l7oil Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172227.5771 bu2dfaod3oubio07sfqo2l7oil Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240807@172227.5784 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5799 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172227.5811 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b395686166b39f438d','aut66b391535366b39f434c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172227.5816 bu2dfaod3oubio07sfqo2l7oil Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.5831 bu2dfaod3oubio07sfqo2l7oil Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172227.5859 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b395686166b39f438d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66b391535366b39f434c' ,0,0 ,2,23.00,30000,?,?,?,?)
20240807@172227.6134 bu2dfaod3oubio07sfqo2l7oil Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b391535366b39f434c','2405236','wait',39,'adm09112754980.682000002')
20240807@172227.6209 bu2dfaod3oubio07sfqo2l7oil Query : use flama_phc
20240807@172227.6212 bu2dfaod3oubio07sfqo2l7oil Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172227.6243 bu2dfaod3oubio07sfqo2l7oil Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1428';
20240807@172227.6269 bu2dfaod3oubio07sfqo2l7oil Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1428';
20240807@172227.6307 bu2dfaod3oubio07sfqo2l7oil Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1428';
20240807@172227.6332 bu2dfaod3oubio07sfqo2l7oil Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1428';
20240807@172227.7892 vgtvolihcm3r1oopbe8c70p9ns Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172227.7904 vgtvolihcm3r1oopbe8c70p9ns Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172227.7955 vgtvolihcm3r1oopbe8c70p9ns Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1429';
20240807@172227.8009 vgtvolihcm3r1oopbe8c70p9ns Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1429';
20240807@172227.8065 vgtvolihcm3r1oopbe8c70p9ns Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1429';
20240807@172227.8088 vgtvolihcm3r1oopbe8c70p9ns Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1429';
20240807@172227.8137 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8141 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172227.8206 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8209 vgtvolihcm3r1oopbe8c70p9ns Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240807@172227.8250 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20240807@172227.8413 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20240807@172227.8445 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8448 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172227.8493 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8497 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172227.8529 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8532 vgtvolihcm3r1oopbe8c70p9ns 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')
20240807@172227.8561 vgtvolihcm3r1oopbe8c70p9ns 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
20240807@172227.8605 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8608 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240807@172227.8640 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8644 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172227.8677 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8680 vgtvolihcm3r1oopbe8c70p9ns Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172227.8721 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8724 vgtvolihcm3r1oopbe8c70p9ns Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240807@172227.8771 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172227.8774 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from td where ndoc = 39
20240807@172227.8786 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172227.8801 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.8818 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172227.8837 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.8852 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172227.8886 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.8902 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172227.8918 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172227.8988 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172227.9002 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.9018 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172227.9034 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b393642166b39f43d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172227.9234 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.9254 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172227.9294 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172227.9307 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172227.9320 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172227.9333 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172227.9345 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172227.9357 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172227.9369 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b393642166b39f43d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172227.9639 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172227.9661 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172227.9679 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172227.9704 vgtvolihcm3r1oopbe8c70p9ns Query : select 'normal' from dummy
20240807@172227.9720 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b393642166b39f43d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',251,100810,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172228.4500 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172228.4800 vgtvolihcm3r1oopbe8c70p9ns Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240807@172228.7200 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20240807@172228.2260 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.2440 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.2700 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.2860 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.2960 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.3090 vgtvolihcm3r1oopbe8c70p9ns Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240807@172228.3240 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.3390 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.3510 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b396859666b39f4407','aut66b393642166b39f43d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.3550 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.3690 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.4010 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b396859666b39f4407',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b393642166b39f43d9' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172228.6810 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.6970 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.7260 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7410 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.7510 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.7650 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7810 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.7930 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b395196966b39f4412','aut66b393642166b39f43d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.7970 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.8110 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.8410 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b395196966b39f4412',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b393642166b39f43d9' ,0,0 ,2,23.00,20000,?,?,?)
20240807@172228.1083 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172228.1086 vgtvolihcm3r1oopbe8c70p9ns Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240807@172228.1105 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20240807@172228.1120 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1136 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.1163 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1178 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.1186 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.1197 vgtvolihcm3r1oopbe8c70p9ns Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240807@172228.1209 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1225 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.1238 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b398749066b39f441d','aut66b393642166b39f43d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.1242 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1259 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.1288 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b398749066b39f441d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66b393642166b39f43d9' ,0,0 ,2,23.00,40000,?,?,?,?)
20240807@172228.1551 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1568 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.1595 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1610 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.1619 vgtvolihcm3r1oopbe8c70p9ns Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.1632 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1647 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.1659 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b392160166b39f4427','aut66b393642166b39f43d9' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.1663 vgtvolihcm3r1oopbe8c70p9ns Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.1678 vgtvolihcm3r1oopbe8c70p9ns Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.1712 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b392160166b39f4427',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b393642166b39f43d9' ,0,0 ,2,23.00,50000,?,?,?)
20240807@172228.2008 vgtvolihcm3r1oopbe8c70p9ns Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b393642166b39f43d9','2405253','wait',39,'adm09112754980.682000002')
20240807@172228.2090 vgtvolihcm3r1oopbe8c70p9ns Query : use flama_phc
20240807@172228.2094 vgtvolihcm3r1oopbe8c70p9ns Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172228.2133 vgtvolihcm3r1oopbe8c70p9ns Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1429';
20240807@172228.2160 vgtvolihcm3r1oopbe8c70p9ns Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1429';
20240807@172228.2211 vgtvolihcm3r1oopbe8c70p9ns Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1429';
20240807@172228.2234 vgtvolihcm3r1oopbe8c70p9ns Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1429';
20240807@172228.2722 fc44qmq2gloe15kp4l6ktprdrj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172228.2733 fc44qmq2gloe15kp4l6ktprdrj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172228.2785 fc44qmq2gloe15kp4l6ktprdrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1430';
20240807@172228.2839 fc44qmq2gloe15kp4l6ktprdrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1430';
20240807@172228.2887 fc44qmq2gloe15kp4l6ktprdrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1430';
20240807@172228.2911 fc44qmq2gloe15kp4l6ktprdrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1430';
20240807@172228.2956 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.2959 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172228.3024 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.3027 fc44qmq2gloe15kp4l6ktprdrj Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20240807@172228.3110 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240807@172228.3287 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20240807@172228.3438 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.3441 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172228.3476 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.3480 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172228.4860 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.4864 fc44qmq2gloe15kp4l6ktprdrj 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')
20240807@172228.4892 fc44qmq2gloe15kp4l6ktprdrj 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
20240807@172228.4946 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.4949 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20240807@172228.5077 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.5080 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172228.5110 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.5113 fc44qmq2gloe15kp4l6ktprdrj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172228.5151 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.5153 fc44qmq2gloe15kp4l6ktprdrj Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20240807@172228.5197 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.5200 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from td where ndoc = 39
20240807@172228.5213 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172228.5227 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.5246 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172228.5265 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.5283 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172228.5313 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.5328 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172228.5340 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172228.5410 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172228.5424 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.5442 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172228.5463 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b391736366b39f4482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172228.5652 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.5673 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172228.5711 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172228.5726 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172228.5740 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172228.5753 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172228.5766 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172228.5790 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172228.5803 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b391736366b39f4482',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172228.6067 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172228.6086 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.6105 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172228.6132 fc44qmq2gloe15kp4l6ktprdrj Query : select 'normal' from dummy
20240807@172228.6151 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b391736366b39f4482',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',252,199510,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172228.6459 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.6464 fc44qmq2gloe15kp4l6ktprdrj Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240807@172228.6494 fc44qmq2gloe15kp4l6ktprdrj 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.1690.00.1'
20240807@172228.6694 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.6714 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.6744 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.6763 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.6773 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.6787 fc44qmq2gloe15kp4l6ktprdrj Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240807@172228.6801 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.6817 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.6830 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b392852066b39f44a6','aut66b391736366b39f4482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.6835 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.6855 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.6893 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b392852066b39f44a6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66b391736366b39f4482' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172228.7175 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7192 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.7223 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7239 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.7250 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.7265 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7282 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.7295 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b392895166b39f44b1','aut66b391736366b39f4482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.7300 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7316 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.7347 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b392895166b39f44b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b391736366b39f4482' ,0,0 ,2,23.00,20000,?,?,?)
20240807@172228.7627 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.7630 fc44qmq2gloe15kp4l6ktprdrj Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240807@172228.7656 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240807@172228.7809 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7827 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.7858 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7879 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.7888 fc44qmq2gloe15kp4l6ktprdrj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172228.7904 fc44qmq2gloe15kp4l6ktprdrj Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240807@172228.7919 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7935 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172228.7950 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b395642366b39f44c1','aut66b391736366b39f4482' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172228.7954 fc44qmq2gloe15kp4l6ktprdrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172228.7971 fc44qmq2gloe15kp4l6ktprdrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172228.8003 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b395642366b39f44c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66b391736366b39f4482' ,0,0 ,2,23.00,40000,?,?,?,?)
20240807@172228.8282 fc44qmq2gloe15kp4l6ktprdrj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b391736366b39f4482','2405268','wait',39,'adm09112754980.682000002')
20240807@172228.8354 fc44qmq2gloe15kp4l6ktprdrj Query : use flama_phc
20240807@172228.8357 fc44qmq2gloe15kp4l6ktprdrj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172228.8389 fc44qmq2gloe15kp4l6ktprdrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1430';
20240807@172228.8417 fc44qmq2gloe15kp4l6ktprdrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1430';
20240807@172228.8454 fc44qmq2gloe15kp4l6ktprdrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1430';
20240807@172228.8475 fc44qmq2gloe15kp4l6ktprdrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1430';
20240807@172228.9321 hkuc1ulcefutmhidulh7l1a9nr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172228.9332 hkuc1ulcefutmhidulh7l1a9nr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172229.8570 hkuc1ulcefutmhidulh7l1a9nr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1431';
20240807@172229.9230 hkuc1ulcefutmhidulh7l1a9nr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1431';
20240807@172229.9720 hkuc1ulcefutmhidulh7l1a9nr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1431';
20240807@172229.9960 hkuc1ulcefutmhidulh7l1a9nr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1431';
20240807@172229.1042 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1046 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172229.1107 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1110 hkuc1ulcefutmhidulh7l1a9nr Query : select no, estab,szadrsdesc from szadrs where u_coddest=489
20240807@172229.1196 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240807@172229.1362 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240807@172229.1383 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1387 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172229.1422 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1425 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172229.1456 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1459 hkuc1ulcefutmhidulh7l1a9nr 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')
20240807@172229.1488 hkuc1ulcefutmhidulh7l1a9nr 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
20240807@172229.1523 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1526 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 ~inactivo valor from cl where no = '101665' and estab = 0 order by inactivo desc
20240807@172229.1650 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1653 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172229.1685 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1688 hkuc1ulcefutmhidulh7l1a9nr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172229.1729 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1733 hkuc1ulcefutmhidulh7l1a9nr Query : select szadrsstamp valor from szadrs where szadrsdesc='armando faria fernandes, lda'
20240807@172229.1784 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.1787 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from td where ndoc = 39
20240807@172229.1803 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172229.1819 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.1837 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172229.1860 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.1877 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172229.1909 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.1925 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172229.1939 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172229.2015 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172229.2030 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.2047 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172229.2064 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b399525666b39f452f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172229.2249 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.2269 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172229.2311 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172229.2325 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172229.2340 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172229.2353 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172229.2366 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172229.2379 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172229.2393 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b399525666b39f452f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172229.2693 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172229.2716 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.2734 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172229.2761 hkuc1ulcefutmhidulh7l1a9nr Query : select 'normal' from dummy
20240807@172229.2778 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b399525666b39f452f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',253,101665,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172229.3119 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.3123 hkuc1ulcefutmhidulh7l1a9nr Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240807@172229.3148 hkuc1ulcefutmhidulh7l1a9nr 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.1643.00.1'
20240807@172229.3304 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3321 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.3350 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3366 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.3376 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172229.3388 hkuc1ulcefutmhidulh7l1a9nr Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240807@172229.3401 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3416 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.3429 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b392109066b39f4553','aut66b399525666b39f452f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172229.3435 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3451 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.3479 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b392109066b39f4553',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b399525666b39f452f' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172229.3749 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.3753 hkuc1ulcefutmhidulh7l1a9nr Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240807@172229.3774 hkuc1ulcefutmhidulh7l1a9nr 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.1643.00.1'
20240807@172229.3790 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3807 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.3834 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3849 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.3859 hkuc1ulcefutmhidulh7l1a9nr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172229.3872 hkuc1ulcefutmhidulh7l1a9nr Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240807@172229.3885 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3900 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.3912 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b394421666b39f455e','aut66b399525666b39f452f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172229.3916 hkuc1ulcefutmhidulh7l1a9nr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.3931 hkuc1ulcefutmhidulh7l1a9nr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.3961 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b394421666b39f455e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66b399525666b39f452f' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172229.4295 hkuc1ulcefutmhidulh7l1a9nr Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b399525666b39f452f','2405269','wait',39,'adm09112754980.682000002')
20240807@172229.4367 hkuc1ulcefutmhidulh7l1a9nr Query : use flama_phc
20240807@172229.4370 hkuc1ulcefutmhidulh7l1a9nr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172229.4399 hkuc1ulcefutmhidulh7l1a9nr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1431';
20240807@172229.4426 hkuc1ulcefutmhidulh7l1a9nr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1431';
20240807@172229.4462 hkuc1ulcefutmhidulh7l1a9nr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1431';
20240807@172229.4484 hkuc1ulcefutmhidulh7l1a9nr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1431';
20240807@172229.5048 j041j1e02k7vnp580e7nn436ek Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172229.5061 j041j1e02k7vnp580e7nn436ek Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172229.5110 j041j1e02k7vnp580e7nn436ek Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1432';
20240807@172229.5163 j041j1e02k7vnp580e7nn436ek Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1432';
20240807@172229.5214 j041j1e02k7vnp580e7nn436ek Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1432';
20240807@172229.5238 j041j1e02k7vnp580e7nn436ek Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1432';
20240807@172229.5282 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.5285 j041j1e02k7vnp580e7nn436ek Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172229.5349 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.5352 j041j1e02k7vnp580e7nn436ek Query : select no, estab,szadrsdesc from szadrs where u_coddest=1596
20240807@172229.5435 j041j1e02k7vnp580e7nn436ek 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'
20240807@172229.5597 j041j1e02k7vnp580e7nn436ek Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240807@172229.5734 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.5737 j041j1e02k7vnp580e7nn436ek Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172229.5772 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.5775 j041j1e02k7vnp580e7nn436ek Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172229.5805 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.5808 j041j1e02k7vnp580e7nn436ek 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')
20240807@172229.5838 j041j1e02k7vnp580e7nn436ek 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
20240807@172229.5875 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.5878 j041j1e02k7vnp580e7nn436ek Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20240807@172229.6004 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.6007 j041j1e02k7vnp580e7nn436ek Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172229.6039 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.6042 j041j1e02k7vnp580e7nn436ek Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172229.6083 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.6086 j041j1e02k7vnp580e7nn436ek Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom-electrodomÉsticos, lda. - crainha'
20240807@172229.6134 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.6137 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from td where ndoc = 39
20240807@172229.6200 j041j1e02k7vnp580e7nn436ek Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172229.6218 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.6239 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172229.6262 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.6278 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172229.6310 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.6327 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172229.6346 j041j1e02k7vnp580e7nn436ek Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172229.6420 j041j1e02k7vnp580e7nn436ek Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172229.6434 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.6450 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172229.6468 j041j1e02k7vnp580e7nn436ek Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b399060666b39f459a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172229.6664 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.6685 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172229.6875 j041j1e02k7vnp580e7nn436ek Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172229.6889 j041j1e02k7vnp580e7nn436ek Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172229.6902 j041j1e02k7vnp580e7nn436ek Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172229.6915 j041j1e02k7vnp580e7nn436ek Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172229.6930 j041j1e02k7vnp580e7nn436ek Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172229.6944 j041j1e02k7vnp580e7nn436ek Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172229.6957 j041j1e02k7vnp580e7nn436ek Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b399060666b39f459a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172229.7221 j041j1e02k7vnp580e7nn436ek Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172229.7243 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.7262 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172229.7289 j041j1e02k7vnp580e7nn436ek Query : select 'normal' from dummy
20240807@172229.7305 j041j1e02k7vnp580e7nn436ek Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b399060666b39f459a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',254,102155,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172229.7763 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.7766 j041j1e02k7vnp580e7nn436ek Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240807@172229.7831 j041j1e02k7vnp580e7nn436ek 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'
20240807@172229.7991 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8012 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.8042 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8061 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.8072 j041j1e02k7vnp580e7nn436ek Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172229.8087 j041j1e02k7vnp580e7nn436ek Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240807@172229.8133 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8150 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.8164 j041j1e02k7vnp580e7nn436ek Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b398622366b39f45c6','aut66b399060666b39f459a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172229.8169 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8185 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.8218 j041j1e02k7vnp580e7nn436ek Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b398622366b39f45c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b399060666b39f459a' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172229.8496 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.8500 j041j1e02k7vnp580e7nn436ek Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240807@172229.8525 j041j1e02k7vnp580e7nn436ek Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240807@172229.8679 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8696 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.8724 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8739 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.8748 j041j1e02k7vnp580e7nn436ek Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172229.8761 j041j1e02k7vnp580e7nn436ek Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240807@172229.8776 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8791 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172229.8804 j041j1e02k7vnp580e7nn436ek Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b393909466b39f45d6','aut66b399060666b39f459a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172229.8808 j041j1e02k7vnp580e7nn436ek Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172229.8823 j041j1e02k7vnp580e7nn436ek Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172229.8857 j041j1e02k7vnp580e7nn436ek Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b393909466b39f45d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b399060666b39f459a' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172229.9173 j041j1e02k7vnp580e7nn436ek Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b399060666b39f459a','2405271','wait',39,'adm09112754980.682000002')
20240807@172229.9251 j041j1e02k7vnp580e7nn436ek Query : use flama_phc
20240807@172229.9255 j041j1e02k7vnp580e7nn436ek Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172229.9303 j041j1e02k7vnp580e7nn436ek Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1432';
20240807@172229.9331 j041j1e02k7vnp580e7nn436ek Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1432';
20240807@172229.9377 j041j1e02k7vnp580e7nn436ek Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1432';
20240807@172229.9400 j041j1e02k7vnp580e7nn436ek Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1432';
20240807@172229.9904 u5pea3q70c9rjrd7jshvnim1bq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172229.9924 u5pea3q70c9rjrd7jshvnim1bq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172229.9981 u5pea3q70c9rjrd7jshvnim1bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1433';
20240807@172230.3400 u5pea3q70c9rjrd7jshvnim1bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1433';
20240807@172230.8200 u5pea3q70c9rjrd7jshvnim1bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1433';
20240807@172230.1050 u5pea3q70c9rjrd7jshvnim1bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1433';
20240807@172230.1560 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.1600 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172230.2390 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.2420 u5pea3q70c9rjrd7jshvnim1bq Query : select no, estab,szadrsdesc from szadrs where u_coddest=5084
20240807@172230.3320 u5pea3q70c9rjrd7jshvnim1bq 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'
20240807@172230.3530 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240807@172230.3800 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.3830 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172230.4150 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.4180 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172230.4550 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.4580 u5pea3q70c9rjrd7jshvnim1bq 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')
20240807@172230.4870 u5pea3q70c9rjrd7jshvnim1bq 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
20240807@172230.5230 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.5260 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20240807@172230.5730 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.5760 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172230.6060 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.6090 u5pea3q70c9rjrd7jshvnim1bq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172230.6570 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.6590 u5pea3q70c9rjrd7jshvnim1bq Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom-electrodomÉsticos, lda.- ourem( novo)'
20240807@172230.7120 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.7150 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from td where ndoc = 39
20240807@172230.7270 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172230.7400 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7570 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172230.7870 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.8010 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172230.8280 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.8430 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172230.8550 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172230.9330 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172230.9470 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.9630 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172230.9790 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b399023966b39f4614' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172230.1175 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.1192 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172230.1235 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172230.1247 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172230.1259 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172230.1272 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172230.1284 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172230.1296 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172230.1308 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b399023966b39f4614',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172230.1555 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172230.1577 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.1594 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172230.1619 u5pea3q70c9rjrd7jshvnim1bq Query : select 'normal' from dummy
20240807@172230.1635 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b399023966b39f4614',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',255,102155,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172230.2002 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.2006 u5pea3q70c9rjrd7jshvnim1bq Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240807@172230.2037 u5pea3q70c9rjrd7jshvnim1bq 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'
20240807@172230.2054 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2074 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.2103 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2118 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.2127 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172230.2145 u5pea3q70c9rjrd7jshvnim1bq Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240807@172230.2161 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2182 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.2209 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b394207266b39f4634','aut66b399023966b39f4614' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172230.2214 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2230 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.2266 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b394207266b39f4634',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66b399023966b39f4614' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172230.2568 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.2572 u5pea3q70c9rjrd7jshvnim1bq Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240807@172230.2598 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240807@172230.2616 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2636 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.2669 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2685 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.2696 u5pea3q70c9rjrd7jshvnim1bq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172230.2710 u5pea3q70c9rjrd7jshvnim1bq Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240807@172230.2724 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2738 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.2751 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391773366b39f4642','aut66b399023966b39f4614' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172230.2756 u5pea3q70c9rjrd7jshvnim1bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.2773 u5pea3q70c9rjrd7jshvnim1bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.2823 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391773366b39f4642',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b399023966b39f4614' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172230.3116 u5pea3q70c9rjrd7jshvnim1bq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b399023966b39f4614','2405272','wait',39,'adm09112754980.682000002')
20240807@172230.3222 u5pea3q70c9rjrd7jshvnim1bq Query : use flama_phc
20240807@172230.3226 u5pea3q70c9rjrd7jshvnim1bq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172230.3271 u5pea3q70c9rjrd7jshvnim1bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1433';
20240807@172230.3308 u5pea3q70c9rjrd7jshvnim1bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1433';
20240807@172230.3347 u5pea3q70c9rjrd7jshvnim1bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1433';
20240807@172230.3378 u5pea3q70c9rjrd7jshvnim1bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1433';
20240807@172230.3941 bq45rsj31jkuso1dddba34nbu2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172230.3953 bq45rsj31jkuso1dddba34nbu2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172230.4025 bq45rsj31jkuso1dddba34nbu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1434';
20240807@172230.4094 bq45rsj31jkuso1dddba34nbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1434';
20240807@172230.4156 bq45rsj31jkuso1dddba34nbu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1434';
20240807@172230.4182 bq45rsj31jkuso1dddba34nbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1434';
20240807@172230.4232 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4236 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172230.4307 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4310 bq45rsj31jkuso1dddba34nbu2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=7117
20240807@172230.4454 bq45rsj31jkuso1dddba34nbu2 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'
20240807@172230.4477 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240807@172230.4499 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4502 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172230.4536 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4539 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172230.4580 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4583 bq45rsj31jkuso1dddba34nbu2 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')
20240807@172230.4620 bq45rsj31jkuso1dddba34nbu2 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
20240807@172230.4661 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4664 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20240807@172230.4695 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4698 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172230.4733 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4737 bq45rsj31jkuso1dddba34nbu2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172230.4780 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4783 bq45rsj31jkuso1dddba34nbu2 Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom - loja leiria'
20240807@172230.4833 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.4836 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from td where ndoc = 39
20240807@172230.4849 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172230.4863 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.4884 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172230.4909 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.4926 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172230.4959 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.4976 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172230.4990 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172230.5068 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172230.5082 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.5100 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172230.5121 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b391850066b39f4679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172230.5314 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.5336 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172230.5374 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172230.5386 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172230.5401 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172230.5414 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172230.5427 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172230.5440 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172230.5451 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b391850066b39f4679',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172230.5944 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172230.6849 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.6866 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172230.6889 bq45rsj31jkuso1dddba34nbu2 Query : select 'normal' from dummy
20240807@172230.6906 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b391850066b39f4679',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',256,102155,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172230.7241 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.7245 bq45rsj31jkuso1dddba34nbu2 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240807@172230.7269 bq45rsj31jkuso1dddba34nbu2 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'
20240807@172230.7286 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7304 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.7336 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7352 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.7361 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172230.7376 bq45rsj31jkuso1dddba34nbu2 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240807@172230.7389 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7404 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.7417 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b397660666b39f46b4','aut66b391850066b39f4679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172230.7422 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7437 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.7469 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b397660666b39f46b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b391850066b39f4679' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172230.7751 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.7754 bq45rsj31jkuso1dddba34nbu2 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240807@172230.7776 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240807@172230.7790 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7807 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.7836 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7856 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.7865 bq45rsj31jkuso1dddba34nbu2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172230.7878 bq45rsj31jkuso1dddba34nbu2 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240807@172230.7901 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7917 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172230.7930 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b398801666b39f46c0','aut66b391850066b39f4679' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172230.7935 bq45rsj31jkuso1dddba34nbu2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172230.7949 bq45rsj31jkuso1dddba34nbu2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172230.7976 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b398801666b39f46c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b391850066b39f4679' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172230.8263 bq45rsj31jkuso1dddba34nbu2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b391850066b39f4679','2405274','wait',39,'adm09112754980.682000002')
20240807@172230.8346 bq45rsj31jkuso1dddba34nbu2 Query : use flama_phc
20240807@172230.8350 bq45rsj31jkuso1dddba34nbu2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172230.8399 bq45rsj31jkuso1dddba34nbu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1434';
20240807@172230.8427 bq45rsj31jkuso1dddba34nbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1434';
20240807@172230.8472 bq45rsj31jkuso1dddba34nbu2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1434';
20240807@172230.8507 bq45rsj31jkuso1dddba34nbu2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1434';
20240807@172230.9105 i8q2t6m9heu2sjs9k50u5292hj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172230.9119 i8q2t6m9heu2sjs9k50u5292hj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172230.9170 i8q2t6m9heu2sjs9k50u5292hj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1435';
20240807@172230.9235 i8q2t6m9heu2sjs9k50u5292hj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1435';
20240807@172230.9293 i8q2t6m9heu2sjs9k50u5292hj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1435';
20240807@172230.9317 i8q2t6m9heu2sjs9k50u5292hj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1435';
20240807@172230.9362 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172230.9366 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172230.9448 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172230.9452 i8q2t6m9heu2sjs9k50u5292hj Query : select no, estab,szadrsdesc from szadrs where u_coddest=1474
20240807@172230.9541 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9316.00.1'
20240807@172230.9722 i8q2t6m9heu2sjs9k50u5292hj 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'
20240807@172230.9880 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172230.9884 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172230.9918 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172230.9921 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172230.9962 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172230.9965 i8q2t6m9heu2sjs9k50u5292hj 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')
20240807@172230.9997 i8q2t6m9heu2sjs9k50u5292hj 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
20240807@172231.3900 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.4200 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240807@172231.1980 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.2010 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172231.2470 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.2500 i8q2t6m9heu2sjs9k50u5292hj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172231.2900 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.2930 i8q2t6m9heu2sjs9k50u5292hj Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - corroios'
20240807@172231.3380 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.3410 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from td where ndoc = 39
20240807@172231.3650 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172231.3880 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.4070 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172231.4250 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.4500 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172231.4850 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.4990 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172231.5140 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172231.5840 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172231.5970 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.6130 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172231.6290 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b392948366b39f470c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172231.8170 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.8350 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172231.8710 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172231.8840 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172231.8950 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172231.9080 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172231.9190 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172231.9340 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172231.9460 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b392948366b39f470c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172231.1223 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172231.1248 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.1270 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172231.1294 i8q2t6m9heu2sjs9k50u5292hj Query : select 'normal' from dummy
20240807@172231.1312 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b392948366b39f470c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',257,101621,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172231.1657 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.1661 i8q2t6m9heu2sjs9k50u5292hj Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20240807@172231.1686 i8q2t6m9heu2sjs9k50u5292hj 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.9316.00.1'
20240807@172231.1853 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.1870 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.1906 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.1922 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.1942 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172231.1960 i8q2t6m9heu2sjs9k50u5292hj Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20240807@172231.1978 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.2008 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.2022 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391631766b39f4730','aut66b392948366b39f470c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172231.2027 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.2044 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.2077 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391631766b39f4730',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66b392948366b39f470c' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172231.2376 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.2408 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.2442 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.2462 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.2471 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172231.2485 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.2501 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.2513 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390356866b39f473c','aut66b392948366b39f470c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172231.2518 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.2535 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.2568 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b390356866b39f473c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b392948366b39f470c' ,0,0 ,2,23.00,20000,?,?,?)
20240807@172231.2858 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.2861 i8q2t6m9heu2sjs9k50u5292hj Query : select st.usalote valor from st where st.ref = '327.8253.00.1'
20240807@172231.3010 i8q2t6m9heu2sjs9k50u5292hj 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'
20240807@172231.3252 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3270 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.3296 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3311 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.3320 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172231.3342 i8q2t6m9heu2sjs9k50u5292hj Query : select sestamp valor from se where ref ='327.8253.00.1' and lote = 'r2400072300a'
20240807@172231.3356 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3372 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.3384 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b399023866b39f4751','aut66b392948366b39f470c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172231.3388 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3403 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.3447 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b399023866b39f4751',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66b392948366b39f470c' ,0,0 ,2,23.00,40000,?,?,?,?)
20240807@172231.3771 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3789 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.3819 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3838 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.3847 i8q2t6m9heu2sjs9k50u5292hj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172231.3871 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3887 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172231.3900 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b398714566b39f475e','aut66b392948366b39f470c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172231.3904 i8q2t6m9heu2sjs9k50u5292hj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.3919 i8q2t6m9heu2sjs9k50u5292hj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172231.3949 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b398714566b39f475e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b392948366b39f470c' ,0,0 ,2,23.00,50000,?,?,?)
20240807@172231.4242 i8q2t6m9heu2sjs9k50u5292hj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b392948366b39f470c','2405277','wait',39,'adm09112754980.682000002')
20240807@172231.4334 i8q2t6m9heu2sjs9k50u5292hj Query : use flama_phc
20240807@172231.4337 i8q2t6m9heu2sjs9k50u5292hj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172231.4369 i8q2t6m9heu2sjs9k50u5292hj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1435';
20240807@172231.4404 i8q2t6m9heu2sjs9k50u5292hj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1435';
20240807@172231.4460 i8q2t6m9heu2sjs9k50u5292hj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1435';
20240807@172231.4485 i8q2t6m9heu2sjs9k50u5292hj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1435';
20240807@172231.5246 k18iiuga02l3hjbbijgng0q3sn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240807@172231.5258 k18iiuga02l3hjbbijgng0q3sn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240807@172231.5322 k18iiuga02l3hjbbijgng0q3sn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1436';
20240807@172231.5389 k18iiuga02l3hjbbijgng0q3sn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1436';
20240807@172231.5450 k18iiuga02l3hjbbijgng0q3sn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1436';
20240807@172231.5683 k18iiuga02l3hjbbijgng0q3sn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1436';
20240807@172231.5739 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.5743 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240807@172231.5811 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.5814 k18iiuga02l3hjbbijgng0q3sn Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240807@172231.5904 k18iiuga02l3hjbbijgng0q3sn 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'
20240807@172231.6084 k18iiuga02l3hjbbijgng0q3sn 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'
20240807@172231.6106 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240807@172231.6263 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240807@172231.6293 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6297 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240807@172231.6335 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6338 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 1 valor from td where td.ndoc = 39
20240807@172231.6370 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6373 k18iiuga02l3hjbbijgng0q3sn 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')
20240807@172231.6402 k18iiuga02l3hjbbijgng0q3sn 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
20240807@172231.6450 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6453 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20240807@172231.6592 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6595 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240807@172231.6628 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6631 k18iiuga02l3hjbbijgng0q3sn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240807@172231.6675 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6678 k18iiuga02l3hjbbijgng0q3sn Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240807@172231.6732 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172231.6735 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from td where ndoc = 39
20240807@172231.6749 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240807@172231.6769 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.6787 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172231.6809 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.6826 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172231.6859 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.6875 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172231.6889 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172231.6986 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240807@172231.7043 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.7060 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240807@172231.7077 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b398260366b39f47a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240807@172231.7273 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.7294 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240807@172231.7344 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240807@172231.7358 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240807@172231.7372 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240807@172231.7388 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240807@172231.7402 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240807@172231.7414 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240807@172231.7428 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b398260366b39f47a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240807@172231.8353 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 fno valor from wsftdata order by fno desc
20240807@172231.8802 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172231.9716 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240807@172231.9805 k18iiuga02l3hjbbijgng0q3sn Query : select 'normal' from dummy
20240807@172231.9838 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b398260366b39f47a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',258,102079,0,'2024-08-07',39,'euro',0,0,2024 ,?,?)
20240807@172232.2020 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172232.2060 k18iiuga02l3hjbbijgng0q3sn Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240807@172232.2410 k18iiuga02l3hjbbijgng0q3sn 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'
20240807@172232.4090 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.4250 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.4510 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.4670 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.4760 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172232.4880 k18iiuga02l3hjbbijgng0q3sn Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2101259200a'
20240807@172232.5020 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.5250 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.5440 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b392712866b39f480c','aut66b398260366b39f47a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172232.5490 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.5650 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.6080 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b392712866b39f480c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b398260366b39f47a8' ,0,0 ,2,23.00,10000,?,?,?,?)
20240807@172232.8940 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172232.8980 k18iiuga02l3hjbbijgng0q3sn Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240807@172232.9190 k18iiuga02l3hjbbijgng0q3sn 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'
20240807@172232.9330 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.9500 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.9770 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.9920 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.1001 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172232.1013 k18iiuga02l3hjbbijgng0q3sn Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240807@172232.1040 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.1056 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.1067 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b391580366b39f4819','aut66b398260366b39f47a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172232.1071 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.1086 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.1118 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b391580366b39f4819',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66b398260366b39f47a8' ,0,0 ,2,23.00,20000,?,?,?,?)
20240807@172232.1452 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172232.1459 k18iiuga02l3hjbbijgng0q3sn Query : select st.usalote valor from st where st.ref = '324.5347.00.1'
20240807@172232.1504 k18iiuga02l3hjbbijgng0q3sn 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.5347.00.1'
20240807@172232.1704 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.1725 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.1760 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.1777 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.1786 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172232.1798 k18iiuga02l3hjbbijgng0q3sn Query : select sestamp valor from se where ref ='324.5347.00.1' and lote = 'r2300915100a'
20240807@172232.1813 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.1829 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.1842 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b390630966b39f482c','aut66b398260366b39f47a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172232.1846 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.1862 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.1893 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b390630966b39f482c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b398260366b39f47a8' ,0,0 ,2,23.00,30000,?,?,?,?)
20240807@172232.2382 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.2408 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.2443 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.2467 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.2477 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172232.2493 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.2510 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.2524 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b396414366b39f483c','aut66b398260366b39f47a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172232.2530 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.2549 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.2584 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b396414366b39f483c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b398260366b39f47a8' ,0,0 ,2,23.00,40000,?,?,?)
20240807@172232.2940 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172232.2944 k18iiuga02l3hjbbijgng0q3sn Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240807@172232.2970 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240807@172232.2986 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.3006 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.3038 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.3053 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.3063 k18iiuga02l3hjbbijgng0q3sn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240807@172232.3076 k18iiuga02l3hjbbijgng0q3sn Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240807@172232.3090 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.3107 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240807@172232.3119 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b393571266b39f484b','aut66b398260366b39f47a8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240807@172232.3123 k18iiuga02l3hjbbijgng0q3sn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240807@172232.3139 k18iiuga02l3hjbbijgng0q3sn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240807@172232.3173 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b393571266b39f484b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b398260366b39f47a8' ,0,0 ,2,23.00,60000,?,?,?,?)
20240807@172232.3455 k18iiuga02l3hjbbijgng0q3sn Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b398260366b39f47a8','2405278','wait',39,'adm09112754980.682000002')
20240807@172232.3528 k18iiuga02l3hjbbijgng0q3sn Query : use flama_phc
20240807@172232.3532 k18iiuga02l3hjbbijgng0q3sn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240807@172232.3565 k18iiuga02l3hjbbijgng0q3sn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1436';
20240807@172232.3594 k18iiuga02l3hjbbijgng0q3sn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1436';
20240807@172232.3634 k18iiuga02l3hjbbijgng0q3sn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1436';
20240807@172232.3661 k18iiuga02l3hjbbijgng0q3sn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1436';

20240808@103724.2167 jps0f3gcl29mjdk91mqgl4ue3v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1437';
20240808@103724.2242 jps0f3gcl29mjdk91mqgl4ue3v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1437';
20240808@103724.2271 jps0f3gcl29mjdk91mqgl4ue3v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1437';
20240808@103724.2317 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.2321 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@103724.2438 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2000.94.1'
20240808@103724.2661 jps0f3gcl29mjdk91mqgl4ue3v 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 = 2400330 and bi.ref ='324.2000.94.1' and bi.lordem =20000
20240808@103724.3198 jps0f3gcl29mjdk91mqgl4ue3v 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 = 'cps24032245678,739000002 ' 
20240808@103724.3608 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.3613 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 1 valor from ts where ts.ndos = 61
20240808@103724.3823 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.3828 jps0f3gcl29mjdk91mqgl4ue3v 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')
20240808@103724.3925 jps0f3gcl29mjdk91mqgl4ue3v 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
20240808@103724.4146 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.4150 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 ~inactivo valor from fl where no = '202190' and estab = 00 order by inactivo desc
20240808@103724.4428 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.4432 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from ts where ndos = 61
20240808@103724.4567 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.5006 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240808@103724.5085 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.5107 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240808@103724.5119 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.5141 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240808@103724.5153 jps0f3gcl29mjdk91mqgl4ue3v 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
20240808@103724.5372 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240808@103724.5641 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240808@103724.5666 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.5673 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202190' and estab=00
20240808@103724.5821 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.5840 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240808@103724.5907 jps0f3gcl29mjdk91mqgl4ue3v Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b495180366b491d48a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240808@103724.5999 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.6025 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240808@103724.6149 jps0f3gcl29mjdk91mqgl4ue3v Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b495180366b491d48a','--','bo',7.9774127310061601642 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240808@103724.6421 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.6443 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240808@103724.6472 jps0f3gcl29mjdk91mqgl4ue3v 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 ('aut66b495180366b491d48a','guia r. fornecedor','2024-08-08',61,2402302,?,?,?,?,?,?,?,?,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')
20240808@103724.8053 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103724.8059 jps0f3gcl29mjdk91mqgl4ue3v Query : select st.usalote valor from st where st.ref = '324.2000.94.1'
20240808@103724.8270 jps0f3gcl29mjdk91mqgl4ue3v 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.2000.94.1'
20240808@103724.8487 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.8508 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240808@103724.8570 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.8786 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240808@103724.8924 jps0f3gcl29mjdk91mqgl4ue3v Query : select sestamp valor from se where ref ='324.2000.94.1' and lote = 'r2400330200a'
20240808@103724.9090 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103724.9591 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240808@103725.2390 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103725.2720 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240808@103725.2910 jps0f3gcl29mjdk91mqgl4ue3v Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b492059266b491d505',?,?,'20240808',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240808@103725.4400 jps0f3gcl29mjdk91mqgl4ue3v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@103725.5520 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103725.5930 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240808@103725.6140 jps0f3gcl29mjdk91mqgl4ue3v Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b490442466b491d50d','aut66b495180366b491d48a',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 = 'aut66b495180366b491d48a'
20240808@103725.8300 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@103725.1191 jps0f3gcl29mjdk91mqgl4ue3v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240808@103725.1433 jps0f3gcl29mjdk91mqgl4ue3v 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 'aut66b490442466b491d50d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2004, 2004*.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 ,9.74,9.74*200.48,9.74,9.74*200.48 ,0,0,'un ','' ,bo.marcada,1 ,9.74*2004,9.74*2004*200.48 ,11.062000,11.062000*200.48 ,11.062000,11.062000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,9.74,9.74*200.48,9.74*2004,9.74*2004*200.48,'cps24032245678,739000002 ',77.7,77.7*2004,77.7,77.7*2004,?,?,?,4 from bo bo where bo.bostamp = 'aut66b495180366b491d48a'
20240808@103725.7089 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103725.7094 jps0f3gcl29mjdk91mqgl4ue3v Query : declare @bostamp varchar(25) = 'aut66b495180366b491d48a' ,@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 
20240808@103725.9503 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103725.9802 jps0f3gcl29mjdk91mqgl4ue3v Query : select 1 valor from bo where bo.bostamp = 'aut66b495180366b491d48a'
20240808@103725.9931 jps0f3gcl29mjdk91mqgl4ue3v 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) = 'aut66b495180366b491d48a' 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 
20240808@103726.3310 jps0f3gcl29mjdk91mqgl4ue3v Query : use flama_phc
20240808@103726.3314 jps0f3gcl29mjdk91mqgl4ue3v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240808@103726.3388 jps0f3gcl29mjdk91mqgl4ue3v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1437';
20240808@103726.3425 jps0f3gcl29mjdk91mqgl4ue3v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1437';

20240808@133053.1688 j7o7rui0ldf96v49qfkln5la93 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1438';
20240808@133053.1744 j7o7rui0ldf96v49qfkln5la93 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1438';
20240808@133053.1769 j7o7rui0ldf96v49qfkln5la93 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1438';
20240808@133053.1806 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.1809 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@133053.1882 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20240808@133053.2024 j7o7rui0ldf96v49qfkln5la93 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 = 2400465 and bi.ref ='327.8261.00.1' and bi.lordem =20000
20240808@133053.2487 j7o7rui0ldf96v49qfkln5la93 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 = 'cps24042664360,840000002 ' 
20240808@133053.2848 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8261.00.1'
20240808@133053.2874 j7o7rui0ldf96v49qfkln5la93 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 = 2400465 and bi.ref ='327.8261.00.1' and bi.lordem =20000
20240808@133053.2903 j7o7rui0ldf96v49qfkln5la93 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 = 'cps24042664360,840000002 ' 
20240808@133053.2946 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.2951 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 1 valor from ts where ts.ndos = 61
20240808@133053.2994 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.2997 j7o7rui0ldf96v49qfkln5la93 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')
20240808@133053.3040 j7o7rui0ldf96v49qfkln5la93 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
20240808@133053.3113 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.3117 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 ~inactivo valor from fl where no = '202231' and estab = 00 order by inactivo desc
20240808@133053.3262 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.3267 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from ts where ndos = 61
20240808@133053.3291 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.3324 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240808@133053.3365 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.3386 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240808@133053.3397 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.3417 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240808@133053.3429 j7o7rui0ldf96v49qfkln5la93 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
20240808@133053.3470 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240808@133053.3506 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240808@133053.3528 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.3539 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202231' and estab=00
20240808@133053.3646 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.3666 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240808@133053.3686 j7o7rui0ldf96v49qfkln5la93 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4b6024866b4ba7d56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240808@133053.3696 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.3713 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240808@133053.3727 j7o7rui0ldf96v49qfkln5la93 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4b6024866b4ba7d56','--','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240808@133053.4109 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.4133 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240808@133053.4146 j7o7rui0ldf96v49qfkln5la93 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 ('aut66b4b6024866b4ba7d56','guia r. fornecedor','2024-08-08',61,2402303,?,?,?,?,?,?,?,?,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')
20240808@133053.4743 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133053.4746 j7o7rui0ldf96v49qfkln5la93 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240808@133053.4781 j7o7rui0ldf96v49qfkln5la93 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'
20240808@133053.4954 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.4971 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240808@133053.4985 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.5000 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240808@133053.5009 j7o7rui0ldf96v49qfkln5la93 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400465200a'
20240808@133053.5031 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.5047 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240808@133053.5056 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.5071 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240808@133053.5083 j7o7rui0ldf96v49qfkln5la93 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4b6592966b4ba7d7b',?,?,'20240808',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240808@133053.5223 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@133053.5242 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.5259 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240808@133053.5271 j7o7rui0ldf96v49qfkln5la93 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b4b1321266b4ba7d7f','aut66b4b6024866b4ba7d56',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 = 'aut66b4b6024866b4ba7d56'
20240808@133053.5590 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133053.6571 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240808@133053.6592 j7o7rui0ldf96v49qfkln5la93 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 'aut66b4b1321266b4ba7d7f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 149, 149*.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,136*200.48,136,136*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,136*149,136*149*200.48 ,148.317000,148.317000*200.48 ,148.317000,148.317000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,136,136*200.48,136*149,136*149*200.48,'cps24042664360,840000002 ',136,136*149,136,136*149,?,?,?,4 from bo bo where bo.bostamp = 'aut66b4b6024866b4ba7d56'
20240808@133054.3830 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133054.3837 j7o7rui0ldf96v49qfkln5la93 Query : select st.usalote valor from st where st.ref = '327.8261.00.1'
20240808@133054.3872 j7o7rui0ldf96v49qfkln5la93 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'
20240808@133054.3892 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133054.3913 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240808@133054.3931 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133054.3951 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240808@133054.3961 j7o7rui0ldf96v49qfkln5la93 Query : select sestamp valor from se where ref ='327.8261.00.1' and lote = 'r2400465200a'
20240808@133054.3979 j7o7rui0ldf96v49qfkln5la93 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@133054.3995 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133054.4017 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240808@133054.4034 j7o7rui0ldf96v49qfkln5la93 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66b4b8063666b4ba7e61','aut66b4b6024866b4ba7d56',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 = 'aut66b4b6024866b4ba7d56'
20240808@133054.4317 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@133054.4417 j7o7rui0ldf96v49qfkln5la93 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240808@133054.4437 j7o7rui0ldf96v49qfkln5la93 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 'aut66b4b8063666b4ba7e61',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 13, 13*.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,20000 ,136,136*200.48,136,136*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,136*13,136*13*200.48 ,139.536000,139.536000*200.48 ,139.536000,139.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,136,136*200.48,136*13,136*13*200.48,'cps24042664360,840000002 ',136,136*13,136,136*13,?,?,?,4 from bo bo where bo.bostamp = 'aut66b4b6024866b4ba7d56'
20240808@133054.5059 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133054.5064 j7o7rui0ldf96v49qfkln5la93 Query : declare @bostamp varchar(25) = 'aut66b4b6024866b4ba7d56' ,@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 
20240808@133101.9015 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133101.9020 j7o7rui0ldf96v49qfkln5la93 Query : select 1 valor from bo where bo.bostamp = 'aut66b4b6024866b4ba7d56'
20240808@133101.9050 j7o7rui0ldf96v49qfkln5la93 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) = 'aut66b4b6024866b4ba7d56' 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 
20240808@133102.1587 j7o7rui0ldf96v49qfkln5la93 Query : use flama_phc
20240808@133102.1592 j7o7rui0ldf96v49qfkln5la93 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240808@133102.1669 j7o7rui0ldf96v49qfkln5la93 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1438';
20240808@133102.1705 j7o7rui0ldf96v49qfkln5la93 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1438';

20240808@173849.9973 dbq0i85rh3rghqeksqq2n1mbre Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1439';
20240808@173850.2700 dbq0i85rh3rghqeksqq2n1mbre Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1439';
20240808@173850.6100 dbq0i85rh3rghqeksqq2n1mbre Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1439';
20240808@173850.1270 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1310 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@173850.2090 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.2130 dbq0i85rh3rghqeksqq2n1mbre Query : select no, estab,szadrsdesc from szadrs where u_coddest=1404
20240808@173850.3080 dbq0i85rh3rghqeksqq2n1mbre 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'
20240808@173850.4940 dbq0i85rh3rghqeksqq2n1mbre 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'
20240808@173850.6840 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1896.00.1'
20240808@173850.8460 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240808@173850.9970 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240808@173850.1020 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1024 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240808@173850.1259 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1272 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 1 valor from td where td.ndoc = 39
20240808@173850.1389 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1392 dbq0i85rh3rghqeksqq2n1mbre 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')
20240808@173850.1425 dbq0i85rh3rghqeksqq2n1mbre 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
20240808@173850.1607 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1611 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 ~inactivo valor from cl where no = '102206' and estab = 0 order by inactivo desc
20240808@173850.1747 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1751 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240808@173850.1867 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1871 dbq0i85rh3rghqeksqq2n1mbre Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240808@173850.1947 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.1950 dbq0i85rh3rghqeksqq2n1mbre Query : select szadrsstamp valor from szadrs where szadrsdesc='manuel domingos cavaco & filhos, lda.'
20240808@173850.2008 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.2012 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from td where ndoc = 39
20240808@173850.2103 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240808@173850.2166 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.2185 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173850.2249 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.2269 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173850.2307 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.2327 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173850.2344 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173850.2579 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173850.2704 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.2909 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173850.2938 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240808@173850.3274 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.3295 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173850.3343 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240808@173850.3471 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240808@173850.3561 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240808@173850.3664 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240808@173850.3741 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240808@173850.3818 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240808@173850.3890 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b4f7640366b4f49a39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240808@173850.4435 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 fno valor from wsftdata order by fno desc
20240808@173850.4537 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.4556 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173850.4586 dbq0i85rh3rghqeksqq2n1mbre Query : select 'normal' from dummy
20240808@173850.4637 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b4f7640366b4f49a39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',259,102206,0,'2024-08-08',39,'euro',0,0,2024 ,?,?)
20240808@173850.6356 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.6397 dbq0i85rh3rghqeksqq2n1mbre Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240808@173850.6472 dbq0i85rh3rghqeksqq2n1mbre 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'
20240808@173850.6653 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.6673 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.6704 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.6720 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.6731 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173850.6751 dbq0i85rh3rghqeksqq2n1mbre Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '240897'
20240808@173850.6766 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.6785 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.6798 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f6072866b4f49aa5','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173850.6865 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.6882 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.6919 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f6072866b4f49aa5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,10000,?,?,?,?)
20240808@173850.7360 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.7364 dbq0i85rh3rghqeksqq2n1mbre Query : select st.usalote valor from st where st.ref = '324.1837.00.1'
20240808@173850.7390 dbq0i85rh3rghqeksqq2n1mbre 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'
20240808@173850.7561 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.7582 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.7612 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.7632 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.7643 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173850.7660 dbq0i85rh3rghqeksqq2n1mbre Query : select sestamp valor from se where ref ='324.1837.00.1' and lote = 'r2301207300a'
20240808@173850.7678 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.7694 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.7708 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f6700666b4f49abb','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173850.7713 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.7731 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.7765 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f6700666b4f49abb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,20000,?,?,?,?)
20240808@173850.8048 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.8052 dbq0i85rh3rghqeksqq2n1mbre Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20240808@173850.8080 dbq0i85rh3rghqeksqq2n1mbre 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.1896.00.1'
20240808@173850.8264 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.8284 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.8317 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.8335 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.8347 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173850.8363 dbq0i85rh3rghqeksqq2n1mbre Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20240808@173850.8389 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.8408 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.8424 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f5000366b4f49acc','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173850.8429 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.8447 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.8483 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f5000366b4f49acc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,30000,?,?,?,?)
20240808@173850.8760 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.8764 dbq0i85rh3rghqeksqq2n1mbre Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240808@173850.8794 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240808@173850.8957 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.8977 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.9018 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9036 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.9047 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173850.9063 dbq0i85rh3rghqeksqq2n1mbre Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240808@173850.9081 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9099 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.9115 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f7915766b4f49add','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173850.9124 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9142 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.9177 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f7915766b4f49add',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,40000,?,?,?,?)
20240808@173850.9462 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9482 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.9512 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9528 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.9540 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173850.9557 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9575 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173850.9589 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f7755266b4f49ae9','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173850.9595 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173850.9638 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173850.9670 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b4f7755266b4f49ae9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,50000,?,?,?)
20240808@173850.9968 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173850.9972 dbq0i85rh3rghqeksqq2n1mbre Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240808@173850.9995 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240808@173851.1100 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.3200 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.6700 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.8600 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.9700 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173851.1130 dbq0i85rh3rghqeksqq2n1mbre Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240808@173851.1300 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.1520 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.1720 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f3376066b4f49b03','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173851.1790 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.1990 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.2370 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f3376066b4f49b03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,70000,?,?,?,?)
20240808@173851.6390 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.6630 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.7010 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7200 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.7300 dbq0i85rh3rghqeksqq2n1mbre Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173851.7450 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7630 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.7750 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f7780566b4f49b12','aut66b4f7640366b4f49a39' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173851.7800 dbq0i85rh3rghqeksqq2n1mbre Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7970 dbq0i85rh3rghqeksqq2n1mbre Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.8320 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b4f7780566b4f49b12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b4f7640366b4f49a39' ,0,0 ,2,23.00,80000,?,?,?)
20240808@173851.1146 dbq0i85rh3rghqeksqq2n1mbre Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b4f7640366b4f49a39','2405285','wait',39,'adm09112754980.682000002')
20240808@173851.1245 dbq0i85rh3rghqeksqq2n1mbre Query : use flama_phc
20240808@173851.1249 dbq0i85rh3rghqeksqq2n1mbre Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240808@173851.1281 dbq0i85rh3rghqeksqq2n1mbre Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1439';
20240808@173851.1309 dbq0i85rh3rghqeksqq2n1mbre Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1439';
20240808@173851.1351 dbq0i85rh3rghqeksqq2n1mbre Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1439';
20240808@173851.1375 dbq0i85rh3rghqeksqq2n1mbre Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1439';
20240808@173851.2339 jfaarel4t0hlc42ji9chk6rluh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240808@173851.2352 jfaarel4t0hlc42ji9chk6rluh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240808@173851.2416 jfaarel4t0hlc42ji9chk6rluh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1440';
20240808@173851.2474 jfaarel4t0hlc42ji9chk6rluh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1440';
20240808@173851.2529 jfaarel4t0hlc42ji9chk6rluh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1440';
20240808@173851.2601 jfaarel4t0hlc42ji9chk6rluh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1440';
20240808@173851.4159 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4162 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@173851.4228 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4231 jfaarel4t0hlc42ji9chk6rluh Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240808@173851.4320 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20240808@173851.4499 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.318.09.00'
20240808@173851.4678 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.318.09.00'
20240808@173851.4698 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4702 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240808@173851.4737 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4740 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 1 valor from td where td.ndoc = 39
20240808@173851.4770 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4773 jfaarel4t0hlc42ji9chk6rluh 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')
20240808@173851.4803 jfaarel4t0hlc42ji9chk6rluh 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
20240808@173851.4840 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4843 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 ~inactivo valor from cl where no = '102079' and estab = 0 order by inactivo desc
20240808@173851.4984 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.4987 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240808@173851.5020 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.5023 jfaarel4t0hlc42ji9chk6rluh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240808@173851.5081 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.5084 jfaarel4t0hlc42ji9chk6rluh Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240808@173851.5136 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.5139 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from td where ndoc = 39
20240808@173851.5152 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240808@173851.5168 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.5200 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173851.5222 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.5240 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173851.5301 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.5319 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173851.5335 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173851.5412 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173851.5428 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.5444 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173851.5462 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b4f1539066b4f49b82' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240808@173851.5664 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.5686 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173851.5733 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240808@173851.5745 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240808@173851.5758 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240808@173851.5771 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240808@173851.5783 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240808@173851.5796 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240808@173851.5808 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b4f1539066b4f49b82',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240808@173851.6075 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 fno valor from wsftdata order by fno desc
20240808@173851.6096 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.6115 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173851.6141 jfaarel4t0hlc42ji9chk6rluh Query : select 'normal' from dummy
20240808@173851.6159 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b4f1539066b4f49b82',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',260,102079,0,'2024-08-08',39,'euro',0,0,2024 ,?,?)
20240808@173851.6529 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.6533 jfaarel4t0hlc42ji9chk6rluh Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240808@173851.6581 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20240808@173851.6805 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.6826 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.6853 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.6880 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.6890 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173851.6904 jfaarel4t0hlc42ji9chk6rluh Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240808@173851.6927 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.6943 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.6955 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f2614266b4f49ba9','aut66b4f1539066b4f49b82' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173851.6960 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.6979 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.7017 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f2614266b4f49ba9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66b4f1539066b4f49b82' ,0,0 ,2,23.00,10000,?,?,?,?)
20240808@173851.7327 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.7331 jfaarel4t0hlc42ji9chk6rluh Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240808@173851.7359 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20240808@173851.7550 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7568 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.7598 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7615 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.7625 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173851.7638 jfaarel4t0hlc42ji9chk6rluh Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240808@173851.7656 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7674 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.7688 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f2190566b4f49bba','aut66b4f1539066b4f49b82' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173851.7693 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.7711 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.7743 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f2190566b4f49bba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66b4f1539066b4f49b82' ,0,0 ,2,23.00,20000,?,?,?,?)
20240808@173851.8063 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.8066 jfaarel4t0hlc42ji9chk6rluh Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20240808@173851.8111 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20240808@173851.8127 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.8148 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.8179 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.8197 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.8208 jfaarel4t0hlc42ji9chk6rluh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173851.8222 jfaarel4t0hlc42ji9chk6rluh Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20240808@173851.8237 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.8252 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173851.8266 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f1321766b4f49bc9','aut66b4f1539066b4f49b82' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173851.8271 jfaarel4t0hlc42ji9chk6rluh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173851.8287 jfaarel4t0hlc42ji9chk6rluh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173851.8320 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f1321766b4f49bc9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66b4f1539066b4f49b82' ,0,0 ,2,23.00,30000,?,?,?,?)
20240808@173851.8610 jfaarel4t0hlc42ji9chk6rluh Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b4f1539066b4f49b82','2405286','wait',39,'adm09112754980.682000002')
20240808@173851.8691 jfaarel4t0hlc42ji9chk6rluh Query : use flama_phc
20240808@173851.8694 jfaarel4t0hlc42ji9chk6rluh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240808@173851.8726 jfaarel4t0hlc42ji9chk6rluh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1440';
20240808@173851.8753 jfaarel4t0hlc42ji9chk6rluh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1440';
20240808@173851.8793 jfaarel4t0hlc42ji9chk6rluh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1440';
20240808@173851.9997 jfaarel4t0hlc42ji9chk6rluh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1440';
20240808@173852.6650 ebgtf696gvkva1egao7hvre11n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240808@173852.6770 ebgtf696gvkva1egao7hvre11n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240808@173852.7310 ebgtf696gvkva1egao7hvre11n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1441';
20240808@173852.7870 ebgtf696gvkva1egao7hvre11n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1441';
20240808@173852.8430 ebgtf696gvkva1egao7hvre11n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1441';
20240808@173852.8720 ebgtf696gvkva1egao7hvre11n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1441';
20240808@173852.9230 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.9260 ebgtf696gvkva1egao7hvre11n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@173852.9960 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.9990 ebgtf696gvkva1egao7hvre11n Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240808@173852.1092 ebgtf696gvkva1egao7hvre11n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.497.00.01'
20240808@173852.1310 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1315 ebgtf696gvkva1egao7hvre11n Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240808@173852.1353 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1356 ebgtf696gvkva1egao7hvre11n Query : select top 1 1 valor from td where td.ndoc = 39
20240808@173852.1389 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1392 ebgtf696gvkva1egao7hvre11n 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')
20240808@173852.1426 ebgtf696gvkva1egao7hvre11n 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
20240808@173852.1465 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1468 ebgtf696gvkva1egao7hvre11n Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240808@173852.1659 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1663 ebgtf696gvkva1egao7hvre11n Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240808@173852.1698 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1701 ebgtf696gvkva1egao7hvre11n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240808@173852.1749 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1753 ebgtf696gvkva1egao7hvre11n Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240808@173852.1806 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.1809 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from td where ndoc = 39
20240808@173852.1824 ebgtf696gvkva1egao7hvre11n Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240808@173852.1840 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.1860 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173852.1883 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.1899 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173852.1933 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.1950 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173852.1965 ebgtf696gvkva1egao7hvre11n Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173852.2038 ebgtf696gvkva1egao7hvre11n Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173852.2052 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.2070 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173852.2088 ebgtf696gvkva1egao7hvre11n Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b4f4061266b4f49c2f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240808@173852.2319 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.2343 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173852.2387 ebgtf696gvkva1egao7hvre11n Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240808@173852.2402 ebgtf696gvkva1egao7hvre11n Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240808@173852.2418 ebgtf696gvkva1egao7hvre11n Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240808@173852.2430 ebgtf696gvkva1egao7hvre11n Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240808@173852.2441 ebgtf696gvkva1egao7hvre11n Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240808@173852.2453 ebgtf696gvkva1egao7hvre11n Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240808@173852.2467 ebgtf696gvkva1egao7hvre11n Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b4f4061266b4f49c2f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240808@173852.2794 ebgtf696gvkva1egao7hvre11n Query : select top 1 fno valor from wsftdata order by fno desc
20240808@173852.2816 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.2843 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173852.2886 ebgtf696gvkva1egao7hvre11n Query : select 'normal' from dummy
20240808@173852.2907 ebgtf696gvkva1egao7hvre11n Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b4f4061266b4f49c2f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',261,100810,0,'2024-08-08',39,'euro',0,0,2024 ,?,?)
20240808@173852.3263 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.3267 ebgtf696gvkva1egao7hvre11n Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20240808@173852.3297 ebgtf696gvkva1egao7hvre11n 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.497.00.01'
20240808@173852.3713 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.3732 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173852.3764 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.3781 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173852.3795 ebgtf696gvkva1egao7hvre11n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173852.3809 ebgtf696gvkva1egao7hvre11n Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300022100a'
20240808@173852.3831 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.3848 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173852.3861 ebgtf696gvkva1egao7hvre11n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f4935766b4f49c5d','aut66b4f4061266b4f49c2f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173852.3866 ebgtf696gvkva1egao7hvre11n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.3904 ebgtf696gvkva1egao7hvre11n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173852.3949 ebgtf696gvkva1egao7hvre11n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f4935766b4f49c5d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66b4f4061266b4f49c2f' ,0,0 ,2,23.00,10000,?,?,?,?)
20240808@173852.4245 ebgtf696gvkva1egao7hvre11n Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b4f4061266b4f49c2f','2405287','wait',39,'adm09112754980.682000002')
20240808@173852.4322 ebgtf696gvkva1egao7hvre11n Query : use flama_phc
20240808@173852.4326 ebgtf696gvkva1egao7hvre11n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240808@173852.4357 ebgtf696gvkva1egao7hvre11n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1441';
20240808@173852.4387 ebgtf696gvkva1egao7hvre11n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1441';
20240808@173852.4426 ebgtf696gvkva1egao7hvre11n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1441';
20240808@173852.4451 ebgtf696gvkva1egao7hvre11n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1441';
20240808@173852.5873 blbr2ln6ou38knmatcl4mhntfd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240808@173852.5885 blbr2ln6ou38knmatcl4mhntfd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240808@173852.5943 blbr2ln6ou38knmatcl4mhntfd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1442';
20240808@173852.6015 blbr2ln6ou38knmatcl4mhntfd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1442';
20240808@173852.6070 blbr2ln6ou38knmatcl4mhntfd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1442';
20240808@173852.6093 blbr2ln6ou38knmatcl4mhntfd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1442';
20240808@173852.6140 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6143 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@173852.6207 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6210 blbr2ln6ou38knmatcl4mhntfd Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20240808@173852.6300 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240808@173852.6488 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6492 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240808@173852.6526 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6529 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 1 valor from td where td.ndoc = 39
20240808@173852.6560 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6563 blbr2ln6ou38knmatcl4mhntfd 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')
20240808@173852.6591 blbr2ln6ou38knmatcl4mhntfd 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
20240808@173852.6630 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6633 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20240808@173852.6777 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6780 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240808@173852.6811 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6815 blbr2ln6ou38knmatcl4mhntfd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240808@173852.6858 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6862 blbr2ln6ou38knmatcl4mhntfd Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20240808@173852.6913 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.6916 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from td where ndoc = 39
20240808@173852.6930 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240808@173852.6944 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.6961 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173852.6981 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.6996 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173852.7028 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.7053 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173852.7066 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173852.7137 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173852.7151 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.7167 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173852.7184 blbr2ln6ou38knmatcl4mhntfd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b4f5859266b4f49cac' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240808@173852.7402 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.7423 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173852.7459 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240808@173852.7471 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240808@173852.7483 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240808@173852.7496 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240808@173852.7509 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240808@173852.7522 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240808@173852.7534 blbr2ln6ou38knmatcl4mhntfd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b4f5859266b4f49cac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240808@173852.7854 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 fno valor from wsftdata order by fno desc
20240808@173852.7876 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.7893 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173852.7918 blbr2ln6ou38knmatcl4mhntfd Query : select 'normal' from dummy
20240808@173852.7934 blbr2ln6ou38knmatcl4mhntfd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b4f5859266b4f49cac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',262,199510,0,'2024-08-08',39,'euro',0,0,2024 ,?,?)
20240808@173852.8257 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.8260 blbr2ln6ou38knmatcl4mhntfd Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240808@173852.8284 blbr2ln6ou38knmatcl4mhntfd 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.4980.00.1'
20240808@173852.8444 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.8461 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173852.8489 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.8506 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173852.8516 blbr2ln6ou38knmatcl4mhntfd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173852.8529 blbr2ln6ou38knmatcl4mhntfd Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240808@173852.8544 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.8559 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173852.8571 blbr2ln6ou38knmatcl4mhntfd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f6256866b4f49cd0','aut66b4f5859266b4f49cac' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173852.8575 blbr2ln6ou38knmatcl4mhntfd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173852.8590 blbr2ln6ou38knmatcl4mhntfd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173852.8621 blbr2ln6ou38knmatcl4mhntfd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f6256866b4f49cd0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48.000 ,'aut66b4f5859266b4f49cac' ,0,0 ,2,23.00,10000,?,?,?,?)
20240808@173852.8885 blbr2ln6ou38knmatcl4mhntfd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66b4f5859266b4f49cac','2405293','wait',39,'adm09112754980.682000002')
20240808@173852.8958 blbr2ln6ou38knmatcl4mhntfd Query : use flama_phc
20240808@173852.8962 blbr2ln6ou38knmatcl4mhntfd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240808@173852.8994 blbr2ln6ou38knmatcl4mhntfd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1442';
20240808@173852.9023 blbr2ln6ou38knmatcl4mhntfd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1442';
20240808@173852.9061 blbr2ln6ou38knmatcl4mhntfd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1442';
20240808@173852.9085 blbr2ln6ou38knmatcl4mhntfd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1442';
20240808@173852.9801 6ktn7f5tufe62s895vclof51qa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240808@173852.9814 6ktn7f5tufe62s895vclof51qa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240808@173852.9872 6ktn7f5tufe62s895vclof51qa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1443';
20240808@173852.9945 6ktn7f5tufe62s895vclof51qa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1443';
20240808@173853.1000 6ktn7f5tufe62s895vclof51qa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1443';
20240808@173853.2600 6ktn7f5tufe62s895vclof51qa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1443';
20240808@173853.8200 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.8500 6ktn7f5tufe62s895vclof51qa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240808@173853.1500 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.1530 6ktn7f5tufe62s895vclof51qa Query : select no, estab,szadrsdesc from szadrs where u_coddest=1498
20240808@173853.2460 6ktn7f5tufe62s895vclof51qa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240808@173853.4480 6ktn7f5tufe62s895vclof51qa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240808@173853.6170 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.6210 6ktn7f5tufe62s895vclof51qa Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240808@173853.6600 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.6640 6ktn7f5tufe62s895vclof51qa Query : select top 1 1 valor from td where td.ndoc = 39
20240808@173853.6990 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.7020 6ktn7f5tufe62s895vclof51qa 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')
20240808@173853.7380 6ktn7f5tufe62s895vclof51qa 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
20240808@173853.7750 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.7780 6ktn7f5tufe62s895vclof51qa Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240808@173853.9280 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.9310 6ktn7f5tufe62s895vclof51qa Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240808@173853.9640 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.9680 6ktn7f5tufe62s895vclof51qa Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240808@173853.1013 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.1016 6ktn7f5tufe62s895vclof51qa Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - viseu'
20240808@173853.1072 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.1075 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from td where ndoc = 39
20240808@173853.1099 6ktn7f5tufe62s895vclof51qa Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240808@173853.1115 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.1137 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173853.1160 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.1176 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173853.1212 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.1231 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173853.1253 6ktn7f5tufe62s895vclof51qa Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173853.1327 6ktn7f5tufe62s895vclof51qa Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240808@173853.1342 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.1361 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240808@173853.1377 6ktn7f5tufe62s895vclof51qa Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66b4f2556166b4f49d1e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240808@173853.1589 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.1617 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240808@173853.1658 6ktn7f5tufe62s895vclof51qa Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240808@173853.1672 6ktn7f5tufe62s895vclof51qa Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240808@173853.1684 6ktn7f5tufe62s895vclof51qa Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240808@173853.1697 6ktn7f5tufe62s895vclof51qa Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240808@173853.1709 6ktn7f5tufe62s895vclof51qa Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240808@173853.1730 6ktn7f5tufe62s895vclof51qa Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240808@173853.1743 6ktn7f5tufe62s895vclof51qa Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66b4f2556166b4f49d1e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240808@173853.2050 6ktn7f5tufe62s895vclof51qa Query : select top 1 fno valor from wsftdata order by fno desc
20240808@173853.2071 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.2166 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240808@173853.2190 6ktn7f5tufe62s895vclof51qa Query : select 'normal' from dummy
20240808@173853.2205 6ktn7f5tufe62s895vclof51qa Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66b4f2556166b4f49d1e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',263,101621,0,'2024-08-08',39,'euro',0,0,2024 ,?,?)
20240808@173853.2521 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.2525 6ktn7f5tufe62s895vclof51qa Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240808@173853.2562 6ktn7f5tufe62s895vclof51qa 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.2031.00.1'
20240808@173853.2735 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.2752 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173853.2783 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.2801 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173853.2810 6ktn7f5tufe62s895vclof51qa Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173853.2824 6ktn7f5tufe62s895vclof51qa Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240808@173853.2848 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.2864 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173853.2880 6ktn7f5tufe62s895vclof51qa Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f6192066b4f49d45','aut66b4f2556166b4f49d1e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173853.2884 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.2898 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173853.2928 6ktn7f5tufe62s895vclof51qa Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66b4f6192066b4f49d45',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66b4f2556166b4f49d1e' ,0,0 ,2,23.00,10000,?,?,?,?)
20240808@173853.3234 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.3253 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173853.3283 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.3299 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173853.3307 6ktn7f5tufe62s895vclof51qa Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240808@173853.3321 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.3335 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240808@173853.3347 6ktn7f5tufe62s895vclof51qa Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66b4f9689466b4f49d51','aut66b4f2556166b4f49d1e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240808@173853.3352 6ktn7f5tufe62s895vclof51qa Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240808@173853.3409 6ktn7f5tufe62s895vclof51qa Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240808@173853.3439 6ktn7f5tufe62s895vclof51qa Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66b4f9689466b4f49d51',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66b4f2556166b4f49d1e' ,0,0 ,2,23.00,20000,?,?,?)
20240808@173853.3771 6ktn7f5tufe62s895vclof51qa Query : use flama_phc
20240808@173853.3814 6ktn7f5tufe62s895vclof51qa Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240808@173853.3951 6ktn7f5tufe62s895vclof51qa 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.1831.00.2'
